<?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: 16-bit stack on HC908 CodeWarrior in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/16-bit-stack-on-HC908-CodeWarrior/m-p/137860#M2097</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Thanks for your answer. My hope was to find an option to allow only the stack outside the zero-page and not all the data.&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Jun 2006 15:54:50 GMT</pubDate>
    <dc:creator>antgalimbe</dc:creator>
    <dc:date>2006-06-01T15:54:50Z</dc:date>
    <item>
      <title>16-bit stack on HC908 CodeWarrior</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/16-bit-stack-on-HC908-CodeWarrior/m-p/137858#M2095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have tried to move the stack pointer in a Tiny program outside the zero-page memory but I have discovered that the program crash.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I see the disasseble of the C-code and I discovered that the C-compiler of Codewarrior assume the stack in zero-page.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is possible to tell to the compiler to assume the stack outside the zero-page?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The actual project run on HC908JL8.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jun 2006 13:41:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/16-bit-stack-on-HC908-CodeWarrior/m-p/137858#M2095</guid>
      <dc:creator>antgalimbe</dc:creator>
      <dc:date>2006-06-01T13:41:32Z</dc:date>
    </item>
    <item>
      <title>Re: 16-bit stack on HC908 CodeWarrior</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/16-bit-stack-on-HC908-CodeWarrior/m-p/137859#M2096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;According to the HC08 compiler manual "In the TINY memory model, all data including stack must fit into the zero page."&lt;/P&gt;&lt;P&gt;This is the definition of the memory model and cannot be changed.&lt;/P&gt;&lt;P&gt;CrasyCat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jun 2006 15:48:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/16-bit-stack-on-HC908-CodeWarrior/m-p/137859#M2096</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2006-06-01T15:48:42Z</dc:date>
    </item>
    <item>
      <title>Re: 16-bit stack on HC908 CodeWarrior</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/16-bit-stack-on-HC908-CodeWarrior/m-p/137860#M2097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Thanks for your answer. My hope was to find an option to allow only the stack outside the zero-page and not all the data.&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jun 2006 15:54:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/16-bit-stack-on-HC908-CodeWarrior/m-p/137860#M2097</guid>
      <dc:creator>antgalimbe</dc:creator>
      <dc:date>2006-06-01T15:54:50Z</dc:date>
    </item>
    <item>
      <title>Re: 16-bit stack on HC908 CodeWarrior</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/16-bit-stack-on-HC908-CodeWarrior/m-p/137861#M2098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;The memory model only defines the default way how data are allocated.&lt;BR /&gt;If you want the stack to be outside the zero page, I would suggest to use the small memory model. With this, normal, non qualified pointers will be 16 bit and they can therefore point to objects on the stack.&lt;BR /&gt;Then place your globals explicitely into a section in the zero page&lt;BR /&gt;Put a&lt;BR /&gt;&lt;BR /&gt;#pragma DATA_SEG SHORT _DATA_ZEROPAGE&lt;BR /&gt;&lt;BR /&gt;before the declaration and before the definition of them, and terminate the area with a &lt;BR /&gt;&lt;BR /&gt;#pragma DATA_SEG DEFAULT&lt;BR /&gt;&lt;BR /&gt;PS: To switch the memory model, you have to adapt the compiler/assembler memory model option and to pick the right library. Create a project witht the new project wizard to get a sample, if needed.&lt;BR /&gt;&lt;BR /&gt;Daniel&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jun 2006 18:34:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/16-bit-stack-on-HC908-CodeWarrior/m-p/137861#M2098</guid>
      <dc:creator>CompilerGuru</dc:creator>
      <dc:date>2006-06-02T18:34:25Z</dc:date>
    </item>
  </channel>
</rss>

