AnsweredAssumed Answered

RTC Problem

Question asked by yang wei on Jul 15, 2019
Latest reply on Jul 19, 2019 by Jorge Antonio Alcala Vazquez

I used the external crystal oscillator (32768HZ) for the real-time clock experiment, but I found that my read time is always 0:0:0 on January 1, 2016. I feel that the real-time clock is not counting.

The following is my configuration, can you help check if there is a problem?

 

The following is my program configuration and initialization

RTC_DRV_Init(RTCTIMER1, &rtcTimer1_Config0);
RTC_DRV_ConfigureSecondsInt(RTCTIMER1, &rtcTimer1_SecIntConfig0);
RTC_DRV_SetTimeDate(RTCTIMER1, &rtcTimer1_StartTime0);
RTC_DRV_StartCounter(RTCTIMER1);

 

if(Key_Test==1)
{
   Key_Test = 0;
   RTC_DRV_GetCurrentTimeDate(RTCTIMER1, &currentTime);
}

Finally, I found out that it was read on January 1, 2016, 0:00, 0:00.

Outcomes