cancel
Showing results for 
Search instead for 
Did you mean: 

CRC Generating Polynomial doesn't work

JosepM Ribera
Associate III

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

2 REPLIES 2
Khouloud ZEMMELI
ST Employee

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 III

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