Compile eLua (st method)

= Developing eLua for STM32F4-Discovery (on mac) =

Build envinronment

 * Mac Os X 10.8.2
 * Yagarto 16.06.2012
 * Binutils-2.22
 * GCC-4.7.1

Install Yagartgo

 * Download http://www.yagarto.de/
 * Run installer
 * Add to $PATH

Install ST-link
git clone git://github.com/texane/stlink.git cd stlink ./autogen.sh ./configure make make install This istall st-flash util to /usr/local/bin (add to your path)
 * Fetch source
 * Build
 * Install

Building eLua
git clone git://github.com/jsnyder/elua.git cd elua git git pull origin bikeNomad-master scons board=STM32F4DSCY prog
 * Fetch main sources
 * Go to nomad branch (please, fix this! There should be direct step)
 * Change Serial port configuration to USART2 (PA2=Tx, PA3=RX)
 * From src/platform/stm32f4/platform_conf.h
 * 1) define CON_UART_ID          1
 * 2) define CON_UART_SPEED       9600
 * 3) define TERM_LINES           25
 * 4) define TERM_COLS            80
 * Build eLua

Flash using ST-FLASH
dfu-util should work also. This is easiest(for me) st-flash write elua_lua_stm32f407vg.bin 0x08000000

eLua console
Start serial terminal. eg minicom. You should see this: eLua dev-f38a6ba Copyright (C) 2007-2011 www.eluaproject.net eLua# help Shell commands: exit       - exit from this shell help       - print this help ls or dir  - lists filesystems files and sizes cat or type - lists file contents lua [args] - run Lua with the given arguments recv [path] - receive a file via XMODEM. If path is given save it there, otherwise run it. cp - copy source file 'src' to 'dst' wofmt      - format the internal WOFS ver        - print eLua version eLua#