Issue with CRC32 module on STM32G483
- May 9, 2022
- 3 replies
- 2993 views
Hi,
I'm computing CRC32 with 04C11DB7 polynomial with different methods : through python binascii.crc32(...), on the following website " https://simplycalc.com/crc32-text.php ", and with ST embedded module on STM32G483.
On basic strings such as "0123456789", i get the same CRC from the python library and the website but not from ST (python/web : 2 793 719 750; ST : 4 171 674 919).
I enabled ST CRC through CubeMX with a config as in the linked pic, and call it in my code as the following :
uint8 data[] = "0123456789";
uint32 crc = HAL_CRC_Calculate(&hcrc, (uint32*)data, 10u);
I tried modifying the output and intput data inversion, changing the string and its size, but I can never get the same result as the python/web one which always get the same. I don't really get what could be happening here.
Any idea where I could be going wrong? Thank you for your time.
