Skip to main content
lgacnik97
Associate II
September 28, 2024
Solved

STM32U535 HAL UART Wake-up register callback missing

  • September 28, 2024
  • 1 reply
  • 1090 views

I'm unsure whether this is a software issue or wake-up callback is by default not present for UART on STM32U535 microcontroller. The rest of callbacks seems to be in place.

2024-09-28 20_40_06-stm32u5xx_hal_uart.h - HMS100 - Visual Studio Code.png

Best answer by Guenael Cadier

Hi @lgacnik97 
On STM32U5xx serie, there's no WakeupCallback (no WUF/WUS settings). So UART_HandleTypeDef type definition is correct.
On the other hand, the value HAL_UART_WAKEUP_CB_ID could then be removed from HAL_UART_CallbackIDTypeDef enumeration, for clarity's sake.

ST will raise a internal ticket to get this solved.
Thanks for pointing this.
Regards

1 reply

Guenael Cadier
Guenael CadierBest answer
ST Employee
October 4, 2024

Hi @lgacnik97 
On STM32U5xx serie, there's no WakeupCallback (no WUF/WUS settings). So UART_HandleTypeDef type definition is correct.
On the other hand, the value HAL_UART_WAKEUP_CB_ID could then be removed from HAL_UART_CallbackIDTypeDef enumeration, for clarity's sake.

ST will raise a internal ticket to get this solved.
Thanks for pointing this.
Regards