These are the files that will help bootstrap the usage of the TI Tiva C 123 launchpad.
- Download the GCC ARM Embedded toolchain:
- [Windows] (https://launchpad.net/gcc-arm-embedded/4.8/4.8-2014-q2-update/+download/gcc-arm-none-eabi-4_8-2014q2-20140609-win32.exe). Install, and select the options to add to the PATH.
- [Linux] (https://launchpad.net/gcc-arm-embedded/4.8/4.8-2014-q2-update/+download/gcc-arm-none-eabi-4_8-2014q2-20140609-linux.tar.bz2) (or your package manager, look for gcc-arm-none-eabi).
- Build tools - this project relies heavily on makefiles.
- Test by running
arm-none-eabi-gcc -v
andmake
from a shell. If they run, you're good to go. - Install Stellaris drivers for Windows. Linux can use lm4flash as it just uses libusbxx.
This isn't essential to build code for the Tiva C, but advanced users might find this section helpful.
Real-time debugging the Tiva C through (arm-none-eabi)GDB requires openocd version 0.8 or greater. The -g
must be added to CFLAGS
if it doesn't exist already.
-
Install
arm-none-eabi-gdb
. This is included in the Windows package automatically, but Linux users must download and install the package separately. -
Install openocd version 0.8 or greater.
-
Locate the openocd binary, and find the
scripts/board/ek-lm4f120xl.cfg
file. It should be under/usr/share
or/usr/local/share
on Linux. -
Start openocd with the path to the config file.
- on Linux, this would be
openocd -f /usr/share/openocd/scripts/board/ek-lm4f120xl.cfg
-
In your project directory, start gdb with the path to the payload.bin file.
arm-none-eabi-gdb payload.bin
-
Tell gdb to connect to openocd:
target extended-remote :3333
-
To reset the microcontroller:
monitor reset init