This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

RTC initialisation fails

Genius 5820 points

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?