<?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: LPC845 IAP, page erase in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC845-IAP-page-erase/m-p/861149#M34275</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Rian,&lt;/P&gt;&lt;P&gt;The IAP commands all have return Status,&lt;/P&gt;&lt;P&gt;we can&amp;nbsp; check the Statue code to confirm whether&amp;nbsp; finished:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/69175iC90BB60CD35FD79D/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/69068i163612AEE4FB513F/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&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, 02 Apr 2019 02:49:33 GMT</pubDate>
    <dc:creator>Alice_Yang</dc:creator>
    <dc:date>2019-04-02T02:49:33Z</dc:date>
    <item>
      <title>LPC845 IAP, page erase</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC845-IAP-page-erase/m-p/861146#M34272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We develop a OTA upgrade feature for a LPC845 based project.&lt;/P&gt;&lt;P&gt;We noticed that IAP - ERASE PAGE command (59 dec) is able to erase a single 64 byte page which is extraordinarily.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Two questions arrives:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Is this reliable? I mean what's behind IAP in case of loss of power during write page ?&lt;/P&gt;&lt;P&gt;The concern is that entire sector (where the page is) can be corrupted?&lt;/P&gt;&lt;P&gt;Or just page in discussion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) There is a restriction to not access FLASH while this IAP is in progress.&lt;/P&gt;&lt;P&gt;So the best approach (reliable) is to wait for IAP complete.&lt;/P&gt;&lt;P&gt;How can we calculate worst case wait over temp range and Vdd?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for clarifications.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Mar 2019 08:06:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC845-IAP-page-erase/m-p/861146#M34272</guid>
      <dc:creator>rianzu</dc:creator>
      <dc:date>2019-03-28T08:06:51Z</dc:date>
    </item>
    <item>
      <title>Re: LPC845 IAP, page erase</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC845-IAP-page-erase/m-p/861147#M34273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A _jive_internal="true" data-content-finding="Community" data-userid="284565" data-username="rianzu" href="https://community.nxp.com/people/rianzu"&gt;Rian Malcovich&lt;/A&gt; ,&lt;/P&gt;&lt;P&gt;1) " entire sector (where the page is) can be corrupted?"&lt;/P&gt;&lt;P&gt;-&amp;gt; No, only erase the page. There is&amp;nbsp; "Flash_IAP" demo under LPC845 Code Bundule :&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.nxp.com/products/processors-and-microcontrollers/arm-based-processors-and-mcus/lpc-cortex-m-mcus/lpc800-series-cortex-m0-plus-mcus/low-cost-microcontrollers-mcus-based-on-arm-cortex-m0-plus-cores:LPC84X?tab=Design_Tools_Tab" title="https://www.nxp.com/products/processors-and-microcontrollers/arm-based-processors-and-mcus/lpc-cortex-m-mcus/lpc800-series-cortex-m0-plus-mcus/low-cost-microcontrollers-mcus-based-on-arm-cortex-m0-plus-cores:LPC84X?tab=Design_Tools_Tab"&gt;LPC84x 30MHz|Arm® Cortex®-M0+|32-bit Microcontrollers (MCUs) | NXP&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did some change to test based on this demo, confirmed&amp;nbsp; page erase function:&lt;/P&gt;&lt;P&gt;After erase page:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/78999i14459FD0EC32CA7B/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;then writhe this page:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_4.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/79026i59611D90D108BDB9/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_4.png" alt="pastedImage_4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;2) Before access FLASH , please disable all interrupts.&lt;/P&gt;&lt;P&gt;About "How can we calculate worst case wait over temp range and Vdd?", sorry I'm not very clear your meaning,&lt;/P&gt;&lt;P&gt;could you please description it in detail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&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>Fri, 29 Mar 2019 04:09:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC845-IAP-page-erase/m-p/861147#M34273</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2019-03-29T04:09:50Z</dc:date>
    </item>
    <item>
      <title>Re: LPC845 IAP, page erase</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC845-IAP-page-erase/m-p/861148#M34274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Understood for 1) and thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For 2) the flash must NOT be accessed until IAP execution finished.&lt;/P&gt;&lt;P&gt;So we must have a blocking loop to allow time to elapse.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The question is how long to wait, how to calculate to have a safety margin under worst case conditions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Apr 2019 13:19:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC845-IAP-page-erase/m-p/861148#M34274</guid>
      <dc:creator>rianzu</dc:creator>
      <dc:date>2019-04-01T13:19:47Z</dc:date>
    </item>
    <item>
      <title>Re: LPC845 IAP, page erase</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC845-IAP-page-erase/m-p/861149#M34275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Rian,&lt;/P&gt;&lt;P&gt;The IAP commands all have return Status,&lt;/P&gt;&lt;P&gt;we can&amp;nbsp; check the Statue code to confirm whether&amp;nbsp; finished:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/69175iC90BB60CD35FD79D/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/69068i163612AEE4FB513F/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&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, 02 Apr 2019 02:49:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC845-IAP-page-erase/m-p/861149#M34275</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2019-04-02T02:49:33Z</dc:date>
    </item>
  </channel>
</rss>

