<?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 Issue When Integrating Ethernet and FlexSPI Modules in Baremetal Project in MCX Microcontrollers</title>
    <link>https://community.nxp.com/t5/MCX-Microcontrollers/HardFault-Issue-When-Integrating-Ethernet-and-FlexSPI-Modules-in/m-p/2018177#M2227</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I’m working on a baremetal project that integrates both the Ethernet module and the FlexSPI module on the MIMXRT1180-EVK. I am facing a HardFault issue when trying to initialize the Ethernet module.&lt;/P&gt;&lt;P&gt;The program execution crashes at the following line:&lt;/P&gt;&lt;P&gt;enet_config.srcClockHz = EXAMPLE_CLOCK_FREQ;&lt;/P&gt;&lt;H3&gt;Observations:&lt;/H3&gt;&lt;OL&gt;&lt;LI&gt;When I test the Ethernet module in a separate project, it works without any issues.&lt;/LI&gt;&lt;LI&gt;However, when integrating it with the FlexSPI module in the same project, I encounter this HardFault.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;I’ve attached a screenshot of the HardFault state for reference.&lt;/P&gt;&lt;P&gt;Any debugging tips or insights into resolving this issue would be highly appreciated.&lt;/P&gt;&lt;P&gt;Thank you in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 22 Dec 2024 07:10:35 GMT</pubDate>
    <dc:creator>PavanKumarS</dc:creator>
    <dc:date>2024-12-22T07:10:35Z</dc:date>
    <item>
      <title>HardFault Issue When Integrating Ethernet and FlexSPI Modules in Baremetal Project</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/HardFault-Issue-When-Integrating-Ethernet-and-FlexSPI-Modules-in/m-p/2018177#M2227</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I’m working on a baremetal project that integrates both the Ethernet module and the FlexSPI module on the MIMXRT1180-EVK. I am facing a HardFault issue when trying to initialize the Ethernet module.&lt;/P&gt;&lt;P&gt;The program execution crashes at the following line:&lt;/P&gt;&lt;P&gt;enet_config.srcClockHz = EXAMPLE_CLOCK_FREQ;&lt;/P&gt;&lt;H3&gt;Observations:&lt;/H3&gt;&lt;OL&gt;&lt;LI&gt;When I test the Ethernet module in a separate project, it works without any issues.&lt;/LI&gt;&lt;LI&gt;However, when integrating it with the FlexSPI module in the same project, I encounter this HardFault.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;I’ve attached a screenshot of the HardFault state for reference.&lt;/P&gt;&lt;P&gt;Any debugging tips or insights into resolving this issue would be highly appreciated.&lt;/P&gt;&lt;P&gt;Thank you in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 22 Dec 2024 07:10:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/HardFault-Issue-When-Integrating-Ethernet-and-FlexSPI-Modules-in/m-p/2018177#M2227</guid>
      <dc:creator>PavanKumarS</dc:creator>
      <dc:date>2024-12-22T07:10:35Z</dc:date>
    </item>
    <item>
      <title>Re: HardFault Issue When Integrating Ethernet and FlexSPI Modules in Baremetal Project</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/HardFault-Issue-When-Integrating-Ethernet-and-FlexSPI-Modules-in/m-p/2018334#M2234</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/241885"&gt;@PavanKumarS&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-teams="true"&gt;The line enet_config.srcClockHz = EXAMPLE_CLOCK_FREQ; suggests that the source clock for the Ethernet module might be incorrectly configured or conflicting with the FlexSPI module’s clock settings.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-teams="true"&gt;Verify the clock configurations for both Ethernet and FlexSPI in your project.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-teams="true"&gt;BR&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-teams="true"&gt;Harry&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2024 06:36:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/HardFault-Issue-When-Integrating-Ethernet-and-FlexSPI-Modules-in/m-p/2018334#M2234</guid>
      <dc:creator>Harry_Zhang</dc:creator>
      <dc:date>2024-12-23T06:36:23Z</dc:date>
    </item>
    <item>
      <title>Re: HardFault Issue When Integrating Ethernet and FlexSPI Modules in Baremetal Project</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/HardFault-Issue-When-Integrating-Ethernet-and-FlexSPI-Modules-in/m-p/2019345#M2251</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Initially, I used the "Hello World" example project as the base for implementing my code, where I encountered a hard fault issue during the clock initialization of the FlexSPI. However, when I switched to using the "FlexSPI" example project as the base and initialized both the FlexSPI and Ethernet modules, the hard fault issue no longer occurred.&lt;/P&gt;&lt;P&gt;I’ve compared the clock configurations between the "Hello World" and "FlexSPI" base project setups, but I couldn’t find any significant differences.&lt;/P&gt;&lt;P&gt;While this workaround has solved the issue, I would like to understand the root cause behind this behavior.&lt;/P&gt;&lt;P&gt;Could there be any additional settings or configurations that is required for the FlexSPI initialization? Any insights or suggestions would be greatly appreciated!&lt;/P&gt;&lt;P&gt;The same code was used in both the projects, I've attached the code for your reference.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Dec 2024 10:56:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/HardFault-Issue-When-Integrating-Ethernet-and-FlexSPI-Modules-in/m-p/2019345#M2251</guid>
      <dc:creator>PavanKumarS</dc:creator>
      <dc:date>2024-12-25T10:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: HardFault Issue When Integrating Ethernet and FlexSPI Modules in Baremetal Project</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/HardFault-Issue-When-Integrating-Ethernet-and-FlexSPI-Modules-in/m-p/2019437#M2254</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/241885"&gt;@PavanKumarS&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Before clock initialization,&amp;nbsp;&lt;SPAN&gt;there are no any additional settings or configurations that is required for the FlexSPI initialization.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;So I think it's still a problem with the clock configuration, but there's no clock configuration in the file you gave me. Can you share the code that caused the hard fault?&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Harry&lt;/P&gt;</description>
      <pubDate>Thu, 26 Dec 2024 02:21:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/HardFault-Issue-When-Integrating-Ethernet-and-FlexSPI-Modules-in/m-p/2019437#M2254</guid>
      <dc:creator>Harry_Zhang</dc:creator>
      <dc:date>2024-12-26T02:21:53Z</dc:date>
    </item>
  </channel>
</rss>

