<?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: K70_Unhandled Exception : Hardfault  in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K70-Unhandled-Exception-Hardfault/m-p/424976#M24455</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-size: 12.6000003814697px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&lt;SPAN style="font-size: 13.3333330154419px; line-height: 20px;"&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;Thanks&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; color: #303030;"&gt;&lt;A _jive_internal="true" data-avatarid="-1" data-content-finding="Community" data-userid="226516" data-username="yasuhikokoumoto" href="https://community.nxp.com/people/yasuhikokoumoto" style="padding: 0 3px 0 0; font-weight: inherit; font-style: inherit; font-size: 1.1em; font-family: inherit; color: #017bba;"&gt;&lt;SPAN style="color: #303030;"&gt;Yasuhiko Koumoto&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030; font-family: arial, helvetica, sans-serif;"&gt;Generally speaking, HardFault sometimes happens by &lt;STRONG&gt;accessing un-clocked peripherals&lt;/STRONG&gt;?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt; I am not aware on this ,please explain. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Please assist.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Jul 2015 07:07:39 GMT</pubDate>
    <dc:creator>chiranjeevn</dc:creator>
    <dc:date>2015-07-24T07:07:39Z</dc:date>
    <item>
      <title>K70_Unhandled Exception : Hardfault</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K70-Unhandled-Exception-Hardfault/m-p/424973#M24452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Please assist me to solve the issue K70_Unhandled Exception : Hardfault in K70 Module.Please find the attachment herewith .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Chiranjeev N&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Jul 2015 15:00:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K70-Unhandled-Exception-Hardfault/m-p/424973#M24452</guid>
      <dc:creator>chiranjeevn</dc:creator>
      <dc:date>2015-07-19T15:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: K70_Unhandled Exception : Hardfault</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K70-Unhandled-Exception-Hardfault/m-p/424974#M24453</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;do you develop a u-boot for K70?&lt;/P&gt;&lt;P&gt;What is the instruction at the erroneous PC 0x8b92?&lt;/P&gt;&lt;P&gt;Generally speaking, HardFault sometimes happens by accessing un-clocked peripherals.&lt;/P&gt;&lt;P&gt;Please check it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Yasuhiko Koumoto.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Jul 2015 21:27:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K70-Unhandled-Exception-Hardfault/m-p/424974#M24453</guid>
      <dc:creator>yasuhikokoumoto</dc:creator>
      <dc:date>2015-07-19T21:27:20Z</dc:date>
    </item>
    <item>
      <title>Re: K70_Unhandled Exception : Hardfault</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K70-Unhandled-Exception-Hardfault/m-p/424975#M24454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: calibri, verdana, arial, sans-serif; font-size: 10pt;"&gt;Thanks Yasuhiko Koumoto,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Please find my answers below&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f;"&gt;do you develop a u-boot for K70?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;i am not developing u-boot&amp;nbsp; (u-boot code which came with the BSP , which am using the same without any change)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f;"&gt;What is the instruction at the erroneous PC 0x8b92?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12px; font-family: arial, verdana, helvetica, sans-serif;"&gt;S214008B9004B0BDE8F08E602934D07029F8D1019871&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;this is the line i&amp;nbsp; found from uboot.srec file, also attached the screen shot of uboot.srec.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f;"&gt;HardFault sometimes happens by accessing un-clocked peripherals.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;I am not controlling&amp;nbsp; any clock (system clock,bus clock,peripheral clock) up to booting process is over,This is controlled by the u-boot and&amp;nbsp; kernel .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Once the system is booted&amp;nbsp; I am trying to access&amp;nbsp; peripherals from user space .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please correct me if my answers are not acceptable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2015 08:37:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K70-Unhandled-Exception-Hardfault/m-p/424975#M24454</guid>
      <dc:creator>chiranjeevn</dc:creator>
      <dc:date>2015-07-20T08:37:38Z</dc:date>
    </item>
    <item>
      <title>Re: K70_Unhandled Exception : Hardfault</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K70-Unhandled-Exception-Hardfault/m-p/424976#M24455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-size: 12.6000003814697px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&lt;SPAN style="font-size: 13.3333330154419px; line-height: 20px;"&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;Thanks&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; color: #303030;"&gt;&lt;A _jive_internal="true" data-avatarid="-1" data-content-finding="Community" data-userid="226516" data-username="yasuhikokoumoto" href="https://community.nxp.com/people/yasuhikokoumoto" style="padding: 0 3px 0 0; font-weight: inherit; font-style: inherit; font-size: 1.1em; font-family: inherit; color: #017bba;"&gt;&lt;SPAN style="color: #303030;"&gt;Yasuhiko Koumoto&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030; font-family: arial, helvetica, sans-serif;"&gt;Generally speaking, HardFault sometimes happens by &lt;STRONG&gt;accessing un-clocked peripherals&lt;/STRONG&gt;?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt; I am not aware on this ,please explain. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Please assist.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2015 07:07:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K70-Unhandled-Exception-Hardfault/m-p/424976#M24455</guid>
      <dc:creator>chiranjeevn</dc:creator>
      <dc:date>2015-07-24T07:07:39Z</dc:date>
    </item>
    <item>
      <title>Re: K70_Unhandled Exception : Hardfault</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K70-Unhandled-Exception-Hardfault/m-p/424977#M24456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this is a common behavior across multiple ARM devices.&lt;/P&gt;&lt;P&gt;You have to enable the gated clock to a peripheral before you access it's registers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm very happy when my hardfaults get resolved this way :smileyhappy: it's a nice bug :smileywink:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2015 07:34:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K70-Unhandled-Exception-Hardfault/m-p/424977#M24456</guid>
      <dc:creator>peterruesch</dc:creator>
      <dc:date>2015-07-24T07:34:46Z</dc:date>
    </item>
    <item>
      <title>Re: K70_Unhandled Exception : Hardfault</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K70-Unhandled-Exception-Hardfault/m-p/424978#M24457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Chiranjeev N,&lt;/P&gt;&lt;P&gt;did you follow the procedure of &lt;A href="https://www.emcraft.com/docs/linux-TWR-K70F120M-bspg-1.12.0.pdf"&gt;https://www.emcraft.com/docs/linux-TWR-K70F120M-bspg-1.12.0.pdf&lt;/A&gt; ?&lt;/P&gt;&lt;P&gt;If you did so, I would be helpless.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Yasuhiko Koumoto.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2015 08:28:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K70-Unhandled-Exception-Hardfault/m-p/424978#M24457</guid>
      <dc:creator>yasuhikokoumoto</dc:creator>
      <dc:date>2015-07-24T08:28:27Z</dc:date>
    </item>
    <item>
      <title>Re: K70_Unhandled Exception : Hardfault</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K70-Unhandled-Exception-Hardfault/m-p/424979#M24458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;SPAN class="replyToName"&gt;Chiranjeev N&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is additional information.&lt;/P&gt;&lt;P&gt;The dis-assemble of the code "&lt;SPAN style="color: #000000; font-family: arial, verdana, helvetica, sans-serif; font-size: 12px;"&gt;S214008B9004B0BDE8F08E602934D07029F8D1019871&lt;/SPAN&gt;" is as below.&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14377709500756322 jive_text_macro" data-renderedposition="92_8_1058_128" jivemacro_uid="_14377709500756322"&gt;&lt;P&gt;00000000 &amp;lt;foo&amp;gt;:&lt;/P&gt;&lt;P&gt;&amp;nbsp; 0:&amp;nbsp; b004&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; add&amp;nbsp;&amp;nbsp;&amp;nbsp; sp, #16&lt;/P&gt;&lt;P&gt;&amp;nbsp; 2:&amp;nbsp; e8bd 8ef0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ldmia.w sp!, {r4, r5, r6, r7, r9, sl, fp, pc}&lt;/P&gt;&lt;P&gt;&amp;nbsp; 6:&amp;nbsp; 2960&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cmp&amp;nbsp;&amp;nbsp;&amp;nbsp; r1, #96 ; 0x60&lt;/P&gt;&lt;P&gt;&amp;nbsp; 8:&amp;nbsp; d034&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; beq.n&amp;nbsp; 74 &amp;lt;foo+0x74&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; a:&amp;nbsp; 2970&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cmp&amp;nbsp;&amp;nbsp;&amp;nbsp; r1, #112&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; 0x70&lt;/P&gt;&lt;P&gt;&amp;nbsp; c:&amp;nbsp; d1f8&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bne.n&amp;nbsp; 0 &amp;lt;foo&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; e:&amp;nbsp; 9801&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ldr&amp;nbsp;&amp;nbsp;&amp;nbsp; r0, [sp, #4]&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;According to the code, I guess that the hard fault had happened by un-initialized stack pointer or stack overflow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Yasuhiko Koumoto.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2015 20:50:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K70-Unhandled-Exception-Hardfault/m-p/424979#M24458</guid>
      <dc:creator>yasuhikokoumoto</dc:creator>
      <dc:date>2015-07-24T20:50:40Z</dc:date>
    </item>
  </channel>
</rss>

