<?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: CodeWarrior local variable storage location in CodeWarrior Development Tools</title>
    <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/CodeWarrior-local-variable-storage-location/m-p/598521#M4885</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you&amp;nbsp;Jennie。You are&amp;nbsp;right.&lt;/P&gt;&lt;P&gt;I am mistaken "SHADOW_RAM&amp;nbsp; = READ_WRITE &amp;nbsp;0x001000 TO 0x001100;" &amp;nbsp; for &amp;nbsp;Stack.&lt;/P&gt;&lt;P&gt;By the way,How do I define stack location?such as&amp;nbsp;in the end of RAM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Mar 2017 09:36:03 GMT</pubDate>
    <dc:creator>xaing_wang</dc:creator>
    <dc:date>2017-03-21T09:36:03Z</dc:date>
    <item>
      <title>CodeWarrior local variable storage location</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/CodeWarrior-local-variable-storage-location/m-p/598516#M4880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In debug，I find that address of &amp;nbsp;local variable is not Stack。below&amp;nbsp;the figure ：&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="局部变量分配到ram区，并不是堆栈区.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/16656i4BD59288A9B818F4/image-size/large?v=v2&amp;amp;px=999" role="button" title="局部变量分配到ram区，并不是堆栈区.jpg" alt="局部变量分配到ram区，并不是堆栈区.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And the&amp;nbsp;local variable define &amp;nbsp;in function &amp;nbsp;as follows：&lt;/P&gt;&lt;P&gt;uint8_t i = 0u , j = 0u;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The&amp;nbsp;Ram&amp;nbsp;and&amp;nbsp;Stack&amp;nbsp;define in&amp;nbsp;mc9s12zvl32.prm as follows ：&lt;/P&gt;&lt;P&gt;&amp;nbsp;RAM&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = READ_WRITE&amp;nbsp; 0x001100 TO 0x0013FF;&lt;/P&gt;&lt;P&gt;SHADOW_RAM&amp;nbsp;&amp;nbsp;&amp;nbsp; = READ_WRITE&amp;nbsp; 0x001000 TO 0x001100;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So,I want to know how to define local variables are stored in the stack?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Mar 2017 05:13:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/CodeWarrior-local-variable-storage-location/m-p/598516#M4880</guid>
      <dc:creator>xaing_wang</dc:creator>
      <dc:date>2017-03-20T05:13:08Z</dc:date>
    </item>
    <item>
      <title>Re: CodeWarrior local variable storage location</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/CodeWarrior-local-variable-storage-location/m-p/598517#M4881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;Stack belongs to RAM section. Normally if you define a local variable, it should be automatically allocated in stack.&lt;/P&gt;&lt;P&gt;Can you please send me your demo project thus I can check your memory allocation from my side?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jennie Zhang&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Mar 2017 02:26:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/CodeWarrior-local-variable-storage-location/m-p/598517#M4881</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2017-03-21T02:26:31Z</dc:date>
    </item>
    <item>
      <title>Re: CodeWarrior local variable storage location</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/CodeWarrior-local-variable-storage-location/m-p/598518#M4882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="http://pan.baidu.com/s/1c2Mjrvq"&gt;http://pan.baidu.com/s/1c2Mjrvq&lt;/A&gt;&amp;nbsp; &amp;nbsp;password：i5a7&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Mar 2017 07:00:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/CodeWarrior-local-variable-storage-location/m-p/598518#M4882</guid>
      <dc:creator>xaing_wang</dc:creator>
      <dc:date>2017-03-21T07:00:36Z</dc:date>
    </item>
    <item>
      <title>Re: CodeWarrior local variable storage location</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/CodeWarrior-local-variable-storage-location/m-p/598519#M4883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jennie，&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;I don't have your email，so，I uploaded to &amp;nbsp;Baidu SkyDrive &lt;SPAN style="color: #51626f; background-color: #ffffff; font-size: 14px;"&gt;demo project。&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;tks。&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Mar 2017 07:05:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/CodeWarrior-local-variable-storage-location/m-p/598519#M4883</guid>
      <dc:creator>xaing_wang</dc:creator>
      <dc:date>2017-03-21T07:05:21Z</dc:date>
    </item>
    <item>
      <title>Re: CodeWarrior local variable storage location</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/CodeWarrior-local-variable-storage-location/m-p/598520#M4884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Wang.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just checked your project, but I haven't find stack problem.&lt;/P&gt;&lt;P&gt;As I said before, Stack address is inside the RAM section.&lt;/P&gt;&lt;P&gt;see your map file, we can know stack is allocated from address 0x1100 to 0x11ff.&lt;/P&gt;&lt;P&gt;while variable "i" and "j" are in this range.&lt;/P&gt;&lt;P&gt;&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/16977iBD6EA7BDDB8A1857/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;/P&gt;&lt;P&gt;Does this answer your questions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jennie Zhang&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Mar 2017 08:25:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/CodeWarrior-local-variable-storage-location/m-p/598520#M4884</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2017-03-21T08:25:10Z</dc:date>
    </item>
    <item>
      <title>Re: CodeWarrior local variable storage location</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/CodeWarrior-local-variable-storage-location/m-p/598521#M4885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you&amp;nbsp;Jennie。You are&amp;nbsp;right.&lt;/P&gt;&lt;P&gt;I am mistaken "SHADOW_RAM&amp;nbsp; = READ_WRITE &amp;nbsp;0x001000 TO 0x001100;" &amp;nbsp; for &amp;nbsp;Stack.&lt;/P&gt;&lt;P&gt;By the way,How do I define stack location?such as&amp;nbsp;in the end of RAM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Mar 2017 09:36:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/CodeWarrior-local-variable-storage-location/m-p/598521#M4885</guid>
      <dc:creator>xaing_wang</dc:creator>
      <dc:date>2017-03-21T09:36:03Z</dc:date>
    </item>
  </channel>
</rss>

