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: LED1 is toggling during 5 seconds, then the system automatically enters Standby mode.

Exit from Standby mode:

A rising edge on PA.00 (D4 pin6 CN6) (connected to LL_PWR_WAKEUP_PIN1) 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 LED1 restarts toggling. These steps are repeated in an infinite loop.

LED1 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 :