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.

How to convert .out to .bin if there is no hex470 (CCS3.3 imported project) ?

Guru 20755 points

Hello,

I am using  ccs3.3 project (ubl) from ti sdk.

I've imported the project as ccs3.3, it seemed to be OK, but then I noticed that it created out file but not bin file.

I also noticed it gives some error for the post build:

PROJECT_ROOT D:/shared/DM36x/CCS/UBL/UBL !
'hex470.exe' is not recognized as an internal or external command,
operable program or batch file.
' '

These are the post build command:

"${PROJECT_ROOT}/postBuildStep_BOOT_NAND.bat" PROJECT_ROOT ${PROJECT_ROOT} !

I don't have any hex470.exe in my computer.

Is there any simple way to conver the out to bin ?

The ubl project is also attached here:

UBL.zip

I even tried to do the last conversion manually by putting all relevant binaries in one folder and doing:

hex470.exe UBL2BIN.cmd -o=UBL_DM36x_NAND.bin UBL_DM36x_NAND.out

But even then I still get errors: 


D:\shared\dm365\ranran_ubl>hex470.exe UBL2BIN.cmd -o=UBL_DM36x_NAND.bin UBL_DM36
x_NAND.out
"UBL2BIN.cmd", line 5: WARNING: invalid option: -linkerfill
>> WARNING: invalid option: -o=UBL_DM36x_NAND.bin
"UBL_DM36x_NAND.out", line 1: ERROR: illegal input character: 0x7F
"UBL_DM36x_NAND.out", line 1: FATAL ERROR: cannot open input file 'ELF.out': No
such file or directory (aborting)

D:\shared\dm365\ranran_ubl>

Thank you for any idea,

Ran

  • Hello

    The hex conversion utility should come bundled with the compiler. What version of the ARM compiler are you using?

    Thanks
    ki
  • Hello Ki,

    Thank you for the feedback.

    Do you mean the arm for the u-boot/kernel build ?

    If yes - this is the version I get:

    ubuntu@ubuntu-laptop:/media/sdf/psp321$ arm-none-linux-gnueabi-gcc --version

    arm-none-linux-gnueabi-gcc (Sourcery G++ Lite 2009q1-203) 4.3.3

    I have also attached now a folder with all the binaries, I tried to do the postbuild manually but still get errors:

    hex470.exe UBL2BIN.cmd -o=UBL_DM36x_NAND.bin UBL_DM36x_NAND.out

    ranran_ubl.zip

    In the previous post I also attached the whole project.

    What do I need to change in order to make this conversion ? 

    Even if I can do that manually in seperate folder (as I tried) would be good enough.

    Thanks for any suggestions,

    Ran

  • Hi Ki,

    Do you have any suggestion how I can convert the out to bin ?
    I don't mind it be less convinient, I just need a way to do that ...

    Thank you for the assistance,
    Ran
  • I eventually instaled ccs3.3 c2000 , and also need to rename 2 files:
    1. rename armhex to hex470
    2. renamed "armcl", to"cl470."

    When tried the same with ccs5.5 it did not work.
    But at least now I can work.

    Regards,
    Ran
  • Hi ,

    It is great you make it work.

    For your reference, TI changed the filename of hex utilities from hex470 to armhex in later CCS version. This is why you have to change the name back. But I don't think it is a good idea to change the filename manually because you will encounter the same problem when you re-install CCS in the future.

    A better way is to use a batch file in your project's folder directly. The batch file deals with the filename issue. In these way, you don't need to worry anything if you re-install CCS someday.