<?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: How can I calculate stack consumption of ControllerTask which internally calls Controller_TaskHandler((void *) NULL)? in MCUXpresso SDK</title>
    <link>https://community.nxp.com/t5/MCUXpresso-SDK/How-can-I-calculate-stack-consumption-of-ControllerTask-which/m-p/1015689#M2116</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aniket,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are right, this task is part of the library that we provide. The task handler could be measure or could give you an idea of the memory that is taking for the process.&lt;/P&gt;&lt;P&gt;You could take as reference the Task list in the MCUxpresso.&lt;/P&gt;&lt;P&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/17793i87025BA1FD979371/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;Regards,&lt;/P&gt;&lt;P&gt;Mario&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Nov 2019 00:44:58 GMT</pubDate>
    <dc:creator>mario_castaneda</dc:creator>
    <dc:date>2019-11-27T00:44:58Z</dc:date>
    <item>
      <title>How can I calculate stack consumption of ControllerTask which internally calls Controller_TaskHandler((void *) NULL)?</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/How-can-I-calculate-stack-consumption-of-ControllerTask-which/m-p/1015688#M2115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using freeRTOS API&amp;nbsp;&lt;STRONG&gt;uxTaskGetStackHighWaterMark(NULL)&lt;/STRONG&gt; to calculate the stack consumption of each task.&amp;nbsp;I placed this API in while(1) of each task so that I can get the perfect runtime stack usage of each task.&lt;/P&gt;&lt;P&gt;I need to calculate&amp;nbsp;stack consumption of ControllerTask which internally calls Controller_TaskHandler((void *) NULL).&lt;/P&gt;&lt;P&gt;As the&amp;nbsp;&lt;STRONG&gt;Controller_TaskHandler((void *) NULL)&lt;/STRONG&gt; is library function call, it is not accessible to us.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where can I use the &lt;STRONG&gt;uxTaskGetStackHighWaterMark(NULL)&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;API to calculate the stack consumption of&amp;nbsp;ControllerTask? Is there any callback from&amp;nbsp;&lt;SPAN&gt;ControllerTask&amp;nbsp;&lt;/SPAN&gt;where I can use this API?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance :smileyhappy:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Nov 2019 08:55:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/How-can-I-calculate-stack-consumption-of-ControllerTask-which/m-p/1015688#M2115</guid>
      <dc:creator>abaniketbhumkar</dc:creator>
      <dc:date>2019-11-20T08:55:33Z</dc:date>
    </item>
    <item>
      <title>Re: How can I calculate stack consumption of ControllerTask which internally calls Controller_TaskHandler((void *) NULL)?</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/How-can-I-calculate-stack-consumption-of-ControllerTask-which/m-p/1015689#M2116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aniket,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are right, this task is part of the library that we provide. The task handler could be measure or could give you an idea of the memory that is taking for the process.&lt;/P&gt;&lt;P&gt;You could take as reference the Task list in the MCUxpresso.&lt;/P&gt;&lt;P&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/17793i87025BA1FD979371/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;Regards,&lt;/P&gt;&lt;P&gt;Mario&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Nov 2019 00:44:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/How-can-I-calculate-stack-consumption-of-ControllerTask-which/m-p/1015689#M2116</guid>
      <dc:creator>mario_castaneda</dc:creator>
      <dc:date>2019-11-27T00:44:58Z</dc:date>
    </item>
  </channel>
</rss>

