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.

Error: Could not determine target type of file

Hi, 

I have build the project and I have a .elf file for arm. I am getting an error "Could not determine target type of file" ,However I am able to load another project which also has .elf as output file. And both these projects are built in the same environment.

can any one tell me what is happening here ?

.elf that loads.

Error.

  • Shivaram Singh Rajput said:
    I am getting an error "Could not determine target type of file" ,

    I suspect this file is a raw binary file and not an ARM ELF output file. 

    To confirm whether it is a binary file: if you have CCS and the TI ARM compiler tools installed, you can run the armofd utility (found in \ccsv6\tools\compiler\ti-cgt-arm_xxx\bin) on a command prompt like this:

    armofd -g OsSimple.elf

    If that returns an error then it confirms that it is not an ELF file, hence cannot be loaded to target via Load Program menu.

    If you wish to load raw binary files to target memory, you can instead use the "Load Memory" feature in the "Memory" view of CCS.

  • Hi Aarti,

    I ran the armofd utility from command window and it threw no error.

    This is how the last screen of the result looked like:

    :

  • Can you zip up the .elf file and attach it here for us to look at? Which target board/device are you trying to load it into?