hello, dear
i am doing the safety test for chip, and i got some questions about CRC/DCSM part.
1. for dcsm, i depart the program for secured and unsecured. calculateECC() in secured part, i did the crc calculation and got the crcObj.crcResult as the golden crc. i write it to the goldenCRC, and then program some unsecured part(outside of FlashFusa2) . after reflash, the crc changed. why not fix to goldenCRC?
2.In the Safety Manual for TMS320F28004x. DCSM8 asks for VCU CRC Check of Static Memory Contents. Does that mean the goldenCRC for secured part and goldenCRC for unsecured part should Independence not affect each other? Or just ask for the same as last time?
thanks
crcObj.seedValue = STL_CRC_INIT_CRC;
crcObj.numBytes =0xfff;
crcObj.parity = STL_CRC_PARITY_EVEN;
crcObj.crcResult = 0U;
crcObj.msgBuffer = (void *) 0x098000;
STL_CRC_calculate(&crcObj);
#pragma DATA_SECTION(xorData,"ramgs1");
uint64_t xorData;
#pragma CODE_SECTION(calculateECC,"FlashFusa2" );
void calculateECC(void);
void calculateECC(void)
{
xorData = xorData ^ (xorData >> 32);
}
in cmd:
RAMGS1 : origin = 0x00E000, length = 0x002000
FLASH_FUSA2 : origin = 0x098000, length = 0x001000 /* on-chip Flash */
FlashFusa2 : > FLASH_FUSA2 PAGE = 0
ramgs1 : > RAMGS1, PAGE = 1







