Hi,
I am trying to enable the --cmac secure boot feature on the TMS320F280039. I am using cgt 22.6.1LTS.
We have used the Hex Utility for a long time to convert the .out files into .bin files that can be used for OTA updates.
I am getting the following issue when I try to enable the --cmac options on the binary options.
error: CMAC tag, cmac_sb_1, region from start 0x80000 to end 0x82000 is not within allocated region from 0x100000 to 0x10c000
Here is the hex cmd file.
/* .stack was throwing an warning because it had a fill on it so exclude it here */ --exclude=.stack --memwidth=16 --romwidth=16 --image --binary --cmac=/Users/colinparker/sandbox/tahoe-bootloader/project/platforms/f28003x/cmac_key.txt ROMS { /*origin and length values are 8 bit. Divide by 2 to match values in linker */ FLASH: origin = 0x100000, length = 0xC000, romwidth = 8, fill = 0xFFFF }
It appears that the --cmac option isn't able to handle the ROMS directive for binary outputs. If I remove the --binary and update the ROMS section to use 16 bit instead of 8 bit, everything work A-OK.
Can you help me with a workaround so that I can use the --binary option?
Thanks,
-Colin