Tool/software:
Hi team,
We are trying to bring up Internal RTC in the sensor example for CC1314R10. While updating the timestamp before starting the FreeRTOS scheduler, it updates and works fine. In this we are facing an issue whenever updating the timestamp after the scheduler starts; RF tasks never came from semwait(). And even locks if we add a delay next to the updating timestamp never came out from the delay.
This is what we are used to for updating the timestamp.
u32_timestamp = current epoch timestamp.
subsec_value = ((u32_timestamp % 1) * RTC_TICKS_PER_SECOND);
AONRTCDisable();
AONRTCChannelDisable(AON_RTC_CH0);
HWREG(AON_RTC_BASE + AON_RTC_O_SEC) = u32_timestamp;
HWREG(AON_RTC_BASE + AON_RTC_O_SUBSEC) = subsec_value; // Sub-seconds
AONRTCChannelEnable(AON_RTC_CH0);
AONRTCCombinedEventConfig(AON_RTC_CH0);
AONRTCEnable();
Kindly support us to update the timestamp whenever the current time is received from the collector.
Regards,
Manivel.