cancel
Showing results for 
Search instead for 
Did you mean: 

Entry to Stop mode, and exit from Stop mode.

mateuszdabek
Associate
Posted on October 28, 2016 at 12:09

Someone does know STM32 L series ? I would like to know something about Low power mode. In my project I use battery. I would like to extend work time on battery. I don't know which low power mode I should  choose?

Features:

As low power consumption as posiible,

In low power mode must work timer,(possibility wake up mcu every fixed time(1s) )

Ability  Wake up by external interrupt.

In my opinion I should use Stop mode. I am beginner in programming STM32.

I use HAL library, but I can  write some code without any library.

When I use this below function:

HAL_PWR_EnterSTOPMode(PWR_MAINREGULATOR_ON, PWR_STOPENTRY_WFI); MCU go to stop mode. How I can wake up MCU from stop mode. If someone have example code, please share here.

Thank you in advance for help me.

#stm32 #hal #stop-mode #lowpower
1 REPLY 1
Nesrine M_O
Lead II
Posted on October 28, 2016 at 13:22

Hi d_bek.mateusz,

 Welcome to STM32 community.

Someone does know STM32 L series? I would like to know something about Low power mode.

1/ could you please precise which STM32L series you expect to use? 

•

http://www.st.com/content/st_com/en/products/microcontrollers/stm32-32-bit-arm-cortex-mcus/stm32l4-series.html?querycriteria=productId=SS1580

•

http://www.st.com/content/st_com/en/products/microcontrollers/stm32-32-bit-arm-cortex-mcus/stm32l1-series.html?querycriteria=productId=SS1295

•

http://www.st.com/content/st_com/en/products/microcontrollers/stm32-32-bit-arm-cortex-mcus/stm32l0-series.html?querycriteria=productId=SS1817

2/To have idea about low power modes you  have first to read carefully the Power control (PWR) chapter in your related reference manual, then a set of application notes are provided to help you to start with  STM32 power features also I recommend you to get trained watching the

http://www.st.com/content/st_com/en/support/learning/stm32l4-online-training.html

 

3/If I suppose that you use STM32L4 series:

•You find a set of examples for low power modes under this path: STM32Cube_FW_L4_V1.5.0\Projects\STM32L476RG-Nucleo\Examples\PWR

•Also you can have a look to these application note witch help you to start :

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

&

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

-Syrine-