-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Description
The STM32's UART driver currently lacks the ability to wake up from stop mode. For low power application that requires to listen for UART RX (modem, sensors using uart), the applications needs to delicately constraint the PM mode while the MCU is communicating with these external peripherals and unconstraint after the transaction is finished. This makes the LPM not as easy to use, and for applications where the MCU should be in LP mode unless the RX receives something, this means that LPM cant be enabled at all.
Describe the solution you'd like
Add support for wake up from stop mode for the STM32's UART driver.
Describe alternatives you've considered
I've tried to implement this feature but stumbled upon the step where I need to switch the clock source of WKUP capable UART instances to HSI16 using LL_RCC_SetUSARTClockSource before the MCU goes to sleep, this function expects predefined macros which can be different across MCUs.
Reference(s)