cancel
Showing results for 
Search instead for 
Did you mean: 

RTC Automatic Periodic Wake up in STM32H503RBT6 controller

Mohan30
Associate III

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.

5 REPLIES 5
PGump.1
Senior III

Hi,

That's easy, just set the Prescaler and RTC_WUTR appropriately...

Kind regards
Pedro

AI = Artificial Intelligence, NI = No Intelligence, RI = Real Intelligence.

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

Hi,

Post your code, and we'll see what is a good fit...

Kind regards
Pedro

 

AI = Artificial Intelligence, NI = No Intelligence, RI = Real Intelligence.

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

Mohan30_0-1729920618451.png  

this step is RTC init 

Mohan30_4-1729921098806.png

stand by mode enable

Mohan30_1-1729920689974.png

wakeup pin enable

Mohan30_2-1729920719650.png

set wakeup time

Mohan30_3-1729920800385.png

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.

PGump.1
Senior III

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

AI = Artificial Intelligence, NI = No Intelligence, RI = Real Intelligence.