Skip to content

stm32: uart: Support for wakeup from stop #43135

@ycsin

Description

@ycsin

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)

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions