Skip to main content
Visitor II
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

    This topic has been closed for replies.

    2 replies

    Technical Moderator
    September 3, 2025

    Hello @Pranathi_ch and welcome to the Community,

    I recommend you refer these resources:

    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