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:
Power, PWR, Standby mode, Interrupt, EXTI, Wakeup, Low Power, External reset,
This example runs on STM32C011F6Ux devices.
This example has been tested with STMicroelectronics STM32C0116-DISCO board and can be easily tailored to any other supported device and development board.
STM32C0116-DISCO Set-up
In order to make the program work, you must do the following :