2025-03-25 7:55 AM
How can you calculate a CRC-8-ATM using the CRC unit of a STM32F7?
I want to check the CRC of the output of an ADC ADS127L11 which is transmitted via SPI. The user manual says the CRC calculation is based on CRC-8-ATM. The output is an 8-bit CRC, and the polynomial is X^8+X^2+X^1+X^0. I cannot configure this in the CRC unit of my STM32F7.
Does anybody know if and how you can use the embedded CRC unit for CRC-8-ATM calculation?
2025-03-25 8:27 AM
So an 0x07 polynomial value.
You want to use the CRC unit built into the SPI, or the stand-alone CRC unit of the STM32?
Do you have some example test vectors?
Have you checked it with a software implementation?
Generally on the SPI, I'd expect you run the pattern through the reception, with the CRC polynomial set up, and if correct the CRC register/check will zero out.