2024-04-29 11:28 PM
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);
}
2024-04-30 01:36 AM
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 ?