For the FS2630 chip, the CRC calculation part is not clear.
1- Typical CRC calculation algorithms require a seed value. In the FS2630 the seed value "0xFF" is appended to the data. Does that mean that the "0xFF" is now part of the data and the initial/seed value should be "0x00"?
2- The CRC-8 is used here. So for a 32-bit data, and CRC table calculation method, which bytes are to be processed first? The least significant byte or the most significant ones? and is the appended seed part of the data now or not?
3- It is mentioned that the seed and data should be XORed compared with that data polynomial. So, the data including the seed should be XORed with 0x1D or the data and seed should be XORed together and compared to 0x1D?
Dear Asmaa,
please download AN12995 and AN13850 from the FS26 product page, under the secure files. In both you can find CRC code example. In the AN13850 Figure 18. is an SPI waveform with CRC input and response.
With Best Regards,
Jozef