Hex2bin CRC and HAL STM32 CRC are not the same
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-07-18 5:47 AM
Hi
I tried to generate hex2bin crc32 and then crc32 on stm32 (on words, the rest CubeMX configurations were set to default) , but they are not the same. On hex2bin i can configure big or little endianness, but the result doesn't change and i don't know the default.
Did anyone here try to conduct the same experiment and can share the insights or findings?
Thanks!​
- Labels:
-
CRC
-
STM32CubeMX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-07-18 6:02 AM
"CRC32" just tells you that the CRC has 32 bits.
You also need to have the same generator polynomial, initial conditions, etc for the results to match.
http://www.ross.net/crc/crcpaper.html
A complex system designed from scratch never works and cannot be patched up to make it work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-07-18 6:15 AM
Thank you!
"
​"CRC32" just tells you that the CRC has 32 bits.
"
Doesn't it also tell the data taken in account is 32 bit?
​
Will look at your link.
Thank you for your help!​
​
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-07-18 6:21 AM
@Community member​ "Doesn't it also tell the data taken in account is 32 bit?"
No - a CRC could be applied to any block of data.
A complex system designed from scratch never works and cannot be patched up to make it work.
