<?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: Runtime Relocation of the Heap in LPCXpresso IDE</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/Runtime-Relocation-of-the-Heap/m-p/587246#M27585</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by emh203 on Thu Apr 09 10:26:04 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Ok, thanks for the input.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to move the heap to external SDRAM on an LPC43xx *after* it is configured and a memcheck is performed in main.&amp;nbsp;&amp;nbsp; I was hoping that noting actually uses dynamic memory before main.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jun 2016 00:09:47 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-16T00:09:47Z</dc:date>
    <item>
      <title>Runtime Relocation of the Heap</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Runtime-Relocation-of-the-Heap/m-p/587244#M27583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by emh203 on Mon Apr 06 11:16:51 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a simple way of relocating start of the heap at runtime?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:09:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Runtime-Relocation-of-the-Heap/m-p/587244#M27583</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:09:46Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime Relocation of the Heap</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Runtime-Relocation-of-the-Heap/m-p/587245#M27584</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 Apr 09 00:41:01 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I have not tried this, but you ought to be able achieve this by setting &lt;/SPAN&gt;&lt;STRONG&gt;__end_of_heap&lt;/STRONG&gt;&lt;SPAN&gt; before the first call into the memory allocation function (malloc etc).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We might be able to provide more advice if you explain in more detail exactly what you are trying to do and why.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Note that if you are linking against the Redlib nohost or semihost library variants, this will need to be done in the reset handler before the call to __main() [as this initialisation function calls into the memory allocator].&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;PS - you might also want to scan through this recent thread:&lt;/SPAN&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%2Fforum%2Fcheck-heap-usage-runtime" rel="nofollow" target="_blank"&gt;http://www.lpcware.com/content/forum/check-heap-usage-runtime&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:09:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Runtime-Relocation-of-the-Heap/m-p/587245#M27584</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:09:47Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime Relocation of the Heap</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Runtime-Relocation-of-the-Heap/m-p/587246#M27585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by emh203 on Thu Apr 09 10:26:04 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Ok, thanks for the input.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to move the heap to external SDRAM on an LPC43xx *after* it is configured and a memcheck is performed in main.&amp;nbsp;&amp;nbsp; I was hoping that noting actually uses dynamic memory before main.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:09:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Runtime-Relocation-of-the-Heap/m-p/587246#M27585</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:09:47Z</dc:date>
    </item>
  </channel>
</rss>

