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.

MSP432P401R: CRC32-IS3309

Part Number: MSP432P401R

Good day,

I'm trying to use the CRC32 to verify the code file for updating the MSP432P401R firmware. My problem is that although it is stated that the CRC32 is the CRC32-IS3309 variant I don't get the correct CRC32 result for the test data. The polynomial is stated as being 0x4C11DB7 for the CRC LFSR. For all the examples I have used with a 0x4C11DB7 polynomial the test result for the string "123456789" is either 0xCBF43926 or 0xFC891918, if reflection is used, and using 0xFFFFFFFF as the initial value and the final XOR being 0xFFFFFFFF.

Can someone help me out as to why I don't get the same result from the following code:

uint8_t data[9] = { '1', '2', '3', '4', '5', '6', '7', '8', '9' };
uint32_t u32Count;
uint32_t u32Checksum;

CRC32_setSeed(CRC32_MODE, 0xFFFFFFFF);
for(u32Count = 0; u32Count < sizeof(data); u32Count++) {
    CRC32_set8BitDataReversed(data[u32Count], CRC32_MODE);
}
u32Checksum = CRC32_getResultReversed(CRC32_MODE);

Where u32Checksum = 0xE0219149

and

CRC32_setSeed(CRC32_MODE, 0xFFFFFFFF);
for(u32Count = 0; u32Count < sizeof(data); u32Count++) {
    CRC32_set8BitData(data[u32Count], CRC32_MODE);
}
u32Checksum = CRC32_getResult(CRC32_MODE);

Where u32Checksum = 0x0A9CB2CC

I have tried XORing the result with 0xFFFFFFFF in case the result needed to be inverted but that doesn't work either.

Regards,

Charles