cancel
Showing results for 
Search instead for 
Did you mean: 

How to switch between sleep modes in STM32L476RE?

Pranathi_ch
Associate

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

2 REPLIES 2
Imen.D
ST Employee

Hello @Pranathi_ch and welcome to the Community,

I recommend you refer these resources:

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
Andrew Neil
Super User

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 AN4746Optimizing power and performance with STM32L4 and STM32L4+ Series
microcontrollers.

And see the examples in CubeIDE demonstrating the various modes

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.