2023-11-08 02:47 AM
I'm looking for an example code with STM32G071 device using RTC interrupt to wakeup device from sleep mode based on HAL libraries. Thank you
Solved! Go to Solution.
2023-11-10 01:30 AM
Hello @RCase ,
In Sleep mode: CPU clock off, all peripherals including Cortex®-M0+ core peripherals such as NVIC, SysTick, etc. can run and wake up the CPU when an interrupt or an event occurs. So, SysTick timer interrupt can wake-up the CPU. For more information, I advise you to take a look to RM0444 Section 4.3 Low-power modes.
Also, I think this discussion can help you.
Thank you for your contribution in STCommunity.
Kaouthar
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.
2023-11-08 03:21 AM - edited 2023-11-08 03:21 AM
Hello @RCase ,
I recommend you to get inspired from these examples to configure your own project:
- PWR_SLEEP : This example explains how to enter the Sleep mode and wake up from this mode by using an interrupt.
- How to configure the RTC to wake up the STM32 periodically from Low Power modes: This FAQ descripts how to configure the RTC peripheral of the STM32 to wake up the STM32 periodically from a low power mode.
I hope this help you.
Kaouthar
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.
2023-11-09 06:16 AM
Is it possible to wakeup microcontroller from sleep mode using SystTick interrupt instead of RTC so to use it as TimeBase Source for my application? Thank you
2023-11-10 01:30 AM
Hello @RCase ,
In Sleep mode: CPU clock off, all peripherals including Cortex®-M0+ core peripherals such as NVIC, SysTick, etc. can run and wake up the CPU when an interrupt or an event occurs. So, SysTick timer interrupt can wake-up the CPU. For more information, I advise you to take a look to RM0444 Section 4.3 Low-power modes.
Also, I think this discussion can help you.
Thank you for your contribution in STCommunity.
Kaouthar
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.