<?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: RESET MCU WHEN HARDFAULT in MCX Microcontrollers</title>
    <link>https://community.nxp.com/t5/MCX-Microcontrollers/RESET-MCU-WHEN-HARDFAULT/m-p/2129134#M3494</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/247807"&gt;@QuocHuyUT&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Thanks for your post.&amp;nbsp; You can customize the HardFault_Handler() function in the SDK's startup_mcxc144.c file.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Celeste_Liu_1-1751876023664.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/346253iBF36617CB2EE3BA9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Celeste_Liu_1-1751876023664.png" alt="Celeste_Liu_1-1751876023664.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Add some code to detect the source of the Hard Fault (please refer to&amp;nbsp;&lt;A style="outline: 0px;" href="https://mcuoneclipse.com/2012/11/24/debugging-hard-faults-on-arm-cortex-m/" target="_blank"&gt;Debugging Hard Faults on ARM Cortex-M | MCU on Eclipse&lt;/A&gt;&amp;nbsp;and&amp;nbsp;&lt;A style="background-color: #ffffff;" href="https://github.com/ErichStyger/McuLib/blob/master/src/McuHardFault.c" target="_blank"&gt;McuLib/src/McuHardFault.c at master · ErichStyger/McuLib · GitHub.&lt;/A&gt;&lt;SPAN&gt;), and then add the system reset trigger function NVIC_SystemReset().&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Celeste_Liu_0-1751875288880.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/346252iBCF8C4AE2E66E8F0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Celeste_Liu_0-1751875288880.png" alt="Celeste_Liu_0-1751875288880.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope it can help you.&lt;/P&gt;
&lt;P&gt;BRs,&lt;/P&gt;
&lt;P&gt;Celeste&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;---------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the "ACCEPT AS SOLUTION" button. Thank you!&lt;BR /&gt;---------------------------------------------------------------------------------------------------------------------&lt;/P&gt;</description>
    <pubDate>Mon, 07 Jul 2025 08:15:13 GMT</pubDate>
    <dc:creator>Celeste_Liu</dc:creator>
    <dc:date>2025-07-07T08:15:13Z</dc:date>
    <item>
      <title>RESET MCU WHEN HARDFAULT</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/RESET-MCU-WHEN-HARDFAULT/m-p/2128826#M3483</link>
      <description>&lt;P&gt;Hello, I want my MCU will auto reset when Hardfault for avoid stuck. My mcu is #MCXC144vft ide is&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/213532"&gt;@MCUXpresso&lt;/a&gt;&amp;nbsp;, any solutions for this? Thanks so much&lt;/P&gt;</description>
      <pubDate>Sat, 05 Jul 2025 06:35:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/RESET-MCU-WHEN-HARDFAULT/m-p/2128826#M3483</guid>
      <dc:creator>QuocHuyUT</dc:creator>
      <dc:date>2025-07-05T06:35:45Z</dc:date>
    </item>
    <item>
      <title>Re: RESET MCU WHEN HARDFAULT</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/RESET-MCU-WHEN-HARDFAULT/m-p/2129134#M3494</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/247807"&gt;@QuocHuyUT&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Thanks for your post.&amp;nbsp; You can customize the HardFault_Handler() function in the SDK's startup_mcxc144.c file.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Celeste_Liu_1-1751876023664.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/346253iBF36617CB2EE3BA9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Celeste_Liu_1-1751876023664.png" alt="Celeste_Liu_1-1751876023664.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Add some code to detect the source of the Hard Fault (please refer to&amp;nbsp;&lt;A style="outline: 0px;" href="https://mcuoneclipse.com/2012/11/24/debugging-hard-faults-on-arm-cortex-m/" target="_blank"&gt;Debugging Hard Faults on ARM Cortex-M | MCU on Eclipse&lt;/A&gt;&amp;nbsp;and&amp;nbsp;&lt;A style="background-color: #ffffff;" href="https://github.com/ErichStyger/McuLib/blob/master/src/McuHardFault.c" target="_blank"&gt;McuLib/src/McuHardFault.c at master · ErichStyger/McuLib · GitHub.&lt;/A&gt;&lt;SPAN&gt;), and then add the system reset trigger function NVIC_SystemReset().&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Celeste_Liu_0-1751875288880.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/346252iBCF8C4AE2E66E8F0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Celeste_Liu_0-1751875288880.png" alt="Celeste_Liu_0-1751875288880.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope it can help you.&lt;/P&gt;
&lt;P&gt;BRs,&lt;/P&gt;
&lt;P&gt;Celeste&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;---------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the "ACCEPT AS SOLUTION" button. Thank you!&lt;BR /&gt;---------------------------------------------------------------------------------------------------------------------&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jul 2025 08:15:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/RESET-MCU-WHEN-HARDFAULT/m-p/2129134#M3494</guid>
      <dc:creator>Celeste_Liu</dc:creator>
      <dc:date>2025-07-07T08:15:13Z</dc:date>
    </item>
  </channel>
</rss>

