AnsweredAssumed Answered

CRC for polynomial 0xedb88320

Question asked by Suhas Prabhu on Jul 22, 2019
Latest reply on Jul 23, 2019 by Mark Butcher

Hello,

 

I am facing the issue with CRC32 calculation using hardware CRC functions. I tried with the "0xedb88320" for MK22FN512VLL12. I am not able to get the CRC value right.

Is there any sample code (with hardware configuration values set and working) that can  provide a comparison to calculate CRC32 using hardware and software ? 

I hope i can use the CRC hardware function from K22.

 

I have a reference table from  

link : //https://publications.qld.gov.au/dataset/8ffa941e-6efc-43fb-a207-202018baf3d2/resource/8c62a217-35db-419f-b625-7db213382ab7/download/hashingalgorithms-v1-6.pdf

 

unsigned long int CRC32Table[] = { /* CRC polynomial 0xedb88320 */
0x00000000, 0x77073096, 0xee0e612c, 0x990951ba, 0x076dc419, 0x706af48f, 0xe963a535,
0x9e6495a3,
0x0edb8832, 0x79dcb8a4, 0xe0d5e91e, 0x97d2d988, 0x09b64c2b, 0x7eb17cbd, 0xe7b82d07, ..................

};

 

Hope to get some help on that.

 

Regards,

Suhas

Outcomes