2024-10-24 06:27 AM
Hello everyone,
I am currently working on the (STM32H503RBT6)RTC periodic wakeup part (I did it in 10s(bare metal programing) ) but this is not enough timing so I want to change 1 hour or more than 1 hour. actually, I tried to do it, but I can't find the solutions, so please guide me on the correct way to find the solutions
Thanks.
2024-10-24 06:42 AM
Hi,
That's easy, just set the Prescaler and RTC_WUTR appropriately...
Kind regards
Pedro
2024-10-24 10:17 PM
Hi @PGump.1 , actually I wrote bare-metal program so still confusing to work on it, can you please suggest any baremetal program for periodic wakeup.
thanks
2024-10-24 10:20 PM
Hi,
Post your code, and we'll see what is a good fit...
Kind regards
Pedro
2024-10-25 10:36 PM - edited 2024-10-25 10:41 PM
Hi @PGump.1,
actually, I am Try to writing a bare metal code, not using hal code, I set proper prescaler value and WUT value(its not set properly)
This enables the standby mode and wakeup pin
this step is RTC init
stand by mode enable
wakeup pin enable
set wakeup time
this pictures are used to set standby mode and enable wakeup pin, set the wakeup timer.
and one more thing, WUT value is not updating during wakeup time setup process, i can't understand this concept
could you please explain me.
Thanks.
2024-10-27 05:07 PM
Hi,
You say the timer wakes up at 10 second intervals. It looks like your code sets the timer to 60 seconds. Is that the problem?
What is PA0 connected to? A switch?
Kind regards
Pedro