Jump to content
jscrane

Adding new core to Energia?

Recommended Posts

Thanks to the excellent work of simpleavr and friends on this thread, http://forum.43oh.com/topic/2962-bit-bang-usb-on-msp430g2452/

 

... I now have a little stripboard msp430 development board with usb bootloader!

 

I would now like to program it from Energia but one immediate stumbling block is that it uses a custom upload tool, not mspdebug.

 

Any ideas how I can tell boards.txt (or anywhere else which needs to know) about this?

 

Thanks,

Steve

Share this post


Link to post
Share on other sites

Arduino version 1.5.x (which hasn't been released) has been changed to make it easier to support non avr chip architectures. It uses additional external config files to add toolchains and flash loaders without having to modify the IDE code written in java. The Arduino guys used it to add ARM chip support.

I've tested it out to see how hard it would be to add the cc430f5137 with a custom gdb_bootloader I wrote. I didn't have to modify the java, I just created some config files for the uploader (msp430-gdb) and a new board description and core for the cc430. Was fairly simple. You do have to rearrange the directory structure somewhat to conform to the new scheme.
 

https://github.com/arduino/Arduino/tree/ide-1.5.x
git clone that
cd build
ant clean build run

With Energia, you would create a new board in the config files. To deal with a different way to load the code you have a couple of choices. 1.) Modify the java source to invoke your loader or 2.) create a program / shell script / batch file that takes the same command line arguments as mspdebug and does usb boot loader stuff instead of mspdebug spy-bi-wire stuff.

-rick

Share this post


Link to post
Share on other sites

A future release of Energia will use a different build system and will adopt a similar mechanism to add cores without having to add support for that in the IDE. I will probably be not the next release which is slated for mid December but most likely the release that is scheduled for late Feb / early March.

Share this post


Link to post
Share on other sites

Following rickta59's advice and that here: https://github.com/arduino/Arduino/wiki/Arduino-IDE-1.5---3rd-party-Hardware-specification I created a platform.txt file for the boot430 board.

 

As a side-effect, it also integrates all of the msp430-based launchpad boards into Arduino (using the Energia cores).

 

Should anyone be interested in such an heresy, they can find it here: https://github.com/jscrane/energia

Share this post


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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...