<?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 Hardfault problem in S32K344 in S32K</title>
    <link>https://community.nxp.com/t5/S32K/Hardfault-problem-in-S32K344/m-p/2182964#M53358</link>
    <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I reused an example code named "SIUL2_DIO_Ip_Example_S32K344" and &lt;STRONG&gt;added UART peripheral&lt;/STRONG&gt;. However, when I called the init function of UART, the program jumped to hardfault function. I suspect that the clock of this peripherals is not configed correctly but I don't know how to fix it. Besides, does it have any reasons causing to hardfault? Here are some picture of my program. Thanks for your help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="khanhhuy_0-1760005964705.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/360042iE642076423FA68C5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="khanhhuy_0-1760005964705.png" alt="khanhhuy_0-1760005964705.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="khanhhuy_1-1760006011426.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/360043i5A13B054979A308E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="khanhhuy_1-1760006011426.png" alt="khanhhuy_1-1760006011426.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="khanhhuy_2-1760006074533.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/360044i084FE7AEF50F46BF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="khanhhuy_2-1760006074533.png" alt="khanhhuy_2-1760006074533.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="khanhhuy_3-1760006094256.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/360045i24E3FE81EEFD6D26/image-size/medium?v=v2&amp;amp;px=400" role="button" title="khanhhuy_3-1760006094256.png" alt="khanhhuy_3-1760006094256.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 09 Oct 2025 10:35:10 GMT</pubDate>
    <dc:creator>Andrew101</dc:creator>
    <dc:date>2025-10-09T10:35:10Z</dc:date>
    <item>
      <title>Hardfault problem in S32K344</title>
      <link>https://community.nxp.com/t5/S32K/Hardfault-problem-in-S32K344/m-p/2182964#M53358</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I reused an example code named "SIUL2_DIO_Ip_Example_S32K344" and &lt;STRONG&gt;added UART peripheral&lt;/STRONG&gt;. However, when I called the init function of UART, the program jumped to hardfault function. I suspect that the clock of this peripherals is not configed correctly but I don't know how to fix it. Besides, does it have any reasons causing to hardfault? Here are some picture of my program. Thanks for your help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="khanhhuy_0-1760005964705.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/360042iE642076423FA68C5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="khanhhuy_0-1760005964705.png" alt="khanhhuy_0-1760005964705.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="khanhhuy_1-1760006011426.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/360043i5A13B054979A308E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="khanhhuy_1-1760006011426.png" alt="khanhhuy_1-1760006011426.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="khanhhuy_2-1760006074533.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/360044i084FE7AEF50F46BF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="khanhhuy_2-1760006074533.png" alt="khanhhuy_2-1760006074533.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="khanhhuy_3-1760006094256.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/360045i24E3FE81EEFD6D26/image-size/medium?v=v2&amp;amp;px=400" role="button" title="khanhhuy_3-1760006094256.png" alt="khanhhuy_3-1760006094256.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Oct 2025 10:35:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Hardfault-problem-in-S32K344/m-p/2182964#M53358</guid>
      <dc:creator>Andrew101</dc:creator>
      <dc:date>2025-10-09T10:35:10Z</dc:date>
    </item>
    <item>
      <title>Re: Hardfault problem in S32K344</title>
      <link>https://community.nxp.com/t5/S32K/Hardfault-problem-in-S32K344/m-p/2183220#M53370</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/254964"&gt;@Andrew101&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Please check if UART0 is gated in the Clocks view, and if the Lpuart component has your clock config correctly assigned:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Snag_5acb455.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/360094i50C6CFD022BE6563/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Snag_5acb455.png" alt="Snag_5acb455.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Snag_5acfbbe.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/360095iD17E7E7F4D96F7EC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Snag_5acfbbe.png" alt="Snag_5acfbbe.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;You can also check the register for the specific clock enable register:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Snag_5af5668.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/360096i029B558D28A08AE6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Snag_5af5668.png" alt="Snag_5af5668.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Julián&lt;/P&gt;</description>
      <pubDate>Thu, 09 Oct 2025 17:39:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Hardfault-problem-in-S32K344/m-p/2183220#M53370</guid>
      <dc:creator>Julián_AragónM</dc:creator>
      <dc:date>2025-10-09T17:39:36Z</dc:date>
    </item>
    <item>
      <title>Re: Hardfault problem in S32K344</title>
      <link>https://community.nxp.com/t5/S32K/Hardfault-problem-in-S32K344/m-p/2183585#M53386</link>
      <description>Thanks for your answer. When I checked as your guide, actually the clock of this peripheral was not turn on . In this case, I need to turn on it manually by register or do I have a another way?&lt;BR /&gt;</description>
      <pubDate>Fri, 10 Oct 2025 06:20:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Hardfault-problem-in-S32K344/m-p/2183585#M53386</guid>
      <dc:creator>Andrew101</dc:creator>
      <dc:date>2025-10-10T06:20:31Z</dc:date>
    </item>
    <item>
      <title>Re: Hardfault problem in S32K344</title>
      <link>https://community.nxp.com/t5/S32K/Hardfault-problem-in-S32K344/m-p/2183966#M53411</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/254964"&gt;@Andrew101&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;If you have the peripheral's clock gated in the Clocks GUI, the register should be updated to 1 after calling Clock_Ip_Init(). To do it manually, you must add the "Power" component to the project, and individually enable the clocks in the McuPeripheral tab:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Julin_AragnM_1-1760109825953.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/360285iFE54477B443889ED/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Julin_AragnM_1-1760109825953.png" alt="Julin_AragnM_1-1760109825953.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Julin_AragnM_0-1760109770657.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/360284iFB974CCDC8C5C11B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Julin_AragnM_0-1760109770657.png" alt="Julin_AragnM_0-1760109770657.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;After this, you also need to call the initialization and set mode functions:&lt;/P&gt;
&lt;DIV style="background-color: #ffffff; padding: 0px 0px 0px 2px;"&gt;
&lt;DIV style="color: #000000; background-color: #ffffff; font-family: 'Courier New'; font-size: 10pt; white-space: pre;"&gt;
&lt;P style="margin: 0;"&gt;&lt;SPAN&gt;Power_Ip_Init(&amp;amp;Power_Ip_HwIPsConfigPB);&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;&lt;SPAN&gt;Power_Ip_SetMode(&amp;amp;Power_Ip_aModeConfigPB[0]);&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Julián&lt;/P&gt;</description>
      <pubDate>Fri, 10 Oct 2025 15:26:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Hardfault-problem-in-S32K344/m-p/2183966#M53411</guid>
      <dc:creator>Julián_AragónM</dc:creator>
      <dc:date>2025-10-10T15:26:36Z</dc:date>
    </item>
  </channel>
</rss>

