<?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: LPC1756 has 16KB SRAM but overflowed by 3504 bytes in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1756-has-16KB-SRAM-but-overflowed-by-3504-bytes/m-p/520656#M3754</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by lpcxpresso-support on Thu May 07 00:48:22 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Because you have 19.5 KB of data/bss that you are trying to place into 16KB of RAM&amp;nbsp; :~ &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.lpcware.com%2Fcontent%2Ffaq%2Flpcxpresso%2Fapplication-flash-ram-size" rel="nofollow" target="_blank"&gt;http://www.lpcware.com/content/faq/lpcxpresso/application-flash-ram-size&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You need to look at what is consuming the space and potentially move some of your variables into the other RAM bank:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.lpcware.com%2Fcontent%2Ffaq%2Flpcxpresso%2Fdata-different-ram-blocks" rel="nofollow" target="_blank"&gt;http://www.lpcware.com/content/faq/lpcxpresso/data-different-ram-blocks&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As you are using C++, you might also need/want to switch to using NewlibNano rather than the default Newlib library, as this has lower memory requirements:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.lpcware.com%2Fcontent%2Ffaq%2Flpcxpresso%2Fnewlib-nano-support" rel="nofollow" target="_blank"&gt;http://www.lpcware.com/content/faq/lpcxpresso/newlib-nano-support&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPCXpresso Support&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 17:44:04 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T17:44:04Z</dc:date>
    <item>
      <title>LPC1756 has 16KB SRAM but overflowed by 3504 bytes</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1756-has-16KB-SRAM-but-overflowed-by-3504-bytes/m-p/520654#M3752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by phuockal on Thu May 07 00:36:16 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Dear friends, experts,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am working on LPC1756, use LpcXpresso 7.6.2, C++ programming language.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the memory of LPC1756 is listed as below:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;MEMORY&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; /* Define each memory region */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; MFlash256 (rx) : ORIGIN = 0x0, LENGTH = 0x40000 /* 256K bytes */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; RamLoc16 (rwx) : ORIGIN = 0x10000000, LENGTH = 0x4000 /* 16K bytes */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; RamAHB16 (rwx) : ORIGIN = 0x2007c000, LENGTH = 0x4000 /* 16K bytes */&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;but while I built my project C++, the LpcXpresso announce an error like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;c:/nxp/lpcxpresso_7.6.2_326/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/bin/ld.exe: LPC1756.axf section `.bss' will not fit in region `RamLoc16'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;c:/nxp/lpcxpresso_7.6.2_326/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/bin/ld.exe: region `RamLoc16' overflowed by 3504 bytes&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;collect2.exe: error: ld returned 1 exit status&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;make: *** [LPC1756.axf] Error 1 &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I wonders why RamLoc16 has 16KB but overflowed by 3504 bytes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Please help me&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:44:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1756-has-16KB-SRAM-but-overflowed-by-3504-bytes/m-p/520654#M3752</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:44:03Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1756 has 16KB SRAM but overflowed by 3504 bytes</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1756-has-16KB-SRAM-but-overflowed-by-3504-bytes/m-p/520655#M3753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by TheFallGuy on Thu May 07 00:48:21 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;It means that you are trying to fit 19k bytes of data into a 16k memory region. i.e. you have too much data!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:44:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1756-has-16KB-SRAM-but-overflowed-by-3504-bytes/m-p/520655#M3753</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:44:03Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1756 has 16KB SRAM but overflowed by 3504 bytes</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1756-has-16KB-SRAM-but-overflowed-by-3504-bytes/m-p/520656#M3754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by lpcxpresso-support on Thu May 07 00:48:22 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Because you have 19.5 KB of data/bss that you are trying to place into 16KB of RAM&amp;nbsp; :~ &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.lpcware.com%2Fcontent%2Ffaq%2Flpcxpresso%2Fapplication-flash-ram-size" rel="nofollow" target="_blank"&gt;http://www.lpcware.com/content/faq/lpcxpresso/application-flash-ram-size&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You need to look at what is consuming the space and potentially move some of your variables into the other RAM bank:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.lpcware.com%2Fcontent%2Ffaq%2Flpcxpresso%2Fdata-different-ram-blocks" rel="nofollow" target="_blank"&gt;http://www.lpcware.com/content/faq/lpcxpresso/data-different-ram-blocks&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As you are using C++, you might also need/want to switch to using NewlibNano rather than the default Newlib library, as this has lower memory requirements:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.lpcware.com%2Fcontent%2Ffaq%2Flpcxpresso%2Fnewlib-nano-support" rel="nofollow" target="_blank"&gt;http://www.lpcware.com/content/faq/lpcxpresso/newlib-nano-support&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPCXpresso Support&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:44:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1756-has-16KB-SRAM-but-overflowed-by-3504-bytes/m-p/520656#M3754</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:44:04Z</dc:date>
    </item>
  </channel>
</rss>

