cancel
Showing results for 
Search instead for 
Did you mean: 

How to Wake-up STM32L431RBtx from STOP0 mode?

HPras
Associate II

Hi All,

We have a project using STM32L431RBtx. In that we are trying to put MCU into sleep mode by using HAL API: HAL_PWREx_EnterSTOP0Mode(PWR_SLEEPENTRY_WFI) in bare-metal code base.Here the interrupt we have configured to wake-up the MCU from sleep is UART. This interrupt is working fine in normal mode.But in Sleep Mode, MCU is not receiving any interrupt. SO the MCU remains in the sleep mode.We have tried Another API: HAL_PWR_EnterSLEEPMode(PWR_MAINREGULATOR_ON,PWR_SLEEPENTRY_WFI); in the same code base.With this the MCU is not even entering into Low poewr mode.Please suggest a solution!!!

1 REPLY 1
Uwe Bonnes
Principal III

Only certain devices can wake up the CPU from stop. Look for "wakeup from stop" in the reference manual. I thing U(S)ARTcan, LPUART can...