<?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>S32KのトピックS32K324 DFlash exception causing BUS FAULT</title>
    <link>https://community.nxp.com/t5/S32K/S32K324-DFlash-exception-causing-BUS-FAULT/m-p/2175671#M53040</link>
    <description>&lt;P&gt;Hello NXP Community and Experts,&lt;/P&gt;&lt;P&gt;I am encountering a persistent Bus Fault exception on S32K324 microcontroller, which seems to be triggered when accessing the DFlash memory.&lt;/P&gt;&lt;P&gt;Observations:&lt;/P&gt;&lt;P&gt;When debugging, BFSR and BFAR registers show a bus fault on access to address 0x1000a000. I obsecured that some abnormal behaviors happened in DFlash（At the beginning of one Fee bank）Some bytes of contents kept alternating between "????????" and "FFFFFFFF". Other flash banks operate normally.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="registers.png" style="width: 909px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/358501iCCC0DC9FA59C6BD6/image-size/large?v=v2&amp;amp;px=999" role="button" title="registers.png" alt="registers.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dump.png" style="width: 475px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/358502i68E34B9E8A6070D9/image-size/large?v=v2&amp;amp;px=999" role="button" title="dump.png" alt="dump.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Alternating between "????????" and "FFFFFFFFF"&lt;/P&gt;&lt;P&gt;What I have tried:&lt;/P&gt;&lt;P&gt;The same abnormal behavior persists whether the MCU is under set or stopped at breakpoint.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please point out the potential causes for a DFlash exception? Any suggestions or guidance would be greatly appreciated.&amp;nbsp;Thank you in advance for your support!&lt;/P&gt;&lt;P&gt;#S32K3&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 25 Sep 2025 09:22:28 GMT</pubDate>
    <dc:creator>zzt</dc:creator>
    <dc:date>2025-09-25T09:22:28Z</dc:date>
    <item>
      <title>S32K324 DFlash exception causing BUS FAULT</title>
      <link>https://community.nxp.com/t5/S32K/S32K324-DFlash-exception-causing-BUS-FAULT/m-p/2175671#M53040</link>
      <description>&lt;P&gt;Hello NXP Community and Experts,&lt;/P&gt;&lt;P&gt;I am encountering a persistent Bus Fault exception on S32K324 microcontroller, which seems to be triggered when accessing the DFlash memory.&lt;/P&gt;&lt;P&gt;Observations:&lt;/P&gt;&lt;P&gt;When debugging, BFSR and BFAR registers show a bus fault on access to address 0x1000a000. I obsecured that some abnormal behaviors happened in DFlash（At the beginning of one Fee bank）Some bytes of contents kept alternating between "????????" and "FFFFFFFF". Other flash banks operate normally.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="registers.png" style="width: 909px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/358501iCCC0DC9FA59C6BD6/image-size/large?v=v2&amp;amp;px=999" role="button" title="registers.png" alt="registers.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dump.png" style="width: 475px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/358502i68E34B9E8A6070D9/image-size/large?v=v2&amp;amp;px=999" role="button" title="dump.png" alt="dump.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Alternating between "????????" and "FFFFFFFFF"&lt;/P&gt;&lt;P&gt;What I have tried:&lt;/P&gt;&lt;P&gt;The same abnormal behavior persists whether the MCU is under set or stopped at breakpoint.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please point out the potential causes for a DFlash exception? Any suggestions or guidance would be greatly appreciated.&amp;nbsp;Thank you in advance for your support!&lt;/P&gt;&lt;P&gt;#S32K3&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Sep 2025 09:22:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K324-DFlash-exception-causing-BUS-FAULT/m-p/2175671#M53040</guid>
      <dc:creator>zzt</dc:creator>
      <dc:date>2025-09-25T09:22:28Z</dc:date>
    </item>
    <item>
      <title>Re: S32K324 DFlash exception causing BUS FAULT</title>
      <link>https://community.nxp.com/t5/S32K/S32K324-DFlash-exception-causing-BUS-FAULT/m-p/2175888#M53054</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/234220"&gt;@zzt&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the debugger shows ???????? characters, such data are corrupted due to double bit ECC error. &lt;BR /&gt;Generally, ECC error can occur due to:&lt;BR /&gt;1. Overprogramming. ECC is handled on 64bit (one double word) boundary. Users are allowed to program only a double word which is in fully erased state. If the double word is not in erased state (all bytes are 0xFF), it's necessary to erase whole sector (8KB). &lt;BR /&gt;2. Program or erase operation is terminated by unexpected reset, so the flash is left in undeterministic state.&lt;BR /&gt;3. Flash wear-out - when too many program/erase cycles have been performed on the flash.&lt;/P&gt;
&lt;P&gt;In your case, it's caused by (2), most likely. Please take a look at:&lt;BR /&gt;&lt;A href="https://community.nxp.com/t5/S32K/S32K3-Hard-fault-exception-on-startup-for-ECC-error-in-DFlash/m-p/2109306/highlight/true#M49516" target="_blank"&gt;https://community.nxp.com/t5/S32K/S32K3-Hard-fault-exception-on-startup-for-ECC-error-in-DFlash/m-p/2109306/highlight/true#M49516&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Lukas&lt;/P&gt;</description>
      <pubDate>Thu, 25 Sep 2025 14:25:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K324-DFlash-exception-causing-BUS-FAULT/m-p/2175888#M53054</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2025-09-25T14:25:20Z</dc:date>
    </item>
    <item>
      <title>Re: S32K324 DFlash exception causing BUS FAULT</title>
      <link>https://community.nxp.com/t5/S32K/S32K324-DFlash-exception-causing-BUS-FAULT/m-p/2185440#M53518</link>
      <description>&lt;P&gt;Hello Lukas,&lt;/P&gt;&lt;P&gt;Thank you for your explanation! It was very helpful. I have some follow-up questions and would appreciate your further insights.&lt;/P&gt;&lt;P&gt;I hope to make a conditional check for Dflash ECC Errors once the software enters HardFault, and execute an erase operation if this specific fault is detected. I plan to check these conditions:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P class=""&gt;BFARVALID&lt;SPAN&gt;&amp;nbsp;bit in&amp;nbsp;&lt;/SPAN&gt;SCB-&amp;gt;BFSR&lt;SPAN&gt;&amp;nbsp;is set.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;&lt;SPAN&gt;Either&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;PRECISERR&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;or&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;IMPRECISERR&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;bit in&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;SCB-&amp;gt;BFSR&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;is set.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;&lt;SPAN&gt;The fault address in&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;SCB-&amp;gt;BFAR&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;in the DFLASH address range.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Do you think this logic is sufficient enough to identify a DFLASH ECC error? Are there any other flags or registers that I should also check to make this condition more precise and avoid false positives? (I noticed that MCRS[31] EER sometimes not set to 1 even though dflash ecc error happened)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; Thank you for your assistance. It is greatly appreciated.&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Zzt&lt;/P&gt;&lt;P&gt;&lt;LI-PRODUCT title="S32K3" id="S32K3"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Oct 2025 07:47:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K324-DFlash-exception-causing-BUS-FAULT/m-p/2185440#M53518</guid>
      <dc:creator>zzt</dc:creator>
      <dc:date>2025-10-14T07:47:24Z</dc:date>
    </item>
  </channel>
</rss>

