cancel
Showing results for 
Search instead for 
Did you mean: 

Calculate CRC-8-ATM with Hardware CRC Unit of STM32F7

Flo25
Visitor

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?

1 REPLY 1

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.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..