Skip to main content
Associate II
January 26, 2024
Solved

RTC Problem

  • January 26, 2024
  • 3 replies
  • 1889 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

 

 

 

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.SBest answer
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

 
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

Associate II
January 26, 2024

I missed this information ;)

Thanks again !

Ghislain