Skip to main content
mmsya
Associate II
December 9, 2019
Question

Entering the Stop modes

  • December 9, 2019
  • 1 reply
  • 706 views

Hello,

I am using STM32L476 and I was just wondering how do I enter in various stop mode (modes 0, 1 and 2) please?

Thanks,

ALi.

This topic has been closed for replies.

1 reply

Mohamed Aymen HZAMI
ST Employee
December 27, 2019

Hello Ali,

To enter Stop mode you need to :

  • configure the bits LPMS(Low Power Mode Selection) in PWR_CR1 register to select the power mode
  • Set SLEEPDEEP bit of Cortex System Control Register
  • request for WFI or WFE

Or you can simply go to the example of the STM32Cube_FW_L4_V1.14.0 under this path : " STM32Cube\Repository\STM32Cube_FW_L4_V1.14.0\Projects\NUCLEO-L476RG\Examples\PWR\PWR_STOP2\ ".

You can download it from here

Best Regards,

Mohamed Aymen.