I'm using CCS 10.2.0.00009 for TMS320F28379D and I am able to generate a single satisfactory hex file with the ROMS directive.
However, I'd like to be able generate different hex files for different reprogramming use cases in the same build. For example, I want a hex file containing sectors A & B and another hex file containing just sector B.
The following example is successful, I get FLASH_SECTOR_A_AND_B.hex:
..\CPU1_FLASH_STANDALONE\OBC_CPU1.out --intel --image ROMS { FLASH_SECTOR_A_AND_B: org = 0x80000, len = 0x4000, romwidth = 16, fill = 0xFFFF files = { FLASH_SECTOR_A_AND_B.hex } }
But if I want another hex file containing only FLASHB:
..\CPU1_FLASH_STANDALONE\OBC_CPU1.out --intel --image ROMS { FLASH_SECTOR_A_AND_B: org = 0x80000, len = 0x4000, romwidth = 16, fill = 0xFFFF files = { FLASH_SECTOR_A_AND_B.hex } FLASH_SECTOR_B: org = 0x82000, len = 0x2000, romwidth = 16, fill = 0xFFFF files = { FLASH_SECTOR_B.hex } }
I get the following error:
error: memory ranges "FLASH_SECTOR_A_AND_B" and "FLASH_SECTOR_B" out of order
I think the cryptic error message is telling me the first directive overlaps the address space of the second and therefore not allowed. With that in mind, is it possible to run the hex2000 utility twice with different directives so get two hex files?
Thank you.