Skip to main content
Explorer II
December 2, 2024
Question

WakeUp from STOPMode at arbitrary time

  • December 2, 2024
  • 2 replies
  • 524 views

Hello,

Now I'm developing on STM32L052T8Y6TR and thinking to occur every 20msec WakeUp from systick interrupt.

More concretely, after Entering Stop Mode (by HAL_PWR_EnterSTOPMode),

I want to start wake-up at arbitrary time. in the SysTick_Callback.

I know HAL_RTCEx_SetWakeUpTimer_IT as regular wake-up function, I'd know how to start wake-up immediately.

Please tell me how to realize it.

Thanks,

 

    This topic has been closed for replies.

    2 replies

    ST Employee
    December 3, 2024

    Hello @curiae

    Could you please clarify whether you want the wake-up event to occur periodically every 20 milliseconds, or if you want it to occur non-periodically, similar to using an external interrupt (EXTI)?

    Super User
    December 3, 2024

    @curiae wrote:

    occur every 20msec WakeUp from systick interrupt.


    You can stop that with HAL_SuspendTick

     


    @curiae wrote:

    I want to start wake-up at arbitrary time. in the SysTick_Callback.


    Why would you do that in the SysTick callback?

    Why not just use the HAL_RTCEx_SetWakeUpTimer_IT ?

    Super User
    December 18, 2024