<?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: What is the routine that generates the  hardfault_handler ecception ? in Processor Expert Software</title>
    <link>https://community.nxp.com/t5/Processor-Expert-Software/What-is-the-routine-that-generates-the-hardfault-handler/m-p/1716071#M5702</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/202847"&gt;@_Ferrari_&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;I recommend that you add and use a special hardfault handler. I wrote about it here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://mcuoneclipse.com/2012/11/24/debugging-hard-faults-on-arm-cortex-m/" target="_blank"&gt;https://mcuoneclipse.com/2012/11/24/debugging-hard-faults-on-arm-cortex-m/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You can skip the first part about Processor Expert, and use the extend handler described in the second part of the article. The source code of it can be found here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/ErichStyger/McuOnEclipseLibrary/blob/master/lib/src/McuHardFault.c" target="_blank"&gt;https://github.com/ErichStyger/McuOnEclipseLibrary/blob/master/lib/src/McuHardFault.c&lt;/A&gt;&lt;/P&gt;&lt;P&gt;That way you should see the PC and LR causing the hard fault.&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;</description>
    <pubDate>Sun, 03 Sep 2023 13:46:23 GMT</pubDate>
    <dc:creator>ErichStyger</dc:creator>
    <dc:date>2023-09-03T13:46:23Z</dc:date>
    <item>
      <title>What is the routine that generates the  hardfault_handler ecception ?</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/What-is-the-routine-that-generates-the-hardfault-handler/m-p/1714078#M5697</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I am developing a project based on the LPC5526 processor.&lt;/P&gt;&lt;P&gt;Sometimes, during debugging, a HARDFAULT_HANDLER exception is generated, as shown in the image below.&lt;/P&gt;&lt;P&gt;Unfortunately, I cannot figure out at which execution phase the exception is generated, and in particular, the routine that generated it (there is no useful information in the call stack window)&lt;/P&gt;&lt;P&gt;Have you ever had problems like this? How did you solve them?&lt;/P&gt;&lt;P&gt;Thank you very much for your help and collaboration.&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="_Ferrari__0-1693405719045.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/238886i88EC9702D53E16B1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="_Ferrari__0-1693405719045.png" alt="_Ferrari__0-1693405719045.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2023 14:32:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/What-is-the-routine-that-generates-the-hardfault-handler/m-p/1714078#M5697</guid>
      <dc:creator>_Ferrari_</dc:creator>
      <dc:date>2023-08-30T14:32:01Z</dc:date>
    </item>
    <item>
      <title>Re: What is the routine that generates the  hardfault_handler ecception ?</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/What-is-the-routine-that-generates-the-hardfault-handler/m-p/1714216#M5698</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/202847"&gt;@_Ferrari_&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you provide the details of the software you are using? While debugging, what is the code line that is causing the fault?&lt;/P&gt;
&lt;P&gt;Best Regards, Miguel.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2023 18:08:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/What-is-the-routine-that-generates-the-hardfault-handler/m-p/1714216#M5698</guid>
      <dc:creator>Miguel04</dc:creator>
      <dc:date>2023-08-30T18:08:37Z</dc:date>
    </item>
    <item>
      <title>Re: What is the routine that generates the  hardfault_handler ecception ?</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/What-is-the-routine-that-generates-the-hardfault-handler/m-p/1715393#M5699</link>
      <description>I'm developing a software in 'C' and I'm not using FreeRTOS.&lt;BR /&gt;Unfortunately I don't know what code line causes the faut. Is there any register/memori location/Debbugging ifìnfo that I have to analyze to know what code line caesed the fault ?&lt;BR /&gt;&lt;BR /&gt;thank you for your help and cooperation&lt;BR /&gt;rehards</description>
      <pubDate>Thu, 31 Aug 2023 22:03:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/What-is-the-routine-that-generates-the-hardfault-handler/m-p/1715393#M5699</guid>
      <dc:creator>_Ferrari_</dc:creator>
      <dc:date>2023-08-31T22:03:53Z</dc:date>
    </item>
    <item>
      <title>Re: What is the routine that generates the  hardfault_handler ecception ?</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/What-is-the-routine-that-generates-the-hardfault-handler/m-p/1715896#M5700</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/202847"&gt;@_Ferrari_&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The fault could be caused, for example, writing into a peripheral register that is not initialized.&lt;/P&gt;
&lt;P&gt;Please debugg your code step-by-step with this MCUXpresso tool. Instead of clicking Resume, click step into and tell me where the fault is occured.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Miguel04_0-1693585313117.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/239286i75F5A5658C9F8DD8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Miguel04_0-1693585313117.png" alt="Miguel04_0-1693585313117.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Can you tell me what are you coding? We could have a SDK example that can guide you.&lt;/P&gt;
&lt;P&gt;Best Regards, Miguel.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Sep 2023 16:25:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/What-is-the-routine-that-generates-the-hardfault-handler/m-p/1715896#M5700</guid>
      <dc:creator>Miguel04</dc:creator>
      <dc:date>2023-09-01T16:25:08Z</dc:date>
    </item>
    <item>
      <title>Re: What is the routine that generates the  hardfault_handler ecception ?</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/What-is-the-routine-that-generates-the-hardfault-handler/m-p/1716038#M5701</link>
      <description>Dear Miguel,&lt;BR /&gt;Thank you for youre reply.&lt;BR /&gt;The software that I'm developing is complex: it uses USB, SPI, I2C, FLASH, Digital I/O, Analog input and comparators. Unfortunately the 'HARDFAULT_HANDLER exception' is generated only once after months. But, if I have well undesrstood, ther is no possibility to know why the exception was generated simply looking the the debbugger information (the message in the red ellipse of the picture)&lt;BR /&gt;&lt;BR /&gt;Thank you very much for your help and cooperation&lt;BR /&gt;regards</description>
      <pubDate>Sat, 02 Sep 2023 14:11:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/What-is-the-routine-that-generates-the-hardfault-handler/m-p/1716038#M5701</guid>
      <dc:creator>_Ferrari_</dc:creator>
      <dc:date>2023-09-02T14:11:36Z</dc:date>
    </item>
    <item>
      <title>Re: What is the routine that generates the  hardfault_handler ecception ?</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/What-is-the-routine-that-generates-the-hardfault-handler/m-p/1716071#M5702</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/202847"&gt;@_Ferrari_&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;I recommend that you add and use a special hardfault handler. I wrote about it here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://mcuoneclipse.com/2012/11/24/debugging-hard-faults-on-arm-cortex-m/" target="_blank"&gt;https://mcuoneclipse.com/2012/11/24/debugging-hard-faults-on-arm-cortex-m/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You can skip the first part about Processor Expert, and use the extend handler described in the second part of the article. The source code of it can be found here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/ErichStyger/McuOnEclipseLibrary/blob/master/lib/src/McuHardFault.c" target="_blank"&gt;https://github.com/ErichStyger/McuOnEclipseLibrary/blob/master/lib/src/McuHardFault.c&lt;/A&gt;&lt;/P&gt;&lt;P&gt;That way you should see the PC and LR causing the hard fault.&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;</description>
      <pubDate>Sun, 03 Sep 2023 13:46:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/What-is-the-routine-that-generates-the-hardfault-handler/m-p/1716071#M5702</guid>
      <dc:creator>ErichStyger</dc:creator>
      <dc:date>2023-09-03T13:46:23Z</dc:date>
    </item>
  </channel>
</rss>

