2020-12-30 07: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
2020-12-30 07: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
2020-12-30 07: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