Using eLua with the STR7 CPUs from ST
STR7 is a family of ATM7TDMI based CPUs from ST. They are small, low power MCUs, with a well balanced set of on-chip peripherals. I'm using the MOD711 header board from ScTec. The board is based on this STR711FR2 variant of the STR7 family. Since this is not a full-fledged development board, I had to add a few things around it: a MAX3232 RS232 to TTL converter for the serial interface, a couple of LEDs and a reset button. After that, the board was ready for some eLua :)
Prerequisites
Before you'll be able to use eLua on the STR711FR2 CPU, make sure that:
- you're using Linux, Windows, or any other OS that has support for OpenOCD. You might have a look at our OpenOCD tutorial before continuing.
- you already built your eLua image for the STR711FR2 CPU. Simply put, this means that you have a GCC toolchain for ARM, and that you used it to build eLua (remember to specify "prog" on the scons command line to get a .bin file that's suitable for programming). Or follow the instructions from the download page and download a precompiled binary image.
Burning eLua to the MOD711 board
You need OpenOCD to do this. Just follow the instructions from our OpenOCD tutorial. On the tutorial page you'll also find links to the OpenOCD configuration files that I'm using for burning eLua to the MOD711 board. And that's it! eLua is now programmed in the CPU, so you can start your terminal emulator and enjoy it, as described in using eLua. IMPORTANT NOTE: for this board you need to set your COM port speed to 38400 baud (as opposed to 115200 baud for the other boards). All the other parameters are the same (8 data bits, no parity, one stop bit). If you have any problems with this procedure, feel free to contact us.