Bug in HAL_CRC Module
I found a bug the HAL CRC Module...
First of all... when you enable the CRC Module with CubeMX 5.0.1 the MX_CRC_Init() is empty and the peripheral is not initalized!
I wrote all the code manualy or copied it from the old CubeMX 4 generated code...
This worked BUT... when using hcrc.Init.CRCLength = HAL_CRC_LENGTH_8B the CRC->CR->POLYSIZE Register is set wrong. It is set to 0x01 what means 16 Bit CRC and not 0x02 wicht would be 8 Bit.
When you use hcrc.Init.CRCLength = HAL_CRC_LENGTH_16B; the CR->POLYSIZE Register is set to 8 Bit (0x02)... so it seems to be flipped arround...
I did no further investigation on this bug... dont know where the problem realy is...
But i guess, this is STs task.
Best regards
