<?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: How to Know which Peripheral is causing Hard Fault? in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-Know-which-Peripheral-is-causing-Hard-Fault/m-p/384539#M20629</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It would seem REALLY USEFUL if ALL the 'demo projects' just &lt;EM&gt;included&lt;/EM&gt; that 'fault handler' to give all 'newbies' just a little more info, as EVERYBODY runs into such faults at one time or another.&amp;nbsp; One difficulty, though, with the 'given' information is that the trouble is MOST LIKELY to be a 'write fault' (first setup to some peripheral register or the like) and the ARM architecture, Kinetis in particular, has 'write buffers', so the fault doesn't happen 'til a few clocks later', so the PC has 'moved on' (maybe even thru a 'call'), and in particular the 'Bus Fault Address Register' will NOT contain the 'downright useful' faulting address.&amp;nbsp; One 'test workaround' is to turn OFF such write buffering, at least to 'find' the code bug.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Sep 2014 18:32:29 GMT</pubDate>
    <dc:creator>egoodii</dc:creator>
    <dc:date>2014-09-17T18:32:29Z</dc:date>
    <item>
      <title>How to Know which Peripheral is causing Hard Fault?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-Know-which-Peripheral-is-causing-Hard-Fault/m-p/384531#M20621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;BR /&gt;I am using K60 with cw10.6. I am trying to debug the board using PE Multilink. It goes to the following loop in CPU.C&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="western"&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt; font-family: 'Courier New', monospace;"&gt;/*&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="western"&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt; font-family: 'Courier New', monospace;"&gt;** ===================================================================&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="western"&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt; font-family: 'Courier New', monospace;"&gt;** Method : Cpu_Cpu_ivINT_Hard_Fault (component MK60DN512LL10)&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="western"&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt; font-family: 'Courier New', monospace;"&gt;**&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="western"&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt; font-family: 'Courier New', monospace;"&gt;** Description :&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="western"&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt; font-family: 'Courier New', monospace;"&gt;** This ISR services an unused interrupt/exception vector.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="western"&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt; font-family: 'Courier New', monospace;"&gt;** This method is internal. It is used by Processor Expert only.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="western"&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt; font-family: 'Courier New', monospace;"&gt;** ===================================================================&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="western"&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt; font-family: 'Courier New', monospace;"&gt;*/&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="western"&gt;&lt;SPAN style="color: #000000; font-size: 10pt; font-family: 'Courier New', monospace;"&gt;PE_ISR(&lt;STRONG&gt;Cpu_ivINT_Hard_Fault&lt;/STRONG&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="western"&gt;&lt;SPAN style="color: #000000; font-size: 10pt; font-family: 'Courier New', monospace;"&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="western"&gt;&lt;SPAN style="color: #000000; font-size: 10pt; font-family: 'Courier New', monospace;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="western"&gt;&lt;SPAN style="color: #000000; font-size: 10pt; font-family: 'Courier New', monospace;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="western"&gt;&lt;SPAN style="color: #000000; font-size: 10pt; font-family: 'Courier New', monospace;"&gt;How Do I know which part of the code is creating this hard fault? Is there any tutorial or document which states how to debug efficiently using PE multilink / JTAG / SWD ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="western"&gt;&lt;SPAN style="color: #000000; font-size: 10pt; font-family: 'Courier New', monospace;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="western"&gt;&lt;SPAN style="color: #000000; font-size: 10pt; font-family: 'Courier New', monospace;"&gt;Kind Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="western"&gt;&lt;SPAN style="color: #000000; font-size: 10pt; font-family: 'Courier New', monospace;"&gt;Amit Kumar &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2014 11:17:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-Know-which-Peripheral-is-causing-Hard-Fault/m-p/384531#M20621</guid>
      <dc:creator>Amit_Kumar1</dc:creator>
      <dc:date>2014-08-27T11:17:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to Know which Peripheral is causing Hard Fault?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-Know-which-Peripheral-is-causing-Hard-Fault/m-p/384532#M20622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN lang="ES-TRAD" style="mso-ansi-language:ES-TRAD"&gt;Hello&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN lang="ES-TRAD" style="mso-ansi-language:ES-TRAD"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="ES-TRAD" style="mso-ansi-language:ES-TRAD"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Check &lt;SPAN class="GramE"&gt;this :&lt;/SPAN&gt; &lt;A href="http://mcuoneclipse.com/2012/11/24/debugging-hard-faults-on-arm-cortex-m/"&gt;http://mcuoneclipse.com/2012/11/24/debugging-hard-faults-on-arm-cortex-m/&lt;/A&gt;&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;Luis&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2014 11:23:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-Know-which-Peripheral-is-causing-Hard-Fault/m-p/384532#M20622</guid>
      <dc:creator>LuisCasado</dc:creator>
      <dc:date>2014-08-27T11:23:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to Know which Peripheral is causing Hard Fault?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-Know-which-Peripheral-is-causing-Hard-Fault/m-p/384533#M20623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Luis&lt;/P&gt;&lt;P&gt;Thanks for the quick reply.&amp;nbsp; This is what I was looking for.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Amit Kumar &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2014 11:37:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-Know-which-Peripheral-is-causing-Hard-Fault/m-p/384533#M20623</guid>
      <dc:creator>Amit_Kumar1</dc:creator>
      <dc:date>2014-08-27T11:37:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to Know which Peripheral is causing Hard Fault?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-Know-which-Peripheral-is-causing-Hard-Fault/m-p/384534#M20624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you discover what was wrong? Can you share it with us?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2014 19:46:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-Know-which-Peripheral-is-causing-Hard-Fault/m-p/384534#M20624</guid>
      <dc:creator>luizdavimartins</dc:creator>
      <dc:date>2014-09-16T19:46:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to Know which Peripheral is causing Hard Fault?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-Know-which-Peripheral-is-causing-Hard-Fault/m-p/384535#M20625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Luiz&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The RTC module was on but the VBAT was not powered on. That was creating a hardfault. There can be many issue causing this but for my case that was the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Amit Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2014 03:44:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-Know-which-Peripheral-is-causing-Hard-Fault/m-p/384535#M20625</guid>
      <dc:creator>Amit_Kumar1</dc:creator>
      <dc:date>2014-09-17T03:44:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to Know which Peripheral is causing Hard Fault?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-Know-which-Peripheral-is-causing-Hard-Fault/m-p/384536#M20626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I understand, Amit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm facing a similar issue with a KL04Z8 processor. However I got no VBAT pin here. I'm afraid there's something else causing this problem.&lt;/P&gt;&lt;P&gt;Would you have any clues on that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2014 12:59:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-Know-which-Peripheral-is-causing-Hard-Fault/m-p/384536#M20626</guid>
      <dc:creator>luizdavimartins</dc:creator>
      <dc:date>2014-09-17T12:59:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to Know which Peripheral is causing Hard Fault?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-Know-which-Peripheral-is-causing-Hard-Fault/m-p/384537#M20627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Luiz&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check the following link you might get some help here &lt;A href="http://mcuoneclipse.com/2012/11/24/debugging-hard-faults-on-arm-cortex-m/"&gt;http://mcuoneclipse.com/2012/11/24/debugging-hard-faults-on-arm-cortex-m/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Amit Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2014 13:04:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-Know-which-Peripheral-is-causing-Hard-Fault/m-p/384537#M20627</guid>
      <dc:creator>Amit_Kumar1</dc:creator>
      <dc:date>2014-09-17T13:04:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to Know which Peripheral is causing Hard Fault?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-Know-which-Peripheral-is-causing-Hard-Fault/m-p/384538#M20628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In addition to that: try to isolate the instruction causing the hard fault. It could be that you try to access a peripheral and the clocks are not enabled for it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2014 13:49:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-Know-which-Peripheral-is-causing-Hard-Fault/m-p/384538#M20628</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2014-09-17T13:49:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to Know which Peripheral is causing Hard Fault?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-Know-which-Peripheral-is-causing-Hard-Fault/m-p/384539#M20629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It would seem REALLY USEFUL if ALL the 'demo projects' just &lt;EM&gt;included&lt;/EM&gt; that 'fault handler' to give all 'newbies' just a little more info, as EVERYBODY runs into such faults at one time or another.&amp;nbsp; One difficulty, though, with the 'given' information is that the trouble is MOST LIKELY to be a 'write fault' (first setup to some peripheral register or the like) and the ARM architecture, Kinetis in particular, has 'write buffers', so the fault doesn't happen 'til a few clocks later', so the PC has 'moved on' (maybe even thru a 'call'), and in particular the 'Bus Fault Address Register' will NOT contain the 'downright useful' faulting address.&amp;nbsp; One 'test workaround' is to turn OFF such write buffering, at least to 'find' the code bug.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2014 18:32:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-Know-which-Peripheral-is-causing-Hard-Fault/m-p/384539#M20629</guid>
      <dc:creator>egoodii</dc:creator>
      <dc:date>2014-09-17T18:32:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to Know which Peripheral is causing Hard Fault?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-Know-which-Peripheral-is-causing-Hard-Fault/m-p/384540#M20630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Earl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in this case, it was even worse: This is a BUG on freescale Kinetis Design Studio.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The PE memory map was wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope they correct it ASAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks y'all.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Sep 2014 18:29:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-Know-which-Peripheral-is-causing-Hard-Fault/m-p/384540#M20630</guid>
      <dc:creator>luizdavimartins</dc:creator>
      <dc:date>2014-09-19T18:29:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to Know which Peripheral is causing Hard Fault?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-Know-which-Peripheral-is-causing-Hard-Fault/m-p/384541#M20631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;FYI, the wrong memory map (linker file) thread is in &lt;A _jive_internal="true" href="https://community.nxp.com/message/436064#436064" title="https://community.freescale.com/message/436064#436064"&gt;https://community.freescale.com/message/436064#436064&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Sep 2014 14:54:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-Know-which-Peripheral-is-causing-Hard-Fault/m-p/384541#M20631</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2014-09-21T14:54:09Z</dc:date>
    </item>
  </channel>
</rss>

