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.

TMS570LS3137: Binary executable file bootloader issue

Part Number: TMS570LS3137
Other Parts Discussed in Thread: UNIFLASH,

Tool/software:

Hello Jagadish,

we have an issue regarding to jumping into a binary executable. We generate a binary executable for our target hardware using ccs when we upload this executable using uniflash, the code is not working properly. We were wondering what might be the problem. I would appreciate any support.

Best Regards

Furkan

  • Hi Furkan,

    After loading did you do the power ON reset of the board?

    On my observation i found that, CCS doing power ON reset automatically after flashing the code, however if we load code through UNIFLASH then a manual power ON reset is required to execute the code.

    So please verify by pressing a PORRST button on the board.

    If you want, you can test below example which i tested from my end:

    SCI_AND_LED_Blink_TEST_LS3137.zip

    This example is created for TMS570LS3137 HDK board, and in this example i am toggling LED pins the HDK board for every 1sec and also i am sending "HERCULES" string through UART for every 1Sec.

    i loaded code through UNIFLASH after building it through CCS.

    And then i did power ON reset of the board, after that i get the output without any issues.

    --
    Thanks & regards,
    Jagadish.

  • Hi Jagadish,

    thanks for response.  When we run tiobj2bin command from the terminal it works without any problems. We are able to successfully upload and run the executable binary file on the target hardware. But when we generate the binary file from code composer studio the file is corrupted and it does not match the file generated from the commandline. We encounter this errror message using ccs to generate the binary file. 

    Best Regards,

  • Hi Furkan,

    I don't know exactly how you are converting into the binary.

    I followed below method:

    1. I placed below tiobj2bin command in the post build steps:

    "${CCS_INSTALL_ROOT}/utils/tiobj2bin/tiobj2bin" "${BuildArtifactFileName}" "${BuildArtifactFileBaseName}.bin" "${CG_TOOL_ROOT}/bin/armofd" "${CG_TOOL_ROOT}/bin/armhex" "${CCS_INSTALL_ROOT}/utils/tiobj2bin/mkhex4bin"

    2. Now i did clean build my project

    3. After doing this i got the binary for my project in the debug folder:

    4. I load the binary into the flash using the UNIFLASH

    5. And i did reset and verified the output, my code is successfully running without any issues.

    6. Here is my code for your reference:

    8228.SCI_AND_LED_Blink_TEST_LS3137.zip

    --
    Thanks & regards,
    Jagadish.

  • Hi jagadish,

    I tried your solution and it works. Thank you so much. I can successfully upload my executable.

    Best Regards

    Furkan