<?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のトピックHC9S08QE8 - Out of allocation space in segment RAM</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/HC9S08QE8-Out-of-allocation-space-in-segment-RAM/m-p/219913#M8752</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am very new in microcontrollers...i searched long time through the forum, but I couldn't find something similar to my problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I trying to programm a HC9S08QE8 with USBDM and CodeWarrior for Eclipse. I got some sample code from freescale with my sensor toolbox. Now I am having the following problem:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ERROR L1102: Out of allocation space in segment RAM at address 0x1C8&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Most of the variables are stored according #pragma DATA_SEG __SHORT_SEG _DATA_ZEROPAGE.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The prm file is like that:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SEGMENTS&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Z_RAM&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =&amp;nbsp; READ_WRITE&amp;nbsp;&amp;nbsp; 0x0060 TO 0x00FF;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; RAM&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =&amp;nbsp; READ_WRITE&amp;nbsp;&amp;nbsp; 0x0100 TO 0x025F;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ROM&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =&amp;nbsp; READ_ONLY&amp;nbsp;&amp;nbsp;&amp;nbsp; 0xE000 TO 0xFFAD;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ROM1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =&amp;nbsp; READ_ONLY&amp;nbsp;&amp;nbsp;&amp;nbsp; 0xFFC0 TO 0xFFCD;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the project I am using the memory model SMALL.&lt;/P&gt;&lt;P&gt;Can you help me to fix that problem, please.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;br&lt;/P&gt;&lt;P&gt;max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Aug 2010 02:26:10 GMT</pubDate>
    <dc:creator>mexxx01</dc:creator>
    <dc:date>2010-08-30T02:26:10Z</dc:date>
    <item>
      <title>HC9S08QE8 - Out of allocation space in segment RAM</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/HC9S08QE8-Out-of-allocation-space-in-segment-RAM/m-p/219913#M8752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am very new in microcontrollers...i searched long time through the forum, but I couldn't find something similar to my problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I trying to programm a HC9S08QE8 with USBDM and CodeWarrior for Eclipse. I got some sample code from freescale with my sensor toolbox. Now I am having the following problem:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ERROR L1102: Out of allocation space in segment RAM at address 0x1C8&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Most of the variables are stored according #pragma DATA_SEG __SHORT_SEG _DATA_ZEROPAGE.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The prm file is like that:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SEGMENTS&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Z_RAM&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =&amp;nbsp; READ_WRITE&amp;nbsp;&amp;nbsp; 0x0060 TO 0x00FF;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; RAM&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =&amp;nbsp; READ_WRITE&amp;nbsp;&amp;nbsp; 0x0100 TO 0x025F;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ROM&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =&amp;nbsp; READ_ONLY&amp;nbsp;&amp;nbsp;&amp;nbsp; 0xE000 TO 0xFFAD;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ROM1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =&amp;nbsp; READ_ONLY&amp;nbsp;&amp;nbsp;&amp;nbsp; 0xFFC0 TO 0xFFCD;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the project I am using the memory model SMALL.&lt;/P&gt;&lt;P&gt;Can you help me to fix that problem, please.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;br&lt;/P&gt;&lt;P&gt;max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Aug 2010 02:26:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/HC9S08QE8-Out-of-allocation-space-in-segment-RAM/m-p/219913#M8752</guid>
      <dc:creator>mexxx01</dc:creator>
      <dc:date>2010-08-30T02:26:10Z</dc:date>
    </item>
    <item>
      <title>Re: HC9S08QE8 - Out of allocation space in segment RAM</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/HC9S08QE8-Out-of-allocation-space-in-segment-RAM/m-p/219914#M8753</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;Apparently the area RAM (0x0100 TO 0x025F) is not big enough to hold all data you want to allocate there.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Check the generated .map file. It should indicate which variable could not be allocated.&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>Mon, 30 Aug 2010 18:34:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/HC9S08QE8-Out-of-allocation-space-in-segment-RAM/m-p/219914#M8753</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2010-08-30T18:34:18Z</dc:date>
    </item>
    <item>
      <title>Re: HC9S08QE8 - Out of allocation space in segment RAM</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/HC9S08QE8-Out-of-allocation-space-in-segment-RAM/m-p/219915#M8754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello CrasyCat&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your fast response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Most of the variables are indicated as error. Is it possible, that I missed some settings for the linker in codewarrior. Thats the original AN3922 code for the sensor toolbox, and I supposed that I won`t have problem to compile it again. I am very confused...I tried to compile that with several settings, but without luck.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe the attached .map file can tell you (the expert) what I am doing wrong.&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, 31 Aug 2010 02:08:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/HC9S08QE8-Out-of-allocation-space-in-segment-RAM/m-p/219915#M8754</guid>
      <dc:creator>mexxx01</dc:creator>
      <dc:date>2010-08-31T02:08:21Z</dc:date>
    </item>
    <item>
      <title>Re: HC9S08QE8 - Out of allocation space in segment RAM</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/HC9S08QE8-Out-of-allocation-space-in-segment-RAM/m-p/219916#M8755</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'd suspect this might be caused by the size of&amp;nbsp; the stack.&lt;/P&gt;&lt;P&gt;Could you doble check stack fits the RAM?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;RAM includes 200 bytes variable BufferTX so the remaining space for stack &amp;lt; 0x98 (152 Bytes)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Stanish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Aug 2010 15:33:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/HC9S08QE8-Out-of-allocation-space-in-segment-RAM/m-p/219916#M8755</guid>
      <dc:creator>stanish</dc:creator>
      <dc:date>2010-08-31T15:33:03Z</dc:date>
    </item>
    <item>
      <title>Re: HC9S08QE8 - Out of allocation space in segment RAM</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/HC9S08QE8-Out-of-allocation-space-in-segment-RAM/m-p/219917#M8756</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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At the project.prm there is the size of the stack defined as followed:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;STACKSIZE 0x40&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;should be ok&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I checked the rest of the prm file in relation to the memory map. Should be no problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible that I missed a linker or compiler setting ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Sep 2010 03:16:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/HC9S08QE8-Out-of-allocation-space-in-segment-RAM/m-p/219917#M8756</guid>
      <dc:creator>mexxx01</dc:creator>
      <dc:date>2010-09-01T03:16:10Z</dc:date>
    </item>
    <item>
      <title>Re: HC9S08QE8 - Out of allocation space in segment RAM</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/HC9S08QE8-Out-of-allocation-space-in-segment-RAM/m-p/219918#M8757</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;According to your ,map file you have following objects which will be allocated in RAM:&lt;/P&gt;&lt;P&gt;&amp;nbsp; fifo_data&amp;nbsp;(size 0xC0), BufferTx&amp;nbsp;&amp;nbsp;(size 0xC8) and stack (size 0x40).&lt;/P&gt;&lt;P&gt;This makes a total of 0x1c8 bytes, which does not fit into the RAM area (0x0100 TO 0x025F).&lt;BR /&gt;Try to define smaller fifo_data and/or BufferTx.&lt;/P&gt;&lt;P&gt;CrasyCat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Sep 2010 13:56:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/HC9S08QE8-Out-of-allocation-space-in-segment-RAM/m-p/219918#M8757</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2010-09-01T13:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: HC9S08QE8 - Out of allocation space in segment RAM</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/HC9S08QE8-Out-of-allocation-space-in-segment-RAM/m-p/219919#M8758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ah...I am so stupid.&lt;/P&gt;&lt;P&gt;Thank you....it is working now!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for this great support&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Sep 2010 02:04:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/HC9S08QE8-Out-of-allocation-space-in-segment-RAM/m-p/219919#M8758</guid>
      <dc:creator>mexxx01</dc:creator>
      <dc:date>2010-09-02T02:04:39Z</dc:date>
    </item>
  </channel>
</rss>

