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.

TMS320F28377D: why the hex file created under CCSv11 has different format ?

Part Number: TMS320F28377D
Other Parts Discussed in Thread: C2000WARE

Hi TI support team,

I am trying to develop an SCI bootloader for F28377D.

I am trying to debug the example in C:\ti\c2000\C2000Ware_4_01_00_00\device_support\f2837xd\examples\dual\F2837xD_sci_flash_kernels.

I generated a hex file F2837xD_sci_flash_kernels_cpu01.hex under the CCSv11. 

The format (we can call it format_1) of the hex file is like this:

%1261D8000000004152
%4E69580000C00000061A1F6D02A940FFC40044A902A9C4F805A90044A902A900C40052A902A9C4
%4E68F80000C0200044A902A9C4F802A90044A902A9C40044A902A9C4F805A90044A902A9C40060
%4E6A080000C040A902A9C40044A902A9C4F802A90044A902A9C40044A902A9C4F805A90044A902
%4E6AC80000C060A9C40062A902A9C40044A902A9C4F802A90044A902A9C400061A1F6D02A940FF
%4E69E80000C080C40044A902A9C4F805A90044A902A900C40052A902A9C40044A902A9C4F802A9
%4E67980000C0A00044A902A9C40006221FE01E00141E240120031FE600FD00FE1FE000FFA90000
%4E67080000C0C01FE6000200011FEC00F00A001A07006906221FE01E00141E20FC24FE1A690602
%2068980000C0E0412569820601C3FF06

However, when I open the example hex file F2837xD_sci_flash_kernels_cpu01.txt from C:\ti\c2000\C2000Ware_4_01_00_00\utilities\flash_programmers\serial_flash_programmer\f2837xD_fw_upgrade_example, the format (format_2) is different. It looks like this:


AA 08 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 02 00
00 00 00 00 41 00 52 05
13 00 00 00 E9 C0 F2 FF 2A DB 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
2A 00 00 00 00 DB 00 00 08 00 00 20 08 00 00 40 08 00 00 60 08 00 00 80
08 00 00 00 09 00 00 80 09 00 00 00 0A 00 00 80 0A 00 00 00 0B 00 00 80
0B 00 00 A0 0B 00 00 C0 0B 00 00 E0 0B 00 00 10 00 10 00 10 00 10 00 40
00 40 00 40 00 40 00 40 00 40 00 10 00 10 00 10 00 10

My questions are:

1) Why the hex file format created under CCSv11 is different from that of the example hex file?

2) How can I get a hex file that has the same format as the example hex file so that I can proceed to debug this example code

Thank you.

  • Both of those hex files are created by the hex utility hex2000.  For documentation of all the formats supported by hex2000, please search the C28x assembly tools manual for the sub-chapter titled Description of the Object Formats.  The first example is in Tektronix format.  The second example is in ASCII-Hex format.  

    How can I get a hex file that has the same format as the example hex file so that I can proceed to debug this example code

    Use the hex2000 option --ascii instead of --tektronix.  (Though it is possible no format is specified, and thus you get the default format, which is Tektronix.)

    The article Hex utility in CCS is also likely to be useful.

    Thanks and regards,

    -George