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.

Compiler/TMS570LS1227: Where is the "objcopy" utility located?

Part Number: TMS570LS1227

Tool/software: TI C/C++ Compiler

Hi,

I have to create a binary file from the ELF output file but I cannot find the objcopy utility that should be somewhere with the compiler.  Where is it located in the installation directory (ccsv8)?

Alternatively can anybody advise how to produce a hex output in ONE file?  The hex utility produces 4 files; it seems one for each byte of the 32bit memory contents.   I would have thought that the times of 8-bit external Eproms are long gone.

Kind Regards,

  • hagen wegner said:
    Where is it located in the installation directory (ccsv8)?

    If you have ARM compiler version 18.12.0.LTS or later, you can use the objcopy utility with a location similar to ...

    C:\ti\ccsv8\tools\compiler\ti-cgt-arm_18.12.0.LTS\bin\arm-none-eabi-objcopy.exe

    If upgrading to that compiler is not practical, then you can use the utility tiobj2bin.bat in a post-build step.  It is in a location similar to ...

    C:\ti_ccs80\ccsv8\utils\tiobj2bin\tiobj2bin.bat

    The comments at the beginning of that batch file include an example of how to invoke it as a post-build step in CCS.

    hagen wegner said:
    Alternatively can anybody advise how to produce a hex output in ONE file?

    You probably need to add the option --romwidth=32.  To understand further, please search the ARM assembly tools manual for the sub-chapter titled Partitioning Data Into Output Files.

    Thanks and regards,

    -George

  • Hi George,

    thank you for your reply !

    I was looking for "objcopy", so I missed the tiobj2bin; but I found it where you said.   And the --romwidth=32 solves the problem of mangling 4 files together :-)

    Kind Regards,