<?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>MQX Software Solutions中的主题 Re: RAM usage / task stack, have I hit the limit? is Task Stack space limited by MQX?</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/RAM-usage-task-stack-have-I-hit-the-limit-is-Task-Stack-space/m-p/185922#M3216</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Carl,&lt;/P&gt;&lt;P&gt;I haven't tried the following so if you do please let us know the results:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff"&gt;The mqx/source/tad sources are compiled in PSP library already. The customer&amp;nbsp;may enable "tad" shell command to execute Shell_tad function (of the shell library). So far, this only supports lightweight memory dumps and stack usage - but they can extend it by-example to suit what they need.&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff"&gt;The quick code-based way how to display at least the high-watermark of RAM usage is&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;_mem_get_highwater()&lt;/STRONG&gt; /* for full memory allocator */&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;or&lt;/STRONG&gt; &lt;STRONG&gt;_lwmem_get_highwater()&amp;nbsp;&lt;/STRONG&gt; /* for lightweight allocator */&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Mar 2010 23:20:04 GMT</pubDate>
    <dc:creator>DavidS</dc:creator>
    <dc:date>2010-03-24T23:20:04Z</dc:date>
    <item>
      <title>RAM usage / task stack, have I hit the limit? is Task Stack space limited by MQX?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/RAM-usage-task-stack-have-I-hit-the-limit-is-Task-Stack-space/m-p/185921#M3215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(MQX3.5.1, CW7.1.2, 52259evb)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am having stack overflow problems when I add a new task, or, increase the stack on an exsisting task (by looking at the TAD stack usage), I assume this means I am out of RAM, or, the task stack space is limited.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The application ram usage (approx):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;14KB of normal RAM usage&lt;/P&gt;&lt;P&gt;16KB worth of task stack (14 tasks in total)&lt;/P&gt;&lt;P&gt;I run RTCS (UDP only), ittya, ittyb, ittyc, GPIO, RTC, 6 Analogue pins, FlashX, and the SPI.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does this sound like it would use all the availlable RAM?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I cannot see anything in the TAD or the MQXUG that details how to check the memory limits for your custom BSP.&lt;/P&gt;&lt;P&gt;Is there any hints or points as to how to check the RAM limits (other than task stack)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Mar 2010 17:25:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/RAM-usage-task-stack-have-I-hit-the-limit-is-Task-Stack-space/m-p/185921#M3215</guid>
      <dc:creator>CarlFST60L</dc:creator>
      <dc:date>2010-03-24T17:25:10Z</dc:date>
    </item>
    <item>
      <title>Re: RAM usage / task stack, have I hit the limit? is Task Stack space limited by MQX?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/RAM-usage-task-stack-have-I-hit-the-limit-is-Task-Stack-space/m-p/185922#M3216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Carl,&lt;/P&gt;&lt;P&gt;I haven't tried the following so if you do please let us know the results:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff"&gt;The mqx/source/tad sources are compiled in PSP library already. The customer&amp;nbsp;may enable "tad" shell command to execute Shell_tad function (of the shell library). So far, this only supports lightweight memory dumps and stack usage - but they can extend it by-example to suit what they need.&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff"&gt;The quick code-based way how to display at least the high-watermark of RAM usage is&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;_mem_get_highwater()&lt;/STRONG&gt; /* for full memory allocator */&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;or&lt;/STRONG&gt; &lt;STRONG&gt;_lwmem_get_highwater()&amp;nbsp;&lt;/STRONG&gt; /* for lightweight allocator */&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Mar 2010 23:20:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/RAM-usage-task-stack-have-I-hit-the-limit-is-Task-Stack-space/m-p/185922#M3216</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2010-03-24T23:20:04Z</dc:date>
    </item>
    <item>
      <title>Re: RAM usage / task stack, have I hit the limit? is Task Stack space limited by MQX?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/RAM-usage-task-stack-have-I-hit-the-limit-is-Task-Stack-space/m-p/185923#M3217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I wrote some simple code that runs from my main task (highest priority) every 1mS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;#ifdef MEM_DEBUG    MEM_HIGH_WATER_BUFFER = _mem_get_highwater();   if(MEM_HIGH_WATER_BUFFER &amp;gt; MEM_HIGH_WATER)   {    MEM_HIGH_WATER = MEM_HIGH_WATER_BUFFER;    printf("HIGH WATER = %X\n", MEM_HIGH_WATER);    }#endif&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Everything seems to go well until the high water goes over 0x2000F000.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2020 09:36:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/RAM-usage-task-stack-have-I-hit-the-limit-is-Task-Stack-space/m-p/185923#M3217</guid>
      <dc:creator>CarlFST60L</dc:creator>
      <dc:date>2020-10-29T09:36:45Z</dc:date>
    </item>
  </channel>
</rss>

