cancel
Showing results for 
Search instead for 
Did you mean: 

Bug in STM32Cube_FW_WB_V1.23.0 USART module

SimonHaines
Visitor

Line 2185 of stm32wbxx_hal_usart.c uses incorrect macros for clearing the receiver timeout flag:

__HAL_UART_CLEAR_FLAG(husart, UART_CLEAR_RTOF);

I believe this should be:

__HAL_USART_CLEAR_FLAG(husart, USART_CLEAR_RTOF);

The original line warns of implicit function declaration for __HAL_UART_CLEAR_FLAG and an undeclared identifier for UART_CLEAR_RTOF in projects that use the USART but not he LPUART.

The bug can be found in the latest release on GitHub.

Updating the file is fine, the functionality is identical. But every change to the USART configuration with CubeMX overwrites the updated file.

0 REPLIES 0