Configuration
H/W: AM437x Industrial Development Kit (TMDSIDK437X)
S/W: processor_sdk_rtos_am437x_6_03_00_106 (incl. pdk_am437x_1_0_17)
Hi all,
I am experiencing spurious behaviour when using the AM437x RTC with an internal clock source (32.768kHz derived from the 192MHz Peripheral PLL). Behaviour I've observed includes the RTC running either too slowly (approx. 7.7% slower than real-time) or sometimes failing to start at all. This issue was originally observed on our custom board, however I have been able to recreate it using the IDK. Our custom board does not have an external 32.768kHz oscillator and hence we are constrained to using the internal source for out application. The IDK behaves as expected when configured to use the external clock source.
The issue can be re-created by using the test applications included within the PDK - either the DIAG application:
C:\ti\pdk_am437x_1_0_17\packages\ti\board\diag\rtc\src
with clock source defined as:
CSL_rtcClkSrc clkSrc = CSL_RTC_CLK_SRC_INTERNAL;
C:\ti\pdk_am437x_1_0_17\packages\ti\starterware\examples\rtc\clock
with clock source defined as:
/** \brief IP default configuration. */ rtcAppRtcObj_t RTCAPPRTCOBJ_DEFAULT = { 0U, /* baseAddr */ RTC_CLK_SRC_INTERNAL, /* clkSrc */ { 0U, /* hours */ 0U, /* minutes */ 0U, /* seconds */ TIME_MODE_24_HR, /* timeMode */ TIME_MERIDIEM_AM, /* meridiemMode */ }, /* timeVal */ { 0U, /* year */ 0U, /* month */ 0U, /* day */ 0U, /* weekDay */ }, /* dateVal */ { 0U, /* hours */ 0U, /* minutes */ 0U, /* seconds */ TIME_MODE_24_HR, /* timeMode */ TIME_MERIDIEM_AM, /* meridiemMode */ }, /* alarmTime */ { 0U, /* year */ 0U, /* month */ 0U, /* day */ 0U, /* weekDay */ }, /* alarmDate */ { 0U, /* rtcAppTimerEvt */ 0U /* rtcAppAlarmEvt */ }, /* rtcAppClockEvt_t */ { INTC_TRIG_HIGH_LEVEL, /* trigType */ 0U, /* timerIntrNum */ 0U, /* alarmIntrNum */ 0x20U, /* intrPriority */ FALSE, /* isIntrSecure */ NULL, /* pFnIntrHandler */ } /* rtcAppIntrCfgObj */ }; /* rtcAppRtcObj_t */
Grateful for any assistance with identifying the root-cause of this issue.
Kind regards,
David