2019-07-31 01:21 AM
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!!!
2019-07-31 01:34 AM
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...