• Stars
    star
    203
  • Rank 192,890 (Top 4 %)
  • Language
    C
  • Created about 12 years ago
  • Updated over 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Tools to enable multi-platform development on the TI Stellaris Launchpad boards

lm4tools

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:

Get a Stellaris Launchpad

Included tools

  • 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:

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

Nice hacking!

Optional: Remove the root requirement

By default, root permissions are required to flash the Stellaris Launchpad ICDI. This can be circumvented by adding udev rules. Create a file called /etc/udev/rules.d/61.stellpad.rules, containing:

SUBSYSTEM=="usb", ATTRS{idVendor}=="1cbe", ATTRS{idProduct}=="00fd", MODE="0666"

Restart udev to apply the changes.