<?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>LPC MicrocontrollersのトピックRe: LPC802 Erase Problem</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC802-Erase-Problem/m-p/1047561#M40616</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello MOreno,&lt;/P&gt;&lt;P&gt;Just want to know have you test the IAP_test demo on your board? Dose the Erase function works well?&lt;/P&gt;&lt;P&gt;I test it on my side, it can work well, I change some code, erase the sector 14 page 7 (ox39c0):&lt;/P&gt;&lt;P&gt;Before erase:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/106625iA5B26061E29229C3/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.jpg" alt="pastedImage_1.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/106667iE4788941FF04BDF3/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.jpg" alt="pastedImage_2.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;After:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/106711i0621F454F7B91961/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.jpg" alt="pastedImage_3.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the erase driver in this demo, if still can't work, please send your project to me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="color: #51626f;"&gt;Have a great day,&lt;BR /&gt; TIC&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="color: #51626f;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="color: #51626f;"&gt;-------------------------------------------------------------------------------&lt;BR /&gt; Note:&lt;BR /&gt; - If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="color: #51626f;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="color: #51626f;"&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;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 09 May 2020 03:16:51 GMT</pubDate>
    <dc:creator>Alice_Yang</dc:creator>
    <dc:date>2020-05-09T03:16:51Z</dc:date>
    <item>
      <title>LPC802 Erase Problem</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC802-Erase-Problem/m-p/1047557#M40612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem when i try to erase Flash memory of LPC802M001J (currently I use the LPCXpresso802 board OM40000 Rev A)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My step are these (with SWD protocol):&lt;BR /&gt;1-&amp;gt; I Read the SYSMEMREMAP register and i found the value 0x02.&lt;/P&gt;&lt;P&gt;2-&amp;gt; I write into the same register the value 0x02.&lt;BR /&gt;3-&amp;gt; I send a Kernel into Ram at position 0x10000000. This Kernel is built with MCUXpresso IDE.&lt;BR /&gt;4-&amp;gt; &lt;SPAN&gt;I send the IAP command from my driver to uKernel. Into Kernel I send the IAP command to the ROM and then I await the response of the IAP.&lt;BR /&gt;5-&amp;gt; When I send the IAP command for Read Part ID, Read UID or Read Boot Code Version, all works well. So IAP responds correctly. The same for Blankcheck command.&lt;BR /&gt;&lt;BR /&gt;Problem:&lt;BR /&gt;When I send the Erase Sector command (command code 53), IAP responds with OK (&lt;/SPAN&gt;&lt;SPAN&gt;obviously before this command I prepare the sectors for erase with command 50).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;But after that command the Flash memory is not blank, &lt;SPAN&gt;only some bits are brought to the blank state.&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;You can see the status of the memory in the following images.&lt;BR /&gt;Before Erase:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_8.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/106619i9BA95A6D5B78FE0E/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_8.png" alt="pastedImage_8.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;After Erase:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_9.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/106662iB01DF89AA4C3C1EE/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_9.png" alt="pastedImage_9.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class="" title="Cancella testo di partenza"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Any help is appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2020 08:11:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC802-Erase-Problem/m-p/1047557#M40612</guid>
      <dc:creator>moreno_ortolan</dc:creator>
      <dc:date>2020-05-06T08:11:27Z</dc:date>
    </item>
    <item>
      <title>Re: LPC802 Erase Problem</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC802-Erase-Problem/m-p/1047558#M40613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Moreno!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just too verify, did you mean command code 52 for the erase? As near as I can tell command code 53 is the blank-check function,&amp;nbsp;though given that some erasure&amp;nbsp;took place this is presumably not the root case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Johan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2020 17:21:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC802-Erase-Problem/m-p/1047558#M40613</guid>
      <dc:creator>johan_forslof</dc:creator>
      <dc:date>2020-05-06T17:21:40Z</dc:date>
    </item>
    <item>
      <title>Re: LPC802 Erase Problem</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC802-Erase-Problem/m-p/1047559#M40614</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="358952" data-username="moreno.ortolan@smh-tech.com" href="https://community.nxp.com/people/moreno.ortolan@smh-tech.com"&gt;moreno ortolan&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;As Johan mentioned, command code 52 is erase .&lt;/P&gt;&lt;P&gt;How about your code? I recommend you first test the demo code:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.nxp.com/products/processors-and-microcontrollers/arm-microcontrollers/general-purpose-mcus/lpc800-cortex-m0-plus-/lpcxpresso802-for-the-lpc802-family-of-mcus:OM40000" title="https://www.nxp.com/products/processors-and-microcontrollers/arm-microcontrollers/general-purpose-mcus/lpc800-cortex-m0-plus-/lpcxpresso802-for-the-lpc802-family-of-mcus:OM40000"&gt;LPCXpresso802 board for LPC802 Microcontroller (MCU) | NXP&lt;/A&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/21156i3968214DA18FF37C/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;After download , you can find "IAP_test" demo, it includes erase function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&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 style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&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>Thu, 07 May 2020 04:02:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC802-Erase-Problem/m-p/1047559#M40614</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2020-05-07T04:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: LPC802 Erase Problem</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC802-Erase-Problem/m-p/1047560#M40615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;Hello Alice, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;thanks for your answer and the links you provided. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;In my algorithm I use the erase sector command correctly, i.e. command 52. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;In the question of this post I was wrong to copy-paste from the manual the value of the command. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;I looked at the code present in that link, I need to configure something inside the device during the init phase before using IAP commands? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;Because in my code the IAP responds correctly to the erase command, even if it doesn't perform the procedure correctly. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;BR /&gt;Could it be a problem related to the internal clock of the device?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2020 07:33:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC802-Erase-Problem/m-p/1047560#M40615</guid>
      <dc:creator>moreno_ortolan</dc:creator>
      <dc:date>2020-05-07T07:33:32Z</dc:date>
    </item>
    <item>
      <title>Re: LPC802 Erase Problem</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC802-Erase-Problem/m-p/1047561#M40616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello MOreno,&lt;/P&gt;&lt;P&gt;Just want to know have you test the IAP_test demo on your board? Dose the Erase function works well?&lt;/P&gt;&lt;P&gt;I test it on my side, it can work well, I change some code, erase the sector 14 page 7 (ox39c0):&lt;/P&gt;&lt;P&gt;Before erase:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/106625iA5B26061E29229C3/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.jpg" alt="pastedImage_1.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/106667iE4788941FF04BDF3/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.jpg" alt="pastedImage_2.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;After:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/106711i0621F454F7B91961/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.jpg" alt="pastedImage_3.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the erase driver in this demo, if still can't work, please send your project to me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="color: #51626f;"&gt;Have a great day,&lt;BR /&gt; TIC&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="color: #51626f;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="color: #51626f;"&gt;-------------------------------------------------------------------------------&lt;BR /&gt; Note:&lt;BR /&gt; - If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="color: #51626f;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="color: #51626f;"&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;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 May 2020 03:16:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC802-Erase-Problem/m-p/1047561#M40616</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2020-05-09T03:16:51Z</dc:date>
    </item>
  </channel>
</rss>

