Skip to main content
Associate III
January 17, 2025
Question

behavior after STOPMode

  • January 17, 2025
  • 1 reply
  • 421 views

Hello,

I observed how is going after HAL_PWR_EnterSTOPMode() execution without setting by HAL_RTCEx_SetWakeUpTimer_IT().
Then strange phenomenon occurred.
I presumed that power stop mode continues till interrupt and systick works even under power stop mode before experiment.
But after dozens of seconds from entering stop mode, MPU wokeup through reset and systick stopped.
How could I realize that systick works normally under power stop mode and not to wake up till interrupt?
Thanks,

1 reply

ST Employee
January 20, 2025

Hello @curiae

The SysTick timer is part of the Cortex core and is not clocked when the MCU is in STOP mode. After wakeup, it resumes the countdown from the value it contained before the WFI instruction. 

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.