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/TMS570LS3137: Loading a binary file while debugging

Part Number: TMS570LS3137


Tool/software: Code Composer Studio

Hello,

On CCS 8, on post-build steps, I wanto call an executable which will run a custom CRC algorithm and generate a new binary file with the CRC value saved in  e..g

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

and then call:

mycustomapp.exe "${BuildArtifactFileBaseName}.bin" // "${BuildArtifactFileBaseName}.bin" is the input

and ouput file will be "${BuildArtifactFileBaseName}_modified.bin" with CRC saved at the beginning of this file.

when debugging on CCS, I want this "${BuildArtifactFileBaseName}_modified.bin" to be loaded so that I can retrieve CRC value.

how could I tell to the CCS to load "${BuildArtifactFileBaseName}_modified.bin" when debugging?

thank you in advance,

  • Hello,

    A better way to do this would be to use a linker-generated CRC table. Please refer to the "ARM Assembly Language Tools User's Guide", SPNU118. The relevant section is called "Linker-Generated CRC Tables". There are several different CRC algorithms supported, so you can check if these include the customer CRC algorithm you want to run.

    This method will include CRC values for the selected sections in the executable file at link time. This file can then be programmed into the Flash memory, and the CRC tables can be accessed from within the code for verification.

    Regards,
    Sunil
  • thank you. Unfortunately "Linker-Generated CRC Tables" scheme does not work in my case. I need to implement the first case I described earlier.
    Any help/suggestion in achieving the question on my earlier post? thank you.
    ===================================================================
    On CCS 8, on post-build steps, I wanto call an executable which will run a custom CRC algorithm and generate a new binary file with the CRC value saved in e..g

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

    and then call:

    mycustomapp.exe "${BuildArtifactFileBaseName}.bin" // "${BuildArtifactFileBaseName}.bin" is the input

    and ouput file will be "${BuildArtifactFileBaseName}_modified.bin" with CRC saved at the beginning of this file.

    when debugging on CCS, I want this "${BuildArtifactFileBaseName}_modified.bin" to be loaded so that I can retrieve CRC value.

    how could I tell to the CCS to load "${BuildArtifactFileBaseName}_modified.bin" when debugging?
  • Hello,
    Is your question about how to load the modified binary code to the Flash memory? This is done via CCS's Run --> Load --> Load Program command/menu option. This allows you to identify the modified file to program.