Hi,
I'm using come RTC code that bases on the example for the Beaglebone black and found that it does not work, function RTCModuleClkConfig() out of platform/beaglebone/rtc.c never returns. Reason can be found in line 183:
while(CM_WKUP_CM_L3_AON_CLKSTCTRL_CLKTRCTRL_SW_WKUP != (HWREG(SOC_CM_WKUP_REGS + CM_WKUP_CM_L3_AON_CLKSTCTRL) & CM_WKUP_CM_L3_AON_CLKSTCTRL_CLKTRCTRL));
This condition is never fulfilled and therefore blocks the initialisation. Simply removig this code solved the problem and RTC is working fine now.
So: what is this code for?