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 add Bootloader hex file to the application project in CCS for RM48?

Other Parts Discussed in Thread: UNIFLASH, NOWECC

Hi,

We have a bootloader project and an application project. We need to add the bootloader hex(out) file to the application project to program the bootloader and application project as one hex file to the RM48 processor. The linker file in the application project needs to be changed to add the bootloader project (hex file).

I really appreciate if you give me a solution for this task.

Thanks,

Amin

  • Amin,

    I assume that your bootloader and application are totally independent projects occupying different memory space. You should be able to program the out files individually.

    Thanks and regards,

    Zhaohong

  • Zhaohong,

    I don't want to program out files individually. Actually, I want to combine both the projects and then program them as one out file. Is there any solution to add bootloader out file to the application project (changing the linker script of the application project to link the bootloader hex file)?

    Thanks,

    Amin

  • Hi,

    I was wondering if there is a solution or not. I have not received any feedback!

    Thanks

  • Amin,

    I am not aware of any solution for doing so.

    Thanks and regards,

    Zhaohong

  • Amin,

    Here's a suggestion from one of our rockstar FAE's - will basically just quote him ...

    This is geared toward combining an ECC hex output w. a program .out but I think you could apply the same to a bootloader and an application.

    I have verified that the TI ARM cgtools are able to combine two .out files, and that Uniflash v3.1 is then able to flash the resulting .out (Note: I did not verify that the resulting .out file was actually correct, only that it flashed).  I think you need cgtools v5.x and above for this feature.  I used cgtools v5.1.6.

     

    Step 1: Use nowECC v2.22.00 to generate an ECC only .out file (i.e., no -a option).  Command line is (for TMS570LS122x):

     

    C:\TI\Hercules\nowECC\2.22.00\nowECC -i MyFile.out -r4 -f021 16M_ADD    -o ECC_only.out

     

    Step 2: Use TI ARM cgtools to combine the original and ECC .out files.  Command line is:

     

    c:\ti\ccsv5\tools\compiler\arm_5.1.6\bin\armhex Myfile.out ECC_only.out --load_image -o MyFile_ECC_ARMHEX.out

     

    Step 3: I verified that Uniflash v3.1 was able to flash MyFile_ECC_ARMHEX.out without error.

     

     

    All of this can be automated in the CCS project build as a post-build step, which is good.