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.

TMS570LS3134: Output hex file cannot running in MCU

Part Number: TMS570LS3134

Tool/software:

Hello,

CCS generate .out file and when I load it to MCU code is  running correctly. When I generate and load the .hex file ( Intel hex) that code can not running. What is the reason of it ? How can I load the .hex file ?

Could you please help me about it ?

Thank you.

  • Hi Samet,

    How you are generating .hex file for your code, can you please give me more details about this procedure?

    --
    Thanks & regards,
    Jagadish.

  • I am generating .hex file on CCS as shown screenshot below.

    1.Properties sectin of project

    2. CCS Build

    3. Arm Hex Utility

    4. Output Formaat Options

    5. Intel hex (--intel, -i)

  • Hi Samet,

    I found the root cause for the issue:

    Actually, if we didn't specify memory width and rom width by default it will take it as 8-bit width for ROM:

    So that is the reason we will get 4 hex files as output, i mean the data is divided inters of bytes and each byte of 32-bit word will be placed in one file and in total we will get 4 hex files.

    Hex utility in CCS

    To eliminate this problem, we should externally configure the memory width and ROM width as 32-bit size as below:

    Once you did this configuration and now delete the old 4-hex files as highlighted below:

    Once you delete them now build the project and you can see only one hex file will get created now as below:

    And now you can see the size also becomes 4-times?

    So, now select this file and do the flashing into the controller, after code flashing do the power on reset and verify the functionality. I verified and now it is working without any issues.

    --
    Thanks & regards,
    Jagadish.

  • Thank you so much for your interest. Now it is running correctly.