cancel
Showing results for 
Search instead for 
Did you mean: 

Stuck in sleepmode

hazin
Associate III

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);

}

1 REPLY 1
SofLit
ST Employee

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 on "Accept as Solution" on the reply which solved your issue or answered your question.