<?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>8-bit MicrocontrollersのトピックRe: mc9s08rd32dwe move the stack</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/mc9s08rd32dwe-move-the-stack/m-p/131015#M2622</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Here's an example of a .prm file:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class="msg_source_code"&gt;&lt;SPAN class="text_smallest"&gt;Code:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;PRE&gt;/* This is a linker parameter file for the QB4 */NAMES END /* CodeWarrior will pass all the needed files to the linker by command line. But here you may add your own files too. */SEGMENTS /* Here all RAM/ROM areas of the device are listed. Used in PLACEMENT below. */    Z_RAM                  = READ_WRITE   0x0080 TO 0x00DF;    STACK0                 = READ_WRITE   0x00E0 TO 0x00FF                             FILL 0xAA;    ROM                    = READ_ONLY    0xEE00 TO 0xFDFF;    ROM1                   = READ_ONLY    0xFFB0 TO 0xFFBD;    ROM2                   = READ_ONLY    0xFFC2 TO 0xFFCF;ENDPLACEMENT /* Here all predefined and user segments are placed into the SEGMENTS defined above. */    DEFAULT_ROM,    ROM_VAR,    STRINGS                INTO  ROM; /* ROM1,ROM2 In case you want to use ROM1,ROM2 as well, be sure the option -OnB=b is passed to the compiler. */    FAR_RAM,    _DATA_ZEROPAGE,    MY_ZEROPAGE,    DEFAULT_RAM            INTO  Z_RAM;    SSTACK                 INTO  STACK0;END/* STACKSIZE 0x20 */STACKTOP                   0x00FFVECTOR 0 _Startup /* Reset vector: this is the default entry point for an application. */&lt;/PRE&gt;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;The lines you need to be concerned about are:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;"Stack0..." define you stack space&lt;/DIV&gt;&lt;DIV&gt;"SSTACK" tell the linker where your stack space is&lt;/DIV&gt;&lt;DIV&gt;"STACKTOP"&amp;nbsp; where the stack pointer will start.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Hope this helps,&lt;/DIV&gt;&lt;DIV&gt;Tomahawk&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 23 Sep 2006 01:32:05 GMT</pubDate>
    <dc:creator>admin</dc:creator>
    <dc:date>2006-09-23T01:32:05Z</dc:date>
    <item>
      <title>mc9s08rd32dwe move the stack</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/mc9s08rd32dwe-move-the-stack/m-p/131013#M2620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;HI:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;how do i move the stack to a new ram location?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;where is it declared loaded?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Sep 2006 05:39:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/mc9s08rd32dwe-move-the-stack/m-p/131013#M2620</guid>
      <dc:creator>jah</dc:creator>
      <dc:date>2006-09-22T05:39:35Z</dc:date>
    </item>
    <item>
      <title>Re: mc9s08rd32dwe move the stack</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/mc9s08rd32dwe-move-the-stack/m-p/131014#M2621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Check the .prm file and the CW manual.&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Sep 2006 13:16:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/mc9s08rd32dwe-move-the-stack/m-p/131014#M2621</guid>
      <dc:creator>Lundin</dc:creator>
      <dc:date>2006-09-22T13:16:55Z</dc:date>
    </item>
    <item>
      <title>Re: mc9s08rd32dwe move the stack</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/mc9s08rd32dwe-move-the-stack/m-p/131015#M2622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Here's an example of a .prm file:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class="msg_source_code"&gt;&lt;SPAN class="text_smallest"&gt;Code:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;PRE&gt;/* This is a linker parameter file for the QB4 */NAMES END /* CodeWarrior will pass all the needed files to the linker by command line. But here you may add your own files too. */SEGMENTS /* Here all RAM/ROM areas of the device are listed. Used in PLACEMENT below. */    Z_RAM                  = READ_WRITE   0x0080 TO 0x00DF;    STACK0                 = READ_WRITE   0x00E0 TO 0x00FF                             FILL 0xAA;    ROM                    = READ_ONLY    0xEE00 TO 0xFDFF;    ROM1                   = READ_ONLY    0xFFB0 TO 0xFFBD;    ROM2                   = READ_ONLY    0xFFC2 TO 0xFFCF;ENDPLACEMENT /* Here all predefined and user segments are placed into the SEGMENTS defined above. */    DEFAULT_ROM,    ROM_VAR,    STRINGS                INTO  ROM; /* ROM1,ROM2 In case you want to use ROM1,ROM2 as well, be sure the option -OnB=b is passed to the compiler. */    FAR_RAM,    _DATA_ZEROPAGE,    MY_ZEROPAGE,    DEFAULT_RAM            INTO  Z_RAM;    SSTACK                 INTO  STACK0;END/* STACKSIZE 0x20 */STACKTOP                   0x00FFVECTOR 0 _Startup /* Reset vector: this is the default entry point for an application. */&lt;/PRE&gt;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;The lines you need to be concerned about are:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;"Stack0..." define you stack space&lt;/DIV&gt;&lt;DIV&gt;"SSTACK" tell the linker where your stack space is&lt;/DIV&gt;&lt;DIV&gt;"STACKTOP"&amp;nbsp; where the stack pointer will start.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Hope this helps,&lt;/DIV&gt;&lt;DIV&gt;Tomahawk&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Sep 2006 01:32:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/mc9s08rd32dwe-move-the-stack/m-p/131015#M2622</guid>
      <dc:creator>admin</dc:creator>
      <dc:date>2006-09-23T01:32:05Z</dc:date>
    </item>
    <item>
      <title>Re: mc9s08rd32dwe move the stack</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/mc9s08rd32dwe-move-the-stack/m-p/131016#M2623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi jah,&lt;/DIV&gt;&lt;DIV&gt;The answer is by writing to the Stack Pointer Register.&lt;/DIV&gt;&lt;DIV&gt;It defaults to $00FF.&lt;/DIV&gt;&lt;DIV&gt;Usually use TXS as in:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;*********** Move Stack to top of RAM ****************************************&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;LDHX&amp;nbsp;#RamLast+1&amp;nbsp;&amp;nbsp;;point to 1 past end of RAM&lt;BR /&gt;&amp;nbsp;&amp;nbsp;TXS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;;SP&amp;lt;-(H:X-1)&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV&gt;If the question was, How do I do this in Codewarrior? please post in the Codewarrior Forum.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Regards&lt;/DIV&gt;&lt;DIV&gt;David&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Sep 2006 06:22:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/mc9s08rd32dwe-move-the-stack/m-p/131016#M2623</guid>
      <dc:creator>peg</dc:creator>
      <dc:date>2006-09-23T06:22:52Z</dc:date>
    </item>
    <item>
      <title>Re: mc9s08rd32dwe move the stack</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/mc9s08rd32dwe-move-the-stack/m-p/131017#M2624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;thanks Tomahawk&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Sep 2006 06:25:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/mc9s08rd32dwe-move-the-stack/m-p/131017#M2624</guid>
      <dc:creator>jah</dc:creator>
      <dc:date>2006-09-23T06:25:21Z</dc:date>
    </item>
  </channel>
</rss>

