2024-05-05 07:22 AM - edited 2024-05-05 07:25 AM
At first this post looks more like a catharsis than a question, but ultimately there is a question.
Why are there as many procedures to enter sleep mode as there are STM32 programmers? There I see Piranha posting his own catharsis, titled "The ST Standby and Shutdown disaster".
My question is, and focusing on the STM32U5, is there one, or set of definitive theoretical and practical guides to follow and get into low power? If entering and exiting low power requires executing dozens of lines of code, I can accept it, although it really not the best of the worlds.
2024-05-05 09:20 AM
There's a low power topic in the MCU wiki ... https://wiki.st.com/stm32mcu/wiki/Category:Low_power
IDNK how to request adding content there though.
2024-05-06 03:45 AM - edited 2024-05-06 03:46 AM
Hello @dhs,
The STM32CubeU5 firmware package includes an example "PWR_ModesSelection" for entering and exiting all supported low-power states, demonstrating a practical and structured implementation of these modes.
as you know, the complexity of implementing these power modes is directly proportional to the intricacy of your application, considering the U5 series supports several main low-power modes, each with several sub-mode options to cover.
I would also recommend checking the How to optimize power consumption on STM32U5 MCUs application note, it also covers a clear and structured practical example
Also, depending on your application, the U5 offers the unique LPBAM feature that allows peripherals to remain functional in Stop 2 mode, adding to the flexibility and autonomy of power management. the steps may be a bit more complex but they are clearly illustrated in several app notes mentioned in the wiki provided by @Pavel A.
PS: @Pavel A., I think the community is an adequate channel to request adding content!
Hope that helps!
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2024-05-14 10:10 AM
Knowledgebase article, "Tips for using STM32 low-power modes":
https://community.st.com/t5/stm32-mcus/tips-for-using-stm32-low-power-modes/ta-p/621007