AnsweredAssumed Answered

STM32CubeMX does not allow setting CRC Polynomial

Question asked by CaCO3.CaCO3 on Sep 29, 2015
Latest reply on Jan 6, 2016 by Amel N
I want to set the CR polynomial according to the most top table in http://users.ece.cmu.edu/~koopman/crc/index.html

However STM32CubeMX does not allow to do it due to the following restrictions:
----
CRCPolynomial should respect this format : Xa+Xb+...+Xc.
where a,b,c are the powers of the polynomial :
- a,b,c should be less than 8.
- a,b,c should be odd.
----

Why is this restriction?
How can I work around it?
The generated function MX_SPI1_Init() does not allow user code in it, so I would have to modify it evertime I run STM32CubeMX generation!

I seem not to be the first one with this issue:
[DEAD LINK /public/STe2ecommunities/mcu/Lists/STM32Java/Flat.aspx?RootFolder=/public/STe2ecommunities/mcu/Lists/STM32Java/STM32CubeMX%204.9.0%20issues&FolderCTID=0x01200200770978C69A1141439FE559EB459D758000F9A0E3A95BA69146A17C2E80209ADC21]https://my.st.com/public/STe2ecommunities/mcu/Lists/STM32Java/Flat.aspx?RootFolder=%2Fpublic%2FSTe2ecommunities%2Fmcu%2FLists%2FSTM32Java%2FSTM32CubeMX%204.9.0%20issues&FolderCTID=0x01200200770978C69A1141439FE559EB459D758000F9A0E3A95BA69146A17C2E80209ADC21

Outcomes