<?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: Copy SDRAM to flash and IAP memory reservation in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Copy-SDRAM-to-flash-and-IAP-memory-reservation/m-p/716172#M28942</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV style="white-space: pre-wrap; text-align: left; line-height: 1.75; font-size: 14px;"&gt; &lt;/DIV&gt;&lt;DIV style="white-space: pre-wrap; text-align: left; line-height: 1.75; font-size: 14px;"&gt;Hi &lt;A _jive_internal="true" href="https://community.nxp.com/people/hiephuynh"&gt;&lt;SPAN style="color: #003884; text-decoration: underline;"&gt;HIEP HUYNH&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN style="color: #393939;"&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="white-space: pre-wrap; text-align: left; line-height: 1.75; font-size: 14px;"&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Thank you for your interest in NXP Semiconductor products and&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="white-space: pre-wrap; text-align: left; line-height: 1.75; font-size: 14px;"&gt;&lt;SPAN style="background-color: #ffffff;"&gt;the opportunity to serve you.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="white-space: pre-wrap; text-align: left; line-height: 1.75; font-size: 14px;"&gt;&lt;SPAN style="background-color: #ffffff;"&gt;You should copy the data from SDRAM to SRAM before calling Copy RAM to Flash command.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="white-space: pre-wrap; text-align: left; line-height: 1.75; font-size: 14px;"&gt;&lt;SPAN style="background-color: #ffffff;"&gt;About how much RAM area should be reserved when calling IAP commands, I think the section 6.4.5.8 RAM used by IAP command handler has illustrated it in details.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="white-space: pre-wrap; text-align: left; line-height: 1.75; font-size: 14px;"&gt;Have a great day,&lt;/DIV&gt;&lt;DIV style="white-space: pre-wrap; line-height: 1.75; font-size: 14px;"&gt;TIC&lt;/DIV&gt;&lt;DIV style="white-space: pre-wrap; line-height: 1.75; font-size: 14px;"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV style="white-space: pre-wrap; line-height: 1.75; font-size: 14px;"&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/DIV&gt;&lt;DIV style="white-space: pre-wrap; line-height: 1.75; font-size: 14px;"&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/DIV&gt;&lt;DIV style="white-space: pre-wrap; line-height: 1.75; font-size: 14px;"&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Mar 2018 02:55:28 GMT</pubDate>
    <dc:creator>jeremyzhou</dc:creator>
    <dc:date>2018-03-05T02:55:28Z</dc:date>
    <item>
      <title>Copy SDRAM to flash and IAP memory reservation</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Copy-SDRAM-to-flash-and-IAP-memory-reservation/m-p/716171#M28941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;For&amp;nbsp;IAP (In-app programming) to update firmware code to Flash Bank of a LPC43xx, do I need to write from &lt;STRONG&gt;SDRAM to SRAM to flash&lt;/STRONG&gt; bank memory or can I just write from &lt;STRONG&gt;SDRAM-&amp;gt;flash&lt;/STRONG&gt;?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Another question I have is in UM10503.pdf section "&lt;STRONG&gt;6.4.5.8 RAM used by IAP command handler&lt;/STRONG&gt;", it looks like there's a requirement to reserve some RAM block for IAP commands.&amp;nbsp; What's the total size of memory application must reserve for IAP calls and is there some code example for this reservation for IAP? Appreciate your help.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2018 08:17:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Copy-SDRAM-to-flash-and-IAP-memory-reservation/m-p/716171#M28941</guid>
      <dc:creator>hiephuynh</dc:creator>
      <dc:date>2018-02-28T08:17:06Z</dc:date>
    </item>
    <item>
      <title>Re: Copy SDRAM to flash and IAP memory reservation</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Copy-SDRAM-to-flash-and-IAP-memory-reservation/m-p/716172#M28942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV style="white-space: pre-wrap; text-align: left; line-height: 1.75; font-size: 14px;"&gt; &lt;/DIV&gt;&lt;DIV style="white-space: pre-wrap; text-align: left; line-height: 1.75; font-size: 14px;"&gt;Hi &lt;A _jive_internal="true" href="https://community.nxp.com/people/hiephuynh"&gt;&lt;SPAN style="color: #003884; text-decoration: underline;"&gt;HIEP HUYNH&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN style="color: #393939;"&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="white-space: pre-wrap; text-align: left; line-height: 1.75; font-size: 14px;"&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Thank you for your interest in NXP Semiconductor products and&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="white-space: pre-wrap; text-align: left; line-height: 1.75; font-size: 14px;"&gt;&lt;SPAN style="background-color: #ffffff;"&gt;the opportunity to serve you.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="white-space: pre-wrap; text-align: left; line-height: 1.75; font-size: 14px;"&gt;&lt;SPAN style="background-color: #ffffff;"&gt;You should copy the data from SDRAM to SRAM before calling Copy RAM to Flash command.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="white-space: pre-wrap; text-align: left; line-height: 1.75; font-size: 14px;"&gt;&lt;SPAN style="background-color: #ffffff;"&gt;About how much RAM area should be reserved when calling IAP commands, I think the section 6.4.5.8 RAM used by IAP command handler has illustrated it in details.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="white-space: pre-wrap; text-align: left; line-height: 1.75; font-size: 14px;"&gt;Have a great day,&lt;/DIV&gt;&lt;DIV style="white-space: pre-wrap; line-height: 1.75; font-size: 14px;"&gt;TIC&lt;/DIV&gt;&lt;DIV style="white-space: pre-wrap; line-height: 1.75; font-size: 14px;"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV style="white-space: pre-wrap; line-height: 1.75; font-size: 14px;"&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/DIV&gt;&lt;DIV style="white-space: pre-wrap; line-height: 1.75; font-size: 14px;"&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/DIV&gt;&lt;DIV style="white-space: pre-wrap; line-height: 1.75; font-size: 14px;"&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2018 02:55:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Copy-SDRAM-to-flash-and-IAP-memory-reservation/m-p/716172#M28942</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2018-03-05T02:55:28Z</dc:date>
    </item>
    <item>
      <title>Re: Copy SDRAM to flash and IAP memory reservation</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Copy-SDRAM-to-flash-and-IAP-memory-reservation/m-p/716173#M28943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jeremy, for "set active boot bank" IAP command, the datasheet says we need to reserve 2208 Bytes in RAM.&amp;nbsp; So I need to reserve 2208 B + additional bytes for other IAP commands like erase/prepare, etc?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2018 08:59:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Copy-SDRAM-to-flash-and-IAP-memory-reservation/m-p/716173#M28943</guid>
      <dc:creator>hiephuynh</dc:creator>
      <dc:date>2018-03-05T08:59:41Z</dc:date>
    </item>
    <item>
      <title>Re: Copy SDRAM to flash and IAP memory reservation</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Copy-SDRAM-to-flash-and-IAP-memory-reservation/m-p/716174#M28944</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="283160" data-username="hiephuynh" href="https://community.nxp.com/people/hiephuynh"&gt;HIEP HUYNH&lt;/A&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;1) So I need to reserve 2208 B + additional bytes for other IAP commands like erase/prepare, etc?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Yes, and 2456 B is the maximum size.&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: 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, 06 Mar 2018 02:14:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Copy-SDRAM-to-flash-and-IAP-memory-reservation/m-p/716174#M28944</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2018-03-06T02:14:03Z</dc:date>
    </item>
    <item>
      <title>Re: Copy SDRAM to flash and IAP memory reservation</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Copy-SDRAM-to-flash-and-IAP-memory-reservation/m-p/716175#M28945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok thanks.&amp;nbsp;In order to do "Set Active Boot Bank" command,&amp;nbsp; in .icf Linker file, do I specify like this below to reserve the top 2456 Bytes for IAP calls?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;define symbol LOCAL_SRAM_start__ = &lt;STRONG&gt;0x10080000&lt;/STRONG&gt;;&lt;BR /&gt;define symbol LOCAL_SRAM_end__&amp;nbsp; = &lt;STRONG&gt;0x10089667&lt;/STRONG&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Mar 2018 02:36:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Copy-SDRAM-to-flash-and-IAP-memory-reservation/m-p/716175#M28945</guid>
      <dc:creator>hiephuynh</dc:creator>
      <dc:date>2018-03-06T02:36:19Z</dc:date>
    </item>
    <item>
      <title>Re: Copy SDRAM to flash and IAP memory reservation</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Copy-SDRAM-to-flash-and-IAP-memory-reservation/m-p/716176#M28946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV style="white-space: pre-wrap; text-align: left; line-height: 1.75; font-size: 14px;"&gt; &lt;/DIV&gt;&lt;DIV style="white-space: pre-wrap; text-align: left; line-height: 1.75; font-size: 14px;"&gt;Hi &lt;A _jive_internal="true" href="https://community.nxp.com/people/hiephuynh"&gt;&lt;SPAN style="color: #003884; text-decoration: underline;"&gt;HIEP HUYNH&lt;/SPAN&gt;&lt;/A&gt;,&lt;/DIV&gt;&lt;DIV style="white-space: pre-wrap; line-height: 1.75; font-size: 14px;"&gt;Thanks for your reply.&lt;/DIV&gt;&lt;DIV style="white-space: pre-wrap; line-height: 1.75; font-size: 14px;"&gt;In my opinion, It's not necessary to adapt the original linker file when calling the IAP commands.&lt;/DIV&gt;&lt;DIV style="white-space: pre-wrap; line-height: 1.75; font-size: 14px;"&gt;Hope this is clear.&lt;/DIV&gt;&lt;P&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: 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, 06 Mar 2018 03:28:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Copy-SDRAM-to-flash-and-IAP-memory-reservation/m-p/716176#M28946</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2018-03-06T03:28:23Z</dc:date>
    </item>
    <item>
      <title>Re: Copy SDRAM to flash and IAP memory reservation</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Copy-SDRAM-to-flash-and-IAP-memory-reservation/m-p/716177#M28947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, so how would I reserve 2208 Bytes for this&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;"Set Active Boot Bank" IAP command?&amp;nbsp; I'm using IAR Workbench.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Mar 2018 20:18:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Copy-SDRAM-to-flash-and-IAP-memory-reservation/m-p/716177#M28947</guid>
      <dc:creator>hiephuynh</dc:creator>
      <dc:date>2018-03-06T20:18:28Z</dc:date>
    </item>
    <item>
      <title>Re: Copy SDRAM to flash and IAP memory reservation</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Copy-SDRAM-to-flash-and-IAP-memory-reservation/m-p/716178#M28948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV style="white-space: pre-wrap; text-align: left; line-height: 1.75; font-size: 14px;"&gt;Hi &lt;A _jive_internal="true" href="https://community.nxp.com/people/hiephuynh" rel="nofollow noopener noreferrer" target="_blank"&gt;&lt;SPAN style="color: #003884; text-decoration: underline;"&gt;HIEP HUYNH&lt;/SPAN&gt;&lt;/A&gt;,&lt;/DIV&gt;&lt;DIV style="white-space: pre-wrap; line-height: 1.75; font-size: 14px;"&gt;Thanks for your reply.&lt;/DIV&gt;&lt;DIV style="white-space: pre-wrap; line-height: 1.75; font-size: 14px;"&gt;You can enlarge the size of the stack area via adapting the linker file, however I think the defaut size is large enough.&lt;/DIV&gt;&lt;DIV style="white-space: pre-wrap; line-height: 1.75; font-size: 14px;"&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="comment token"&gt;/*-Sizes-*/&lt;/SPAN&gt;
define symbol __ICFEDIT_size_cstack__ &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0x2000&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
define symbol __ICFEDIT_size_heap__&amp;nbsp;&amp;nbsp; &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0x2000&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;/**** End of ICF editor section. ###ICF###*/&lt;/SPAN&gt;
&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;DIV style="white-space: pre-wrap; line-height: 1.75; font-size: 14px;"&gt;Have a great day,&lt;/DIV&gt;&lt;DIV style="white-space: pre-wrap; line-height: 1.75; font-size: 14px;"&gt;TIC&lt;/DIV&gt;&lt;DIV style="white-space: pre-wrap; line-height: 1.75; font-size: 14px;"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV style="white-space: pre-wrap; line-height: 1.75; font-size: 14px;"&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/DIV&gt;&lt;DIV style="white-space: pre-wrap; line-height: 1.75; font-size: 14px;"&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/DIV&gt;&lt;DIV style="white-space: pre-wrap; line-height: 1.75; font-size: 14px;"&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Mar 2018 03:04:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Copy-SDRAM-to-flash-and-IAP-memory-reservation/m-p/716178#M28948</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2018-03-07T03:04:30Z</dc:date>
    </item>
    <item>
      <title>Re: Copy SDRAM to flash and IAP memory reservation</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Copy-SDRAM-to-flash-and-IAP-memory-reservation/m-p/716179#M28949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My .icf has the same defines.&amp;nbsp; The&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;"Set Active Boot Bank" command is also&lt;/SPAN&gt; working for me now.&amp;nbsp; Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Mar 2018 18:20:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Copy-SDRAM-to-flash-and-IAP-memory-reservation/m-p/716179#M28949</guid>
      <dc:creator>hiephuynh</dc:creator>
      <dc:date>2018-03-07T18:20:09Z</dc:date>
    </item>
  </channel>
</rss>

