<?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>Processor Expert Software中的主题 NFC_LDD returns ECC error when reading erased page...?</title>
    <link>https://community.nxp.com/t5/Processor-Expert-Software/NFC-LDD-returns-ECC-error-when-reading-erased-page/m-p/245022#M1376</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm reading back a page using NFC_LDD on K60, and it reads back all FF's which is good, since it's erased.&amp;nbsp; But I get back an error, tracing it back to the ISR this is true:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;if&lt;/STRONG&gt;&lt;/SPAN&gt; ((DevDataPtr-&amp;gt;&lt;SPAN class="s2"&gt;EccStatus&lt;/SPAN&gt;[x]).&lt;SPAN class="s2"&gt;Status&lt;/SPAN&gt; &amp;amp; (&lt;SPAN class="s3"&gt;uint8_t&lt;/SPAN&gt;)0x80U) { &lt;SPAN class="s4"&gt;/* Uncorrectable page? */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is that what's supposed to happen?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At least it's good that this isn't happening:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/message/321549#321549" style="font-size: 10pt; line-height: 1.5em;" title="https://community.freescale.com/message/321549#321549"&gt;https://community.freescale.com/message/321549#321549&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Jan 2014 23:32:55 GMT</pubDate>
    <dc:creator>bowerymarc</dc:creator>
    <dc:date>2014-01-20T23:32:55Z</dc:date>
    <item>
      <title>NFC_LDD returns ECC error when reading erased page...?</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/NFC-LDD-returns-ECC-error-when-reading-erased-page/m-p/245022#M1376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm reading back a page using NFC_LDD on K60, and it reads back all FF's which is good, since it's erased.&amp;nbsp; But I get back an error, tracing it back to the ISR this is true:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;if&lt;/STRONG&gt;&lt;/SPAN&gt; ((DevDataPtr-&amp;gt;&lt;SPAN class="s2"&gt;EccStatus&lt;/SPAN&gt;[x]).&lt;SPAN class="s2"&gt;Status&lt;/SPAN&gt; &amp;amp; (&lt;SPAN class="s3"&gt;uint8_t&lt;/SPAN&gt;)0x80U) { &lt;SPAN class="s4"&gt;/* Uncorrectable page? */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is that what's supposed to happen?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At least it's good that this isn't happening:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/message/321549#321549" style="font-size: 10pt; line-height: 1.5em;" title="https://community.freescale.com/message/321549#321549"&gt;https://community.freescale.com/message/321549#321549&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jan 2014 23:32:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/NFC-LDD-returns-ECC-error-when-reading-erased-page/m-p/245022#M1376</guid>
      <dc:creator>bowerymarc</dc:creator>
      <dc:date>2014-01-20T23:32:55Z</dc:date>
    </item>
    <item>
      <title>Re: NFC_LDD returns ECC error when reading erased page...?</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/NFC-LDD-returns-ECC-error-when-reading-erased-page/m-p/245023#M1377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;It seems that he problem is that after the page is erased, the ECC of the data doesn't match so the error appears. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The data should be written first, so the correct ECC is stored in the flash and then the error should not appear during reading.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Petr Hradsky&lt;/P&gt;&lt;P&gt;Processor Expert Support Team&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jan 2014 15:38:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/NFC-LDD-returns-ECC-error-when-reading-erased-page/m-p/245023#M1377</guid>
      <dc:creator>Petr_H</dc:creator>
      <dc:date>2014-01-29T15:38:39Z</dc:date>
    </item>
    <item>
      <title>Re: NFC_LDD returns ECC error when reading erased page...?</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/NFC-LDD-returns-ECC-error-when-reading-erased-page/m-p/245024#M1378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Petr,&lt;/P&gt;&lt;P&gt;You realize of course that it makes no sense to write an erased page?&amp;nbsp; Then you can't use it.&lt;/P&gt;&lt;P&gt;Any use of the NAND will read erased pages - this behaviour should be documented.&amp;nbsp; I don't see any mention in any Freescale docs the result of reading an erased page.&lt;/P&gt;&lt;P&gt;For example, ST Micro does a good job explaining what's happening with their NFC: &lt;A href="http://www.stlinux.com/howto/NAND/ST-ECC" title="http://www.stlinux.com/howto/NAND/ST-ECC"&gt;http://www.stlinux.com/howto/NAND/ST-ECC&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Detecting good erased pages would be a great use for hardware inside the NFC.&amp;nbsp; Unfortunately I don't see any mention of it.&amp;nbsp; This leaves any NAND filesystem management to either:&lt;/P&gt;&lt;P&gt;1. If a page read returns an ECC error, before flagging as an actual error, read every byte in the page buffer and see if they are all 0xFF indicating an erased page, and return no error in that case.&amp;nbsp; Lots of CPU cycles.&lt;/P&gt;&lt;P&gt;2. Keep an in-memory list of erased pages, which would be filled by reading every page upon startup and maintained throughout the program's life.&amp;nbsp; Long startup time, and added RAM usage (if you're using only internal SRAM, not good..)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you notice, ST's Nand driver handles this case... probably NFC_LDD should as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Marc&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jan 2014 18:07:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/NFC-LDD-returns-ECC-error-when-reading-erased-page/m-p/245024#M1378</guid>
      <dc:creator>bowerymarc</dc:creator>
      <dc:date>2014-01-29T18:07:58Z</dc:date>
    </item>
    <item>
      <title>Re: NFC_LDD returns ECC error when reading erased page...?</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/NFC-LDD-returns-ECC-error-when-reading-erased-page/m-p/245025#M1379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the infromation I have, there is no other way to determine that the page is erased than to receive the error that is returned and then check the content. I meant my comment this way.&lt;/P&gt;&lt;P&gt;The NFC_LDD is a generic low level driver that could be used with miltiple manufaturers flashes. It also does not handle mapping bad pages etc..&lt;/P&gt;&lt;P&gt;This is currently to be done in the upper layer using this driver with usage of the approaches like you have discribed.&lt;/P&gt;&lt;P&gt;Anyway, I have passed your comments to the development team to consider improvement of the NFC_LDD component.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Petr Hradsky&lt;/P&gt;&lt;P&gt;Processor Expert Support Team&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Feb 2014 16:37:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/NFC-LDD-returns-ECC-error-when-reading-erased-page/m-p/245025#M1379</guid>
      <dc:creator>Petr_H</dc:creator>
      <dc:date>2014-02-04T16:37:43Z</dc:date>
    </item>
    <item>
      <title>Re: NFC_LDD returns ECC error when reading erased page...?</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/NFC-LDD-returns-ECC-error-when-reading-erased-page/m-p/245026#M1380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess the main thing is that FS should document this behavior explicitly, and probably there should be at least a comment in the NFC_LDD that an error code of ECC failed will happen with a freshly erased page.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2014 00:02:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/NFC-LDD-returns-ECC-error-when-reading-erased-page/m-p/245026#M1380</guid>
      <dc:creator>bowerymarc</dc:creator>
      <dc:date>2014-02-06T00:02:01Z</dc:date>
    </item>
  </channel>
</rss>

