eLua
The easiest way to get eLua on your ARMinARM board, is by selecting the "Upload elua.bin to ARMinARM board" from the 'setup' menu.
After eLua is uploaded to the ARMinARM board, run 'screen' or 'minicom'
minicom -D /dev/ttyAMA0 -b 115200
A very short demo session. More information available on www.eluaproject.net
Welcome to minicom 2.6.1
OPTIONS: I18n
Compiled on Apr 28 2012, 19:24:31.
Port /dev/ttyAMA0
Press CTRL-A Z for help on special keys
eLua#
eLua# help
Shell commands:
help - shell help
lua - start a Lua session
ls - lists files and directories
dir - lists files and directories
cat - list the contents of a file
type - list the contents of a file
recv - receive files via XMODEM
cp - copy files
ver - show version information
mkdir - create directories
wofmt - WOFS format
exit - exit the shell
For more information use 'help '.
eLua# dir
/wo
Total on /wo: 0 bytes
/rom
info.lua 134 bytes
hello.lua 116 bytes
hangman.lua 3417 bytes
Total on /rom: 3667 bytes
eLua#
eLua# lua /rom/info.lua
Press CTRL+Z to exit Lua
I'm running on platform STM32
The CPU is a STM32F103RE
The board name is ARMINARM
eLua#
eLua# lua /rom/hello.lua
Press CTRL+Z to exit Lua
Hello, World!
eLua# exit