<?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: heap checking in LPCXpresso IDE</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/heap-checking/m-p/558425#M14987</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 Tue Mar 17 05:31:42 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;If you are maintaining your own linker scripts, then the simplest approach is probably just to define __top_SDRAM_HEAP in the linker script itself. Just add something along the lines of the following to the top of the script.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;__top_SDRAM_HEAP = 0x28000000 + 0x10000;&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[Changes addresses to match your system]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The PROVIDE statement you quote should then pick this up and assign the value to the __pvHeapLimit symbol, which is what the heap code in the Redlib C library uses as the end of heap value.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;Alternatively, take a look at &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%2Fheap-checking-redlib" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.lpcware.com/content/faq/lpcxpresso/heap-checking-redlib&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>Wed, 15 Jun 2016 23:35:58 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T23:35:58Z</dc:date>
    <item>
      <title>heap checking</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/heap-checking/m-p/558424#M14986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by cojanprins on Tue Mar 17 04:14:27 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to add some checking at the heap. I have placed the heap in external SD RAM using linker script (not managed script). I would like lines like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PROVIDE(_pvHeapStart = DEFINED(__user_heap_base) ? __user_heap_base : __start_SDRAM_HEAP);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PROVIDE(_pvHeapLimit = DEFINED(__user_heap_XXXX) ? __user_heap_XXXX : __top_SDRAM_HEAP);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My question: which global name is available for the "end-of-heap" (instead of __user_heap_XXXX)?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can it be done in this way?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Heap is running correctly in external SDRAM.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:35:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/heap-checking/m-p/558424#M14986</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:35:57Z</dc:date>
    </item>
    <item>
      <title>Re: heap checking</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/heap-checking/m-p/558425#M14987</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 Tue Mar 17 05:31:42 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;If you are maintaining your own linker scripts, then the simplest approach is probably just to define __top_SDRAM_HEAP in the linker script itself. Just add something along the lines of the following to the top of the script.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;__top_SDRAM_HEAP = 0x28000000 + 0x10000;&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[Changes addresses to match your system]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The PROVIDE statement you quote should then pick this up and assign the value to the __pvHeapLimit symbol, which is what the heap code in the Redlib C library uses as the end of heap value.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;Alternatively, take a look at &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%2Fheap-checking-redlib" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.lpcware.com/content/faq/lpcxpresso/heap-checking-redlib&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>Wed, 15 Jun 2016 23:35:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/heap-checking/m-p/558425#M14987</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:35:58Z</dc:date>
    </item>
    <item>
      <title>Re: heap checking</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/heap-checking/m-p/558426#M14988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by cojanprins on Mon Mar 23 06:28:33 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;OK, thanks for your help, I've implemented it in this way, seems to be working. Kind regards, Cojan.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:35:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/heap-checking/m-p/558426#M14988</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:35:58Z</dc:date>
    </item>
  </channel>
</rss>

