Part Number: CODECOMPOSER
Tool/software:
Hi Experts,
When I use the TI ARM CLANG compiler to generate the hex file with motolora format, I find the output files is wrong. Please help check if it is a bug or I missed some key operations.
1. Enable Arm Hex Utility

2. Check output files

Let us focus on line 2:
S3 22 00000000 00802020 1B030000 27030000 27030000 00000000 00000000 00000000 00AB
I checked the standard motolora format:https://en.wikipedia.org/wiki/SREC_(file_format)

Normally, the Byte count should be odd number, because the last byte should be single checksum byte.
And, the byte count should be several specific value, normally is:
4 (address, 32bit) + 16 (data byte) + 1 (checksum) = 21 (Decimal) = 0x15
4 (address, 32bit) + 32 (data byte) + 1 (checksum) = 37 (Decimal) = 0x1F 0x25
I see it is 0x22 in the line2, so it is incorrect. I can see the following data is messed up (line 3 and following line).
I also uploaded the reference project here: (CCS 12.8.1)
Looking forward to your reply here, thanks!
B.R.
Sal