<?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: IAP Flash Erase in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/IAP-Flash-Erase/m-p/600042#M23263</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/jeremyzhou"&gt;jeremyzhou&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I ran a quick test to erase consecutive sectors instead of consecutive pages and I found out that the time remains constant regardless of the number of sectors - ie when you erase consecutive sectors it takes only ~100ms whereas when you erase consecutive pages on the same sector it takes ~100ms &lt;STRONG&gt;per page&lt;/STRONG&gt;. What really impressed me however is that the amount of energy required to erase a single sector is identical with the energy required to erase a number of consecutive sectors which does not apply for erasing pages as the time is multiple.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please confirm whether this is expected and if so, why does it happen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;BR /&gt;Theo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Feb 2017 15:15:57 GMT</pubDate>
    <dc:creator>theodorosveryki</dc:creator>
    <dc:date>2017-02-16T15:15:57Z</dc:date>
    <item>
      <title>IAP Flash Erase</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/IAP-Flash-Erase/m-p/600038#M23259</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;I am using an LPC812 to write data to Flash and I am using the IAP to prepare, erase and write a page of 64B or a whole sector.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I noticed that if I select more than one pages to be erased simultaneously, the process occurs in series and it takes a very long time (~100ms per page). However, on the datasheet (LPC81xM) it mentions that the erase time should be ~100ms for a page or multiple consecutive pages, a sector or multiple consecutive sectors which means that the process should happen in parallel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am I using the IAP routines in a wrong way or it is possible to erase in parallel only using the ISP?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks in advance,&lt;BR /&gt;Theo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Feb 2017 12:16:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/IAP-Flash-Erase/m-p/600038#M23259</guid>
      <dc:creator>theodorosveryki</dc:creator>
      <dc:date>2017-02-03T12:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: IAP Flash Erase</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/IAP-Flash-Erase/m-p/600039#M23260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" class="" data-content-finding="Community" data-userid="293536" data-username="theodorosverykios" href="https://community.nxp.com/people/theodorosverykios"&gt;Theodoros Verykios&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Thank you for your interest in NXP Semiconductor products and the opportunity to serve you.&lt;/P&gt;&lt;P&gt;I was wondering if you can share the demo then I can ran it with the LPCXpresso812 board to replicate the issue.&lt;/P&gt;&lt;P&gt;I'm looking forward to your reply.&lt;BR /&gt;Have a great day,&lt;BR /&gt;Ping&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>Sat, 04 Feb 2017 01:55:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/IAP-Flash-Erase/m-p/600039#M23260</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2017-02-04T01:55:11Z</dc:date>
    </item>
    <item>
      <title>Re: IAP Flash Erase</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/IAP-Flash-Erase/m-p/600040#M23261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/jeremyzhou"&gt;jeremyzhou&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for your kind response and I really appreciate your time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The bit of code that does the part I am interested into is the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#include "LPC8xx.h"&lt;BR /&gt;#include &amp;lt;stdio.h&amp;gt;&lt;/P&gt;&lt;P&gt;#include "iap_driver.h"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;int main(void)&amp;nbsp;&lt;BR /&gt;{&lt;/P&gt;&lt;P&gt;iap_status = (__e_iap_status) iap_prepare_sector(1,1);&lt;/P&gt;&lt;P&gt;iap_status = (__e_iap_status) iap_erase_page(16,25);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The iap_erase_page command is given in the User Manual on page 294 and the two arguments it accepts is the first and the last page that are going to be erased. Sector 1 includes pages 16-31 and according to the datasheet&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;the erase time should be ~100ms for a page or multiple consecutive pages, a sector or multiple consecutive sectors which means that the process should happen in parallel. However, according to my measurements, each page takes ~100ms to be erased which is not what I expected.&lt;BR /&gt;&lt;BR /&gt;Does this mean that in order to erase consecutive pages/sectors in parallel I need to do it via ISP and when using the IAP commands the process will be executed in series?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Thanks in advance,&lt;BR /&gt;Theo&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Feb 2017 11:20:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/IAP-Flash-Erase/m-p/600040#M23261</guid>
      <dc:creator>theodorosveryki</dc:creator>
      <dc:date>2017-02-06T11:20:16Z</dc:date>
    </item>
    <item>
      <title>Re: IAP Flash Erase</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/IAP-Flash-Erase/m-p/600041#M23262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" data-containerid="-1" data-containertype="-1" data-content-finding="Community" data-objectid="293536" data-objecttype="3" href="https://community.nxp.com/people/theodorosverykios"&gt;Theodoros Verykios&lt;/A&gt;,,&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;1) Does this mean that in order to erase consecutive pages/sectors in parallel I need to do it via ISP and when using the IAP commands the process will be executed in series?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Yes, I think so.&lt;/SPAN&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Ping&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>Tue, 07 Feb 2017 05:54:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/IAP-Flash-Erase/m-p/600041#M23262</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2017-02-07T05:54:31Z</dc:date>
    </item>
    <item>
      <title>Re: IAP Flash Erase</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/IAP-Flash-Erase/m-p/600042#M23263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/jeremyzhou"&gt;jeremyzhou&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I ran a quick test to erase consecutive sectors instead of consecutive pages and I found out that the time remains constant regardless of the number of sectors - ie when you erase consecutive sectors it takes only ~100ms whereas when you erase consecutive pages on the same sector it takes ~100ms &lt;STRONG&gt;per page&lt;/STRONG&gt;. What really impressed me however is that the amount of energy required to erase a single sector is identical with the energy required to erase a number of consecutive sectors which does not apply for erasing pages as the time is multiple.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please confirm whether this is expected and if so, why does it happen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;BR /&gt;Theo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2017 15:15:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/IAP-Flash-Erase/m-p/600042#M23263</guid>
      <dc:creator>theodorosveryki</dc:creator>
      <dc:date>2017-02-16T15:15:57Z</dc:date>
    </item>
    <item>
      <title>Re: IAP Flash Erase</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/IAP-Flash-Erase/m-p/600043#M23264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class=""&gt;&lt;A _jive_internal="true" data-content-finding="Community" data-userid="293536" data-username="theodorosverykios" href="https://community.nxp.com/people/theodorosverykios"&gt;Theodoros Verykios&lt;/A&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;1) Can you please confirm whether this is expected and if so, why does it happen.&lt;/P&gt;&lt;P&gt;Sorry, I'm afraid that I can't answer this you right now, it beyond my ability and I need to contact with Design team for checking.&lt;/P&gt;&lt;P&gt;I'll you ASAP if I get some replies.&lt;BR /&gt;Have a great day,&lt;BR /&gt;Ping&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>Fri, 17 Feb 2017 01:53:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/IAP-Flash-Erase/m-p/600043#M23264</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2017-02-17T01:53:51Z</dc:date>
    </item>
  </channel>
</rss>

