<?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>S12 / MagniV MicrocontrollersのトピックRe: Stack problem when calling function</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Stack-problem-when-calling-function/m-p/773101#M15388</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I found the solution.&lt;/P&gt;&lt;P&gt;It's because stack size is not enough.&lt;/P&gt;&lt;P&gt;After I change stack size 0x100 to 0x200 in prm file. There will be no more this question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Br,&lt;/P&gt;&lt;P&gt;Kim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Feb 2018 08:31:26 GMT</pubDate>
    <dc:creator>kimchan_eb</dc:creator>
    <dc:date>2018-02-27T08:31:26Z</dc:date>
    <item>
      <title>Stack problem when calling function</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Stack-problem-when-calling-function/m-p/773100#M15387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are two pictures that show the change of stack after step into sub function.&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/19157iD59FF376CE7BE69D/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;&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/19295iD3B2CD90286B7459/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;&lt;/P&gt;&lt;P&gt;Because of the stack change, it won't return normally back to the place where it called it, instead, it will "return" to 0xFFFF which is incorrect.&lt;/P&gt;&lt;P&gt;I also test other test cases and didn't find any similar problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So how can I fix the problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Codewarrior version is&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/19383iAFAE9A88CC468DEF/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Target ECU is S12G192.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Br,&lt;/P&gt;&lt;P&gt;Kim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Feb 2018 08:04:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Stack-problem-when-calling-function/m-p/773100#M15387</guid>
      <dc:creator>kimchan_eb</dc:creator>
      <dc:date>2018-02-26T08:04:40Z</dc:date>
    </item>
    <item>
      <title>Re: Stack problem when calling function</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Stack-problem-when-calling-function/m-p/773101#M15388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I found the solution.&lt;/P&gt;&lt;P&gt;It's because stack size is not enough.&lt;/P&gt;&lt;P&gt;After I change stack size 0x100 to 0x200 in prm file. There will be no more this question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Br,&lt;/P&gt;&lt;P&gt;Kim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Feb 2018 08:31:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Stack-problem-when-calling-function/m-p/773101#M15388</guid>
      <dc:creator>kimchan_eb</dc:creator>
      <dc:date>2018-02-27T08:31:26Z</dc:date>
    </item>
    <item>
      <title>Re: Stack problem when calling function</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Stack-problem-when-calling-function/m-p/773102#M15389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just for interest, on the site below you can find more information about stack overflow:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/340107"&gt;memory size&lt;/A&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Diana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Feb 2018 12:08:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Stack-problem-when-calling-function/m-p/773102#M15389</guid>
      <dc:creator>dianabatrlova</dc:creator>
      <dc:date>2018-02-27T12:08:53Z</dc:date>
    </item>
  </channel>
</rss>

