<?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>MQX Software SolutionsのトピックRe: Nand Flash ECC Failed</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/Nand-Flash-ECC-Failed/m-p/544380#M16462</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So it should work without any modification with the BSP flash driver?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 10 Jun 2018 14:13:36 GMT</pubDate>
    <dc:creator>naftalir</dc:creator>
    <dc:date>2018-06-10T14:13:36Z</dc:date>
    <item>
      <title>Nand Flash ECC Failed</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Nand-Flash-ECC-Failed/m-p/544369#M16451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This question is a continuation of &lt;A href="https://community.nxp.com/thread/390939"&gt;MQX MFS Nandflash ECC Failed&lt;/A&gt; &lt;/P&gt;&lt;P&gt;After getting a working solution and testing it several times, I now have the same error again.&lt;/P&gt;&lt;P&gt;The solution I found is not working anymore, and I can only guess at what sequence of events led to a working solution before.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Symptoms:&lt;/P&gt;&lt;P&gt;- Using MFS nandflash example (with ffs wearlevelling), I get ECC_FAILURE / NFC_ECC_STATUS_CORFAIL&lt;/P&gt;&lt;P&gt;- Using Mqx nand driver I get the same error inside nfc.c&lt;/P&gt;&lt;P&gt;- Setting &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;BSP_ECC_SIZE to 0 gives a working system using Mqx nand driver.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Since my tests pass using &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;BSP_ECC_SIZE=0, I assume this is a problem with the configuration or with the ECC engine in the cpu ( Vybrid MVF61NN151CMK50 )&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;My setup is as decribed in previous thread.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Jon&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jun 2016 07:33:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Nand-Flash-ECC-Failed/m-p/544369#M16451</guid>
      <dc:creator>jonalvik</dc:creator>
      <dc:date>2016-06-17T07:33:57Z</dc:date>
    </item>
    <item>
      <title>Re: Nand Flash ECC Failed</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Nand-Flash-ECC-Failed/m-p/544370#M16452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/karinavalencia"&gt;karinavalencia&lt;/A&gt;​&lt;/P&gt;&lt;P&gt;Getting no response here, can you help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2016 19:39:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Nand-Flash-ECC-Failed/m-p/544370#M16452</guid>
      <dc:creator>jonalvik</dc:creator>
      <dc:date>2016-07-21T19:39:09Z</dc:date>
    </item>
    <item>
      <title>Re: Nand Flash ECC Failed</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Nand-Flash-ECC-Failed/m-p/544371#M16453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately we don't have the specific hardware in order to test or reproduce your issue. However according your inputs I can suggest to erase all the nand device and/or&amp;nbsp; try repair.&amp;nbsp; Since we have change the ECC the&amp;nbsp; partition table may damage some blocks of the device and we need to mark and identified, before try again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or have you try with a new device, and see if the setup that you use before it is working?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt; Sol&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2016 20:52:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Nand-Flash-ECC-Failed/m-p/544371#M16453</guid>
      <dc:creator>soledad</dc:creator>
      <dc:date>2016-07-21T20:52:54Z</dc:date>
    </item>
    <item>
      <title>Re: Nand Flash ECC Failed</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Nand-Flash-ECC-Failed/m-p/544372#M16454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;Erasing the entire device (also trying repair if possible before failure) has been a part of my routine when testing different configurations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suspect that the problem is related to the fact that the flash has 16bit interface vs 8bit on the Vybrid tower kit.&lt;/P&gt;&lt;P&gt;Both the nandflash drivers in mfs and mqx-nand fails in the same place.&lt;/P&gt;&lt;P&gt;Have the drivers ever been tested with 16bit NAND flash?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2016 21:16:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Nand-Flash-ECC-Failed/m-p/544372#M16454</guid>
      <dc:creator>jonalvik</dc:creator>
      <dc:date>2016-07-21T21:16:23Z</dc:date>
    </item>
    <item>
      <title>Re: Nand Flash ECC Failed</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Nand-Flash-ECC-Failed/m-p/544373#M16455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/soledad"&gt;soledad&lt;/A&gt;​&lt;/P&gt;&lt;P&gt;Still stuck on this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 14px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;I suspect that the problem is related to the fact that the flash has 16bit interface vs 8bit on the Vybrid tower kit.&lt;/P&gt;&lt;P style="font-size: 14px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;Both the nandflash drivers in mfs and mqx-nand fails in the same place.&lt;/P&gt;&lt;P style="font-size: 14px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;Have the drivers ever been tested with 16bit NAND flash?&lt;/P&gt;&lt;P style="font-size: 14px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;/P&gt;&lt;P style="font-size: 14px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;Jon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2016 08:06:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Nand-Flash-ECC-Failed/m-p/544373#M16455</guid>
      <dc:creator>jonalvik</dc:creator>
      <dc:date>2016-08-05T08:06:26Z</dc:date>
    </item>
    <item>
      <title>Re: Nand Flash ECC Failed</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Nand-Flash-ECC-Failed/m-p/544374#M16456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sol,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am a colleague of Jon, and supporting him with this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After some testing, we found that some cards are able to read/write from/to the NAND Flash device, however some are not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As Jon explains, we have two methods of testing the NFC. One using the BSP driver, and another using the FFS/MFS drivers, bundled with MQX. The BSP driver does work when setting NUM_ECC_BYTES &amp;gt; 0, and returns NANDFLASHERR_ECC_FAILED when attempting to read. Setting NUM_ECC_BYTES = 0 however seems to work fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The FFS/MFS solution seem to work fine, even with NUM_ECC_BYTES=4 or NUM_ECC_BYTES=8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some of our cards, those used in initial testing of the NFC, seem to have reached a state where nothing works. We will have one of our HW Engineers take a look at this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have examined and compared the sources of the BSP driver and the NFC driver included in the FFS/MFS-driver. There are several differences between the two, most of it due to the FFS/MFS-driver also reading some meta-data with every read. However, we noticed one curious difference we cannot quite understand:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://pastebin.com/H0ZRXjVQ" title="http://pastebin.com/H0ZRXjVQ"&gt;[C++] MQX Vybrid NFC ECC check - Pastebin.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The confusing part is the offset added to VIRTUAL_PAGE_SIZE. VIRTUAL_PAGE_SIZE=512 and num_ecc_bytes=15 have been confirmed to be identical on both setups, so why do the BSP check the NFC_ECC_STATUS_CORFAIL flag at offset NFC_ECC_STATUS_OFFSET=0x0C, and FFS check it at offset (num_ecc_bytes + 4) = 19 = 0x13?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NFC_ECC_STATUS_OFFSET is defined on the top of nfc.c, and only used twice in this file, only to check status flags. It is never used in defining the location of the status field, and thus its origin and use is unclear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The FFS driver is also using a magic number when adding 4, but the motivation for this is found in the reference manual:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;NOTE&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;The address of the ECC status byte = Buffer n's start address +NFC_CFG[ECCAD] + 4 (n=0,1,2,3).&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;- Vybrid Reference Manual (Rev. 8), Ch. 10.3.4.2. Page 1724.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The two drivers appear to use different definitions of the ECC status word. It therefore seem to us that we are missing some information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you elaborate on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/Tom&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Edit&lt;/EM&gt;:&lt;/P&gt;&lt;P&gt;Here are the values for ECCAD:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;BSP - NFC_CFG[ECCAD] = 65&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;FFS - NFC_CFG[ECCAD] = 66&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2016 13:52:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Nand-Flash-ECC-Failed/m-p/544374#M16456</guid>
      <dc:creator>tfe</dc:creator>
      <dc:date>2016-08-11T13:52:43Z</dc:date>
    </item>
    <item>
      <title>Re: Nand Flash ECC Failed</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Nand-Flash-ECC-Failed/m-p/544375#M16457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/soledad"&gt;soledad&lt;/A&gt;​ can you continue with the follow up?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Aug 2016 12:42:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Nand-Flash-ECC-Failed/m-p/544375#M16457</guid>
      <dc:creator>karina_valencia</dc:creator>
      <dc:date>2016-08-16T12:42:06Z</dc:date>
    </item>
    <item>
      <title>Re: Nand Flash ECC Failed</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Nand-Flash-ECC-Failed/m-p/544376#M16458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/karinavalencia"&gt;karinavalencia&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can we expect a response to this soon?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Sep 2016 07:41:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Nand-Flash-ECC-Failed/m-p/544376#M16458</guid>
      <dc:creator>tfe</dc:creator>
      <dc:date>2016-09-09T07:41:22Z</dc:date>
    </item>
    <item>
      <title>Re: Nand Flash ECC Failed</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Nand-Flash-ECC-Failed/m-p/544377#M16459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Let me check with the &amp;nbsp;team&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Sep 2016 16:36:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Nand-Flash-ECC-Failed/m-p/544377#M16459</guid>
      <dc:creator>karina_valencia</dc:creator>
      <dc:date>2016-09-12T16:36:38Z</dc:date>
    </item>
    <item>
      <title>Re: Nand Flash ECC Failed</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Nand-Flash-ECC-Failed/m-p/544378#M16460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Someone??? 2 years and no answer... &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/jonalvik"&gt;jonalvik&lt;/A&gt;&amp;nbsp;someone contacted you? did you find the solution??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2018 15:12:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Nand-Flash-ECC-Failed/m-p/544378#M16460</guid>
      <dc:creator>naftalir</dc:creator>
      <dc:date>2018-06-06T15:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: Nand Flash ECC Failed</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Nand-Flash-ECC-Failed/m-p/544379#M16461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I never found a stable working solution to using the built-in ECC controller, so we implemented ECC caculation and checking in SW instead, and stored it in the NAND spare area. Slower and non-standard, but it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jun 2018 06:47:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Nand-Flash-ECC-Failed/m-p/544379#M16461</guid>
      <dc:creator>jonalvik</dc:creator>
      <dc:date>2018-06-07T06:47:57Z</dc:date>
    </item>
    <item>
      <title>Re: Nand Flash ECC Failed</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Nand-Flash-ECC-Failed/m-p/544380#M16462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So it should work without any modification with the BSP flash driver?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Jun 2018 14:13:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Nand-Flash-ECC-Failed/m-p/544380#M16462</guid>
      <dc:creator>naftalir</dc:creator>
      <dc:date>2018-06-10T14:13:36Z</dc:date>
    </item>
    <item>
      <title>Re: Nand Flash ECC Failed</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Nand-Flash-ECC-Failed/m-p/544381#M16463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you please share example for your solution?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Jun 2018 15:03:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Nand-Flash-ECC-Failed/m-p/544381#M16463</guid>
      <dc:creator>naftalir</dc:creator>
      <dc:date>2018-06-10T15:03:51Z</dc:date>
    </item>
  </channel>
</rss>

