AnsweredAssumed Answered

Trying to put STM32L471RG into Shutdown mode

Question asked by anandsr21 on Dec 13, 2016
Latest reply on May 14, 2018 by Vincent HUE

I am trying to put the STM32L471RG into Shutdown mode.

I am doing the following steps, based on the documentation.


// Turn on Deepsleep bit
// Setup Low Power Mode State and Shutdown
PWR->CR1 |= 0x4004; // Set LPR and LPMS_SHUTDOWN bits
// Clear WUFx bits

// Go to sleep


I believe this should put the MCU in shutdown mode. I have a watchdog running also. In the shutdown mode the watchdog should get turned off, and it should not be able to reset it. But the MCU is getting reset. I checked by turning on the freeze watchdog counter option bit for STOP mode, this did stop the reset from happening. This would imply the MCU has actually gone into one of the two STOP modes.


What am I doing wrong?