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.

CCS/TMS320F28032: How do I combine the application .hex or .out file with the bootloader into one file to flash?

Part Number: TMS320F28032

Tool/software: Code Composer Studio

I have a  bootloader application and a main application I need to flash to a chip in a single file. I cannot figure out how to do this. I read through this article http://processors.wiki.ti.com/index.php/Combining_executable_files

but this makes no sense to someone who is starting out. 

1. Do I need to write a script for this? I'm assuming yes. 

2. What type of file do I need to write? a .coff file or EFL file?

Once this was mentioned you mentioned a hex converter application and directed me to the assembly wiki???

Then finally your document used several examples which made no sense. Where do I get this information to create one of these files??

> ofd470 app.out 
OBJECT FILE: app.out ... Section Information id name load addr run addr size align alloc -- ---- --------- -------- ---- ----- ----- 3 .bss 0x0005a000 0x0005a000 0x478 4 Y 4 .sysmem 0x00058000 0x00058000 0x2000 4 Y 5 .stack 0x00050000 0x00050000 0x8000 4 Y 6 .text 0x00000020 0x00000020 0x4700 4 Y 7 .cinit 0x00004720 0x00004720 0x134 4 Y 8 .const 0x00004854 0x00004854 0x101 4 Y ...

What is that? All I have are two .out files that I know where in memory they need to go.
Can someone please make light of all this confusion?

Thank you

Bill
  • Hi William,

    You need follow the instructions as per the example 2 and 3 in the article.
    You can create .obj file from combining your bootloader and main application. Create rom.cmd as mentioned in example 2. Specify the memory ranges in rom.cmd.

    ofd470 app.out --> output gives information of Object file information such as File name, Format, size etc. and Section information about .text, .stack, .const etc. In the example the output of each single file and combined is given to show how the data is combined and placed.

    The example was written for different target processor. So, different executable names were used.
    Use ofd2000.exe instead of ofd470. You can find ofd2000.exe in c2000 compiler, \bin folder.
    The hex convertor(hex2000.exe) is also part of the c2000 compiler. Use hex2000.exe instead of hex470.

    Please let us know if you need any further information.

    Thanks,
    Katta