<?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>Kinetis Design Studio中的主题 Re: How to fix the hardfault error that occurs after debugging the code into the board ?</title>
    <link>https://community.nxp.com/t5/Kinetis-Design-Studio/How-to-fix-the-hardfault-error-that-occurs-after-debugging-the/m-p/492893#M5949</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Alice. Its fixed now. When you come online, kindly check this thread and reply. &lt;A href="https://community.nxp.com/thread/394778"&gt;How to change the linker file settings for loading the application file into the board ?&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 May 2016 06:35:37 GMT</pubDate>
    <dc:creator>ganeshramachand</dc:creator>
    <dc:date>2016-05-24T06:35:37Z</dc:date>
    <item>
      <title>How to fix the hardfault error that occurs after debugging the code into the board ?</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/How-to-fix-the-hardfault-error-that-occurs-after-debugging-the/m-p/492891#M5947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="150034_150034.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/121614i35BEEACEB8E37A2E/image-size/large?v=v2&amp;amp;px=999" role="button" title="150034_150034.jpg" alt="150034_150034.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="ASKNXP.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/29669i2254C910614B95F7/image-size/large?v=v2&amp;amp;px=999" role="button" title="ASKNXP.jpg" alt="ASKNXP.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;As shown in the screenshot above. I am getting this hardfault problem when I try to debug the UART Boot loader code -AN4767 (whose features I slightly modified according to the Board and the Controller I am using) on a custom board fitted with MKE02Z64VLD2. I am using Docklight v2.1 for serial communication.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The Problem Is,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I debug the code. It debugs fine. &lt;/P&gt;&lt;P&gt;Then I press the resume button in the Kinetis Design Studio IDE (Version 2). No problem occurs.&lt;/P&gt;&lt;P&gt;I open the Docklight and send some characters like this, &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="150062_150062.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/121615i268D2E23BB857C92/image-size/large?v=v2&amp;amp;px=999" role="button" title="150062_150062.jpg" alt="150062_150062.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Docklightfor nxp.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/29671i9A157D7AEF0B1E1D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Docklightfor nxp.jpg" alt="Docklightfor nxp.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;For the first time when I send FC 49 am receiving the character FF back. But when I try to send a character for the second or third or nth time. I am ending up with this Hardfault. &lt;/P&gt;&lt;P&gt;Then I re-debug the code, I send a character again, I am receiving a character back, but again when i try to send it the second (or any number of times) like previous attempts I am ending up with HardFault.&lt;/P&gt;&lt;P&gt;How to fix this ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 May 2016 06:44:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/How-to-fix-the-hardfault-error-that-occurs-after-debugging-the/m-p/492891#M5947</guid>
      <dc:creator>ganeshramachand</dc:creator>
      <dc:date>2016-05-23T06:44:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to fix the hardfault error that occurs after debugging the code into the board ?</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/How-to-fix-the-hardfault-error-that-occurs-after-debugging-the/m-p/492892#M5948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ganesh,&lt;/P&gt;&lt;P&gt;Could you set breakpoint to check when run to which place&amp;nbsp; , then it run to Hardfault ?&lt;/P&gt;&lt;P&gt;You'd better step by step to check when it crash , or you can also take screenshot about the steps.&lt;/P&gt;&lt;P&gt;And have you change the code ?&lt;/P&gt;&lt;P&gt;Another point , when it crash , please check the data of&amp;nbsp; "uiRepeatCount" ？&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/33011i6B999CC5447CABEA/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2016 03:30:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/How-to-fix-the-hardfault-error-that-occurs-after-debugging-the/m-p/492892#M5948</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2016-05-24T03:30:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to fix the hardfault error that occurs after debugging the code into the board ?</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/How-to-fix-the-hardfault-error-that-occurs-after-debugging-the/m-p/492893#M5949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Alice. Its fixed now. When you come online, kindly check this thread and reply. &lt;A href="https://community.nxp.com/thread/394778"&gt;How to change the linker file settings for loading the application file into the board ?&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2016 06:35:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/How-to-fix-the-hardfault-error-that-occurs-after-debugging-the/m-p/492893#M5949</guid>
      <dc:creator>ganeshramachand</dc:creator>
      <dc:date>2016-05-24T06:35:37Z</dc:date>
    </item>
  </channel>
</rss>

