Some tools which enable multi-platform development on the TI Stellaris Launchpad boards. The Stellaris Launchpad is a low cost development board created by Texas Instruments that comes with an ARM Cortex-M4F processor. You can get one here:
lm4flash Command-line firmware flashing tool using libusb-1.0 to communicate with the Stellaris Launchpad ICDI. Works on all Linux, Mac OS X, Windows, and BSD systems. GPLv2+ license. See lm4flash/COPYING for details.
lmicdiusb TCP/USB bridge created by TI, letting GDB communicate with the Stellaris Launchpad ICDI. Works on all Linux, Mac OS X, and BSD systems. Currently not on Windows, due to the use of poll() which does not work for USB on Windows. BSD-style license. See lmicdiusb/license.txt for details.
Setting up a development environment
First you'll need a cross compiler able to compile for ARM Cortex-Mx aka arm-none-eabi-. Some which are know to work:
- summon-arm-toolchain by Piotr Esden-Tempski
- arm-eabi-toolchain by James Snyder
- Sourcery Codebench Lite
More info can be found here eLinux toolchains.
Grab StellarisWare from Texas Instruments: Stellaris LM4F120 LaunchPad Evaluation Board Software. You need to get SW-EK-LM4F120XL.
Inside StellarisWare directory you'll find many examples in the directory boards/ek-lm4f120xl. Try building project0 by going to that directory and running make.
To flash your Stellaris board from boards/ek-lm4f120xl/project0, run:
$ lm4flash gcc/project0.bin