<?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: K21: RTC code crashes later rev silicon in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K21-RTC-code-crashes-later-rev-silicon/m-p/821039#M49665</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Robin, Thanks for the suggestions. I didn't know that number was the mask set.&amp;nbsp; Information as follows:&lt;/P&gt;&lt;P&gt;The old 'Rev1' chip (as reported by BDM) is MK21FX512V12/2N03G.&amp;nbsp; It has VBAT fed by battery and +3.3V via a diode.&lt;/P&gt;&lt;P&gt;The later 'Rev9' chip is MK22FX512VLK12/1N41K.&amp;nbsp; VBAT is floating on this system.&amp;nbsp; I'm convinced that this is the reason for the exception.&lt;/P&gt;&lt;P&gt;It would be nice to&amp;nbsp;have a little more granularity in the interrupt handler for this; Hard Fault Exception isn't terribly helpful.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 02 Sep 2018 23:21:18 GMT</pubDate>
    <dc:creator>rhysdrummond</dc:creator>
    <dc:date>2018-09-02T23:21:18Z</dc:date>
    <item>
      <title>K21: RTC code crashes later rev silicon</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K21-RTC-code-crashes-later-rev-silicon/m-p/821036#M49662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have some Processor Expert code that uses the RTC on an MK21FX512VMC12.&amp;nbsp; On one of our systems (chip rev ID = 1) this works with no problems. On a newer system (chip rev ID = 9) the code&amp;nbsp;hits an exception:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;PE_ISR(&lt;STRONG&gt;Cpu_Interrupt&lt;/STRONG&gt;)&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;&amp;nbsp;{ PE_DEBUGHALT(); }&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;When we disable the RTC and comment out the referencing code it works fine.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;Apparently there is some significant silicon difference that breaks this.&amp;nbsp; Any ideas?&amp;nbsp; I plan to query the PE guys as well regarding this, as if there was a fix, the PE components should know about it and work around it accordingly, perhaps.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Aug 2018 02:31:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K21-RTC-code-crashes-later-rev-silicon/m-p/821036#M49662</guid>
      <dc:creator>rhysdrummond</dc:creator>
      <dc:date>2018-08-24T02:31:36Z</dc:date>
    </item>
    <item>
      <title>Re: K21: RTC code crashes later rev silicon</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K21-RTC-code-crashes-later-rev-silicon/m-p/821037#M49663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using help from &lt;A href="https://mcuoneclipse.com/2012/02/20/oh-my-an-interrupt/"&gt;Erich Styger&lt;/A&gt;&amp;nbsp;I've ascertained that the interrupt is a Hard Fault. Not sure if that helps diagnose the fault.&lt;BR /&gt;My register dump is as follows:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="RTC_HF_RegDump.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/67409iEA077CAE7FA92AB9/image-size/large?v=v2&amp;amp;px=999" role="button" title="RTC_HF_RegDump.jpg" alt="RTC_HF_RegDump.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Not really sure what to do with that info, tbh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Aug 2018 02:12:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K21-RTC-code-crashes-later-rev-silicon/m-p/821037#M49663</guid>
      <dc:creator>rhysdrummond</dc:creator>
      <dc:date>2018-08-27T02:12:05Z</dc:date>
    </item>
    <item>
      <title>Re: K21: RTC code crashes later rev silicon</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K21-RTC-code-crashes-later-rev-silicon/m-p/821038#M49664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rhys Drummond,&lt;/P&gt;&lt;P&gt;Would you please tell us the MaskSet and PartNumber of the two versions K21 chip?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="MK21FN1M0V12 2N03G.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/67783i6D08F7A62917026D/image-size/large?v=v2&amp;amp;px=999" role="button" title="MK21FN1M0V12 2N03G.png" alt="MK21FN1M0V12 2N03G.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;When create an MCU project based on Processor Expert, I can only find the difference between Device(MK21FX512 and MK21FX512A).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="MK21FX512.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/67823i0A18B125705A5B34/image-size/large?v=v2&amp;amp;px=999" role="button" title="MK21FX512.png" alt="MK21FX512.png" /&gt;&lt;/span&gt;&lt;BR /&gt;It will include difference headfiles(base on different Reference Manual K22P121M120SF5RM and K22P121M120SF5V2RM).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="headfile.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/67869iB1128223A814A5C8/image-size/large?v=v2&amp;amp;px=999" role="button" title="headfile.png" alt="headfile.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Please refer &lt;A href="https://mcuoneclipse.com/2012/11/24/debugging-hard-faults-on-arm-cortex-m/"&gt;Debugging Hard Faults on ARM Cortex-M&lt;/A&gt; find out what is causing the problem.&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>Mon, 27 Aug 2018 03:25:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K21-RTC-code-crashes-later-rev-silicon/m-p/821038#M49664</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2018-08-27T03:25:16Z</dc:date>
    </item>
    <item>
      <title>Re: K21: RTC code crashes later rev silicon</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K21-RTC-code-crashes-later-rev-silicon/m-p/821039#M49665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Robin, Thanks for the suggestions. I didn't know that number was the mask set.&amp;nbsp; Information as follows:&lt;/P&gt;&lt;P&gt;The old 'Rev1' chip (as reported by BDM) is MK21FX512V12/2N03G.&amp;nbsp; It has VBAT fed by battery and +3.3V via a diode.&lt;/P&gt;&lt;P&gt;The later 'Rev9' chip is MK22FX512VLK12/1N41K.&amp;nbsp; VBAT is floating on this system.&amp;nbsp; I'm convinced that this is the reason for the exception.&lt;/P&gt;&lt;P&gt;It would be nice to&amp;nbsp;have a little more granularity in the interrupt handler for this; Hard Fault Exception isn't terribly helpful.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Sep 2018 23:21:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K21-RTC-code-crashes-later-rev-silicon/m-p/821039#M49665</guid>
      <dc:creator>rhysdrummond</dc:creator>
      <dc:date>2018-09-02T23:21:18Z</dc:date>
    </item>
    <item>
      <title>Re: K21: RTC code crashes later rev silicon</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K21-RTC-code-crashes-later-rev-silicon/m-p/821040#M49666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are some difference between these two MCU.&lt;BR /&gt;Please read the:&amp;nbsp;&lt;A href="https://www.nxp.com/docs/en/engineering-bulletin/EB811.pdf"&gt;EB811 Kinetis K22F 120 MHz Family Mask Sets and Revision Numbers&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The PartNumber should be MK22FX512&lt;STRONG&gt;A&lt;/STRONG&gt;VLK12 for the MaskSet &lt;A href="https://www.nxp.com/docs/en/errata/KINETIS_K_1N41K.pdf"&gt;1N41K&lt;/A&gt;, please download the corresponding &lt;A href="https://www.nxp.com/docs/en/reference-manual/K22P80M120SF5V2RM.pdf"&gt;K22P80M120SF5V2RM &lt;/A&gt;and &lt;A href="https://www.nxp.com/docs/en/data-sheet/K22P80M120SF5V2.pdf"&gt;K22P80M120SF5V2&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;The difference of register will cause hardfault.&lt;BR /&gt;Please try to reconfigure the MCU PartNumber in Processor Expert.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2018 02:25:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K21-RTC-code-crashes-later-rev-silicon/m-p/821040#M49666</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2018-09-04T02:25:04Z</dc:date>
    </item>
    <item>
      <title>Re: K21: RTC code crashes later rev silicon</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K21-RTC-code-crashes-later-rev-silicon/m-p/821041#M49667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rhys&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RTC registers cannot be accessed (they will hard-fault) if VBAT is not present.&lt;/P&gt;&lt;P&gt;There are a number of topics discussing this - eg. &lt;A href="https://community.nxp.com/thread/329285"&gt;How to detect if VBAT supply is present for RTC to work?&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All designs using RTC (in chips with VBAT and battery) must therefore be able to handle the case when the battery has depleted or been removed, otherwise the products will fail to start any more. If there is a hard wire connection from the power supply to VBAT this guarantees the operation.&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;SPAN&gt;Kinetis: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fkinetis.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis.html&lt;/A&gt;&lt;BR /&gt;Kinetis K21/K22/K24:&lt;BR /&gt;&lt;SPAN&gt;- &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fkinetis%2FTWR-K21D50M.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis/TWR-K21D50M.html&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;- &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fkinetis%2FTWR-K21F120M.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis/TWR-K21F120M.html&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;- &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fkinetis%2FFRDM-K22F.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis/FRDM-K22F.html&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;- &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fkinetis%2FTWR-K22F120M.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis/TWR-K22F120M.html&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;- &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fkinetis%2FBLAZE_K22.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis/BLAZE_K22.html&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;- &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fkinetis%2FtinyK22.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis/tinyK22.html&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;- &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fkinetis%2FTWR-K24F120M.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis/TWR-K24F120M.html&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2018 09:50:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K21-RTC-code-crashes-later-rev-silicon/m-p/821041#M49667</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2018-09-04T09:50:08Z</dc:date>
    </item>
  </channel>
</rss>

