CRC Generating Polynomial doesn't work
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-12-30 7:05 AM
Hi!
I'm triying to set the CRC-16-IBM: X16+X15+X2+1, but CUBEMx does not allow it. In fact, I cannot introduce any polynomial.
Is it a CUBE issue? How can I introduce the CRC-16 IBM polynomial ?
Thank you
- Labels:
-
CRC
-
STM32CubeMX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-12-30 7:17 AM
Hello @JosepM Ribera​
After Activate the CRC, you need to disable the Default Polynomial State then change the CRC length to be able to configure the CRC Generating Polynomial.
For the case of 16 bit, the powers of the polynomial must be less than 16 (0..15).
Also, the CRC Generating Polynomial should respect this format : Xa+Xb+...+Xc+X0.
Hope that your question is answered.
Thanks, Khouloud
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-12-30 7:36 AM
Hi @Khouloud ZEMMELI
I've disabled the Defalut Plynomial State and then selected 16 bits. But I cannot enter Tthe CRC-16 IBM polynomial
Ex:
X16+X15+X2+1 ---> Cannot enter
X15+X2+1 --> Cannot enter
X12+X5+X0 ---> Yes, it works
