cancel
Showing results for 
Search instead for 
Did you mean: 

Does entering sleep mode stop general purpose timer in STM32CubeMX

RAnan.3
Associate III

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.

1 ACCEPTED SOLUTION

Accepted Solutions
Artur IWANICKI
ST Employee

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.

View solution in original post

2 REPLIES 2
Artur IWANICKI
ST Employee

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.

Thank you.