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.
Dear team:
The customer generates a hex file in Motorola S M3 format through "C2000 Hex Utility", but there is initialized const data in Page1 of the customer's project, so CCS generates two hex files for the program segment and the data segment.
1, Clients want to know, is this a must? Or is it possible to generate a hex file merging the program segment and the data segment by doing some configuration in CCS?
2, The customer also wants to know how to align and fill the bytes of the generated hex file? Can CCS be completed automatically, or must it be compiled and completed through a third-party tool?
Best regards,
Green
is it possible to generate a hex file merging the program segment and the data segment by doing some configuration in CCS?
You can do it by making changes not to the hex utility inputs, but in the linker command file. Please see this forum post for details.
how to align and fill the bytes of the generated hex file?
It is probably better to do that by aligning and filling the output sections in the linker command file.
Please let me know if these suggestions resolve the problem.
Thanks and regards,
-George
Hi George:
It is better to explain more about how to align and fill in the output sections in the linker command file.
Best regards
Green
Please get some general background on linker command files by reading the article Linker Command File Primer.
The key points from the forum post I referred to earlier are ...
Regarding the linker command file you have now, where does it come from? Does it come from C2000Ware? Please let me know. I'll refer this thread to the relevant team, so they can help you change the linker command file.
Thanks and regards,
-George