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 file to .int, .hex, .a43

Hello,

I created project in CCS4. i have .C and .H file. i always used these 2 files in project.  but TI- gang programmer needs .int, .hex, .a43 file format.

can anybody tell me how to deal with this. I got .out file when i build the program. please tell me how to created .hex file out of .out file.

  • CCSv4 comes with a utility to convert your out file to hex.

    <INSTALL DIR>\ccsv4\tools\compiler\<ISA>\bin\hex<ISA>.exe

    call it with the -h option for the help.

    Thanks

    ki

  • Just to add to Ki's reply, this task has been simplified for MSP430 projects. If you go to Project Properties->C/C++ Build->Build Steps tab, under "Apply Predefined Step", there are a couple of predefined commands for generating TI-TXT and Intel hex outputs. If you select one of the them, the post build command will be populated with the appropriate command and will always run as a post-build step on your .out file when you build your CCS project. You can easily customize the command to add other options or output a different hex format.

     

  • thanks for reply.

    do i need to run this .exe on command prompt.

    This is the first time i am using it. please guide me step by step.

    thanks

  • Yes it is a command line executable. You can open a DOS command window, browse to the location of the hex<isa>.exe and run 'hex<isa>.exe -h' to get more documentation.

    ex to run the help (for ARM):

    > cd C:\Program Files\Texas Instruments\ccsv4\tools\compiler\tms470

    > hex470 -h

     

  • And if you are using MSP430, I suggest you use the post-build step as Aarti suggested.

  • Thanks guys,

    I used arati's way to come do it.

    Thanks for your instant reply.

  • Hi all,

    How do you get .a43 format instead? My CCS only provides .hex and .txt format.

  • Isn't .a43 the same as Intex hex format? Or were you expecting a different hex format? If it is the same as Intel hex, you can choose the Predefined post-build step in CCS as noted in the previous post in this thread, and change the -o (output file) option to .a43 extension. If you are looking for a different hex format, please check Chapter 11 of the MSP430 Assembly Language Tools Users Guide for the formats supported by the hex converter.

  • FYI

    I followed the steps above with CCSv4.2.4 and selected "Create flash image: Intel-HEX" and got the error below.

    "C:/Program Files/Texas Instruments/ccsv4/tools/compiler/C6000 Code Generation Tools 7.2.6/bin/hex6x.exe" -i "M2_EVM6472.out" -o "M2_EVM6472.hex" -order MS -romwidth 16
    error: bad argument to option -order: should be one of {M,L}
    gmake[1]: [post-build] Error 1 (ignored)
    ' '
    Build complete for project M2_EVM6472

  • hi I want to convert my .out file to .hex format. I have run -i <my file path>test.out command and I have got  

    translating d:......\test.out to to Intel format....
    "D:\......\test.out" ==>vecs
    "D:\......\test.out" ==>.test
    "D:\......\test.out" ==> .cinit

    but my .hex file is not getting generated.

    is i have to run any other commands along with that ?

  • Hi 

    I have written a code and now I want to generate its hex file and want to port it to hardware without using flash burn. But I can't find any thing like 'hex utlity' or "flash burn utility" in my CCSv5.5.
    What is the reason?
     Thankyou

    Maheen