<?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 Default_Handler what is the source? in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Default-Handler-what-is-the-source/m-p/469289#M28355</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good morning&lt;/P&gt;&lt;P&gt;I have a serious problem detecting the source of the interrupt defaulting to the Default handler,&lt;/P&gt;&lt;P&gt;I need a&amp;nbsp; procedure to identify what is causing this,&lt;/P&gt;&lt;P&gt;is there a guideline??+&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pietro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Mar 2016 16:17:19 GMT</pubDate>
    <dc:creator>pietrodicastri</dc:creator>
    <dc:date>2016-03-11T16:17:19Z</dc:date>
    <item>
      <title>Default_Handler what is the source?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Default-Handler-what-is-the-source/m-p/469289#M28355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good morning&lt;/P&gt;&lt;P&gt;I have a serious problem detecting the source of the interrupt defaulting to the Default handler,&lt;/P&gt;&lt;P&gt;I need a&amp;nbsp; procedure to identify what is causing this,&lt;/P&gt;&lt;P&gt;is there a guideline??+&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pietro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Mar 2016 16:17:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Default-Handler-what-is-the-source/m-p/469289#M28355</guid>
      <dc:creator>pietrodicastri</dc:creator>
      <dc:date>2016-03-11T16:17:19Z</dc:date>
    </item>
    <item>
      <title>Re: Default_Handler what is the source?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Default-Handler-what-is-the-source/m-p/469290#M28356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There's an article &lt;A href="http://mcuoneclipse.com/2012/02/20/oh-my-an-interrupt/"&gt;here&lt;/A&gt;​ on tracking down interrupt sources.&amp;nbsp; Splitting each interrupt out to its own handler seems to be the easiest way to deal with it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For me, it's usually a hardfault.&amp;nbsp; If that's the case, you'll see a 3 in the exception number in the XPSR register.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Scott&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Mar 2016 21:27:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Default-Handler-what-is-the-source/m-p/469290#M28356</guid>
      <dc:creator>scottm</dc:creator>
      <dc:date>2016-03-11T21:27:42Z</dc:date>
    </item>
    <item>
      <title>Re: Default_Handler what is the source?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Default-Handler-what-is-the-source/m-p/469291#M28357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hei Scott&lt;/P&gt;&lt;P&gt;The document is suggesting to assign a separate handler to each vector. I was thinking to analyse the stack to get&lt;/P&gt;&lt;P&gt;the PC where it was fired. Have you a suggestion for such analysis ??&lt;/P&gt;&lt;P&gt;It is not a fault, it is already handled..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pietro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Mar 2016 14:06:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Default-Handler-what-is-the-source/m-p/469291#M28357</guid>
      <dc:creator>pietrodicastri</dc:creator>
      <dc:date>2016-03-15T14:06:45Z</dc:date>
    </item>
    <item>
      <title>Re: Default_Handler what is the source?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Default-Handler-what-is-the-source/m-p/469292#M28358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pietro,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe you can refer this&amp;nbsp; Application Note 209 &lt;A href="http://www.keil.com/appnotes/files/apnt209.pdf"&gt;Using Cortex-M3 and Cortex-M4 Fault Exception&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;I have used the method (see the "Determining where the exception occurred" in that document) on CodeWarrior10.6&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&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Mar 2016 08:33:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Default-Handler-what-is-the-source/m-p/469292#M28358</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2016-03-17T08:33:45Z</dc:date>
    </item>
    <item>
      <title>Re: Default_Handler what is the source?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Default-Handler-what-is-the-source/m-p/469293#M28359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="http://mcuoneclipse.com/2012/11/24/debugging-hard-faults-on-arm-cortex-m/" title="http://mcuoneclipse.com/2012/11/24/debugging-hard-faults-on-arm-cortex-m/"&gt;Debugging Hard Faults on ARM Cortex-M | MCU on Eclipse&lt;/A&gt;&lt;/P&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;P&gt;&lt;/P&gt;&lt;P&gt;If you are looking for an NVIC-triggered interrupt, then use the 'interrupt in process' registers in NVIC to see 'who', and while usually 'unrelated' the 'old-PC' is visible right on the stack in the interrupt frame once the handler is entered.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Mar 2016 13:11:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Default-Handler-what-is-the-source/m-p/469293#M28359</guid>
      <dc:creator>egoodii</dc:creator>
      <dc:date>2016-03-17T13:11:36Z</dc:date>
    </item>
  </channel>
</rss>

