创建并编辑
~/.atom/.apmrc
,添加
registry = https://registry.npm.taobao.org
创建并编辑
~/.atom/.apmrc
,添加
registry = https://registry.npm.taobao.org
git clone https://github.com/elua/elua cd elua sudo apt-get install gcc-arm-none-eabi build-essential lua5.1 luarocks sudo luarocks install luafilesystem sudo luarocks install lpack sudo luarocks install md5 lua cross-lua.lua
开始编译
lua build_elua.lua board=et-stm32 prog
编译完成后会生成elua_lua_et-stm32.bin,elua_lua_et-stm32.elf,elua_lua_et-stm32.hex,elua_lua_et-stm32.map。
将elua_lua_et-stm32.bin可以通过stlink(方法)烧写到芯片中。
st-flash write elua_lua_et-stm32.bin 0x8000000
git clone https://github.com/texane/stlink cd stlink sudo apt-get install build-essential pkg-config cmake autoconf automake autogen libusb-1.0 ./autogen.sh ./configure make sudo make install sudo cp ./etc/udev/rules.d/*.rules /etc/udev/rules.d reboot