How does a CRC check work between a microcontroller and EEPROM?
The remainder will alwas be the same, but if it is always zero or something elsr depends on the exact CRC algorithm, namely the &quot;final xor&quot;.
If you have to write for example written 10 bytes of data and have calculated 2 bytes of CRC from that data, you write 12 bytes to the memory.
When you read if back, you read all 12 bytes, calculate the CRC from the first 10 bytes, and check that the calculated CRC matches the 2 bytes of CRC read back from the memory.
There is also another method to calculate the CRC of all 12 bytes read back, it will add up to a constant check value if the CRC is correct, but depending on the CRC algorithm you use the result could be always zero but it can be something else too.