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.

Need to create executable image of code.



Using CCS I get a .out file that is 320k from that I get a TI txt file that is 125k. Is there a tool or process you can point me to that will extract only what is needed by the microcontroller? The binary I want has to be less than 65k, when I use CCS to download the .out file CCS reports text size of 30k and data of 3k. How do I get what CCS loads to the microcontroller?

  • The TI TXT file contains juse the binary data, but in readable HEX numbers (two digits per byte), with checksums and information where to put it. You can extract the plain binary values with a simple algorithm.
    Alternatively, you can upload the code to an MSP and then read it back using the memory dump funciton of the free Elprotronic software. However, all available flashing software is capable of writing the TXT file to an MSP. (but not plain binary data). And the TX file doesn't contain any information beyond what bits are to be stored where.

    The .out file, however, contaisn additional informations for the debugger. That's why it is so big.

  • Hi All,

    Slight correction here .. WRT the comment  "The TI TXT file contains juse(just) the binary data, but in readable HEX numbers (two digits per byte), with checksums and information where to put it."..

    The TI TXT format only contains address, data and a q(uit) character.. but no checksum info.  The Intel and TI-TXT formats are summarized/shown in the “MSP430 Gang Programmer (MSP-GANG430) User's Guide” ( www.ti.com/lit/slau101 ). 

    TI TXT example..

    @ADDR1
    DATA01 DATA02 ........ DATA16
    DATA17 DATA18 ........ DATA32
    ........
    DATAm ........ DATAn
    @ADDR2
    DATA01 ........ DATAn
    q

    AND more specifically like..

    @F000
    31 40 00 03 B2 40 80 5A 20 01 D2 D3 22 00 D2 E3
    21 00 3F 40 E8 FD 1F 83 FE 23 F9 3F
    @FFFE
    00 F0
    Q

    The Intel Hex Object Format does, however, include a 2-character "sumcheck" suffix.

    Thanks, Merril

  • Newman said:
    The Intel Hex Object Format does, however, include a 2-character "sumcheck" suffix.

    So I confused the two. And indeed, I usually use IHEX format on MSPGCC.

    Thanks for the correction.

**Attention** This is a public forum