PWR_EnterStopMode Example Description

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.

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, Stop mode, Interrupt, Low Power

Directory contents

- 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

Hardware and Software environment

How to use it ?

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