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.

TMS320F280025: Generating intel hex with 0x10 byte count

Part Number: TMS320F280025

For one of our projects, for bootloading the customer specification mentions that the boot image (i.e. the hex file) has to be sent via I2C as a single line of intel hex format including the byte count, address, record type, data and checksum.

The transaction looks like this:

 

The specification also mentions that the code shall be delivered in 16 bytes lines, from this I understand that the N Images Bytes  in the above transaction should be a max of 16 bytes and the Byte Count  should read 0x10.

But when I try to generate a intel hex file for a project using CCS I get lines of 32 bytes with byte count reading 0x20 as shown below:

 

My question is how do I generate an intel hex file with byte count as 0x10 instead of 0x20 i.e. restricting max bytes in a single line to 16 bytes.

Appreciate your support.

  • We are working on getting the correct expert assigned for this question, please expect a reply in a couple of days. In the mean time, please take a look at chapter 12 of https://www.ti.com/lit/ug/spru513w/spru513w.pdf , it details hex utility usage methods. 

    Thanks

    Anu

  • how do I generate an intel hex file with byte count as 0x10 instead of 0x20

    Unfortunately, there is no method for controlling the length of each line of output.  The specification of Intel MCS-86 hex format imposes no requirement on the length of a line.

    Thanks and regards,

    -George

  • Hi George,

    I understand that the MCS-86 hex format allows up to 0xFF length for a line, but this is not my concern. The concern here is transmitting a single line of the hex file on I2C which contributes to the timing of the single transaction. For this reason the customer specification restricts the length of the line to 16.

    Is there anyway we can modify the output so that the hex file would have lines containing 16bytes rather than 32?

    I'm open to any suggestions even outside CCS.

    Regards,

    Harsha J D

  • Harsha,

    We found a utility on sourceforge that seems to fit the bill here; http://srecord.sourceforge.net/ .  Just to be transparent, we have not used it ourselves, but wanted to share what we found to help you meet the customer requirement.

    Best,

    Matthew