cancel
Showing results for 
Search instead for 
Did you mean: 

Entering Sleep Mode

YuriCh
Associate II
Posted on October 30, 2016 at 15:45

Hello!

I am using the STM32L476 for my project and i need to implement a standby mode.

I want to use the sleep mode and i have a few questions:

1. Is there anything else i need to do before entering the sleep mode besides using - HAL_PWR_EnterSLEEPMode(PWR_MAINREGULATOR_ON, PWR_SLEEPENTRY_WFI) ?

2. How can i check whether i entered the LPM properly? 

3. Where can i find some detailed documentation regarding these issues?

thank you
1 REPLY 1
Walid FTITI_O
Senior II
Posted on October 31, 2016 at 11:08

Hi cherniakov.yuri, 

I see that you ask for how to use and code the Low power mode on the STM32L4 device and not issue description.

For this purpose, I recommend the following resources that give you help on this :

-

http://www.st.com/content/ccc/resource/technical/document/reference_manual/02/35/09/0c/4f/f7/40/03/DM00083560.pdf/files/DM00083560.pdf/jcr:content/translations/en.DM00083560.pdf

, section 5.5 low-power modes

-Application note

http://www.st.com/content/ccc/resource/technical/document/application_note/9e/9b/ca/a3/92/5d/44/ff/DM00148033.pdf/files/DM00148033.pdf/jcr:content/translations/en.DM00148033.pdf

-Application note

http://www.st.com/content/ccc/resource/technical/document/application_note/5c/cb/90/97/4b/84/4e/81/DM00216518.pdf/files/DM00216518.pdf/jcr:content/translations/en.DM00216518.pdf

And there is several examples in the

http://www.st.com/content/st_com/en/products/embedded-software/mcus-embedded-software/stm32-embedded-software/stm32cube-embedded-software/stm32cubel4.html

which show how to code and uselow power modes and difference sub-modes at this path: STM32Cube_FW_L4_V1.5.0\Projects\STM32L476RG-Nucleo\Examples\PWR

-Hannibal-