<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic KS22XXX   RTC  REGISTER  FAULT in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KS22XXX-RTC-REGISTER-FAULT/m-p/778859#M47381</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;Following is my code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rtc_datetime_t mrtc_datetime_t;&lt;/P&gt;&lt;P&gt;rtc_config_t mrtc_config_t;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;memset(&amp;amp;mrtc_datetime_t,0,sizeof(rtc_datetime_t));&lt;/P&gt;&lt;P&gt;RTC_GetDefaultConfig(&amp;amp;mrtc_config);&lt;/P&gt;&lt;P&gt;RTC_Init(RTC,&amp;amp;mrtc_config_t);&lt;/P&gt;&lt;P&gt;RTC_StartTimer(RTC);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Feb 2018 10:10:22 GMT</pubDate>
    <dc:creator>召宝田</dc:creator>
    <dc:date>2018-02-01T10:10:22Z</dc:date>
    <item>
      <title>KS22XXX   RTC  REGISTER  FAULT</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KS22XXX-RTC-REGISTER-FAULT/m-p/778859#M47381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;Following is my code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rtc_datetime_t mrtc_datetime_t;&lt;/P&gt;&lt;P&gt;rtc_config_t mrtc_config_t;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;memset(&amp;amp;mrtc_datetime_t,0,sizeof(rtc_datetime_t));&lt;/P&gt;&lt;P&gt;RTC_GetDefaultConfig(&amp;amp;mrtc_config);&lt;/P&gt;&lt;P&gt;RTC_Init(RTC,&amp;amp;mrtc_config_t);&lt;/P&gt;&lt;P&gt;RTC_StartTimer(RTC);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Feb 2018 10:10:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KS22XXX-RTC-REGISTER-FAULT/m-p/778859#M47381</guid>
      <dc:creator>召宝田</dc:creator>
      <dc:date>2018-02-01T10:10:22Z</dc:date>
    </item>
    <item>
      <title>Re: KS22XXX   RTC  REGISTER  FAULT</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KS22XXX-RTC-REGISTER-FAULT/m-p/778860#M47382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before accessing RTC register you need to enable the RTC clock kin SIM_SCGC6. If not, you will have a hard fault.&lt;/P&gt;&lt;P&gt;In addition, &lt;STRONG&gt;VBAT&lt;/STRONG&gt; needs to be connected!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Feb 2018 13:52:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KS22XXX-RTC-REGISTER-FAULT/m-p/778860#M47382</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2018-02-01T13:52:12Z</dc:date>
    </item>
  </channel>
</rss>

