2017-07-12 03:18 AM
Dear Sir:
I am using STM32L476 and want enter shutdown mode to save power.
Right now I had call
MX_GPIO_Init();//this is set all GPIO to Pullup and set Input,
HAL_PWREx_EnterSHUTDOWNMode();and now the power consumption only 98uA,
But spec write Shutdown mode is 8 nA or 260nA(with RTC)
How can I reduce my power to nA.
PS:I have try disable PVM and __HAL_PWR_CLEAR_FLAG(PWR_FLAG_WUFx), but still same.
Solved! Go to Solution.
2017-07-12 04:12 AM
L4 low power overview
http://www.st.com/resource/en/application_note/dm00148033.pdf
L4 Optimizing power and performance
http://www.st.com/resource/en/application_note/dm00216518.pdf
L4 reference manual
http://www.st.com/resource/en/reference_manual/dm00083560.pdf
L4 programming manual
http://www.st.com/resource/en/programming_manual/dm00046982.pdf
there's also examples in the Cube repository
ls STM32Cube_FW_L4_V1.8.1/Projects/STM32L476RG-Nucleo/Examples/PWR/PWR_
PWR_LPRUN/ PWR_LPSLEEP/ PWR_SHUTDOWN/ PWR_STANDBY/ PWR_STOP1/ PWR_STOP2/ PWR_LPRUN_SRAM1/ PWR_ModesSelection/ PWR_SLEEP/ PWR_STANDBY_RTC/ PWR_STOP1_RTC/ PWR_STOP2_RTC/Basically you should search the pdf files above for terms like '_WFI' and 'SLEEPDEEP'
2017-07-12 03:59 AM
Hi
starlin2@gmail.com
,I recommend you to have a look to ready example under the STM32L4 firmware package:
STM32Cube_FW_L4_V1.8.0\Projects\STM32L476RG-Nucleo\Examples\PWR\PWR_SHUTDOWN
-Nesrine-
2017-07-12 04:12 AM
L4 low power overview
http://www.st.com/resource/en/application_note/dm00148033.pdf
L4 Optimizing power and performance
http://www.st.com/resource/en/application_note/dm00216518.pdf
L4 reference manual
http://www.st.com/resource/en/reference_manual/dm00083560.pdf
L4 programming manual
http://www.st.com/resource/en/programming_manual/dm00046982.pdf
there's also examples in the Cube repository
ls STM32Cube_FW_L4_V1.8.1/Projects/STM32L476RG-Nucleo/Examples/PWR/PWR_
PWR_LPRUN/ PWR_LPSLEEP/ PWR_SHUTDOWN/ PWR_STANDBY/ PWR_STOP1/ PWR_STOP2/ PWR_LPRUN_SRAM1/ PWR_ModesSelection/ PWR_SLEEP/ PWR_STANDBY_RTC/ PWR_STOP1_RTC/ PWR_STOP2_RTC/Basically you should search the pdf files above for terms like '_WFI' and 'SLEEPDEEP'
2017-07-13 01:30 AM
Thx a lot, after install SW4STM32 and STM32Cube_FW_L4_V1.8.0 to reference,
Now I can see nA in my board.