xpg 127 Posted November 15, 2011 Share Posted November 15, 2011 Hi guys,I've finally hacked together a plugin for Eclipse that allows the msp430-gcc toolchain to be used from within Eclipse more easily.I must warn you that this is by no means finished, but I wanted to get it out there to get some opinions before I spend too much time on it.Features and Limitations:- Supports msp430-gcc macro and include directory discovery (though msp430-gcc must be in your PATH).- 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 Launchpad is supported and the device is autodetected).- Only Linux and Windows are supported at this point.- Binary toolchains are provided for Linux and Windows, in order to ease installation.Changelog:220.127.116.11-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. 18.104.22.168 -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. 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:Linux 64-bit: msp430-toolchain-linux-amd64-3.0.tar.bz2Linux 32-bit: msp430-toolchain-linux-i386-2.1.tar.bz2Windows 32-bit: msp430-toolchain-win-x86-3.0.zip Mac OS X: msp430-toolchain-mac_os_x-x86_64-2.2.tar.bz2Extract 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 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 does currently not work.After having created the project, right click on it and select properties. In the "MSP430"-setting it is possible to select the target MCU. 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 DebuggerIn 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". For people interested in hacking on the source code of msp430Eclipse, it is available at gitorious: https://gitorious.org/msp430eclipse Updated September 3rd: New version released (22.214.171.124), updated description Updated April 23rd 2013: Links to toolchains updated. Updated April 25th 2013: Added link to gitorious project. zborgerd, nemetila, Rickta59 and 6 others 9 Quote Link to post Share on other sites
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.