2025-09-03 9:40 AM
Hi Team,
I am planning to use STM32L476RE MCU for my project, Can I know how to switch between Stop1,2 and low power sleep and run modes? I am new to STM32 and I need a reference code or some guidance to start with, any help very much appreciated.
Thanks in advance,
CH. Pranathi
2025-09-03 9:55 AM - edited 2025-09-03 9:56 AM
Hello @Pranathi_ch and welcome to the Community,
I recommend you refer these resources:
2025-09-03 10:31 AM - edited 2025-09-03 10:37 AM
The Sleep mode is defined when you enter Sleep.
To change Sleep mode, you will need to wake up, then choose the different mode when you enter Sleep again.
PS:
In addition to the resources mentioned by @Imen.D, see also the descriptions in the Datasheet & Reference Manual.
Also Application note AN4746, Optimizing power and performance with STM32L4 and STM32L4+ Series
microcontrollers.
And see the examples in CubeIDE demonstrating the various modes