<?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>LPCXpresso IDE中的主题 Re: LPC1768 Flash limitation</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1768-Flash-limitation/m-p/1728856#M33433</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/223369"&gt;@ReneB&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How about debug to check where is the issue?&lt;/P&gt;
&lt;P&gt;To do this, edit the launch configuration (by double clicking on the .launch file that will have been created in your project) and change the "reset handling" option to "SOFT", refer to:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/LPC-Microcontrollers/Lpc845-app-code-can-t-debug-after-bootloader/m-p/856989" target="_blank"&gt;https://community.nxp.com/t5/LPC-Microcontrollers/Lpc845-app-code-can-t-debug-after-bootloader/m-p/856989&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Alice&lt;/P&gt;</description>
    <pubDate>Mon, 25 Sep 2023 10:30:09 GMT</pubDate>
    <dc:creator>Alice_Yang</dc:creator>
    <dc:date>2023-09-25T10:30:09Z</dc:date>
    <item>
      <title>LPC1768 Flash limitation</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1768-Flash-limitation/m-p/1728047#M33432</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm using LPC1768 with LPCXpresso 8.1.4.&lt;/P&gt;&lt;P&gt;There is a bootloader on the low flash 0x -0x10000 (64kB).&lt;/P&gt;&lt;P&gt;So the size of the main code is limited to 448kB. The memory is declared in MCU Settings (Project properties) :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ReneB_0-1695391701593.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/242294i9E624980898E5759/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ReneB_0-1695391701593.png" alt="ReneB_0-1695391701593.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;ReneB_0-1695391701593.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and the linkscripts for memory is the following:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ReneB_1-1695387041056.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/242266iC2178D8E2AD0884D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ReneB_1-1695387041056.png" alt="ReneB_1-1695387041056.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;ReneB_1-1695387041056.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After build with Size optimization option (-s), the code size is 413404bytes (90.11% out of 448kB). so there is is almost 10% free space. the image is running as desired.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ReneB_0-1695391349341.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/242289iB6F156E6A57B0C78/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ReneB_0-1695391349341.png" alt="ReneB_0-1695391349341.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;ReneB_0-1695391349341.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After adding some extra code, the size goes up to 415204bytes (90.507% out of 448kb). At this moment the code image is not running anymore. If I keep the new extra code in place and comment some other lines of code to reduce the size back close to 90%, it runs again. I made several tests to confirm that the issue is not with the latest added code but with the size of the image.&lt;/P&gt;&lt;P&gt;The flash memory declaration looks correct to me.&lt;BR /&gt;What could be wrong ?&lt;BR /&gt;Nb: still with LPCXpresso V8.1.4 because i'm using a library which doesn't work properly with MCUXpresso, no time to search why yet...&lt;/P&gt;&lt;P&gt;Thank's for your help!&lt;/P&gt;</description>
      <pubDate>Fri, 22 Sep 2023 14:08:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1768-Flash-limitation/m-p/1728047#M33432</guid>
      <dc:creator>ReneB</dc:creator>
      <dc:date>2023-09-22T14:08:34Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1768 Flash limitation</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1768-Flash-limitation/m-p/1728856#M33433</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/223369"&gt;@ReneB&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How about debug to check where is the issue?&lt;/P&gt;
&lt;P&gt;To do this, edit the launch configuration (by double clicking on the .launch file that will have been created in your project) and change the "reset handling" option to "SOFT", refer to:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/LPC-Microcontrollers/Lpc845-app-code-can-t-debug-after-bootloader/m-p/856989" target="_blank"&gt;https://community.nxp.com/t5/LPC-Microcontrollers/Lpc845-app-code-can-t-debug-after-bootloader/m-p/856989&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Alice&lt;/P&gt;</description>
      <pubDate>Mon, 25 Sep 2023 10:30:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1768-Flash-limitation/m-p/1728856#M33433</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2023-09-25T10:30:09Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1768 Flash limitation</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1768-Flash-limitation/m-p/1732457#M33434</link>
      <description>&lt;P&gt;Thank's Alice.&lt;/P&gt;&lt;P&gt;I don't have any issue in Debug, only in Release.&lt;/P&gt;&lt;P&gt;To debug I set the Flash start address at 0x00000 and size to 0x80000 (512kB). Optimization is -Og.&lt;/P&gt;&lt;P&gt;For release, the flash starts at 0x10000 and size is 0x70000 (448kb). 64kb are reserved for bootloader. Optimization is -Os.&lt;/P&gt;&lt;P&gt;I didn't find a way to tell the debugger that application starts at 0x10000, so I can't debug the "Release" version. Maybe there is a way ?&lt;/P&gt;&lt;P&gt;By the way, here are the options for debugging:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ReneB_0-1696232213990.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/243353i05E10DC78F6073F7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ReneB_0-1696232213990.png" alt="ReneB_0-1696232213990.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;ReneB_0-1696232213990.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;no "SOFT" option...&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;</description>
      <pubDate>Mon, 02 Oct 2023 07:37:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1768-Flash-limitation/m-p/1732457#M33434</guid>
      <dc:creator>ReneB</dc:creator>
      <dc:date>2023-10-02T07:37:21Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1768 Flash limitation</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1768-Flash-limitation/m-p/1737362#M33435</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/223369"&gt;@ReneB&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How about use MCUXpresso IDE?&lt;/P&gt;
&lt;P&gt;If still can not work, send your two project to me.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Alice&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2023 09:36:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1768-Flash-limitation/m-p/1737362#M33435</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2023-10-11T09:36:46Z</dc:date>
    </item>
  </channel>
</rss>

