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: Sitara Programming using BIN file instead of OUT file

Tool/software: Code Composer Studio

Hello,

I can see in the Debug folder of my project that the build process is generating a .out file and a .bin file. I am currently using the .out file to flash my Sitara board using CCS 6.1.2. I am now contemplating changing some fixed constants in my image using an additional python utility before I can flash the board. I can manipulate the bin file relatively easily but cannot find any information about how to flash the board with a binary image. The file dialog does not list the bin file as an alternative file format to flash the board. Is it even possible to do so?

Alternatively, I could find utilities to parse the out file but I could not find a reliable utility to modify the out files. Is anyone aware of any tools here?

Kind regards,

Shailesh

  • Update:

    I have found a possible way to solve my issue but I would like to confirm that I am not overlloking anything. I can use the load memory option to load my binary image directly at a starting address that I know due to my linker file. The program seems to load correctly and functions as expected. I can verify that a few locations contain the same data when flashed using the out file. The only significant drawback is that I now cannot debug my program which would have been otherwise possible had i manipulated my out file.

    Kind regards,
    Shailesh
  • Shailesh,

    As you experienced yourself, the binary format does not carry debug information.

    In order to properly debug your code you can instead load symbols from the .out file by going to menu Run --> Load --> Load Symbols.

    Nothing will be actually written to the target, but the symbols will be loaded into the debugger and you will be able to do source file debugging.

    Just keep in mind that, if you load your binary file to a different physical memory location, you will need to pass offset parameters when loading the symbols.

    Hope this helps,
    Rafael
  • Sorry about the delayed response desouza. The suggestion is spot on. Thanks!