possible bug in F3xx Firmware?
When I compile a simple programm, using the CRC feature I get the following warning:
In file included from ../Drivers/STM32F3xx_HAL_Driver/Inc/stm32f3xx_hal_def.h:30,
from ../Drivers/STM32F3xx_HAL_Driver/Inc/stm32f3xx_hal_rcc.h:29,
from ../Core/Inc/stm32f3xx_hal_conf.h:199,
from ../Drivers/STM32F3xx_HAL_Driver/Inc/stm32f3xx_hal.h:30,
from ../Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_crc.c:46:
../Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_crc.c: In function 'HAL_CRC_DeInit':
../Drivers/CMSIS/Device/ST/STM32F3xx/Include/stm32f3xx.h:193:41: warning: overflow in conversion from 'int' to 'uint8_t' {aka 'volatile unsigned char'} changes value from '(int)hcrc->Instance->IDR & -256' to '0' [-Woverflow]
193 | #define CLEAR_BIT(REG, BIT) ((REG) &= ~(BIT))
| ^
../Drivers/STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_crc.c:203:3: note: in expansion of macro 'CLEAR_BIT'
203 | CLEAR_BIT(hcrc->Instance->IDR, CRC_IDR_IDR);
| ^~~~~~~~~
Can I ignore that or is that a bug?
Thank you & best regards,
chris
