Janos 5 Posted February 4, 2016 Share Posted February 4, 2016 Hi, i'm experimenting with the openMSP430 on an FPGA. If it's cofigured right, I should be able to run sketches compiled by Energia on the Softcore. But flashing the openMSP430 can't be done with mspdebug. A different Uploader, openmsp430-loader, is needed. I checked "Show verbose output during upload" in the Energia preferences and so I noticed, that mspdebug rf2500 --force-reset prog /tmp/build4194166154426707548.tmp/MySketch.cpp.hex is called after compilation. Now I'd like to find the script, running in the Background and change it, so that it calls openmsp430-loader with the right arguments instead. But I just can't find any file into the Energia folders that contains this line. Does anyone know where to find it? An even greater thing would be to create an additional Board, that can be selected via Tools->Board, so that I wouldn't have to modify an existing Board, but that option is not so important to me. Quote Link to post Share on other sites
energia 485 Posted February 4, 2016 Share Posted February 4, 2016 @@Janos the upload command is hardcoded into the Energia IDE and unfortunately can not be changed. The next release of Energia will be based on the new 1.6.x IDE that will have all these commands configured inside text files. At that point it will be very easy to change the upload command. Robert bluehash, Fmilburn, jazz and 1 other 4 Quote Link to post Share on other sites
energia 485 Posted February 4, 2016 Share Posted February 4, 2016 What you could do is build Energia from source. You can then change the upload command in https://github.com/energia/Energia/blob/master/app/src/processing/app/debug/MSP430Uploader.java. bluehash 1 Quote Link to post Share on other sites
Janos 5 Posted February 4, 2016 Author Share Posted February 4, 2016 Thank you! I didn't expect it to be hard coded. Sadly' I'm not very experienced in Java programming, so changing this command in the source code and then build it might be a challenge for me, at least I expect it to take one whole day for me to get everything running The possibilities of Version 1.6x also sound great, do you have a rough idea of when it could be available? Quote Link to post Share on other sites
Rei Vilo 695 Posted February 5, 2016 Share Posted February 5, 2016 @@Janos As an alternative, launch the modified upload command on a terminal window. Quote Link to post Share on other sites
jazz 209 Posted February 5, 2016 Share Posted February 5, 2016 @@Janos the upload command is hardcoded into the Energia IDE and unfortunately can not be changed. The next release of Energia will be based on the new 1.6.x IDE that will have all these commands configured inside text files. At that point it will be very easy to change the upload command. Robert Than my sbw+ flasher will work with Energia on Win / Linux / OS X without problems. It will be great if Energia will be able to receive error number from cmd, and if it be able to integrate error number with error text description in Energia config text file. Of course, if Energia will open terminal window and display complete upload log than this is not needed. Quote Link to post Share on other sites
Janos 5 Posted February 5, 2016 Author Share Posted February 5, 2016 @@Janos As an alternative, launch the modified upload command on a terminal window. That's excactly what I'm doing right now. But always copying the path to the temp folder created by Energia after build and paste it into the command line after the upload command is just a bit more complicated than just clicking Upload in Energia. An easy Integration of this feature could be nice if I wanted to share my work with others... Quote Link to post Share on other sites
Rei Vilo 695 Posted February 5, 2016 Share Posted February 5, 2016 Energia relies on Java 6, which is a rather antiquated version. See Energia 17 fails to launch on Windows 10 (Surface Book), Java Release Issue With Mac OS X 10.11 El Capitan, Readiness for Java SE 8. Energia is on the process of being ported to Arduino 1.6.7. Stay tuned! See Update the IDE to release 1.6.7 of Arduino. Quote Link to post Share on other sites
jazz 209 Posted March 25, 2017 Share Posted March 25, 2017 On 2/4/2016 at 6:23 PM, energia said: The next release of Energia will be based on the new 1.6.x IDE that will have all these commands configured inside text files. At that point it will be very easy to change the upload command. Robert Where is this configuration text file? BTW, I am using Windows version, 1.6.10E18. Quote Link to post Share on other sites
Rei Vilo 695 Posted March 25, 2017 Share Posted March 25, 2017 See boards.txt, platform.txt and programmers.txt. Exact location on the hard-disk depends on the OS you use. jazz 1 Quote Link to post Share on other sites
jazz 209 Posted March 25, 2017 Share Posted March 25, 2017 20 hours ago, Rei Vilo said: See boards.txt, platform.txt and programmers.txt. Exact location on the hard-disk depends on the OS you use. Files are located at "energia-1.6.10E18\hardware\energia\msp430". I add my flasher to "programmers.txt" sbwplus.name=sbwplus sbwplus.protocol=sbwplus and to "platform.txt" # sbwplus tools.sbwplus.upload.params.verbose= tools.sbwplus.upload.params.quiet= tools.sbwplus.path={runtime.tools.mspdebug.path} tools.sbwplus.cmd.path={path}/bin/flash tools.sbwplus.upload.pattern={cmd.path} -f "{build.path}/{build.project_name}.hex" -e -w -v flash.exe is copied to bin dir. I tried to uplad blink sketch to msp430g2553 with "Upload Using Programmer", but this faild with "missing program.tool configuration parameter". After I modified in "boards.txt", MSP-EXP430G2553LP.upload.tool from mspdebug to sbwplus, device is flashed with "Upload". I checked outside of Energia, and device was flashed corectly. Is there any way for enabling Energia to display inside black cmd window, output from my flash.exe that is standard cmd application. Like here... What is line in hex file generated from blink example, before file end, 4 bytes located at address 0? :10FFF00068C068C0B0C168C068C068C068C000C0E0 :040000030000C00039 :00000001FF EDIT: OK, I found that record type 03 is used as start segment address related to 80x86 processors. Don't know about relation with MSP430 (value C000h?). AFAIK, IAR doesn't generate this. Quote Link to post Share on other sites
jazz 209 Posted March 27, 2017 Share Posted March 27, 2017 On 3/25/2017 at 6:36 PM, jazz said: Is there any way for enabling Energia to display inside black cmd window, output from my flash.exe that is standard cmd application. I guess that this is OS related, because on Ubuntu, flasher log is present. Quote Link to post Share on other sites
jazz 209 Posted March 28, 2017 Share Posted March 28, 2017 It is working fine on OS X, after "boards.txt" and "platform.txt" update, located at Energia.app/Contents/Java/hardware/energia/msp430/ and copied flash to Energia.app/Contents/Java/hardware/tools/msp430/bin/ Quote Link to post Share on other sites
mdev 0 Posted December 7, 2019 Share Posted December 7, 2019 On 3/28/2017 at 3:46 PM, jazz said: It is working fine on OS X, after "boards.txt" and "platform.txt" update, located at Energia.app/Contents/Java/hardware/energia/msp430/ and copied flash to Energia.app/Contents/Java/hardware/tools/msp430/bin/ Hi Jazz, I wanted to know the exact procedure to use Energia with openMSP430? We are developing aan ASIC.we need to program it.Using bare tcl files from the authors seems to be little bit difficult.Can u share email I'd or watsapp contact I want to discuss Quote Link to post Share on other sites
jazz 209 Posted December 8, 2019 Share Posted December 8, 2019 Sorry, but I don't know anything about openMSP430 and related 2-wire (not SBW, but I2C or UART based) interface that is used for updating device firmware. All I know about Energia setup for using non-compatible TI master device for updating target device firmware is already written in this topic. 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.