Warning in HAL CRC since updating to F0 Cube v1.11.3
The clear_bit macro in the CMSIS driver is causing a warning when used in the function HAL_CRC_DeInit:

The clear_bit macro in the CMSIS driver is causing a warning when used in the function HAL_CRC_DeInit:

The CLEAR_BIT macro usually deals with 32-bit registers, but CRC_IDR is 8 bit. So even as CRC_IDR_IDR is cast to uint8_t, operator ~ promotes it back to signed int.
The best solution IMHO is replace CLEAR_BIT to simple assignment:
hcrc->Instance->IDR = 0;
You can post a bug report on ST's github.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.