Testing eLua

Preparing for board program execution
Prepare hardware:
 * Connect jumper wire from BOOT0 to GND.
 * Connect mini-usb cable to STM32F4DISCOVERY board and another end to computer.
 * Press black button to reset board

Testing autostart led blinking
Beforehand: save led blinking example in Making eLua script to romfs/autorun.lua, then build new firmware as instructed in Compiling new eLua.

After power on or reset led should start blinking.

Testing serial connection to eLua (Ubuntu 12.04)
Prepare hardware:
 * Connect usb-serial adapter (TTL-232RG) to board's pins PB6 and PB7 and another end to computer. Also connect serial adapter's voltage sense wire (red) to VDD and ground cable (black) to GND.

Set up terminal connection to board:

Change minicom settings if needed:
 * Serial device: /dev/ttyUSB0
 * Bps: 115200 8N1
 * Hardware flow control: off
 * Save setup as dfl

Open terminal connection to board:

Press black reset to see eLua command prompt and type help.

Testing command line with led blinking script
Show available scripts:

If led.lua was saved earlier to romfs, it can be started with command line: