Jump to content
43oh

MSP-EXP430FR5739 demo code ported to msp430-gcc


Recommended Posts

Once the new version of mspdebug comes out with support for the MSP430FR5739 chip

which is in the FRAM experimenter board, you are going to want something more than just

a blinky program to see if it works on your system.

 

I modified the User Experience Code Demo code for the MSP-EXP430FR5739 so that it

compiles with the latest msp430-gcc.

 

Find it here: https://gist.github.com/1057857

 

-rick

Link to post
Share on other sites

When I saw the 50% off coupon I ordered one FRAM experimenter board without even checking to see if it had any support in mspgcc or if any example code had been ported. Thanks for posting this, I'd be lost without this forum.

Link to post
Share on other sites
... any support in mspgcc...

 

The latest uniarch msp430-gcc does support the msp430fr5739. However, at this time, mspdebug

doesn't support it. I have exchanged emails with Daniel Beer, primary developer on mspdebug,

and he has indicated he is already working on this. I'm hoping this welcome addition will appear soon.

 

There might be another option. I just noticed that TI offers a command line win32 only program flasher

with source code on the their website:

 

http://processors.wiki.ti.com/index.php/MSP430_Flasher_-_Command_Line_Programmer

 

It might be possible to run this using WINE under linux. I haven't even tried this on Windows so I don't

know if the program even supports the FRAM chip.

 

BTW: msp430-gcc uniarch just got easier to install on ubuntu. You can now find the required binary

install packages at https://launchpad.net/ubuntu/oneiric/+search?text=msp430. Previously, I was using

a source build I hand cobbled, now I've switched to binary install with good success.

Note: I'm running Ubuntu 11.04 natty.

 

-rick

Link to post
Share on other sites

 

It might be possible to run this using WINE under linux. I haven't even tried this on Windows so I don't

know if the program even supports the FRAM chip.

 

OK I just tried this, well somewhat, on Windows 7. I was able to use it like this:

 

c:\ MSP430Flashher.exe -n msp430fr739

 

It seemed to recognize the device. Sadly, I didn't have a HEX file to feed it.

 

-rick

Link to post
Share on other sites

"msp430-objcopy -O ihex infile.elf outfile.hex" should do the trick (if MSP430Flasher needs Intel hex as it's input).

 

That worked great. Thanks gordon! On my linux box, I ran that command on my gcc compiled elf file then switched

back to Windows 7 and successfully used this WIN32 command:

 

C:\>MSP430Flasher.exe -n msp430fr5739 -e ERASE_MAIN -w framdemo.hex

 

to erase and write the hex file I generated on linux. Nice!

 

I guess this also paves the way for people who want to use msp430-gcc and could never get mspdebug to

work under windows, I count myself as one of those people.

Link to post
Share on other sites
  • 5 weeks later...
  • 2 weeks later...
  • 4 weeks later...

I completely forgot that this was already ported over to GCC, so I did it myself after switching over to Uniarch. It seems to work fine. I haven't done anything with the GUI application yet. It loads fine with mspdebug 0.17 as long as you use "load" instead of "prog".

 

Does anyone have any need for this? If Rickta59's port has been tested and works, then mine is too late. I think it's funny that I forgot that it was ported (considering that I even commented on this thread), but I guess that's because I had the MSP-EXP430FR5739 collecting dust for a month or two.

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...