nickey 0 Posted April 9, 2011 Share Posted April 9, 2011 OK, I have debugged my code on the Launchpad and I like it and am ready to move the MSP430 to my own breadboard for further testing and final development. Question I have is "Is there anything different I should be doing when downloading my program to the chip?" When I download in debug mode I just hit the debug button and it compiles and then downloads. Is there extra and unnecessary code loaded while doing this? Is there a different method for downloading non-debug code for final use? I scanned through the help documents but couldn't find a reference to something like this. thanks in advance for comments. Quote Link to post Share on other sites
zeke 693 Posted April 9, 2011 Share Posted April 9, 2011 Yes, there are debugging symbols inside the code. They don't take up much space. You remove them by changing the build type to release instead of debug. If you're using CCS then look in the top left window - "C/C++ Projects". See your Active Project? Hove your mouse over it and right click to bring up a menu. See the sixth option down from the top "Active Build Configuration". Make it change to "2- Release". Hit "Control B" to recompile and then you have your release build. The release file will be located in a new directory called Release in your active project. The filename will end with the extension ".out". If you convert this file to a ".hex" then you can use an external program to load it into the MSP. nickey and bluehash 2 Quote Link to post Share on other sites
nickey 0 Posted April 10, 2011 Author Share Posted April 10, 2011 Great reply... just what I needed.. going to go try it right now. thanks! Quote Link to post Share on other sites
bluehash 1,581 Posted April 10, 2011 Share Posted April 10, 2011 If you find a member's reply helpful, you can click the "thumbs up" sign viewtopic.php?f=13&t=293 nickey 1 Quote Link to post Share on other sites
nickey 0 Posted April 10, 2011 Author Share Posted April 10, 2011 Thanks for the note about the thumbs up.. I was wondering how that worked. Quote Link to post Share on other sites
GeekDoc 226 Posted April 10, 2011 Share Posted April 10, 2011 ready to move the MSP430 to my own breadboard for further testing and final development Don't forget to tie the Reset pin high when you move to a breadboard. (common, yet aggravating mistake) Quote Link to post Share on other sites
JMLB 24 Posted April 11, 2011 Share Posted April 11, 2011 how would you tie the reset pin if you wanted to be able to reprogram it in the field? Quote Link to post Share on other sites
RobG 1,892 Posted April 11, 2011 Share Posted April 11, 2011 Through the pull-up resistor. Quote Link to post Share on other sites
JMLB 24 Posted April 11, 2011 Share Posted April 11, 2011 wouldn't that bring my reset pin to ground? would a voltage divider with a small resistor and VCC and a large one on the ground work? Quote Link to post Share on other sites
RobG 1,892 Posted April 11, 2011 Share Posted April 11, 2011 Pull-up, not pull-down. Tie the RST pin to Vcc through a 100k resistor. During programming, RST will be pulled to GND. Also, you may want to add a small cap, like 47nF, between RST and GND. Quote Link to post Share on other sites
JMLB 24 Posted April 11, 2011 Share Posted April 11, 2011 Thanks! I don't know why, for some reason I had drawn VCC -> resistor -> reset pin -> ground. I am not sure why I did that lol. the cap would be to start from gnd and slowly bring it to vcc? Quote Link to post Share on other sites
RobG 1,892 Posted April 11, 2011 Share Posted April 11, 2011 The cap is required to satisfy JTAG/SBW timing requirements. Depending where you look, the recommended value is either 47n, 10nF, 2n2, or even smaller, and it's device specific. For example LP has a combination of 47k resistor and 1nF cap. See http://focus.ti.com/lit/ug/slau278f/slau278f.pdf pages 24 & 25. Quote Link to post Share on other sites
JMLB 24 Posted April 12, 2011 Share Posted April 12, 2011 Thanks for that. I was just guessing. Ill do some of that reading lol Quote Link to post Share on other sites
SugarAddict 227 Posted April 14, 2011 Share Posted April 14, 2011 Yes, there are debugging symbols inside the code. They don't take up much space. You remove them by changing the build type to release instead of debug. If you're using CCS then look in the top left window - "C/C++ Projects". See your Active Project? Hove your mouse over it and right click to bring up a menu. See the sixth option down from the top "Active Build Configuration". Make it change to "2- Release". Hit "Control B" to recompile and then you have your release build. The release file will be located in a new directory called Release in your active project. The filename will end with the extension ".out". If you convert this file to a ".hex" then you can use an external program to load it into the MSP. If you are using CCS, why convert it to hex? You launch the debugger, you connect to target, you load program, just select the Release .out instead of the Debug .out That's all. Quote Link to post Share on other sites
zeke 693 Posted April 15, 2011 Share Posted April 15, 2011 Let me rephrase myself... If you want to use an external program like Elpotronics FET-Pro430 Lite to program the MSP then you must convert this file to ".hex" format. Luckily, FET-Pro430 Lite will do this for you once you tell it where TI put the hex conversion program. Why would you want to do this? You designed a product for your customer and now they want to build 1000 of you shiney new products that have an MSP430 inside of them. Are you going to setup CCS for them on the factory floor? (You better not!) No, you're going to give them a free LaunchPad (Customers love freebies - just don't tell them the price of the LP) and a copy of FET-Pro430 Lite so they can get the job done. The only reasons why someone would want to generate a release version of their code would be to save a few bytes of code space or because they're going to deploy their code to the factory for mass production. Release Code Build - It's taking the training wheels off of your code. 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.