2022-06-10 08:57 AM
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!
2022-06-11 04:42 AM
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.
2022-06-11 05:48 AM
2022-06-11 12:02 PM
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.