<?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>S32K中的主题 Re: Stack Overflow Failure Recovery of S32K3XX</title>
    <link>https://community.nxp.com/t5/S32K/Stack-Overflow-Failure-Recovery-of-S32K3XX/m-p/1917861#M38269</link>
    <description>Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/160001"&gt;@danielmartynek&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;Thanks for your reply.&lt;BR /&gt;&lt;BR /&gt;Now, I am now able to recover from stack overflow error after doing the functional reset.&lt;BR /&gt;&lt;BR /&gt;Below is the pseudo code which currently, I am using for injection of stack overflow.&lt;BR /&gt;&lt;BR /&gt;*DEMCR_reg = (1 &amp;lt;&amp;lt; 24) | (1 &amp;lt;&amp;lt; 16);&lt;BR /&gt;/* Get implemented values for num of comparators in DWT registers*/&lt;BR /&gt;numcomp = (DWT-&amp;gt;CTRL &amp;amp; (0xF &amp;lt;&amp;lt; 28)) &amp;gt;&amp;gt; 28;&lt;BR /&gt;&lt;BR /&gt;DWT-&amp;gt;NUMCOMP[0].COMP = (uint32_t)stackPointer - (1016 * sizeof(uint32_t));&lt;BR /&gt;DWT-&amp;gt;NUMCOMP[0].MASK = 0;&lt;BR /&gt;DWT-&amp;gt;NUMCOMP[0].FUNCTION = 0x7;&lt;BR /&gt;DWT-&amp;gt;NUMCOMP[0].FUNCTION &amp;amp;= ~((1 &amp;lt;&amp;lt; | /* Perform address comparison */&lt;BR /&gt;(1 &amp;lt;&amp;lt; 7));&lt;BR /&gt;for (counter = 0, reg0 = 0; counter &amp;lt; 1016; counter++, reg0++)&lt;BR /&gt;{&lt;BR /&gt;__asm("PUSH {r0}");&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;Can you please let me know the other method to inject the stack over flow error.&lt;BR /&gt;&lt;BR /&gt;because, I not want to use below variable there is some limitation on GHS compiler not allowing me to save the stack pointer (__asm("SP")) in register type variable.&lt;BR /&gt;&lt;BR /&gt;register uint32_t* stackPointer __asm("sp");&lt;BR /&gt;&lt;BR /&gt;Please let me know the other method for injecting the stack overflow/underflow error error it will be helpful for my development.&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
    <pubDate>Fri, 26 Jul 2024 06:50:32 GMT</pubDate>
    <dc:creator>raj12</dc:creator>
    <dc:date>2024-07-26T06:50:32Z</dc:date>
    <item>
      <title>Stack Overflow Failure Recovery of S32K3XX</title>
      <link>https://community.nxp.com/t5/S32K/Stack-Overflow-Failure-Recovery-of-S32K3XX/m-p/1913896#M37999</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am injecting the stack overflow error of S32K3XX MCU, and after successfully injection of error DebugMon_Handler exception triggering.&lt;/P&gt;&lt;P&gt;I have a query Related to recovering methods. during testing observed only After power on reset MCU is able to recover from Stack Overflow exception.&lt;/P&gt;&lt;P&gt;Please let me know is there any other methods of recovery.&lt;BR /&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2024 08:51:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Stack-Overflow-Failure-Recovery-of-S32K3XX/m-p/1913896#M37999</guid>
      <dc:creator>raj12</dc:creator>
      <dc:date>2024-07-22T08:51:45Z</dc:date>
    </item>
    <item>
      <title>Re: Stack Overflow Failure Recovery of S32K3XX</title>
      <link>https://community.nxp.com/t5/S32K/Stack-Overflow-Failure-Recovery-of-S32K3XX/m-p/1914873#M38059</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/225347"&gt;@raj12&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Any reset can recover it.&lt;/P&gt;
&lt;P&gt;The SP is set during the startup process.&lt;/P&gt;
&lt;P&gt;Use the Power_Ip RTD driver to trigger a SW reset from the exception handler.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2024 09:28:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Stack-Overflow-Failure-Recovery-of-S32K3XX/m-p/1914873#M38059</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2024-07-23T09:28:40Z</dc:date>
    </item>
    <item>
      <title>Re: Stack Overflow Failure Recovery of S32K3XX</title>
      <link>https://community.nxp.com/t5/S32K/Stack-Overflow-Failure-Recovery-of-S32K3XX/m-p/1917861#M38269</link>
      <description>Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/160001"&gt;@danielmartynek&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;Thanks for your reply.&lt;BR /&gt;&lt;BR /&gt;Now, I am now able to recover from stack overflow error after doing the functional reset.&lt;BR /&gt;&lt;BR /&gt;Below is the pseudo code which currently, I am using for injection of stack overflow.&lt;BR /&gt;&lt;BR /&gt;*DEMCR_reg = (1 &amp;lt;&amp;lt; 24) | (1 &amp;lt;&amp;lt; 16);&lt;BR /&gt;/* Get implemented values for num of comparators in DWT registers*/&lt;BR /&gt;numcomp = (DWT-&amp;gt;CTRL &amp;amp; (0xF &amp;lt;&amp;lt; 28)) &amp;gt;&amp;gt; 28;&lt;BR /&gt;&lt;BR /&gt;DWT-&amp;gt;NUMCOMP[0].COMP = (uint32_t)stackPointer - (1016 * sizeof(uint32_t));&lt;BR /&gt;DWT-&amp;gt;NUMCOMP[0].MASK = 0;&lt;BR /&gt;DWT-&amp;gt;NUMCOMP[0].FUNCTION = 0x7;&lt;BR /&gt;DWT-&amp;gt;NUMCOMP[0].FUNCTION &amp;amp;= ~((1 &amp;lt;&amp;lt; | /* Perform address comparison */&lt;BR /&gt;(1 &amp;lt;&amp;lt; 7));&lt;BR /&gt;for (counter = 0, reg0 = 0; counter &amp;lt; 1016; counter++, reg0++)&lt;BR /&gt;{&lt;BR /&gt;__asm("PUSH {r0}");&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;Can you please let me know the other method to inject the stack over flow error.&lt;BR /&gt;&lt;BR /&gt;because, I not want to use below variable there is some limitation on GHS compiler not allowing me to save the stack pointer (__asm("SP")) in register type variable.&lt;BR /&gt;&lt;BR /&gt;register uint32_t* stackPointer __asm("sp");&lt;BR /&gt;&lt;BR /&gt;Please let me know the other method for injecting the stack overflow/underflow error error it will be helpful for my development.&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Fri, 26 Jul 2024 06:50:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Stack-Overflow-Failure-Recovery-of-S32K3XX/m-p/1917861#M38269</guid>
      <dc:creator>raj12</dc:creator>
      <dc:date>2024-07-26T06:50:32Z</dc:date>
    </item>
    <item>
      <title>Re: Stack Overflow Failure Recovery of S32K3XX</title>
      <link>https://community.nxp.com/t5/S32K/Stack-Overflow-Failure-Recovery-of-S32K3XX/m-p/1918153#M38289</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/225347"&gt;@raj12&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Call a recursive function (that calls itself) or create a large local variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2024 13:39:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Stack-Overflow-Failure-Recovery-of-S32K3XX/m-p/1918153#M38289</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2024-07-26T13:39:53Z</dc:date>
    </item>
  </channel>
</rss>

