<?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: RTC_GetStatusFlags results in hard fault in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/RTC-GetStatusFlags-results-in-hard-fault/m-p/679215#M41811</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;EXTAL32 and XTAL32 pins were the first that we tested and these were oscillating at the desired frequency.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;The exact chip name is MK26FN2M0CAC18R.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;This morning we were able to patch three boards (connect VBat) and all these now passed the test.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I now get the concern about the NMI pin&amp;nbsp;which should be connected to PTA4 pin. This pin is not connected in both our boards. I cannot judge the effects of this ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Jun 2017 06:26:04 GMT</pubDate>
    <dc:creator>bartrijvers</dc:creator>
    <dc:date>2017-06-09T06:26:04Z</dc:date>
    <item>
      <title>RTC_GetStatusFlags results in hard fault</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/RTC-GetStatusFlags-results-in-hard-fault/m-p/679212#M41808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello people,&lt;/P&gt;&lt;P&gt;We have 2 custom developed boards containing the same K26 processor. Both boards share many of the same components, while the 2nd board lacks some. The XTAL0 is a 16 MHz component, the same for both boards, connected via 0 ohm resistors on one board and lacking these resistors on the other.&lt;/P&gt;&lt;P&gt;The XTAL32 is fed with a 32.768 oscillator, the same component and circuitry for both devices.&lt;/P&gt;&lt;P&gt;Now the weird this is that the production test code successfully initializes the internal RTC on board 1 and gets into a hard fault on board 2 with the call to&amp;nbsp;RTC_GetStatusFlags() in the RTC_Init() function.&lt;/P&gt;&lt;P&gt;The same thing can be reproduced (consistantly) with the rtc_func_twr65f180m example in SDK 2.2.&lt;/P&gt;&lt;P&gt;I attached a Kinetis debugger output of the production test, where I have a hard-fault hardler installed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What could be causing this ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jun 2017 09:26:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/RTC-GetStatusFlags-results-in-hard-fault/m-p/679212#M41808</guid>
      <dc:creator>bartrijvers</dc:creator>
      <dc:date>2017-06-08T09:26:50Z</dc:date>
    </item>
    <item>
      <title>Re: RTC_GetStatusFlags results in hard fault</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/RTC-GetStatusFlags-results-in-hard-fault/m-p/679213#M41809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A detailed look reveals a difference in the schematics: for the 2nd device, the VBAT is not connected, where device 1 it is connected to VDD.&lt;/P&gt;&lt;P&gt;Could this cause this and possibly other problems ?&lt;/P&gt;&lt;P&gt;Is there a software / runtime detection possible to mark this test as FAIL rather than ending up in a hardfault handler ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jun 2017 13:56:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/RTC-GetStatusFlags-results-in-hard-fault/m-p/679213#M41809</guid>
      <dc:creator>bartrijvers</dc:creator>
      <dc:date>2017-06-08T13:56:18Z</dc:date>
    </item>
    <item>
      <title>Re: RTC_GetStatusFlags results in hard fault</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/RTC-GetStatusFlags-results-in-hard-fault/m-p/679214#M41810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Bart Rijvers,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; I don't think it is related to the VBAT pin.&lt;/P&gt;&lt;P&gt;&amp;nbsp; 1. Please check the EXTAL32 and XTAL32 pin, whether the crystal is oscillating?&lt;/P&gt;&lt;P&gt;&amp;nbsp; 2. Check NMI pin, whether you add external 4.7K to 10K pull up resistor?&lt;/P&gt;&lt;P&gt;&amp;nbsp; 3. Tell me the full name of your chip. You also can post some debug register information of RTC and SIM register.&lt;/P&gt;&lt;P&gt;&amp;nbsp; Please check these points at first.&lt;/P&gt;&lt;P&gt;&amp;nbsp; Any updated information, please let me know!&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P&gt;&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>Fri, 09 Jun 2017 03:26:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/RTC-GetStatusFlags-results-in-hard-fault/m-p/679214#M41810</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2017-06-09T03:26:51Z</dc:date>
    </item>
    <item>
      <title>Re: RTC_GetStatusFlags results in hard fault</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/RTC-GetStatusFlags-results-in-hard-fault/m-p/679215#M41811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;EXTAL32 and XTAL32 pins were the first that we tested and these were oscillating at the desired frequency.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;The exact chip name is MK26FN2M0CAC18R.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;This morning we were able to patch three boards (connect VBat) and all these now passed the test.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I now get the concern about the NMI pin&amp;nbsp;which should be connected to PTA4 pin. This pin is not connected in both our boards. I cannot judge the effects of this ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jun 2017 06:26:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/RTC-GetStatusFlags-results-in-hard-fault/m-p/679215#M41811</guid>
      <dc:creator>bartrijvers</dc:creator>
      <dc:date>2017-06-09T06:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: RTC_GetStatusFlags results in hard fault</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/RTC-GetStatusFlags-results-in-hard-fault/m-p/679216#M41812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Bart Rijvers,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If you can, you can try to add the pull up resistor to the NMI pin in your issue board.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If you PCB layout can't add it, you can debug your issue board, add the NMI interrupt ISR code, and put a break point in it, then check, whether it can enter NMI ISR.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Besides, you can also try to connect VBAT and test again in your issue board.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Just to find the root problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp; Any updated information, please let me know!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P&gt;&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>Mon, 12 Jun 2017 03:05:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/RTC-GetStatusFlags-results-in-hard-fault/m-p/679216#M41812</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2017-06-12T03:05:19Z</dc:date>
    </item>
    <item>
      <title>Re: RTC_GetStatusFlags results in hard fault</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/RTC-GetStatusFlags-results-in-hard-fault/m-p/679217#M41813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Both boards cannot be patched for the NMI pin.&lt;/P&gt;&lt;P&gt;I registered a NMI handler and saw it is never tripped during any of my test runs. To be safe, I disabled the external NMI interrupt in the Flash option register and added an internal pull-up on the PTA 4 pin.&lt;/P&gt;&lt;P&gt;The RM paragraph 49.4.1 is pretty clear on the matter:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="rtc_rm_hardfault.gif"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/22417iAB4A18A7FFEFAE99/image-size/large?v=v2&amp;amp;px=999" role="button" title="rtc_rm_hardfault.gif" alt="rtc_rm_hardfault.gif" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jun 2017 11:52:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/RTC-GetStatusFlags-results-in-hard-fault/m-p/679217#M41813</guid>
      <dc:creator>bartrijvers</dc:creator>
      <dc:date>2017-06-12T11:52:29Z</dc:date>
    </item>
  </channel>
</rss>

