Energia

Recenlty I had a major HDD failure and I had to regenerate my working environment on a new HDD.  This article contains the step-by-step instructions to set up a working development environment for the Stellaris Launchpad under Linux Ubuntu 12.04 64bit.

Installing the toolchain

The toolchain for ARM is available as a ppa at: https://launchpad.net/gcc-arm-embedded

$ sudo add-apt-repository ppa:terry.guo/gcc-arm-embedded
$ sudo apt-get update && sudo apt-get install gcc-arm-none-eabi

Install Energia IDE

I chose to install a stripped-down version, much smaller that doesn’t contain the compiler tools which I’ve installed independently.

The package is available at: http://fabhack.com/doc/stellaris/energia, choose the 32bit or 64bit version accordingly to your architecture.

$ cd
$ wget http://fabhack.com/_media/energia-0101e0009-linux-notools-64bit.tar.gz
$ tar -xzvf energia-0101e0009-linux-notools-64bit.tar.gz
$ mv energia-0101e0009 energia

Building lm4flash

lm4flash is the tool used to flash the Stellaris Launchpad, in order to build it, you need build essentials, and other dev packages:

$ sudo apt-get install libusb-1.0-0-dev pkg-config
$ git clone https://github.com/utzig/lm4tools.git
$ cd lm4tools/lm4flash
$ make

Now you can move the built binary to a path where your system can find it, I usually put my binaries in the “bin” folder under my home folder.

Testing

You can launch energia from your home folder:

$ cd
$ energia/energia

Choose an example sketch (Blink) and try to compile and upload.

References

It's only fair to share...Tweet about this on TwitterShare on FacebookShare on LinkedInPin on PinterestShare on RedditShare on Google+