2019-08-20 12:13 AM
2019-08-20 05:52 AM
Unfortunately the RTC alarm isn't designed for that type of periodic wake up. The alarm mask works on decade rollovers: 1 second, 10 seconds, 1 minute, 10 minutes etc, but not 2 seconds, 5 minutes, anything like that. You might want to look at the WUT wakeup timer instead.
Jack Peacock
2019-08-20 06:14 AM
Do you have a MCU with LPTIM. That may be another option.
2019-08-20 10:30 AM
You could perhaps change the timebase, or advance the alarm after each event.
Generally the assorted examples are under the Cube HAL example trees in the repository for your specific model of STM32, which you fail to mention.
Expect you'll need to understand chip functionality, and code your own app.
2019-08-23 05:53 AM
Dear Jack - can you please share a code snipped for RTC periodic wake up @ 1 Sec.
I am using STM32F030F4P6
2019-08-23 05:54 AM
I am using STM32F030F4P6. This does not have LPTIM
2019-08-23 05:55 AM
I am using STM32F030F4P6.
Possible for you to share code snippet for 1 second periodic wake in RTC.