I'm trying to use the internal RTC clock module as per configuration below. Initialization seems okay.
But variable "date" does not increment seconds and so is the variable "mydate".
What could be wrong?
Here is my RTC config -
RTC_GetDatetime(RTC,&date); // seconds should be incrementing at 1 sec rate but it doesn't
mydate = date;
/* Enable the external RTC 32K Oscillator */
SYSCON->RTCOSCCTRL |= SYSCON_RTCOSCCTRL_EN_MASK;
/* Init RTC */
/* Set a start date & time */
date.year = 2019U;
date.month = 2U;
date.day = 9U;
date.hour = 9U;
date.minute = 0;
date.second = 0;
/* RTC time counter has to be stopped before setting the date & time in the TSR register */
/* Set RTC time to default */
/* Start the RTC time counter */