2024-12-24 01:44 AM
Hello STM32 Community,
I am using the STM32F407G-DISC1 development board and have successfully implemented an RTC alarm that triggers every minute. The RTC is configured to use the LSI (Low-Speed Internal) clock signal.
My goal is to have the microcontroller enter sleep mode and wake up after 3 minutes using the RTC wake-up feature. However, when the MCU enters sleep mode, it wakes up prematurely, within only 2 seconds, instead of the expected 3-minute wake-up period.
I would appreciate any assistance or insights into resolving this issue. Has anyone encountered a similar problem when using the LSI clock for RTC wake-up, or can you suggest any potential causes for this behavior?
Thank you in advance for your help!
2024-12-24 06:13 AM
Procedure for waking up in the future:
Your current code wakes up when seconds = 1 and ignores minutes.