<?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 MKE18F Flash &amp; SRAM ECC in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKE18F-Flash-SRAM-ECC/m-p/976933#M55385</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From the MKE18F512VLH16 RM I understand there is Error-correcting code (ECC) on Flash and SRAM memories.&lt;BR /&gt;For flash, I could not find any register to enable/disable ECC. Is ECC enabled for flash by default?&lt;BR /&gt;I could force double bit error in flash by setting FDFD bit in FTFE_FERCNFG and verify that double &lt;BR /&gt;bit fault interrupt flag DFDIF bit in FTFE_FERSTAT is set. I wanted to understand is there any such similar way to force double bit error for SRAM? Under MCM interface in MCM_LMDR register, CF0 field provides capability for ECC Enable Read Check and ECC Enable Write Generation for TCM (couldnt find much documentation on TCM). By setting CF0[0] to 0 can we disable EEWG for SRAM? I have set ERNCR in MCM_LMPECR register to report RAM non correctable error. Can we force ECC non correctable fault in SRAM and verify that ENC field of MCM_LMPEIR set? Also, do MKE18F512VLH16 has any self test capabilities?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Dec 2019 08:48:33 GMT</pubDate>
    <dc:creator>divya_kapu</dc:creator>
    <dc:date>2019-12-13T08:48:33Z</dc:date>
    <item>
      <title>MKE18F Flash &amp; SRAM ECC</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKE18F-Flash-SRAM-ECC/m-p/976933#M55385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From the MKE18F512VLH16 RM I understand there is Error-correcting code (ECC) on Flash and SRAM memories.&lt;BR /&gt;For flash, I could not find any register to enable/disable ECC. Is ECC enabled for flash by default?&lt;BR /&gt;I could force double bit error in flash by setting FDFD bit in FTFE_FERCNFG and verify that double &lt;BR /&gt;bit fault interrupt flag DFDIF bit in FTFE_FERSTAT is set. I wanted to understand is there any such similar way to force double bit error for SRAM? Under MCM interface in MCM_LMDR register, CF0 field provides capability for ECC Enable Read Check and ECC Enable Write Generation for TCM (couldnt find much documentation on TCM). By setting CF0[0] to 0 can we disable EEWG for SRAM? I have set ERNCR in MCM_LMPECR register to report RAM non correctable error. Can we force ECC non correctable fault in SRAM and verify that ENC field of MCM_LMPEIR set? Also, do MKE18F512VLH16 has any self test capabilities?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Dec 2019 08:48:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKE18F-Flash-SRAM-ECC/m-p/976933#M55385</guid>
      <dc:creator>divya_kapu</dc:creator>
      <dc:date>2019-12-13T08:48:33Z</dc:date>
    </item>
    <item>
      <title>Re: MKE18F Flash &amp; SRAM ECC</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKE18F-Flash-SRAM-ECC/m-p/976934#M55386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;Hello Divya,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The multiple-bit fault is enabled using the FERCNFG[DFDIE] bit. When the multiple-bit error is detected, the FERSTAT[DFDIF] flag is set, and the interrupt request is generated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regarding your other questions:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;By setting CF0[0] to 0 can we disable EEWG for SRAM?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Yes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Can we force ECC non correctable fault in SRAM and verify that ENC field of MCM_LMPEIR set?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Yes, but you will need to enable MCM_LMPECR[ERNCR] to enable reporting this error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MKE18F512VLH16 has any self test capabilities?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Could you please provide more details about this, I don’t know exactly what you mean.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Felipe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Dec 2019 15:21:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKE18F-Flash-SRAM-ECC/m-p/976934#M55386</guid>
      <dc:creator>FelipeGarcia</dc:creator>
      <dc:date>2019-12-17T15:21:00Z</dc:date>
    </item>
    <item>
      <title>Re: MKE18F Flash &amp; SRAM ECC</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKE18F-Flash-SRAM-ECC/m-p/976935#M55387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Felipe,&lt;/P&gt;&lt;P&gt;Thank you for the input. I have enabled the ERNCR error reporting and&amp;nbsp;disabled the EEWG&amp;nbsp;by setting &lt;SPAN style="background-color: #ffffff; color: #51626f; "&gt;CF[0] to 0x02. Written 32 bit data to the SRAM upper and read the data from same address but could not find the&amp;nbsp;ENC field of MCM_LMPEIR set. Please suggest me a way to force ECC fault in SRAM which sets the&amp;nbsp;&lt;SPAN&gt;ENC field of MCM_LMPEIR.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f; "&gt;&lt;SPAN&gt;MCM-&amp;gt;LMPECR |= MCM_LMPECR_ERNCR_MASK;&amp;nbsp; &amp;nbsp;/* ECC Noncorrectable error */&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f; "&gt;&lt;SPAN&gt; MCM-&amp;gt;LMDR[1] = MCM_LMDR_CF0(0x2);&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f; "&gt;&lt;SPAN&gt;*(uint32_t*)0x20000001 = 0xA5A5A5A5;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f; "&gt;&lt;SPAN&gt;uint32_t read_sram = *(uint32_t*)0x20000001;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f; "&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f; "&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f; "&gt;&lt;SPAN&gt;Divya&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Dec 2019 09:18:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKE18F-Flash-SRAM-ECC/m-p/976935#M55387</guid>
      <dc:creator>divya_kapu</dc:creator>
      <dc:date>2019-12-19T09:18:18Z</dc:date>
    </item>
    <item>
      <title>Re: MKE18F Flash &amp; SRAM ECC</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKE18F-Flash-SRAM-ECC/m-p/976936#M55388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Divya,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am sorry for my late reply. I have checked this with internal team. I was told that it is not possible generate RAM ECC error on purpose, because user can't modify the RAM contents without ECC re-calculation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry for the inconvenience this may cause you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Felipe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Dec 2019 17:22:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKE18F-Flash-SRAM-ECC/m-p/976936#M55388</guid>
      <dc:creator>FelipeGarcia</dc:creator>
      <dc:date>2019-12-26T17:22:09Z</dc:date>
    </item>
  </channel>
</rss>

