Ubuntu编译elua
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