cancel
Showing results for 
Search instead for 
Did you mean: 

Entering the Stop modes

mmsya
Associate II

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.

1 REPLY 1
Mohamed Aymen HZAMI
ST Employee

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.