Skip to main content
RAnan.3
Associate III
April 4, 2022
Solved

Does entering sleep mode stop general purpose timer in STM32CubeMX

  • April 4, 2022
  • 2 replies
  • 2406 views

Iam using STM32L452RC. I want my controller to go in sleep mode when received an interrupt from USB CDC. While exploring I got these two lines from data sheet

The Normal Sleep mode stops the processor clock, but all peripherals keep on running. On the STM32 clock tree, that means:

■ FCLK (Cortex Clock) stops

■ All the other activated clocks run

This says FCLK (Cortex Clock) stops. Will this affect the timers. I use TIM2 for my project which is a general purpose timer.

This topic has been closed for replies.
Best answer by Artur IWANICKI

Hello,

Sleep mode will not stop timer2. APB1, APB2 clocks (used for peripherals, including timers) are still running. General purpose timers are stopped in STOP modes as all high frequency clocks are frozen in this state.

2 replies

Artur IWANICKIBest answer
ST Employee
April 4, 2022

Hello,

Sleep mode will not stop timer2. APB1, APB2 clocks (used for peripherals, including timers) are still running. General purpose timers are stopped in STOP modes as all high frequency clocks are frozen in this state.

RAnan.3
RAnan.3Author
Associate III
April 5, 2022

Thank you.