Quantcast
Channel: Forum - Recent Threads
Viewing all articles
Browse latest Browse all 5781

RTC open timeout

$
0
0

I have an RTC thread:

and initialization code in thread entry:

void date_time_thread_entry(void) {

static rtc_time_t dateandtime={0};
ssp_err_t err;

dateandtime.tm_mday=1;
dateandtime.tm_mon=1;
dateandtime.tm_year=17;
dateandtime.tm_hour=0;
dateandtime.tm_min=0;
dateandtime.tm_sec=0;

err = g_rtc.p_api->open(g_rtc.p_ctrl,g_rtc.p_cfg);
if(SSP_SUCCESS != err) // set a breakpoint here and check the value of err
{
while(1);
}

 

the open() function always returns timeout.

 

We have a 32.728kHz crystal attached to XCIN and XCOUT with 12pF caps.

A coin cell is attached to VBATT.

 

I saw in the open() function that sub_osc clock is started here.

 

Why the timeout?


Viewing all articles
Browse latest Browse all 5781

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>