<?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 Re: [KEAZN64] Configuring RTC always causing &amp;quot;HardFault&amp;quot; exception in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KEAZN64-Configuring-RTC-always-causing-quot-HardFault-quot/m-p/826921#M49974</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your clarification.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know how I missed this point :smileygrin:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Aug 2018 05:24:45 GMT</pubDate>
    <dc:creator>mohammedaboelna</dc:creator>
    <dc:date>2018-08-28T05:24:45Z</dc:date>
    <item>
      <title>[KEAZN64] Configuring RTC always causing "HardFault" exception</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KEAZN64-Configuring-RTC-always-causing-quot-HardFault-quot/m-p/826917#M49970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to configure RTC in target cortex-M0 KEAZN64 as follows;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SIM_PINSEL |= SIM_PINSEL_RTCPS_MASK;&amp;nbsp; /* To get the toggled pin on PTC5 */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RTC_MOD = 16000;&amp;nbsp; /* Setting MOD value by 16000 */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;---------------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After debugging, I found out that any write any of RTC registers configuration causes "hardfault" exception (&lt;STRONG&gt;HardFault_Handler)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Any help or advice please ?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Thank you inn advance.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Aug 2018 11:07:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KEAZN64-Configuring-RTC-always-causing-quot-HardFault-quot/m-p/826917#M49970</guid>
      <dc:creator>mohammedaboelna</dc:creator>
      <dc:date>2018-08-27T11:07:54Z</dc:date>
    </item>
    <item>
      <title>Re: [KEAZN64] Configuring RTC always causing "HardFault" exception</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KEAZN64-Configuring-RTC-always-causing-quot-HardFault-quot/m-p/826918#M49971</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;You need to first enable the clock to the RTC module - see the SIM_SCGC register.&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;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fservices.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/services.html&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Aug 2018 22:05:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KEAZN64-Configuring-RTC-always-causing-quot-HardFault-quot/m-p/826918#M49971</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2018-08-27T22:05:46Z</dc:date>
    </item>
    <item>
      <title>Re: [KEAZN64] Configuring RTC always causing "HardFault" exception</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KEAZN64-Configuring-RTC-always-causing-quot-HardFault-quot/m-p/826919#M49972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mohammed Aboelnasr,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As Mark said, you need to enable the clock gate SIM_SCGC[RTC] of RTC module first.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="SIM_SCGC[RTC].png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/68042i7A525F63B8DB125B/image-size/large?v=v2&amp;amp;px=999" role="button" title="SIM_SCGC[RTC].png" alt="SIM_SCGC[RTC].png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can direct refer the Lab3_Blinky_RTC_KEA64 example of &lt;A href="https://www.nxp.com/downloads/en/device-drivers/SDK-DRIVER-FRDM-KEA-S32DS.zip"&gt;SDK-DRIVER-FRDM-KEA-S32DS&lt;/A&gt;.(...\SDK-DRIVER-FRDM-KEA-S32DS\KEAZ64 Driver testcode and Examples (for S32DS)\KEAZ64_Lab Code Examples\Lab3_Blinky_RTC_KEA64\src)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Robin&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2018 01:57:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KEAZN64-Configuring-RTC-always-causing-quot-HardFault-quot/m-p/826919#M49972</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2018-08-28T01:57:33Z</dc:date>
    </item>
    <item>
      <title>Re: [KEAZN64] Configuring RTC always causing "HardFault" exception</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KEAZN64-Configuring-RTC-always-causing-quot-HardFault-quot/m-p/826920#M49973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mark,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for this note. I don't know how I missed the clock gating control !! :smileygrin:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2018 05:23:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KEAZN64-Configuring-RTC-always-causing-quot-HardFault-quot/m-p/826920#M49973</guid>
      <dc:creator>mohammedaboelna</dc:creator>
      <dc:date>2018-08-28T05:23:25Z</dc:date>
    </item>
    <item>
      <title>Re: [KEAZN64] Configuring RTC always causing "HardFault" exception</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KEAZN64-Configuring-RTC-always-causing-quot-HardFault-quot/m-p/826921#M49974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your clarification.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know how I missed this point :smileygrin:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2018 05:24:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KEAZN64-Configuring-RTC-always-causing-quot-HardFault-quot/m-p/826921#M49974</guid>
      <dc:creator>mohammedaboelna</dc:creator>
      <dc:date>2018-08-28T05:24:45Z</dc:date>
    </item>
  </channel>
</rss>

