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.

TMS320F2800137: How to change the content format of a compiled hex document?

Part Number: TMS320F2800137

Hi team,

The customer selected the format of Motorola S3 when compiling and here're 2 issues:

1) There is a maximum of 30 address data per line, is there a way to change it to 32 addresses per line?

2) Is there a way to automatically populate 0xFF for addresses without data? 

Could you help check this case? Thanks.

Best Regards,

Cherry

  • Hi Cherry,

    I'm not sure I understand your question -- for Motorola S3, each line corresponds to one 32bit address with data corresponding to the number of character pairs indicated after "S3", including the checksum.  In what way are you seeing a "maximum of 30 address data per line"?

    If you haven't already, it might be helpful to search the C28x assembly tools manual for the sub-chapter titled "Invoking the Hex Conversion Utility" and "Motorola Exorciser Object Format"

    -Alan

  • Hi Alan,

    Thanks for your support.

    Using the hex file compiled by Motorola S3, the data starts most with S323, 23 means there is 35 bytes of data, minus the address of 4 bytes and the checksum of 1 byte. There are actually only 30 bytes of data to program. And what customers want is that the S325, and only then will there be 32 bytes of data that actually need to be programd. 

    Thanks and regards,

    Cherry

  • Thank you!

    Yes, this is a function of the specified romwidth (given to the hex utility via the "-romwidth" option to control the width of the data).  So using "-romwidth 32" will give you what you're looking for.

    As to your second question, there is only the "-fill" option which will allow you to fill holes between sections allocated as part of the program, but I'm not sure if this is what you're looking for (that is, this option will not fill every address that doesn't have data).

    -Alan