PWR_EnterStandbyMode Example Description

How to enter the Standby mode and wake up from this mode by using an external reset or a wakeup pin.

In the associated software, the system clock is set to 48 MHz.

Request to enter in standby mode: LED3 is toggling during 5 seconds, then the system automatically enters Standby mode.

Exit from Standby mode:

A rising edge on PA6 ( pin23 CN5) (connected to LL_PWR_WAKEUP_PIN2) will wake-up the system from Standby.

Alternatively, an external reset (reset button on board) will wake-up system from Standby as well as wake-up pin.

After wake-up from Standby mode, program execution restarts in the same way as after a reset and LED3 restarts toggling. These steps are repeated in an infinite loop.

LED3 is used to monitor the system state as follows:

Notes

  1. This example can not be used in DEBUG mode due to the fact that the Cortex-M0+ core is no longer clocked during low power mode so debugging features are disabled.

Keywords

Power, PWR, Standby mode, Interrupt, EXTI, Wakeup, Low Power, External reset,

Directory contents

Hardware and Software environment

How to use it ?

In order to make the program work, you must do the following :