<?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のトピックRe: S32K144 ECC Fault Test</title>
    <link>https://community.nxp.com/t5/S32K/S32K144-ECC-Fault-Test/m-p/1380532#M13060</link>
    <description>&lt;P&gt;&lt;A href="mailto:Hi@pavankishore1" target="_blank"&gt;Hi@pavankishore1&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;you can try like below.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Senlent_0-1638438507120.png" style="width: 444px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/163899i371F3147B3DC8D9D/image-dimensions/444x168?v=v2" width="444" height="168" role="button" title="Senlent_0-1638438507120.png" alt="Senlent_0-1638438507120.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Senlent_0-1638438507120.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Senlent_1-1638438593008.png" style="width: 462px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/163900i8B3497EFAD1EE394/image-dimensions/462x126?v=v2" width="462" height="126" role="button" title="Senlent_1-1638438593008.png" alt="Senlent_1-1638438593008.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Senlent_1-1638438593008.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;BR!&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;Jim,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 02 Dec 2021 09:51:32 GMT</pubDate>
    <dc:creator>Senlent</dc:creator>
    <dc:date>2021-12-02T09:51:32Z</dc:date>
    <item>
      <title>S32K144 ECC Fault Test</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-ECC-Fault-Test/m-p/1379703#M13047</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;We want to enable ECC check on SRAM for our existing project on S32K144. I did go through the Datasheet and also this example link:&amp;nbsp;&lt;A href="https://community.nxp.com/t5/S32K-Knowledge-Base/Example-S32K14x-SRAM-ECC-Injection/ta-p/1129181" target="_blank"&gt;Example S32K14x SRAM ECC Injection - NXP Community&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;1. The example code uses EIM to inject fault on read and validate the ECC function and hits the respective ISR's(ERM_single_fault_IRQHandler, ERM_double_fault_IRQHandler).&lt;/P&gt;&lt;P&gt;2. In my understanding, any read of variable without first writing to it should cause a double fault. So I didnt configure EIM and tried reading an uninitialized local and global variable, which didn't fault out.&amp;nbsp;&lt;/P&gt;&lt;P&gt;My code (Stripped down version of example code above) -&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;ERM Init&lt;/LI&gt;&lt;LI&gt;Enable single and double fault interrupt.&lt;/LI&gt;&lt;LI&gt;MCM Init and enable MCM IRQ.&lt;/LI&gt;&lt;LI&gt;Read an uninitialized variable in anticipation of capturing the fault address through ISR.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;This doesn't seem to be working for me. Appreciate your support in understanding what could be going wrong here.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Dec 2021 13:01:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-ECC-Fault-Test/m-p/1379703#M13047</guid>
      <dc:creator>pavankishore1</dc:creator>
      <dc:date>2021-12-01T13:01:57Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144 ECC Fault Test</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-ECC-Fault-Test/m-p/1380411#M13056</link>
      <description>&lt;P&gt;&lt;A href="mailto:Hi@pavankishore1" target="_blank"&gt;Hi@pavankishore1&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;First I want to say that your understanding is correct.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;According to:&amp;nbsp;&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;AN12522-S32K1xx ECC Error Handling.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;2.1 SRAM initialization after power-on-reset&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;The reset state of the SRAM is unknown, thus data may contain random data. Most probably the first read attempt to any address would generate non-correctable ECC error. It is essential that each memory address be written to a known value before being read. If an uninitialized memory address is read, it is likely the read will result in a multiple-bit ECC error and an errored transaction on the AHB. Therefore, the SRAM must be initialized after power-up and this includes the peripherals RAM memories as the LPUART and FlexCAN RAMs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;But you forgot that the SRAM has been initialized by default when power is on. So you need to modify the startup code to turn off the power-on initialization of the SRAM.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;I tested this code on Keil and the result is the same as you expected.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR!&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Jim,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Dec 2021 07:46:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-ECC-Fault-Test/m-p/1380411#M13056</guid>
      <dc:creator>Senlent</dc:creator>
      <dc:date>2021-12-02T07:46:13Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144 ECC Fault Test</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-ECC-Fault-Test/m-p/1380466#M13059</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/188029"&gt;@Senlent&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks for the quick response. Maybe I forgot to mention that I had already stripped the Init RAM ECC code from startup_S32K144.s file. For some reason, the memory address is zero filled on startup even for local variables.&lt;BR /&gt;&lt;BR /&gt;I'm hereby attaching the project folder for reference.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Dec 2021 08:39:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-ECC-Fault-Test/m-p/1380466#M13059</guid>
      <dc:creator>pavankishore1</dc:creator>
      <dc:date>2021-12-02T08:39:15Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144 ECC Fault Test</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-ECC-Fault-Test/m-p/1380532#M13060</link>
      <description>&lt;P&gt;&lt;A href="mailto:Hi@pavankishore1" target="_blank"&gt;Hi@pavankishore1&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;you can try like below.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Senlent_0-1638438507120.png" style="width: 444px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/163899i371F3147B3DC8D9D/image-dimensions/444x168?v=v2" width="444" height="168" role="button" title="Senlent_0-1638438507120.png" alt="Senlent_0-1638438507120.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Senlent_0-1638438507120.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Senlent_1-1638438593008.png" style="width: 462px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/163900i8B3497EFAD1EE394/image-dimensions/462x126?v=v2" width="462" height="126" role="button" title="Senlent_1-1638438593008.png" alt="Senlent_1-1638438593008.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Senlent_1-1638438593008.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;BR!&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;Jim,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Dec 2021 09:51:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-ECC-Fault-Test/m-p/1380532#M13060</guid>
      <dc:creator>Senlent</dc:creator>
      <dc:date>2021-12-02T09:51:32Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144 ECC Fault Test</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-ECC-Fault-Test/m-p/1381947#M13096</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/188029"&gt;@Senlent&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Sorry for the late response. Though the memory address had stale data, reading from that location with ECC enabled didnt generate any fault.&lt;/P&gt;&lt;P&gt;Could there be something else we are missing?&lt;/P&gt;</description>
      <pubDate>Mon, 06 Dec 2021 12:05:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-ECC-Fault-Test/m-p/1381947#M13096</guid>
      <dc:creator>pavankishore1</dc:creator>
      <dc:date>2021-12-06T12:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144 ECC Fault Test</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-ECC-Fault-Test/m-p/1382282#M13107</link>
      <description>&lt;P&gt;&lt;A href="mailto:Hi@pavankshore1" target="_blank"&gt;Hi@pavankishore1&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;I made a test again,and it works fine on my side.(s32k142 &amp;amp; keil )&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Senlent_0-1638845165681.png" style="width: 547px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/164267iCAB1FA2FA5F16B29/image-dimensions/547x337?v=v2" width="547" height="337" role="button" title="Senlent_0-1638845165681.png" alt="Senlent_0-1638845165681.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Senlent_0-1638845165681.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The appendix is the routine in the IDE, and I modified it according to your method, and the test result is normal.&lt;/P&gt;
&lt;P&gt;I'm using S32K142EVB and RTM3.0 instead of S32K144,but I think it is the same.&lt;/P&gt;
&lt;P&gt;BR!&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Jim,&lt;/P&gt;</description>
      <pubDate>Tue, 07 Dec 2021 02:53:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-ECC-Fault-Test/m-p/1382282#M13107</guid>
      <dc:creator>Senlent</dc:creator>
      <dc:date>2021-12-07T02:53:42Z</dc:date>
    </item>
  </channel>
</rss>

