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.

TMS320F28377S: Question about hex file padding

Part Number: TMS320F28377S

Dear All,

Around 1 month ago, we were looking for way to remove padding at the end of hex file.

We received suggestion from TI to remove "--image" from hex.cmd utility. 

This helps to remove padding at the end of hex file which we were looking for.

But removing ""--image", also removed padding from active area of hex file.

Example: As shown below, address 0B83BD to 0B83BF in hex file not padded with 0x0000.

S2080B83BB00000000AE

S2220B83C08CFE000B8D07000B8D15000B8D2C000B8DA6000B8DC5000B8DCE000B8DDC80

With "--image" in place, this address used to fill with 0x0000.

For our application, we want padding present in active area of hex file and not present at the end of hex file.

We are referring "Assembly Language Tools" manual suggested by TI.

But meanwhile if you suggest the option to be used for achieving our required padding, then it will be helpful.

Regards....

Yogesh

  • For our application, we want padding present in active area of hex file and not present at the end of hex file.

    Unfortunately, there is no feature of either the linker or the hex utility which provides exactly this result.  

    The closest we can come is to return to using a combination of the --image option with a ROMS directive.  But carefully change the end address of the ROMS directive so that it matches the last address of the output sections that are in it.  Unfortunately, there is no automated method for doing that.

    Thanks and regards,

    -George