Generation of compatible CRC for CRC peripheral
I'd like to use the CRC peripheral to check the validity of a code image in memory. I'm planning on generating a CRC during the build process, and adding the value to the end of the image when it's built. I'm using the Python function crcmod.mkCrcFun with the polynomial set to 0x14D11CDB7 and the initial value set to 0xFFFFFFFF. I understand that some descriptions of the poly value leave off the starting '1'. I'm assuming this is the case for theCRC peripheral description. mkCrcFun doesn't like the value 0x4D11CDB7.
So far the values generated by each method don't match. Can anyone tell me:
- Is the polynomial implementation for the CRC peripheral actually 0x14D11CDB7?
- Is there anything else that might be different between the two implementation?
- Is there another option in Python that would produce a matching CRC?
Thanks.
