<?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 Debug -&amp;gt; Trace function that generate the error in MCUXpresso IDE</title>
    <link>https://community.nxp.com/t5/MCUXpresso-IDE/Debug-gt-Trace-function-that-generate-the-error/m-p/668046#M467</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello i have the MCUXpresso 10.0.2 and i have to trace the function that generate the hard fault but using my segger j-link i can see only the last 4 functions called:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/16869iF9F3BA4196729EF6/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how i can increase the tree for see the function at lower level?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Aug 2017 14:16:41 GMT</pubDate>
    <dc:creator>ypkdani</dc:creator>
    <dc:date>2017-08-07T14:16:41Z</dc:date>
    <item>
      <title>Debug -&gt; Trace function that generate the error</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Debug-gt-Trace-function-that-generate-the-error/m-p/668046#M467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello i have the MCUXpresso 10.0.2 and i have to trace the function that generate the hard fault but using my segger j-link i can see only the last 4 functions called:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/16869iF9F3BA4196729EF6/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how i can increase the tree for see the function at lower level?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Aug 2017 14:16:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Debug-gt-Trace-function-that-generate-the-error/m-p/668046#M467</guid>
      <dc:creator>ypkdani</dc:creator>
      <dc:date>2017-08-07T14:16:41Z</dc:date>
    </item>
    <item>
      <title>Re: Debug -&gt; Trace function that generate the error</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Debug-gt-Trace-function-that-generate-the-error/m-p/668047#M468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your stack trace might not necessarily show the truth, as the hard fault could be caused by some stack corruption too.&lt;/P&gt;&lt;P&gt;It seems that your hard fault was caused during a context switch in FreeRTOS.&lt;/P&gt;&lt;P&gt;I would set a breakpoint in xPortStartScheduler() and step through the code to see what is happening. It could be that your stack runs into FLASH/ROM code?&lt;/P&gt;&lt;P&gt;If you want to see if other theads/tasks are running, have a&amp;nbsp; read at &lt;A class="link-titled" href="https://mcuoneclipse.com/2017/07/27/troubleshooting-tips-for-freertos-thread-aware-debugging-in-eclipse/" title="https://mcuoneclipse.com/2017/07/27/troubleshooting-tips-for-freertos-thread-aware-debugging-in-eclipse/"&gt;Troubleshooting Tips for FreeRTOS Thread Aware Debugging in Eclipse | MCU on Eclipse&lt;/A&gt;&amp;nbsp; which provides some checkpoints.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for the hardfault itself, you could install a custom handler which reports you the last PC/access point (see that interrrupt handler at the end of &lt;A class="link-titled" href="https://mcuoneclipse.com/2012/11/24/debugging-hard-faults-on-arm-cortex-m/" title="https://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;&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Aug 2017 15:09:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Debug-gt-Trace-function-that-generate-the-error/m-p/668047#M468</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2017-08-07T15:09:18Z</dc:date>
    </item>
    <item>
      <title>Re: Debug -&gt; Trace function that generate the error</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Debug-gt-Trace-function-that-generate-the-error/m-p/668048#M469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;i have already tryed but the Thread Aware crash when i stop the debugger with this error, it say Ignoring Packet Error, continue...&lt;/P&gt;&lt;P&gt;I have update the segger driver but nothing.&lt;/P&gt;&lt;P&gt;I can debug without the Thread Aware enable but i can only see this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/16205i7AB2D65A29C3886A/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/16206i31CF74561790FEDC/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Aug 2017 08:31:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Debug-gt-Trace-function-that-generate-the-error/m-p/668048#M469</guid>
      <dc:creator>ypkdani</dc:creator>
      <dc:date>2017-08-08T08:31:08Z</dc:date>
    </item>
    <item>
      <title>Re: Debug -&gt; Trace function that generate the error</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Debug-gt-Trace-function-that-generate-the-error/m-p/668049#M470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have tried to understand watching the CFSR register. It has the value 0x400 so i have an INVPC error.&lt;BR /&gt;What can generate this error in the code?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Aug 2017 06:55:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Debug-gt-Trace-function-that-generate-the-error/m-p/668049#M470</guid>
      <dc:creator>ypkdani</dc:creator>
      <dc:date>2017-08-09T06:55:41Z</dc:date>
    </item>
    <item>
      <title>Re: Debug -&gt; Trace function that generate the error</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Debug-gt-Trace-function-that-generate-the-error/m-p/668050#M471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Solved,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i didn't free memory after a&amp;nbsp;malloc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Aug 2017 07:30:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Debug-gt-Trace-function-that-generate-the-error/m-p/668050#M471</guid>
      <dc:creator>ypkdani</dc:creator>
      <dc:date>2017-08-09T07:30:45Z</dc:date>
    </item>
  </channel>
</rss>

