AnsweredAssumed Answered

STM32F0 Low power modes

Question asked by venkatesan.srivatsav on Jan 21, 2015
  I am trying to put the MCU in stop mode. I'm using the MCU STM32F072VBT6. The STM32F0 user manual says that the MCU can go in stop mode by executing WFI or WFE instructions with the SLEEPDEEP bit set in the system control register. I am using the Standard Peipheral Library given by ST,

It has the following function defined in stm32f0xx_pwr.c
void PWR_EnterSTOPMode(uint32_t PWR_Regulator, uint8_t PWR_STOPEntry)

When I call the function with parameters PWR_Regulator_ON and PWR_STOPEntry_SLEEPONEXIT.

I expect the CPU to be suspended after exiting the lowest priority ISR. But the program execution continues and the CPU is not suspended. The CPU gets suspended if I use the parameter value PWR_STOPEntry_WFI or PWR_STOPEntry_WFE .

The user manual does not state there is a possibility of entering Stop mode with SLEEPONEXIT instruction. Am I missing something here?

Best Regards