Tool/software:
Hello All,
I am having an issue with CMAC calculation algorithm for Flash entry address and user specified region.
Hex utility calculates this tags for same regions that you can see below. But in hex file, output tags are not same. Is not have to be same ? Can you give me details about CMAC calculation in Hex utility and CPU1BROM_calculateCMAC function. Is there any reference manual for Hex utility ?
struct CMAC_TAG
{
char tag[8];
uint32_t start;
uint32_t end;
};
//FLASH ENTRY ADDRESS CONFIG
#pragma RETAIN(cmac_sb_1)
#pragma LOCATION(cmac_sb_1, 0x080002)
const char cmac_sb_1[8] = { 0 };
//USER SPECIFIED CONFIG
#pragma RETAIN(cmac_all)
#pragma LOCATION(cmac_all, 0x82002)
const struct CMAC_TAG cmac_all = {{ 0 }, 0x80000, 0x84000};
Thank you.
YC