<?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: Stack bottom in LPCXpresso IDE</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/Stack-bottom/m-p/534675#M4227</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 Sun Dec 22 10:11:22 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;This may help you...&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%2Ffaq%2Flpcxpresso%2Fheap-checking-redlib" rel="nofollow" target="_blank"&gt;http://www.lpcware.com/content/faq/lpcxpresso/heap-checking-redlib&lt;/A&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jun 2016 02:59:09 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-16T02:59:09Z</dc:date>
    <item>
      <title>Stack bottom</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Stack-bottom/m-p/534674#M4226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by ronkrem on Sun Dec 22 06:01:04 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I can find the stack top from the memory map, but how do I find the address of the bottom of the available stack area in an LPCXpresso program? I need these addresses to implement a stack usage monitor within my program.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:59:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Stack-bottom/m-p/534674#M4226</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:59:08Z</dc:date>
    </item>
    <item>
      <title>Re: Stack bottom</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Stack-bottom/m-p/534675#M4227</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 Sun Dec 22 10:11:22 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;This may help you...&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%2Ffaq%2Flpcxpresso%2Fheap-checking-redlib" rel="nofollow" target="_blank"&gt;http://www.lpcware.com/content/faq/lpcxpresso/heap-checking-redlib&lt;/A&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:59:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Stack-bottom/m-p/534675#M4227</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:59:09Z</dc:date>
    </item>
    <item>
      <title>Re: Stack bottom</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Stack-bottom/m-p/534676#M4228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by ronkrem on Sun Jan 05 06:15:42 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;After some more map file searching I can now setup the stack for background monitoring. Here is the setup code:&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;#ifdef DEBUG_STACK
&amp;nbsp;&amp;nbsp;&amp;nbsp; StackBottom = (uint8_t*)((__heaps&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;amp; 0xfffffff0) + 0x20);
&amp;nbsp;&amp;nbsp;&amp;nbsp; StackTop&amp;nbsp;&amp;nbsp;&amp;nbsp; = (uint8_t*)((__get_MSP() &amp;amp; 0xfffffff0) - 0x20);
&amp;nbsp;&amp;nbsp;&amp;nbsp; StackPtr = StackTop;
&amp;nbsp;&amp;nbsp;&amp;nbsp; StackSize = StackTop - StackBottom;
&amp;nbsp;&amp;nbsp;&amp;nbsp; memset(StackBottom, FLAG_BYTE, StackSize);
#endif
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards, Ron&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:59:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Stack-bottom/m-p/534676#M4228</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:59:10Z</dc:date>
    </item>
  </channel>
</rss>

