Energia IDE
8 - 12 MSP430 Workshop - Using Energia (Arduino)
Energia IDE
The Energia IDE (integrated debugger and editor; integrated development environment) has been
written in Java. This is how they can provide versions of the tools for multiple host platforms
(Wndows, Mac, Linux).
Energia Debugger
Installation
Simply unzip Energia package
Everything is included: debugger, libraries,
board files, compilers
Download button…
Performs compile and downloads the
program to the target
Debugging – Use common open-src methods
Write values to serial port: Serial.println()
Toggle pins & watch with o-scope
New
Open
Save
Verify/Compile
Download
Installation of the tools couldn’t be much simplier – unzip the package … that’s it. (Though, if you
have not already installed TI’s Code Composer Studio IDE, you may have to install drivers so that
the Energia debugger can talk to the TI Launchpad board.)
Editing code is straightforward. Syntax highlighting, as well as brace matching help to minimize
errors.
Compiling and downloading the program is as simple as clicking the Download button.
Debugging code is handled in the common, open-source fashion: printf() style. Although, rather
than using printf(), you can use the Serial print functions to keep track of what is going on with
your programs. Similarly, we often use LED’s to help indicate status of program execution. And, if
you have an oscilloscope or logic analyzer, you can also toggle other GPIO pins to evaluate the
runtime state of your program sketches. (We explore using LED’s and serial communications in
the upcoming lab exercises.)