<?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 Writing error using IAP functions in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Writing-error-using-IAP-functions/m-p/986021#M38870</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am devoloping a bootloader implementation for LPC4333. For that, I am using the IAP functions to write on Flash.&lt;/P&gt;&lt;P&gt;I am following the workflow I found in the AN10835 (for LPC2000).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 2 main questions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Is there a way to write in a part of the sector without previously erasing it all? How?&lt;/P&gt;&lt;P&gt;2) If I prepare the sector and then write over it when there was a previous valid value before, the result of the &lt;EM&gt;Chip_IAP_CopyRamToFlash&lt;/EM&gt; is OK (0x00) but the Flash is not with the correct values on those addresses. What can this be caused by?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Mar 2020 15:02:33 GMT</pubDate>
    <dc:creator>gbassi</dc:creator>
    <dc:date>2020-03-04T15:02:33Z</dc:date>
    <item>
      <title>Writing error using IAP functions</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Writing-error-using-IAP-functions/m-p/986021#M38870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am devoloping a bootloader implementation for LPC4333. For that, I am using the IAP functions to write on Flash.&lt;/P&gt;&lt;P&gt;I am following the workflow I found in the AN10835 (for LPC2000).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 2 main questions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Is there a way to write in a part of the sector without previously erasing it all? How?&lt;/P&gt;&lt;P&gt;2) If I prepare the sector and then write over it when there was a previous valid value before, the result of the &lt;EM&gt;Chip_IAP_CopyRamToFlash&lt;/EM&gt; is OK (0x00) but the Flash is not with the correct values on those addresses. What can this be caused by?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Mar 2020 15:02:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Writing-error-using-IAP-functions/m-p/986021#M38870</guid>
      <dc:creator>gbassi</dc:creator>
      <dc:date>2020-03-04T15:02:33Z</dc:date>
    </item>
    <item>
      <title>Re: Writing error using IAP functions</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Writing-error-using-IAP-functions/m-p/986022#M38871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" data-content-finding="Community" data-userid="356168" data-username="gbassi@msa.com.ar" href="https://community.nxp.com/people/gbassi@msa.com.ar"&gt;Gaston Bassi&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.&lt;BR /&gt;1) Is there a way to write in a part of the sector without previously erasing it all? How?&lt;BR /&gt;-- It needs to call the erase command prior to writing the flash, otherwise, the previous value will retain portion.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&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="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&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, 05 Mar 2020 02:38:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Writing-error-using-IAP-functions/m-p/986022#M38871</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2020-03-05T02:38:17Z</dc:date>
    </item>
    <item>
      <title>Re: Writing error using IAP functions</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Writing-error-using-IAP-functions/m-p/986023#M38872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for your prompt reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I understand the only option I have for the erase command is to erase the full sector. That means that if I need to write some information on the 64kB sectors, I would need to have a 64kB RAM buffer to first backup the content that it is already there, make the changes dynamically on RAM and then write the whole 64kB back to the FLASH. And I have only 96kB of total RAM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this operation correct or there is another way to do that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2020 13:22:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Writing-error-using-IAP-functions/m-p/986023#M38872</guid>
      <dc:creator>gbassi</dc:creator>
      <dc:date>2020-03-05T13:22:15Z</dc:date>
    </item>
    <item>
      <title>Re: Writing error using IAP functions</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Writing-error-using-IAP-functions/m-p/986024#M38873</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="356168" data-username="gbassi@msa.com.ar" href="https://community.nxp.com/people/gbassi@msa.com.ar"&gt;Gaston Bassi,&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Thanks for your reply.&lt;BR /&gt;I think the Erase page command can address your worry.&lt;BR /&gt;This command is used to erase a page or multiple pages of on-chip flash memory.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&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/96413i5AEED69F473B77E4/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&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="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&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, 06 Mar 2020 02:17:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Writing-error-using-IAP-functions/m-p/986024#M38873</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2020-03-06T02:17:49Z</dc:date>
    </item>
    <item>
      <title>Re: Writing error using IAP functions</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Writing-error-using-IAP-functions/m-p/986025#M38874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello! I came back to this issue, since I am having the problem mentioned in point 2 of original question.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I use the IAP functions to write a page, but then when I check it I see there is no change in the values despite the IAP write function returns 0.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jul 2020 14:11:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Writing-error-using-IAP-functions/m-p/986025#M38874</guid>
      <dc:creator>gbassi</dc:creator>
      <dc:date>2020-07-02T14:11:09Z</dc:date>
    </item>
  </channel>
</rss>

