cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F429 Sleep mode and Systick

Pablo Leibovich
Associate II

Hi'

I'm using an STM32F429 in a project that needs to enter to sleep mode.

I can't determine if I need to disable manually the HAL tick previously to entering in sleep mode, or if the sleep mode enter instruction does it by itself. Can anyone tell me?

Thanks!

3 REPLIES 3
Nikita91
Lead II

Which sleep mode?

How do you enter sleep mode?

If its is WFI, the MCU will enter sleep mode then awake at the next interrupt.

If you don't want to be woken up by certain interrupts, you have to inhibit them before entering sleep.

Hi! I'm entering sleep mode in WFI mode. My question if when I enter WFI sleep mode with HAL, the instruction stops the systick interrupt or not, because that interrupt will appear in a millisecond. The HAL manual doesn't specify it clearly so I don't know if I need to stop systick manually. Thanks! El sáb., 11 de junio de 2022 08:42, ST Community escribió:

I don't use HAL so I can't answer you. But as usual with HAL you have to study its code to know what it does. And what is the path chosen by the designers of HAL.