Skip to content

Conversation

@ABOSTM
Copy link
Contributor

@ABOSTM ABOSTM commented Aug 5, 2022

Fix LowPower Sleep Mode:

  • fix: restore Main regulator on LowPower Sleep exit
  • fix: in case of LowPower Sleep, it is necessary to decrease CPU Frequency

Fixes #73

@ABOSTM
Copy link
Contributor Author

ABOSTM commented Aug 5, 2022

Currently tested only on L4.
Waiting CI on other STM32 series

@tshcherban
Copy link
Contributor

@ABOSTM can verify on STM32L051C8T6
can you give some details what should i check?

ABOSTM added 2 commits August 23, 2022 15:09
In case of LowPower Regulator used for sleep,
restore Main regulator on exit

Signed-off-by: Alexandre Bourdiol <[email protected]>
…ency

Decrease CPU freq before setting LPR mode,
Restore CPU freq after wakeup.

Signed-off-by: Alexandre Bourdiol <[email protected]>
@ABOSTM
Copy link
Contributor Author

ABOSTM commented Aug 23, 2022

Tested on all STM32 series, with ExternalWakeup example,
working fine.

Copy link
Member

@fpistm fpistm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@fpistm fpistm added this to the 1.2.1/1.3.0 milestone Aug 23, 2022
@fpistm fpistm merged commit 3023ea6 into stm32duino:main Aug 23, 2022
@ABOSTM ABOSTM mentioned this pull request Sep 7, 2022
@fpistm fpistm added fix 🩹 Bug fix and removed bug labels Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix 🩹 Bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

stm32l412kb nucleo not waking up from sleep mode.

3 participants