<?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>CodeWarrior for MCUのトピックRe: 9s12XE ,how to allocate the RAM source for temporary variables when both cores active.</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/9s12XE-how-to-allocate-the-RAM-source-for-temporary-variables/m-p/158911#M4278</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do not understand the question here.&lt;/P&gt;&lt;P&gt;Can you please be more specific and explain what is your problem?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CrasyCat&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Mar 2009 00:09:27 GMT</pubDate>
    <dc:creator>CrasyCat</dc:creator>
    <dc:date>2009-03-10T00:09:27Z</dc:date>
    <item>
      <title>9s12XE ,how to allocate the RAM source for temporary variables when both cores  active.</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/9s12XE-how-to-allocate-the-RAM-source-for-temporary-variables/m-p/158909#M4276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;hi , is there someone to provide the details for me ? &amp;nbsp;can we read the info from the MAP file? thanks !&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2009 09:00:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/9s12XE-how-to-allocate-the-RAM-source-for-temporary-variables/m-p/158909#M4276</guid>
      <dc:creator>HUST</dc:creator>
      <dc:date>2009-03-05T09:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: 9s12XE ,how to allocate the RAM source for temporary variables when both cores  active.</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/9s12XE-how-to-allocate-the-RAM-source-for-temporary-variables/m-p/158910#M4277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Look the the demo programs that came with the installations. One of them has a demo where the HCS12 core and XCore share data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;---Tom&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2009 21:45:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/9s12XE-how-to-allocate-the-RAM-source-for-temporary-variables/m-p/158910#M4277</guid>
      <dc:creator>J2MEJediMaster</dc:creator>
      <dc:date>2009-03-05T21:45:34Z</dc:date>
    </item>
    <item>
      <title>Re: 9s12XE ,how to allocate the RAM source for temporary variables when both cores active.</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/9s12XE-how-to-allocate-the-RAM-source-for-temporary-variables/m-p/158911#M4278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do not understand the question here.&lt;/P&gt;&lt;P&gt;Can you please be more specific and explain what is your problem?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CrasyCat&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2009 00:09:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/9s12XE-how-to-allocate-the-RAM-source-for-temporary-variables/m-p/158911#M4278</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2009-03-10T00:09:27Z</dc:date>
    </item>
    <item>
      <title>Re: 9s12XE ,how to allocate the RAM source for temporary variables when both cores  active.</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/9s12XE-how-to-allocate-the-RAM-source-for-temporary-variables/m-p/158912#M4279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One local FAE from Freescale tell me , the local temporary variables are allocated into respective stack for CPU and XGATE, as we know ,&amp;nbsp;some function contains mass local temporary variables, hence, how to guarantee the enough Stack/Heap size for all time ? Especially while seven levels interrupt nested?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks &amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2009 15:28:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/9s12XE-how-to-allocate-the-RAM-source-for-temporary-variables/m-p/158912#M4279</guid>
      <dc:creator>HUST</dc:creator>
      <dc:date>2009-03-10T15:28:50Z</dc:date>
    </item>
    <item>
      <title>Re: 9s12XE ,how to allocate the RAM source for temporary variables when both cores active.</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/9s12XE-how-to-allocate-the-RAM-source-for-temporary-variables/m-p/158913#M4280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is no tool available to statically estimate the memory requirement on the stack.&lt;/P&gt;&lt;P&gt;What you can do is fill the stacks with a fill pattern and let the application run for some time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then check how much stack is used.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Alternatively you can set a watchpoint on the top of stack. If there is a stack overflow application will stop.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note that you can only define 2 watchpoints at a time while debugging on real hardware.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CrasyCat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Mar 2009 23:45:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/9s12XE-how-to-allocate-the-RAM-source-for-temporary-variables/m-p/158913#M4280</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2009-03-11T23:45:55Z</dc:date>
    </item>
    <item>
      <title>Re: 9s12XE ,how to allocate the RAM source for temporary variables when both cores  active.</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/9s12XE-how-to-allocate-the-RAM-source-for-temporary-variables/m-p/158914#M4281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i would like to confirm one thing:&lt;/P&gt;&lt;P&gt;when one call-funtion happened, on the one hand, CPU will &amp;nbsp;store 10 bytes in stack, &amp;nbsp;on the other hand, the CPU will dynamically allocate the RAM resource for the temporary variables in the function, as mentioned ,do these temporary/local variables occupy &amp;nbsp;not &amp;nbsp;other ( non- ) paged ram but stack ? and the same to the XGATE?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2009 07:51:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/9s12XE-how-to-allocate-the-RAM-source-for-temporary-variables/m-p/158914#M4281</guid>
      <dc:creator>HUST</dc:creator>
      <dc:date>2009-03-12T07:51:57Z</dc:date>
    </item>
    <item>
      <title>Re: 9s12XE ,how to allocate the RAM source for temporary variables when both cores  active.</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/9s12XE-how-to-allocate-the-RAM-source-for-temporary-variables/m-p/158915#M4282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HUST,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure I completely understand your question.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The S12 core related temporary and local variables are all placed into the same stack as function parameters. (see the HC12 and XGATE compiler manual - section "Stack Frames" for more information about using the stacks) S12 core stack have to be placed in the non-paged RAM.&lt;/P&gt;&lt;P&gt;Xgate "emulate" stack pointer using general purpose register R7. The stack has to be located at different global addresses then S12 core stack. XGATE stack can be (and usually is) located in paged RAM area. XGATE Local Memory Map sees this range as linear (see a &lt;A href="http://www.freescale.com/files/microcontrollers/doc/data_sheet/MC9S12XDP512V2.pdf?fpsp=1" rel="nofollow" target="_blank"&gt;S12X datasheet&lt;/A&gt; -&amp;gt; "XGATE memory map Scheme").&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;Stanish&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2009 21:32:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/9s12XE-how-to-allocate-the-RAM-source-for-temporary-variables/m-p/158915#M4282</guid>
      <dc:creator>stanish</dc:creator>
      <dc:date>2009-03-12T21:32:10Z</dc:date>
    </item>
    <item>
      <title>Re: 9s12XE ,how to allocate the RAM source for temporary variables when both cores  active.</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/9s12XE-how-to-allocate-the-RAM-source-for-temporary-variables/m-p/158916#M4283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;thanks a lot ,i got it!&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Mar 2009 10:08:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/9s12XE-how-to-allocate-the-RAM-source-for-temporary-variables/m-p/158916#M4283</guid>
      <dc:creator>HUST</dc:creator>
      <dc:date>2009-03-14T10:08:29Z</dc:date>
    </item>
    <item>
      <title>Re: 9s12XE ,how to allocate the RAM source for temporary variables when both cores  active.</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/9s12XE-how-to-allocate-the-RAM-source-for-temporary-variables/m-p/158917#M4284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ,all&lt;/P&gt;&lt;P&gt;thanks for any hints in advance!&lt;/P&gt;&lt;P&gt;MCU = XEG128, CW4.6, mutilink &amp;nbsp;debuger&amp;nbsp;&amp;nbsp;for HCS12X/XE&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN class="Apple-tab-span"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;in prm file,i put the stack for xgate from &amp;nbsp;&lt;SPAN class="Apple-tab-span"&gt;0xFD1000&lt;/SPAN&gt; &amp;nbsp;throughout &lt;SPAN class="Apple-tab-span"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="Apple-tab-span"&gt;0xFD12FF&lt;/SPAN&gt; ; &lt;SPAN class="Apple-tab-span"&gt;&lt;/SPAN&gt;&amp;nbsp; &lt;SPAN class="Apple-tab-span"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Apple-tab-span"&gt;RAM_XGATE_STK = READ_WRITE 0xFD1000 TO 0xFD12FF ALIGN 2[1:1]; /* The stack is set by the XGATE compiler option -Cstv=D300 */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but in the debug mode, open the memory window, XGATE address: D000 ~D3000, i never watch the &amp;nbsp;stack area&amp;nbsp;refresh&amp;nbsp;the contents( all data are gray,never change to red)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;something wrong with my setting or operation?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;and another issue is: &amp;nbsp;some local variables in XGATE_ISR_LIN() function, which should be stored in XGATE stack according to the xgate compiler spec , &amp;nbsp;was allocated into the other data, i.e.&amp;nbsp;CPU12_DATA &amp;nbsp;CPU12 memory space&amp;nbsp;0x29f0'L (should say "occupy“ , one breakpoint was set over the local variables in the&amp;nbsp;XGATE_ISR_LIN function to confirm this point), and results in&amp;nbsp;unexpected&amp;nbsp;change of the CPU12_DATA&amp;nbsp;, so would you please tell me how to find the root cause for this issue step by step? or what's the items i should check?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if more info need, i will post it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2009 16:43:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/9s12XE-how-to-allocate-the-RAM-source-for-temporary-variables/m-p/158917#M4284</guid>
      <dc:creator>HUST</dc:creator>
      <dc:date>2009-12-22T16:43:37Z</dc:date>
    </item>
    <item>
      <title>Re: 9s12XE ,how to allocate the RAM source for temporary variables when both cores active.</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/9s12XE-how-to-allocate-the-RAM-source-for-temporary-variables/m-p/158918#M4285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did you set the appropriate option -Cstv&amp;nbsp;for &amp;nbsp;XGATE Compiler?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CrasyCat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Dec 2009 18:42:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/9s12XE-how-to-allocate-the-RAM-source-for-temporary-variables/m-p/158918#M4285</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2009-12-23T18:42:28Z</dc:date>
    </item>
    <item>
      <title>Re: 9s12XE ,how to allocate the RAM source for temporary variables when both cores active.</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/9s12XE-how-to-allocate-the-RAM-source-for-temporary-variables/m-p/158919#M4286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes done. in make file &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Apple-style-span"&gt;-Cstv &amp;nbsp;= 0xD300&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Dec 2009 08:40:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/9s12XE-how-to-allocate-the-RAM-source-for-temporary-variables/m-p/158919#M4286</guid>
      <dc:creator>HUST</dc:creator>
      <dc:date>2009-12-24T08:40:32Z</dc:date>
    </item>
  </channel>
</rss>

