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.
Hi!
In Sector A (FLASHA) resides the bootloader.
We will be using the CSM option, so there will be a key in FLASHA
CSM_PWL_P0 : origin = 0x3F7FF8, length = 0x000008 /* Part of FLASHA. CSM password locations in FLASHA */
Our device's code is programmed in Sectors C-H.
In production, how can I produce one file that contains all 8 sectors in order to program a virgin flash with Sectors A-H? (A few MCUs are programmed in parallel using script files and BlackHawk utility.)
I can produce a *.hex, *.bin and/or *.out file from each of the applications (bootloader and device program) - how do I combine them into one file?
Thanks,
Mechi
you can combine 2 .out files using below command,
hex2000.exe first.out second.out -o full.out full_lnk.cmd
How should the full_lnk.cmd be built? It must have sections from both link files (bootloader and project) - but some of the names are the same.
Another solution someone mentioned is to output both as *.hex files using
${CG_TOOL_ROOT}\bin\hex2000 -romwidth 16 -memwidth 16 -i -o ${ProjName}.hex ${ProjName}.out
And then to combine them:
copy /b .bootloader.hex + project.hex combined_bl_proj.hex
Here are two more helpful threads:
https://e2e.ti.com/support/tools/ccs/f/81/t/75150
https://e2e.ti.com/support/microcontrollers/c2000/f/171/t/653373
These articles are about combining .out files - which is fine.
I was able to combine the hex files - which was fine for me.
The issue is resolved.
Thanks for all of the help.