<?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: LPC5528 IAP (flash api) RAM usage in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC5528-IAP-flash-api-RAM-usage/m-p/1482975#M49401</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/202922"&gt;@cgerlach&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;It seems you're correct, the RAM regions are reserved for when the bootloader is running and when you call the flash API.&lt;/P&gt;
&lt;P&gt;You could re-position code in that region after the functions are called, as an alternative.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Julián&lt;/P&gt;</description>
    <pubDate>Thu, 30 Jun 2022 18:12:07 GMT</pubDate>
    <dc:creator>Julián_AragónM</dc:creator>
    <dc:date>2022-06-30T18:12:07Z</dc:date>
    <item>
      <title>LPC5528 IAP (flash api) RAM usage</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC5528-IAP-flash-api-RAM-usage/m-p/1481204#M49359</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;we want to use the flash API (using fsl_iap.c) for a 2nd stage bootloader as well as to save some application data. It is not clear to me whether the functions in ROM (called by fsl_iap.c) use some ram (besides the stack).&lt;/P&gt;&lt;P&gt;Referring to UM11126 (Rev. 2.4) chapter 8.3.4.2:&lt;/P&gt;&lt;P&gt;"Below regions are reserved for bootloader use when the bootloader is running. The heap&lt;BR /&gt;and the BSS, RW section need to be reserved for the ROM API use before calling the&lt;BR /&gt;ROM APIs in user application (IAP scenario)."&lt;/P&gt;&lt;P&gt;The picture below this text indicates a RAM usage from 0x30000000 to 0x30005000 which would be the first 20k of RAM in secure access mode.&lt;/P&gt;&lt;P&gt;Does this only apply when the whole ROM bootloader is run (then the text above is misleading) or also when I do call the flash API (erase/program/verify) - which is normally called "IAP"? The latter case would imply that I must reserve the 20k of RAM and can not use them while doing some flash programming.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2022 12:16:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC5528-IAP-flash-api-RAM-usage/m-p/1481204#M49359</guid>
      <dc:creator>cgerlach</dc:creator>
      <dc:date>2022-06-28T12:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: LPC5528 IAP (flash api) RAM usage</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC5528-IAP-flash-api-RAM-usage/m-p/1482975#M49401</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/202922"&gt;@cgerlach&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;It seems you're correct, the RAM regions are reserved for when the bootloader is running and when you call the flash API.&lt;/P&gt;
&lt;P&gt;You could re-position code in that region after the functions are called, as an alternative.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Julián&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jun 2022 18:12:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC5528-IAP-flash-api-RAM-usage/m-p/1482975#M49401</guid>
      <dc:creator>Julián_AragónM</dc:creator>
      <dc:date>2022-06-30T18:12:07Z</dc:date>
    </item>
    <item>
      <title>Re: LPC5528 IAP (flash api) RAM usage</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC5528-IAP-flash-api-RAM-usage/m-p/1483675#M49430</link>
      <description>&lt;P&gt;Hi Julian,&lt;/P&gt;&lt;P&gt;thank you for the answer.&lt;/P&gt;&lt;P&gt;Sadly these are really bad news, as reserving 20k is really much when you just want so save some&lt;BR /&gt;bytes of configuration data (EEROM replacement) and are already short of RAM.&lt;/P&gt;&lt;P&gt;To me it seems the RAM range in the datasheet is mostly relevant for the whole bootloader and there&lt;BR /&gt;is just no precise RAM usage information for just the IAP calls.&lt;/P&gt;&lt;P&gt;Is it possible to get some more detailed information here?&lt;/P&gt;&lt;P&gt;Or some more information on how to do flash programming by using the flash controller (the UM hast not enough information on that IMHO),&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;</description>
      <pubDate>Sun, 03 Jul 2022 18:27:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC5528-IAP-flash-api-RAM-usage/m-p/1483675#M49430</guid>
      <dc:creator>cgerlach</dc:creator>
      <dc:date>2022-07-03T18:27:55Z</dc:date>
    </item>
    <item>
      <title>Re: LPC5528 IAP (flash api) RAM usage</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC5528-IAP-flash-api-RAM-usage/m-p/1485575#M49495</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/202922"&gt;@cgerlach&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I'm sorry for the inconvenience, but that specific information is not available, as the memory space reserved is for the whole process.&lt;/P&gt;
&lt;P&gt;For your second question, there is a file attached to the user manual called ROM_API which may be relevant to your problem, as it describes the usage and definitions of&amp;nbsp;IAP APIs.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture ROM_APIs.PNG" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/185865i1EFC96E3CA5A8AAC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Capture ROM_APIs.PNG" alt="Capture ROM_APIs.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Best regards, Julian&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2022 17:13:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC5528-IAP-flash-api-RAM-usage/m-p/1485575#M49495</guid>
      <dc:creator>Julián_AragónM</dc:creator>
      <dc:date>2022-07-06T17:13:55Z</dc:date>
    </item>
    <item>
      <title>Re: LPC5528 IAP (flash api) RAM usage</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC5528-IAP-flash-api-RAM-usage/m-p/1503275#M49805</link>
      <description>&lt;P&gt;Here: &lt;A href="https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-RAM-reservation-for-ROM-API-operations/m-p/990642/highlight/true#M38986" target="_blank" rel="noopener"&gt;https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-RAM-reservation-for-ROM-API-operations/m-p/990642/highlight/true#M38986&lt;/A&gt;&lt;BR /&gt;was written:&lt;BR /&gt;"&lt;SPAN&gt;The Flash API in LPC55S6x won't need extra RAM for Stack. Only Secure ROM API need such RAM for stack purpose.&lt;/SPAN&gt;"&lt;/P&gt;</description>
      <pubDate>Tue, 09 Aug 2022 12:10:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC5528-IAP-flash-api-RAM-usage/m-p/1503275#M49805</guid>
      <dc:creator>bressan</dc:creator>
      <dc:date>2022-08-09T12:10:49Z</dc:date>
    </item>
  </channel>
</rss>

