2019-01-21 09:34 PM
Hi, I had configured the clock to LSI RC 37KHz using cubemx with AsynchPrediv is 124 and synchPredivdivider is 295 after the RTC initialisation i'm trying to read the time using HAL_RTC_GetTime() but i'm getting the values what i initialised but doesn't increment. can anyone suggest how to solve above issue.
Thanks & Regards,
Vijay Rakesh
2019-01-22 04:45 AM
Read out RCC registers and check if LSION=1 in RCC_CSR and if LSI is selected in RCC_BDCR.RTCSEL.
JW
2019-01-22 09:38 PM
2019-01-22 11:40 PM
Hummmm...
And RTC_ISR.INIT?
JW
2019-01-23 12:54 AM
RTC_ISR.INIT was cleared i.e., RTC_ISR.INIT=0
Vijay Rakesh
2019-01-24 03:47 AM
Hi JW,
I'm awaiting for your valuable reply.
Vijay Rakesh
2019-01-24 04:40 AM
I have no more ideas.
You may perhaps look at some of the examples in Cube, run it on a "known good" board (such as Nucleo or Disco), and compare your code with the example and the registers in both cases.
JW
2019-01-24 10:53 PM
OK, I will try another examples and actually i was running the code on Disco board.
Vijay Rakesh
2019-01-29 09:18 PM
Hi,
Now RTC is running on LSI Clock and i'm transmitting data via UART2 but the RTC is not displaying updated values but while on reset it is showing updated values as shown in below image.
Thanks & Regards,
Vijay Rakesh.
2020-06-19 01:11 AM
I have completely same problem with F745 both with internal and external crystal. In addition only SubSecond increase correctly.
Edit: Solve it. just read time AFTER "reading date". you can't read only time, interesting. Maybe someone explain this why.