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.
Hi,
Below are the details of developemnet environment details.
Processor : TMS570LS20216 (Cortex R4), Code Composer Studio : 4.2.0.10018, TMS470 C/C++ CODE GENERATION TOOLS 4.6.3
I would like to know the difference between the different types of output hex file formats. What is the difference between hex32 and hex16 format ?
I need to generate the hex file from the CCS. I found an option to do this. What is the -order MS option? Is the option signifies that output file is in bigendian format ? I don't see this option in the Assembler language user guide (SPNU118J). I have read about the romwidth in the manual. Can some one exaplin about this option with example.
"${CG_TOOL_ROOT}/bin/hex${CG_TOOL_SUFFIX}.exe" -i "${BuildArtifactFileName}" -o "${BuildArtifactFileBaseName}.hex" -order MS -romwidth 16.
Are there any tools available to read and understand the intel hex files ?
Hello:
This is just a confirmation that we received your post and will work on that. Most of our experts are out of the office this week, your answer could be delayed.
Regards,
Enrique Lizarraga
Bindu Tanguturi said:What is the difference between hex32 and hex16 format ?
Here is a description of the Intel Hex file format: http://www.keil.com/support/docs/1584.htm
Note that the original format handles 16-bit addresses (hence, hex16?) and 32-bit addresses were added as an extension (hence hex32?)
Hi,
Thanks for the response.
I have generated hex file from the CCS using following option available in the project properties.I have generated 3 hex file with -romwidth option as 8, 16 and 32 for same program.
I am able to understand hex32 file by reading but not other two. How to understand other two files ? And what makes difference in hex output file ? Similarly what is memwidth option ? Please explain with files attached.
"${CG_TOOL_ROOT}/bin/hex${CG_TOOL_SUFFIX}.exe" -i "${BuildArtifactFileName}" -o "${BuildArtifactFileBaseName}.hex" -order MS -romwidth 32
Thanks in advance.
Hi,
Let's clarify the 3 width used in CCS and the utilities.
Target width: the data bus size on the target processor. This width is fixed for each target and cannot be changed. The TMS570LS3x targets have a width of 32 bits.
Memory width: the physical width of the memory system. Usually, it is physically the same width as the target processor. However, some applications requires target words to be broken into multiple, consecutive, narrower memory words.
ROM width specifies the physical width of the ROM device and its corresponding output file.
If you specify -memwidth=32 and -romwidth=8, the hex utility generates 4 files (xx.hex, xx.a1, xx.a2, xx.a3).
If you specify -memwidth=8 and -romwidth=8, the hex utility generates only 1 file.
Please refer to Appendix C in spnu118 (http://www.ti.com/lit/ug/spnu118j/spnu118j.pdf) for better understanding.
Regards,
QJ