cancel
Showing results for 
Search instead for 
Did you mean: 

RTC Problem

Ghislain_Clement
Associate II

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

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Sarra.S
ST Employee

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.

View solution in original post

4 REPLIES 4
Sarra.S
ST Employee

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.

Ghislain_Clement
Associate II

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

Sarra.S
ST Employee

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.

I missed this information ;)

Thanks again !

Ghislain