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.

CCS/TMS570LS0232: Settings about CCS compiling HEX file

Part Number: TMS570LS0232
Other Parts Discussed in Thread: UNIFLASH

Tool/software: Code Composer Studio

Hello, TI Engineers

The following figure is my settings about producing HEX file.

What should I set for loading the HEX file into the board by Uniflash? And How to configure memory width and rom width?

Thanks!

Regards!

Xinyu

  • Hello Xinyu,

    Memory width is the physical width (in bits) of the memory system. Usually, the memory system is physically the same width as the target processor width. By default, the hex conversion utility sets memory width to the target width (in this case, 32 bits).

    ROM width specifies the physical width of each ROM device and corresponding output file (usually one byte or eight bits). The ROM width determines how the hex conversion utility partitions the data into output files. After the object file data is mapped to the memory words, the memory words are broken into one or more output files. The number of output files is determined by the following formulas:

    • If memory width ≥ ROM width:

     number of files = memory width ÷ ROM width

    • If memory width < ROM width:

     number of files = 1

    For example, for a memory width of 32, you could specify a ROM width value of 32 and get a single output file containing 32-bit words. Or you can use a ROM width value of 16 to get two files, each containing 16 bits of each word.

    The default ROM width that the hex conversion utility uses depends on the output format:
    • All hex formats except TI-Tagged are configured as lists of 8-bit bytes; the default ROM width for these formats is 8 bits.
    • TI-Tagged is a 16-bit format; the default ROM width for TI-Tagged is 16 bits.

    You can change ROM width (except for TI-Tagged and TI-TXT formats) by:
    • Using the --romwidth option. This option changes the ROM width value for the entire object file.