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