<?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: HardFault Error While Init Clock in S32K</title>
    <link>https://community.nxp.com/t5/S32K/HardFault-Error-While-Init-Clock/m-p/2202350#M54350</link>
    <description>&lt;P&gt;Thanks for your reply,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I already enable the PLL &amp;amp; I2C peripheral clock, but the problem still persist.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="daoph_0-1762837917813.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/364822iFF82E70B0EE1DFEA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="daoph_0-1762837917813.png" alt="daoph_0-1762837917813.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 11 Nov 2025 05:12:22 GMT</pubDate>
    <dc:creator>daoph</dc:creator>
    <dc:date>2025-11-11T05:12:22Z</dc:date>
    <item>
      <title>HardFault Error While Init Clock</title>
      <link>https://community.nxp.com/t5/S32K/HardFault-Error-While-Init-Clock/m-p/2202296#M54344</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am facing a problem while configuring the S32K344. Without I2C MCAL configuration, I can go to debug mode. However, when I add I2C MCAL configuration, I got the following error:&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;MemManage: The processor attempted an instruction fetch from a location that does not permit execution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;while Mcu_InitClock(&lt;SPAN&gt;McuClockSettingConfig_0&lt;/SPAN&gt;) was called. Could you please help? I attached the project here.&lt;/P&gt;&lt;P&gt;I'm using S32K3X4EVB&lt;/P&gt;</description>
      <pubDate>Tue, 11 Nov 2025 03:14:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/HardFault-Error-While-Init-Clock/m-p/2202296#M54344</guid>
      <dc:creator>daoph</dc:creator>
      <dc:date>2025-11-11T03:14:20Z</dc:date>
    </item>
    <item>
      <title>Re: HardFault Error While Init Clock</title>
      <link>https://community.nxp.com/t5/S32K/HardFault-Error-While-Init-Clock/m-p/2202335#M54349</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/S32K/S32K312EVB-Q172-UART-Example-not-working/td-p/1762274" target="_self"&gt;&lt;SPAN&gt;Please configure the McuPeripheral -&amp;gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Peripheral Clock Enable&lt;/STRONG&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Hope it helps.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Robin&lt;BR /&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "ACCEPT AS SOLUTION" button. Thank you!&lt;/P&gt;
&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;</description>
      <pubDate>Tue, 11 Nov 2025 04:54:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/HardFault-Error-While-Init-Clock/m-p/2202335#M54349</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2025-11-11T04:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: HardFault Error While Init Clock</title>
      <link>https://community.nxp.com/t5/S32K/HardFault-Error-While-Init-Clock/m-p/2202350#M54350</link>
      <description>&lt;P&gt;Thanks for your reply,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I already enable the PLL &amp;amp; I2C peripheral clock, but the problem still persist.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="daoph_0-1762837917813.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/364822iFF82E70B0EE1DFEA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="daoph_0-1762837917813.png" alt="daoph_0-1762837917813.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Nov 2025 05:12:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/HardFault-Error-While-Init-Clock/m-p/2202350#M54350</guid>
      <dc:creator>daoph</dc:creator>
      <dc:date>2025-11-11T05:12:22Z</dc:date>
    </item>
    <item>
      <title>Re: HardFault Error While Init Clock</title>
      <link>https://community.nxp.com/t5/S32K/HardFault-Error-While-Init-Clock/m-p/2256629#M55199</link>
      <description>&lt;P&gt;Thank you for your patience.&lt;BR clear="none" /&gt;Here is the reply from Software Team:&lt;/P&gt;
&lt;P&gt;I checked the example after adding I2C, I see that the section&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;int_sram_no_cacheable was overflowed Because I2C used quite larger spaces in that section.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The solution is that reduces using&amp;nbsp;int_sram_no_cacheable&lt;BR clear="none" /&gt;&lt;BR clear="none" /&gt;E.g: in the file ethif_port.c,&amp;nbsp; you can also remove the statement:&amp;nbsp; "&amp;nbsp;__attribute__ ((section (".int_sram_no_cacheable")))" as below&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;
&lt;P&gt;&lt;SPAN&gt;__attribute__ ((section (".int_sram_&lt;/SPAN&gt;&lt;SPAN&gt;no_cacheable&lt;/SPAN&gt;&lt;SPAN&gt;")))&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;VAR_ALIGN(&lt;/SPAN&gt;&lt;SPAN&gt;uint8&lt;/SPAN&gt;&lt;SPAN&gt; ethif_DataBuffer[ETH_RXBD_NUM * ETH_43_ETH_MAX_RXBUFFLEN_SUPPORTED], 64);&lt;BR clear="none" /&gt;&lt;BR clear="none" /&gt;BTW, Please remove the preprocessor: "D_CACHE_ENABLE" if ping cannot work&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Please remove D_CACHE_ENABLE if the ping cannot work LWIP_I2C.png" style="width: 952px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/368866i14EB8445107AE469/image-size/large?v=v2&amp;amp;px=999" role="button" title="Please remove D_CACHE_ENABLE if the ping cannot work LWIP_I2C.png" alt="Please remove D_CACHE_ENABLE if the ping cannot work LWIP_I2C.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 08 Dec 2025 03:40:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/HardFault-Error-While-Init-Clock/m-p/2256629#M55199</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2025-12-08T03:40:46Z</dc:date>
    </item>
  </channel>
</rss>

