<?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 LPC1758 internal flash memory durability test in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1758-internal-flash-memory-durability-test/m-p/518761#M2853</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by markf on Wed Nov 21 01:09:52 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would like to ask about possibility of making an internal flash durability test, to know how many write/erase cycles are possible to do, before flash memory will destroy itself.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm thinking about method of writing some values (i.e. 0x00) filling a whole 256 byte page directly through IAP interface, and then using compare IAP command checking if the data was correctly written.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My test routine will be something like that:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; 1. Prepare sector&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; 2. Erase sector&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; 3. Compare first 256 bytes with 0xFF (check if the sector was correctly erased)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; 4. Prepare sector&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; 5. Write 0x00 to first 256 bytes&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; 6. Compare first 256 bytes with 0x00 value&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; 7. Go to 1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;These erase/write cycles will be counted and checked for return value. If the return value will be other than zero, the test will stop.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Will it work? And am I thinking right? Please correct me if I am doing it wrong.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 17:34:25 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T17:34:25Z</dc:date>
    <item>
      <title>LPC1758 internal flash memory durability test</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1758-internal-flash-memory-durability-test/m-p/518761#M2853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by markf on Wed Nov 21 01:09:52 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would like to ask about possibility of making an internal flash durability test, to know how many write/erase cycles are possible to do, before flash memory will destroy itself.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm thinking about method of writing some values (i.e. 0x00) filling a whole 256 byte page directly through IAP interface, and then using compare IAP command checking if the data was correctly written.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My test routine will be something like that:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; 1. Prepare sector&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; 2. Erase sector&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; 3. Compare first 256 bytes with 0xFF (check if the sector was correctly erased)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; 4. Prepare sector&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; 5. Write 0x00 to first 256 bytes&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; 6. Compare first 256 bytes with 0x00 value&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; 7. Go to 1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;These erase/write cycles will be counted and checked for return value. If the return value will be other than zero, the test will stop.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Will it work? And am I thinking right? Please correct me if I am doing it wrong.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:34:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1758-internal-flash-memory-durability-test/m-p/518761#M2853</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:34:25Z</dc:date>
    </item>
  </channel>
</rss>

