<?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: S32K348 ECC set in S32K</title>
    <link>https://community.nxp.com/t5/S32K/S32K348-ECC-set/m-p/2256892#M55208</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;ECC tests are part of the eMCEM driver of SAF / SPD package.&lt;/P&gt;
&lt;P&gt;You will find there examples with sophisticated checks for verification.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.nxp.com/design/design-center/software/functional-safety-software/s32-safety-software-framework-saf-and-safety-peripheral-drivers-spd:SAF" target="_blank"&gt;https://www.nxp.com/design/design-center/software/functional-safety-software/s32-safety-software-framework-saf-and-safety-peripheral-drivers-spd:SAF&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;If you prefer your own code / hard coded tests, then refer to the reference manual:&lt;/P&gt;
&lt;DIV&gt;
&lt;UL&gt;
&lt;LI&gt;
&lt;DIV style="font-family: 'Segoe UI'; font-size: 14px; font-style: normal; font-weight: 400; line-height: 20px;"&gt;
&lt;P&gt;Pre‑reqs:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;RTD clock init configured so ME enables clock to EIM and ERM. If EIM regs don’t respond, it’s almost always a clock gating issue—enable the partition/COFB clock first.&lt;/LI&gt;
&lt;LI&gt;Startup code initializes ECC for SRAM (write‑through once) before reads, otherwise first read can trigger multi‑bit errors. (Zephyr &amp;amp; SEGGER notes highlight this as a common pitfall.)&lt;/LI&gt;
&lt;LI&gt;Identify an ERM channel that corresponds to the memory master/region you’ll access (e.g., CM7_0 reading SRAM). Channel mapping is in RM; public tutorials summarize the concept.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;High‑level flow:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Enable clocks for EIM &amp;amp; ERM&lt;/LI&gt;
&lt;LI&gt;Configure ERM: enable “single‑bit corrected” interrupt + “multi‑bit error” interrupt for the relevant channel&lt;/LI&gt;
&lt;LI&gt;Set up EIM: choose the SRAM channel, set one data/check bit for injection (single‑bit)&lt;/LI&gt;
&lt;LI&gt;Perform a read of any address in that memory region → ERM should report a correctable error&lt;/LI&gt;
&lt;LI&gt;Clear, then set two bits in EIM (double‑bit)&lt;/LI&gt;
&lt;LI&gt;Read again → expect non‑correctable → your handler should capture/contain the fault&lt;/LI&gt;
&lt;/OL&gt;
&lt;OL&gt;
&lt;LI&gt;Optionally, scrub (rewrite) the affected location to clear corrected syndromes&lt;/LI&gt;
&lt;/OL&gt;
&lt;/DIV&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Peter&lt;/P&gt;
&lt;/DIV&gt;</description>
    <pubDate>Mon, 08 Dec 2025 07:54:22 GMT</pubDate>
    <dc:creator>petervlna</dc:creator>
    <dc:date>2025-12-08T07:54:22Z</dc:date>
    <item>
      <title>S32K348 ECC set</title>
      <link>https://community.nxp.com/t5/S32K/S32K348-ECC-set/m-p/2256591#M55198</link>
      <description>&lt;P&gt;hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have three questions that need help to answer, thank you！&lt;/P&gt;&lt;P&gt;1. can you provide a ecc&amp;nbsp; sample&amp;nbsp;&lt;/P&gt;&lt;P&gt;2.&amp;nbsp;&amp;nbsp;how&amp;nbsp; can&amp;nbsp; i&amp;nbsp; verify the function ?&lt;/P&gt;</description>
      <pubDate>Mon, 08 Dec 2025 02:53:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K348-ECC-set/m-p/2256591#M55198</guid>
      <dc:creator>youngkin</dc:creator>
      <dc:date>2025-12-08T02:53:45Z</dc:date>
    </item>
    <item>
      <title>Re: S32K348 ECC set</title>
      <link>https://community.nxp.com/t5/S32K/S32K348-ECC-set/m-p/2256892#M55208</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;ECC tests are part of the eMCEM driver of SAF / SPD package.&lt;/P&gt;
&lt;P&gt;You will find there examples with sophisticated checks for verification.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.nxp.com/design/design-center/software/functional-safety-software/s32-safety-software-framework-saf-and-safety-peripheral-drivers-spd:SAF" target="_blank"&gt;https://www.nxp.com/design/design-center/software/functional-safety-software/s32-safety-software-framework-saf-and-safety-peripheral-drivers-spd:SAF&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;If you prefer your own code / hard coded tests, then refer to the reference manual:&lt;/P&gt;
&lt;DIV&gt;
&lt;UL&gt;
&lt;LI&gt;
&lt;DIV style="font-family: 'Segoe UI'; font-size: 14px; font-style: normal; font-weight: 400; line-height: 20px;"&gt;
&lt;P&gt;Pre‑reqs:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;RTD clock init configured so ME enables clock to EIM and ERM. If EIM regs don’t respond, it’s almost always a clock gating issue—enable the partition/COFB clock first.&lt;/LI&gt;
&lt;LI&gt;Startup code initializes ECC for SRAM (write‑through once) before reads, otherwise first read can trigger multi‑bit errors. (Zephyr &amp;amp; SEGGER notes highlight this as a common pitfall.)&lt;/LI&gt;
&lt;LI&gt;Identify an ERM channel that corresponds to the memory master/region you’ll access (e.g., CM7_0 reading SRAM). Channel mapping is in RM; public tutorials summarize the concept.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;High‑level flow:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Enable clocks for EIM &amp;amp; ERM&lt;/LI&gt;
&lt;LI&gt;Configure ERM: enable “single‑bit corrected” interrupt + “multi‑bit error” interrupt for the relevant channel&lt;/LI&gt;
&lt;LI&gt;Set up EIM: choose the SRAM channel, set one data/check bit for injection (single‑bit)&lt;/LI&gt;
&lt;LI&gt;Perform a read of any address in that memory region → ERM should report a correctable error&lt;/LI&gt;
&lt;LI&gt;Clear, then set two bits in EIM (double‑bit)&lt;/LI&gt;
&lt;LI&gt;Read again → expect non‑correctable → your handler should capture/contain the fault&lt;/LI&gt;
&lt;/OL&gt;
&lt;OL&gt;
&lt;LI&gt;Optionally, scrub (rewrite) the affected location to clear corrected syndromes&lt;/LI&gt;
&lt;/OL&gt;
&lt;/DIV&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Peter&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 08 Dec 2025 07:54:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K348-ECC-set/m-p/2256892#M55208</guid>
      <dc:creator>petervlna</dc:creator>
      <dc:date>2025-12-08T07:54:22Z</dc:date>
    </item>
  </channel>
</rss>

