AnsweredAssumed Answered

KS22XXX   RTC  REGISTER  FAULT

Question asked by 召宝 田 on Feb 1, 2018
Latest reply on Feb 1, 2018 by Mark Butcher

Hi,

Now I'm working on KS22xxxx. There is a problem that when I was initializing the RTC module through writing or reading the register of it, the processor would report a HARDWARE FAULT. I'm wondering what I have done have any issues.

Following is my code.

 

rtc_datetime_t mrtc_datetime_t;

rtc_config_t mrtc_config_t;

 

memset(&mrtc_datetime_t,0,sizeof(rtc_datetime_t));

RTC_GetDefaultConfig(&mrtc_config);

RTC_Init(RTC,&mrtc_config_t);

RTC_StartTimer(RTC);

Outcomes