<?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 TAD blank according to stack size in MQX Software Solutions</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/TAD-blank-according-to-stack-size/m-p/702574#M17548</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm working with custon MK21FN1M0 board with MQX 4.2.0 (udated 4.2.0.2 was done) on KDS 3.2 on windows 10.&lt;/P&gt;&lt;P&gt;I'm debugging with PEMicro (Multilink)&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm facing a strange behaviour using TAD. I've tasks with different stack size :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="193801_193801.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/123141iD93096B96BA0D37F/image-size/large?v=v2&amp;amp;px=999" role="button" title="193801_193801.png" alt="193801_193801.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/29096iCC133D5DF07368B3/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Just after creating the "LOOP_TASK_USER_IDX" with&amp;nbsp;_task_create(0,LOOP_TASK_USER_IDX,0);&lt;BR /&gt; I lost data from TAD. There is no error returned by _task_create()&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="193803_193803.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/123142i67F5EE9D5BC1A463/image-size/large?v=v2&amp;amp;px=999" role="button" title="193803_193803.png" alt="193803_193803.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/29211i2DBF7196ABEB5C2D/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All TAD tabs are empty. That's the last task I launch, and before it TAD is working fine.&lt;BR /&gt;This behaviour change according to LOOP_TASK_USER_IDX task size. If i reduce the stack, TAD works.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Untill this morning it was working with 10000; After i made some tests, it don't work with 10000; Only with smaller value (about 7000)&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I dont' think i'm using all the RAM, BSS for my project is 6808 and total task Stack is 22000. MK21FN1M has 128KB of RAM,&amp;nbsp; according to &lt;A _jive_internal="true" data-containerid="2023" data-containertype="14" data-objectid="384917" data-objecttype="1" href="https://community.nxp.com/thread/384917"&gt;RAM Memory Utilization&lt;/A&gt; ,even if I consider only the 64KB lower part I must still got a lot of memory&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="193802_193802.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/123143i130D49EAE0D28123/image-size/large?v=v2&amp;amp;px=999" role="button" title="193802_193802.png" alt="193802_193802.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/29119iB3A97FA17F8AEB6D/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I've seen similar posts in community forum but no answer was given.&lt;/P&gt;&lt;P&gt;Does someone know what is hapening with TAD? Does the error came from TAD or must be in my code?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I join TAD logs&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-339210"&gt;TAD_log_170913_211204.log.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Sep 2017 19:04:24 GMT</pubDate>
    <dc:creator>jeremyesquirol</dc:creator>
    <dc:date>2017-09-13T19:04:24Z</dc:date>
    <item>
      <title>TAD blank according to stack size</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/TAD-blank-according-to-stack-size/m-p/702574#M17548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm working with custon MK21FN1M0 board with MQX 4.2.0 (udated 4.2.0.2 was done) on KDS 3.2 on windows 10.&lt;/P&gt;&lt;P&gt;I'm debugging with PEMicro (Multilink)&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm facing a strange behaviour using TAD. I've tasks with different stack size :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="193801_193801.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/123141iD93096B96BA0D37F/image-size/large?v=v2&amp;amp;px=999" role="button" title="193801_193801.png" alt="193801_193801.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/29096iCC133D5DF07368B3/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Just after creating the "LOOP_TASK_USER_IDX" with&amp;nbsp;_task_create(0,LOOP_TASK_USER_IDX,0);&lt;BR /&gt; I lost data from TAD. There is no error returned by _task_create()&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="193803_193803.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/123142i67F5EE9D5BC1A463/image-size/large?v=v2&amp;amp;px=999" role="button" title="193803_193803.png" alt="193803_193803.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/29211i2DBF7196ABEB5C2D/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All TAD tabs are empty. That's the last task I launch, and before it TAD is working fine.&lt;BR /&gt;This behaviour change according to LOOP_TASK_USER_IDX task size. If i reduce the stack, TAD works.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Untill this morning it was working with 10000; After i made some tests, it don't work with 10000; Only with smaller value (about 7000)&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I dont' think i'm using all the RAM, BSS for my project is 6808 and total task Stack is 22000. MK21FN1M has 128KB of RAM,&amp;nbsp; according to &lt;A _jive_internal="true" data-containerid="2023" data-containertype="14" data-objectid="384917" data-objecttype="1" href="https://community.nxp.com/thread/384917"&gt;RAM Memory Utilization&lt;/A&gt; ,even if I consider only the 64KB lower part I must still got a lot of memory&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="193802_193802.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/123143i130D49EAE0D28123/image-size/large?v=v2&amp;amp;px=999" role="button" title="193802_193802.png" alt="193802_193802.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/29119iB3A97FA17F8AEB6D/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I've seen similar posts in community forum but no answer was given.&lt;/P&gt;&lt;P&gt;Does someone know what is hapening with TAD? Does the error came from TAD or must be in my code?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I join TAD logs&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-339210"&gt;TAD_log_170913_211204.log.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Sep 2017 19:04:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/TAD-blank-according-to-stack-size/m-p/702574#M17548</guid>
      <dc:creator>jeremyesquirol</dc:creator>
      <dc:date>2017-09-13T19:04:24Z</dc:date>
    </item>
  </channel>
</rss>

