This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Using Elprotronics or IAR Kickstart to program code without debug information

Other Parts Discussed in Thread: MSP430F2012

Hello everyone,

We are using a TI MSP-FETU4340IF to program an MSP430F2012.   We are able to do this successfully with both Elprotronic and IAR Embedded Workbench Kickstart as long as we include debug information in the file.  However, when we attempt to leave out the debug information, neither seems to work.  Upon further inspection, it appears that leaving out the debug information, while generating a .d43 file, generates it in a slightly different form that IAR won't successfully download and Elprotronic does not appear to support.

I do see in the "Generating and Loading MSP430 Binary Files" Wiki entry (http://processors.wiki.ti.com/index.php/Generating_and_Loading_MSP430_Binary_Files) that including Debug information for C-SPY is specified.  My question is, in the event you want to give a customer a binary file without debug symbols, is there a way to generate this and then have Elprotronic (or IAR) recognize it so it can be downloaded to the MSP430?  Has anyone successfully tried this?  If so, some tips/suggestions would be greatly appreciated. :)

  • You have to generate an msp430-txt output file.

    In IAR EWB, under "Project->Options->Linker->Output->Format" select "Other" and "msp430-txt" as  "Output Format".

    Then use Elprotronic to flash it (I never managed to do that with EWB).

    Regards,

    Peppe

  • Pierguiseppe,

    Thank you for the quick response!

    I had given this a try and it doesn't quite work for me.   After choosing "Other" and "msp430-txt" as Output Format rather than "Debug Information for C-SPY", I try opening the resulting .d43 file in Elprotronic.   It gives me a warning box with the following message:

       The Code File test.d43 contains data outside of the MSP430Fxx Microconroller Flash Memory space or data

        that should be verified!

    When I then try View - Code File Data in Elprotronic, I get no code in the 0xF800 area where there should be code.  It's almost as if Elprotronic has trouble interpreting .d43 files generated in this way.

    As a side note, if I try to program using IAR, I get:

        The debugging session could not be started.

        Either the debugger initialization failed, or else the file "C:test.d43" was corrupt or of an unsupported format.

    Are you able to get Elprotronic to program the resulting .d43 file okay?

  • When you generate an msp430-txt file, the resultant file is of .txt format, not .d43. You need to provide the Elprotronic software with the .txt file that was generated.

    -Katie

  • That was the issue -- there was a bad override on the output file name.  After fixing that, it worked! 

    Piergiuseppe and Katie, thank you so much for your help!

**Attention** This is a public forum