Skip to main content
Explorer
April 30, 2024
Solved

Stuck in sleepmode

  • April 30, 2024
  • 1 reply
  • 677 views

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.
    Best answer by mƎALLEm

    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 ?

    1 reply

    mƎALLEmAnswer
    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 ?