<?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: check stack &amp;amp; heap size during debug in S32DS in S32K</title>
    <link>https://community.nxp.com/t5/S32K/check-stack-amp-heap-size-during-debug-in-S32DS/m-p/1172896#M8575</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;these discussions could be helpful:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/S32-Design-Studio/How-to-check-CPU-Usage/m-p/743398" target="_blank"&gt;https://community.nxp.com/t5/S32-Design-Studio/How-to-check-CPU-Usage/m-p/743398&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/S32K/Failure-reaction-in-case-of-Stack-overflow-or-underflow-S32K1/m-p/838550/highlight/true" target="_blank"&gt;https://community.nxp.com/t5/S32K/Failure-reaction-in-case-of-Stack-overflow-or-underflow-S32K1/m-p/838550/highlight/true&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/S32K/Example-of-DWT-for-stack-usage-monitoring-on-S32K1xx/td-p/1160990" target="_blank"&gt;https://community.nxp.com/t5/S32K/Example-of-DWT-for-stack-usage-monitoring-on-S32K1xx/td-p/1160990&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;In addition, I like this simple high water mark method: fill whole stack by some pattern like 0xAA (for example by debugger) and then run the code. Examine as many program paths as possible and then check the stack – you will see which part of the stack has been rewritten and you can adjust the size accordingly.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Lukas&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 26 Oct 2020 06:39:43 GMT</pubDate>
    <dc:creator>lukaszadrapa</dc:creator>
    <dc:date>2020-10-26T06:39:43Z</dc:date>
    <item>
      <title>check stack &amp; heap size during debug in S32DS</title>
      <link>https://community.nxp.com/t5/S32K/check-stack-amp-heap-size-during-debug-in-S32DS/m-p/1172084#M8557</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I'm using S32144 and S32DS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;During Debugging, is there any way to check stack &amp;amp; heap size?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If there is, please let me know!&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 23 Oct 2020 00:32:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/check-stack-amp-heap-size-during-debug-in-S32DS/m-p/1172084#M8557</guid>
      <dc:creator>skseofh</dc:creator>
      <dc:date>2020-10-23T00:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: check stack &amp; heap size during debug in S32DS</title>
      <link>https://community.nxp.com/t5/S32K/check-stack-amp-heap-size-during-debug-in-S32DS/m-p/1172896#M8575</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;these discussions could be helpful:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/S32-Design-Studio/How-to-check-CPU-Usage/m-p/743398" target="_blank"&gt;https://community.nxp.com/t5/S32-Design-Studio/How-to-check-CPU-Usage/m-p/743398&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/S32K/Failure-reaction-in-case-of-Stack-overflow-or-underflow-S32K1/m-p/838550/highlight/true" target="_blank"&gt;https://community.nxp.com/t5/S32K/Failure-reaction-in-case-of-Stack-overflow-or-underflow-S32K1/m-p/838550/highlight/true&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/S32K/Example-of-DWT-for-stack-usage-monitoring-on-S32K1xx/td-p/1160990" target="_blank"&gt;https://community.nxp.com/t5/S32K/Example-of-DWT-for-stack-usage-monitoring-on-S32K1xx/td-p/1160990&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;In addition, I like this simple high water mark method: fill whole stack by some pattern like 0xAA (for example by debugger) and then run the code. Examine as many program paths as possible and then check the stack – you will see which part of the stack has been rewritten and you can adjust the size accordingly.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Lukas&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Oct 2020 06:39:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/check-stack-amp-heap-size-during-debug-in-S32DS/m-p/1172896#M8575</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2020-10-26T06:39:43Z</dc:date>
    </item>
  </channel>
</rss>

