Jump to content
43oh

Loading final (non-debug) code to chip


Recommended Posts

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.

Link to post
Share on other sites

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.

Link to post
Share on other sites
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.

Link to post
Share on other sites

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.

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