Rickta59 589 Posted July 1, 2011 Share Posted July 1, 2011 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 RobG, zborgerd, bluehash and 2 others 5 Quote Link to post Share on other sites
zborgerd 62 Posted July 1, 2011 Share Posted July 1, 2011 Thanks for posting this! Nice job! Quote Link to post Share on other sites
Rickta59 589 Posted July 1, 2011 Author Share Posted July 1, 2011 Opps, forgot to thank gordon and jsolarski for the Makefile post, i used it here. Thanks guys! Quote Link to post Share on other sites
mandeep 0 Posted July 1, 2011 Share Posted July 1, 2011 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. Quote Link to post Share on other sites
Rickta59 589 Posted July 2, 2011 Author Share Posted July 2, 2011 ... 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 oPossum, jsolarski and mandeep 3 Quote Link to post Share on other sites
Rickta59 589 Posted July 2, 2011 Author Share Posted July 2, 2011 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 Quote Link to post Share on other sites
gordon 229 Posted July 2, 2011 Share Posted July 2, 2011 Sadly, I didn't have a HEX file to feed it. "msp430-objcopy -O ihex infile.elf outfile.hex" should do the trick (if MSP430Flasher needs Intel hex as it's input). Rickta59 1 Quote Link to post Share on other sites
Rickta59 589 Posted July 2, 2011 Author Share Posted July 2, 2011 "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. Quote Link to post Share on other sites
gordon 229 Posted July 5, 2011 Share Posted July 5, 2011 Once the new version of mspdebug comes out with support for the MSP430FR5739 chip Not quite yet, but getting there. Off to test, you lot! 8-) 8-) Quote Link to post Share on other sites
zborgerd 62 Posted July 6, 2011 Share Posted July 6, 2011 Once the new version of mspdebug comes out with support for the MSP430FR5739 chip Not quite yet, but getting there. Off to test, you lot! 8-) 8-) Nice. Time to fire up git-clone. Quote Link to post Share on other sites
zborgerd 62 Posted July 6, 2011 Share Posted July 6, 2011 Works. I'm psyched. I've been waiting to hack on this board on Linux. Quote Link to post Share on other sites
xpg 127 Posted July 6, 2011 Share Posted July 6, 2011 Once the new version of mspdebug comes out with support for the MSP430FR5739 chip Not quite yet, but getting there. Off to test, you lot! 8-) 8-) Will do, when I get home :-) Really nice that the MSP430FR5739 support is evolving so quickly. Quote Link to post Share on other sites
jschilen 0 Posted August 6, 2011 Share Posted August 6, 2011 Should there be a FR_EXP.h included in the gz file? Quote Link to post Share on other sites
Rickta59 589 Posted August 15, 2011 Author Share Posted August 15, 2011 I didn't actually make any changes to that file. However, I went ahead and added it to the gist at github to be complete. https://gist.github.com/1057857 Thanks, -rick Quote Link to post Share on other sites
zborgerd 62 Posted September 11, 2011 Share Posted September 11, 2011 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. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.