<?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: meminfls_mainfunction causes the hardfault in S32K</title>
    <link>https://community.nxp.com/t5/S32K/meminfls-mainfunction-causes-the-hardfault/m-p/2111902#M49653</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/234106"&gt;@qimao-marvin&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Hard to say just from the description, but the driver must not be in the programmed flash block.&lt;/P&gt;
&lt;P&gt;I see you program block_0 at 0x400000 where the application typically is.&lt;/P&gt;
&lt;P&gt;The Mem_43_INFSL driver can use SRAM (below S32DS IDE configurator).&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielmartynek_0-1749196896211.png" style="width: 715px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/341724i0C6851CF6D673112/image-dimensions/715x677?v=v2" width="715" height="677" role="button" title="danielmartynek_0-1749196896211.png" alt="danielmartynek_0-1749196896211.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 06 Jun 2025 08:03:09 GMT</pubDate>
    <dc:creator>danielmartynek</dc:creator>
    <dc:date>2025-06-06T08:03:09Z</dc:date>
    <item>
      <title>meminfls_mainfunction causes the hardfault</title>
      <link>https://community.nxp.com/t5/S32K/meminfls-mainfunction-causes-the-hardfault/m-p/2110468#M49584</link>
      <description>&lt;P&gt;RTD:3.0.0 P07&lt;/P&gt;&lt;P&gt;AR:9.30.1&lt;/P&gt;&lt;P&gt;EB:29.0&lt;/P&gt;&lt;P&gt;as the function described below,when uses the iar to download and debug,it will cause hardfault;but if i try tu debug with hal_dataflash_write，everything works well.&lt;/P&gt;&lt;P&gt;can any one give me some advices?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="qimaomarvin_1-1749042902713.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/341399iD000A08C1CEA112D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="qimaomarvin_1-1749042902713.png" alt="qimaomarvin_1-1749042902713.png" /&gt;&lt;/span&gt;&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="qimaomarvin_0-1749042792028.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/341398iF8A57045097D0C1D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="qimaomarvin_0-1749042792028.png" alt="qimaomarvin_0-1749042792028.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="qimaomarvin_2-1749043011466.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/341400i88D44FF38C7E4AC4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="qimaomarvin_2-1749043011466.png" alt="qimaomarvin_2-1749043011466.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 13:17:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/meminfls-mainfunction-causes-the-hardfault/m-p/2110468#M49584</guid>
      <dc:creator>qimao-marvin</dc:creator>
      <dc:date>2025-06-04T13:17:04Z</dc:date>
    </item>
    <item>
      <title>Re: meminfls_mainfunction causes the hardfault</title>
      <link>https://community.nxp.com/t5/S32K/meminfls-mainfunction-causes-the-hardfault/m-p/2111902#M49653</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/234106"&gt;@qimao-marvin&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Hard to say just from the description, but the driver must not be in the programmed flash block.&lt;/P&gt;
&lt;P&gt;I see you program block_0 at 0x400000 where the application typically is.&lt;/P&gt;
&lt;P&gt;The Mem_43_INFSL driver can use SRAM (below S32DS IDE configurator).&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielmartynek_0-1749196896211.png" style="width: 715px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/341724i0C6851CF6D673112/image-dimensions/715x677?v=v2" width="715" height="677" role="button" title="danielmartynek_0-1749196896211.png" alt="danielmartynek_0-1749196896211.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jun 2025 08:03:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/meminfls-mainfunction-causes-the-hardfault/m-p/2111902#M49653</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2025-06-06T08:03:09Z</dc:date>
    </item>
    <item>
      <title>Re: meminfls_mainfunction causes the hardfault</title>
      <link>https://community.nxp.com/t5/S32K/meminfls-mainfunction-causes-the-hardfault/m-p/2116238#M49881</link>
      <description>&lt;P&gt;Because the address i try to erase and prohran in at the bank of the functiob, the 0x400000 - 0x500000 is the one bank, but even i put the code in the ram ,it caused the hardfault too,however ,if i erase at the 0x500000,the function runs well.&lt;/P&gt;&lt;P&gt;So why even the code runs in sram,it will cause hardfault when tried to program at 0x400000?&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jun 2025 17:38:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/meminfls-mainfunction-causes-the-hardfault/m-p/2116238#M49881</guid>
      <dc:creator>qimao-marvin</dc:creator>
      <dc:date>2025-06-13T17:38:14Z</dc:date>
    </item>
  </channel>
</rss>

