Print this page

MSP430 Eclipse

MSP430 Eclipse is a plugin which adds support for MSP430 GCC and MSPDebug, in order to ease compilation, upload, and debugging for Texas Instrument's MSP430-series of MCUs.

Changes

1.0.5.2

  • Change order of parameters for the linker (fixes an issue with linking against static libraries).
  • Make it possible to identify USB devices. 

1.0.5.1

  • Added Windows support.
  • Added dependency on "Target Management Terminal".
  • Add .cpp as C++ extension.
  • Support for FRAM board (by using a newer version of mspdebug).
  • Fix a bug: mspdebug fails to startup successfully for debugging session.
  • Group MCU List to make selection easier.
  • Remove usage of stdbuf.
  • Simplify tool selection by adding an "Activate"-button to the tool manager.
  • Add support for static libraries (project type).
  • Kill mspdebug when debugger is stopped.
  • "tilib" to the mspdebug driver selection.

1.0.4.1 

  • gcc, gdb, and mspdebug are no longer distributed as an eclipse plugin, but as a separate download package. This allows the tools to be installed in a user select location, rather than trying to install into the eclipse directory.
  • MSP430 C/C++ projects can now be created.
  • The protocol (SBW, JTAG) used by MSPDebug can now be selected. 

Features and Limitations

  • Supports msp430-gcc macro and include directory discovery.
  • Extracts list of supportet MCUs from msp430-gcc, and allows target MCU to be easily selected and changed.
  • Use mspdebug to upload to target.
  • Only Linux and Windows are supported at this point.
  • Early debugging support is implemented.

 

Installation  

Add http://eclipse.xpg.dk as a software source in Eclipse, and install the Msp430Eclipse plugin. 
Currently, only Indigo is supported, but the plugin might work with Helios and Juno as well.

If your system does not have up-to-date version of msp430-gcc, msp430-gdb, and mspdebug, you can download one of the following tool-packages:


Extract the package in an appropriate location ($HOME, for instance), and go to Eclipse (with the MSP430Eclipse plugin installed), and from the menu select MSP430->Tool Manager. Click the "Add..."-button, and browse to the tool-package directory. Select the tool-chain and press the "Activate"-button in order to tell Eclipse to use it.

You can verify that the right tool-package is used by going to the Eclipse preference and select "MSP430". Here you will be able to see and choose what tools are used from which package.

For windows, you will need to install USB-drivers as described in the MSPDebug FAQ.

 

Getting Started

In order to  use the MSP430 features, you have to create a new C or C/C++ project and choose "Empty Project" from the "MSP430 Cross Target Application" group. It is possible to select the target MCU from the wizard, but this can be changed at a later point.

After having created the project, right click on it and select properties. In the "MSP430"-setting it is possible to select the target MCU and the MSPDebug settings to use. Remember to press "Apply" in order for the selection to take effect.

After having added some source files and compiled the project, you can upload it to the MSP430 by choosing the MSP430-menu, and selecting the "Upload to target action"

Using the Debugger

In order to debug your program, go to the "Debug Configuration"-dialog, and create a new configuration in the "MPS430 Debug"-group (by right-clicking it). Having that new configurations elected, simply click "Debug". 

Additional Resources

The source code to the repository is available at gitorious under the MIT license: https://gitlab.com/xpg/msp430eclipse


Modified: Mon 02-May-16 12:00:57 PDT