Skip to main content
Associate II
January 26, 2024
Solved

RTC Problem

  • January 26, 2024
  • 3 replies
  • 3134 views

I use the NUCLEOH563-ZI board and I want to use RTC. I configured the RTC with the LSI clock. I loaded a default date/time. On the other hand, my time does not change...

My Init code :

Ghislain_Clement_0-1706261618957.png

My source code to retrieve the time

Ghislain_Clement_1-1706261681609.png

Thank you for your help !

Ghislain

 

 

 

This topic has been closed for replies.
Best answer by Sarra.S

Hello @Ghislain_Clement

Please check if the RTC_TR and RTC_DR registers get updated

Also, you may want to check: STM32CubeH5ProjectsNUCLEO-H563ZIExamplesRTC

 

3 replies

Sarra.SAnswer
ST Employee
January 26, 2024

Hello @Ghislain_Clement

Please check if the RTC_TR and RTC_DR registers get updated

Also, you may want to check: STM32CubeH5ProjectsNUCLEO-H563ZIExamplesRTC

 
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.
Associate II
January 26, 2024

THANKS ! I found the solution. I initialized the time before the date and it works.

ST Employee
January 26, 2024

Great! I guess it turned out to be this gotcha

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.
Associate II
January 26, 2024

I missed this information ;)

Thanks again !

Ghislain