Skip to main content
Associate
September 3, 2025
Question

How to switch between sleep modes in STM32L476RE?

  • September 3, 2025
  • 2 replies
  • 219 views

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

Technical Moderator
September 3, 2025

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"".ThanksImen"
Andrew Neil
Super User
September 3, 2025

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.