cancel
Showing results for 
Search instead for 
Did you mean: 

WakeUp from STOPMode at arbitrary time

curiae
Associate III

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,

 

3 REPLIES 3
Sarra.S
ST Employee

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

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.


@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 ?