How to enter the Stop 0 mode.
After start-up LED1 is toggling during 5 seconds, then the system automatically enter in Stop 0 mode (Final state).
LED1 is used to monitor the system state as follows:
This example does not implement a wake-up source from any peripheral: to wake-up the device, press on Reset button.
Power, PWR, Stop mode, Interrupt, Low Power
- PWR/PWR_EnterStopMode/Inc/stm32c0xx_it.h Interrupt handlers header file
- PWR/PWR_EnterStopMode/Inc/main.h Header for main.c module
- PWR/PWR_EnterStopMode/Inc/stm32_assert.h Template file to include assert_failed function
- PWR/PWR_EnterStopMode/Src/stm32c0xx_it.c Interrupt handlers
- PWR/PWR_EnterStopMode/Src/main.c Main program
- PWR/PWR_EnterStopMode/Src/system_stm32c0xx.c STM32C0xx system source file
This example runs on STM32C071RBTx devices.
This example has been tested with STMicroelectronics NUCLEO-C071RB board and can be easily tailored to any other supported device and development board.
NUCLEO-C071RB Set-up
In order to make the program work, you must do the following :