Skip to main content
JosepM Ribera
Associate II
December 30, 2020
Question

CRC Generating Polynomial doesn't work

  • December 30, 2020
  • 2 replies
  • 999 views

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

This topic has been closed for replies.

2 replies

Khouloud ZEMMELI
ST Employee
December 30, 2020

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

JosepM Ribera
Associate II
December 30, 2020

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