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.

Combine Application and Bootloader bin files into one single bin file.

Other Parts Discussed in Thread: TMS570LC4357

Dear Members

I need to merge my boot-loader and application into one single bin file. i was searched in forum this link is not working http://processors.wiki.ti.com/index.php/Combining_executable_files.

Kindly provide the solution. 

  • I presume the boot loader and the application are currently separate programs.  You could use the hex utility to combine those two programs into one load image object file.  Then create a binary file from that load image object file.  I'm not aware of any examples from TI which demonstrate these steps.

    Which CPU family do you use?  What is the version of the compiler toolchain?

    Thanks and regards,

    -George

  • Hi George

    We are using TMS570LC4357 and We have separate bin files for Boot-loader and applications.

    Thanks

    -Arun

  • You say you have the bin files.  I presume you also have the executable files.  

    To learn how to create a load image from multiple executable files, please search the TI ARM assembly tools manual for the sub-chapter titled The Load Image Format.  The command you use to create the load image is similar to ...

    Fullscreen
    1
    % armhex --load_image -o combined.out prog1.out prog2.out
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    Then create the binary file from combined.out with the same method you currently use to create the separate bin files.

    Please understand that I am not able to test this solution to be certain it works.  But I think it is worth a try.

    At the same time that you pursue this solution, it would be good if you consider another method.  The Hercules TMS570LC43x Development Kit probably has a way to solve this same problem.  I am not familiar with it, so I can't be of more help.  If you have any questions about it, I'll be happy to refer you to the experts who support it.

    Thanks and regards,

    -George