<?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のトピックReference code to handle ECC errors in S32K144 Flash Memory (P-Flash, FlexNVM, FlexRAM)</title>
    <link>https://community.nxp.com/t5/S32K/Reference-code-to-handle-ECC-errors-in-S32K144-Flash-Memory-P/m-p/2383378#M59366</link>
    <description>&lt;DIV class=""&gt;Hello NXP Community,&lt;/DIV&gt;&lt;DIV class=""&gt;I am implementing safety mechanisms on the &lt;STRONG&gt;S32K144&lt;/STRONG&gt; and need reference code for &lt;STRONG&gt;non-correctable (double-bit) ECC errors&lt;/STRONG&gt;, alongside a method to inject them for testing.&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;STRONG&gt;1. Double-Bit Handling&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;I need code examples to catch double-bit faults across:&lt;/DIV&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN class=""&gt;&lt;STRONG&gt;P-Flash &amp;amp; FlexNVM:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class=""&gt;&lt;STRONG&gt;FlexRAM (EEE):&lt;/STRONG&gt; Detecting faults during background copies.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class=""&gt;&lt;STRONG&gt;Exception Handlers:&lt;/STRONG&gt; A BusFault or HardFault ISR routine to isolate the failing memory address.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;STRONG&gt;2. Error Injection&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;What is the recommended way to simulate a double-bit fault in the &lt;STRONG&gt;Flash memory arrays&lt;/STRONG&gt;?&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;Any code snippets would be highly appreciated.&lt;/DIV&gt;</description>
    <pubDate>Fri, 19 Jun 2026 06:58:57 GMT</pubDate>
    <dc:creator>NJ_NXP</dc:creator>
    <dc:date>2026-06-19T06:58:57Z</dc:date>
    <item>
      <title>Reference code to handle ECC errors in S32K144 Flash Memory (P-Flash, FlexNVM, FlexRAM)</title>
      <link>https://community.nxp.com/t5/S32K/Reference-code-to-handle-ECC-errors-in-S32K144-Flash-Memory-P/m-p/2383378#M59366</link>
      <description>&lt;DIV class=""&gt;Hello NXP Community,&lt;/DIV&gt;&lt;DIV class=""&gt;I am implementing safety mechanisms on the &lt;STRONG&gt;S32K144&lt;/STRONG&gt; and need reference code for &lt;STRONG&gt;non-correctable (double-bit) ECC errors&lt;/STRONG&gt;, alongside a method to inject them for testing.&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;STRONG&gt;1. Double-Bit Handling&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;I need code examples to catch double-bit faults across:&lt;/DIV&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN class=""&gt;&lt;STRONG&gt;P-Flash &amp;amp; FlexNVM:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class=""&gt;&lt;STRONG&gt;FlexRAM (EEE):&lt;/STRONG&gt; Detecting faults during background copies.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class=""&gt;&lt;STRONG&gt;Exception Handlers:&lt;/STRONG&gt; A BusFault or HardFault ISR routine to isolate the failing memory address.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;STRONG&gt;2. Error Injection&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;What is the recommended way to simulate a double-bit fault in the &lt;STRONG&gt;Flash memory arrays&lt;/STRONG&gt;?&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;Any code snippets would be highly appreciated.&lt;/DIV&gt;</description>
      <pubDate>Fri, 19 Jun 2026 06:58:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Reference-code-to-handle-ECC-errors-in-S32K144-Flash-Memory-P/m-p/2383378#M59366</guid>
      <dc:creator>NJ_NXP</dc:creator>
      <dc:date>2026-06-19T06:58:57Z</dc:date>
    </item>
    <item>
      <title>Re: Reference code to handle ECC errors in S32K144 Flash Memory (P-Flash, FlexNVM, FlexRAM)</title>
      <link>https://community.nxp.com/t5/S32K/Reference-code-to-handle-ECC-errors-in-S32K144-Flash-Memory-P/m-p/2383501#M59372</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/199505"&gt;@NJ_NXP&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;1.&lt;/P&gt;
&lt;P&gt;If you are using RTD drivers, refer to the Integration Manual for the S32K1/S32M24x FLS Driver (RTD_FLS_IM.pdf), specifically Section 10.4.1 – ECC Management on Internal Flash.&lt;BR /&gt;The document can be found in the RTD installation directory, for example for RTD 3.0.0_QLP02:&lt;BR /&gt;SW32K1_S32M24x_RTD_4.4_3.0.0_QLP02\eclipse\plugins\Fls_TS_T40D2M30I0R0\doc\&lt;/P&gt;
&lt;P&gt;Regarding FlexRAM, it does not implement ECC. However, if a double-bit error is detected during a copy-down operation, the EEPROM record is read as all 1s.&lt;BR /&gt;For more details, see application note AN11983 – Using the S32K1xx EEPROM Functionality:&lt;BR /&gt;&lt;A href="https://www.nxp.com/docs/en/application-note/AN11983.pdf" target="_blank"&gt;https://www.nxp.com/docs/en/application-note/AN11983.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielmartynek_0-1781865940539.png" style="width: 752px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/389474iDA56119C2DE6AAF4/image-dimensions/752x173?v=v2" width="752" height="173" role="button" title="danielmartynek_0-1781865940539.png" alt="danielmartynek_0-1781865940539.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;2.&lt;/P&gt;
&lt;P&gt;The fault can be emulated in the flash controller by setting the FERCNFG[FDFD] bit and then performing a flash read.&lt;BR /&gt;Alternatively, the fault can be generated by reprogramming an already programmed flash phrase and subsequently reading it.&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;</description>
      <pubDate>Fri, 19 Jun 2026 10:52:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Reference-code-to-handle-ECC-errors-in-S32K144-Flash-Memory-P/m-p/2383501#M59372</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2026-06-19T10:52:13Z</dc:date>
    </item>
  </channel>
</rss>

