Skip to main content
Associate II
April 30, 2024
Solved

Stuck in sleepmode

I tried using the sleep mode in STM32L053R8, it gets stuck in this condition. what is the reason. 

if((ulpbit != 0) && (vrefinbit != 0))

{

SET_BIT(PWR->CR, PWR_CR_ULP);

}

This topic has been closed for replies.
mƎALLEm
mƎALLEmBest answer
ST Technical Moderator
April 30, 2024

Hello,

No one can help you if you are not concise. What do you mean by "stuck in this condition"? There is no loop in HAL_PWR_EnterSLEEPMode().

What board are you using? Did you try this example https://github.com/STMicroelectronics/STM32CubeL0/tree/master/Projects/NUCLEO-L053R8/Examples/PWR/PWR_SLEEP ?

To give better visibility on the answered topics, please click "Best answer" on the reply which solved your issue or answered your question.

1 reply

mƎALLEm
mƎALLEmBest answer
ST Technical Moderator
April 30, 2024

Hello,

No one can help you if you are not concise. What do you mean by "stuck in this condition"? There is no loop in HAL_PWR_EnterSLEEPMode().

What board are you using? Did you try this example https://github.com/STMicroelectronics/STM32CubeL0/tree/master/Projects/NUCLEO-L053R8/Examples/PWR/PWR_SLEEP ?

To give better visibility on the answered topics, please click "Best answer" on the reply which solved your issue or answered your question.