Skip to main content
Visitor II
October 6, 2025
Question

Bug in STM32Cube_FW_WB_V1.23.0 USART module

  • October 6, 2025
  • 1 reply
  • 210 views

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.

1 reply

STTwo-32
Technical Moderator
October 7, 2025

Hello @SimonHaines and welcome to the ST Community.

Thank you so much for escalating this behavior. I confirm this wrong behavior and i've escalated internally for correction on the future (under internal ticket number 219071).

Best Regards.

STTwo-32