<?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 Link Error MC9S12C64 in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Link-Error-MC9S12C64/m-p/180464#M6097</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i´m trying to implement an ISR to my project in Codewarrior using the MC9S12C64 µC. But when i try to link then i get an allocation error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Link Error : L1102: Out of allocation space in segment RAM at address 0x4000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the map file i found that the Cap1_Data of the ISR is written in to RAM from 3000 to 3FFF.&lt;/P&gt;&lt;P&gt;Its just an empty ISR with no code wirtten yet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i attached my project here, so hopefully you can help me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="message-edit-history"&gt;&lt;SPAN class="edit-author"&gt;Message Edited by Greeny on&lt;/SPAN&gt; &lt;SPAN class="local-date"&gt;2009-05-12&lt;/SPAN&gt; &lt;SPAN class="local-time"&gt;08:22 AM&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 May 2009 14:06:04 GMT</pubDate>
    <dc:creator>Greeny</dc:creator>
    <dc:date>2009-05-12T14:06:04Z</dc:date>
    <item>
      <title>Link Error MC9S12C64</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Link-Error-MC9S12C64/m-p/180464#M6097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i´m trying to implement an ISR to my project in Codewarrior using the MC9S12C64 µC. But when i try to link then i get an allocation error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Link Error : L1102: Out of allocation space in segment RAM at address 0x4000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the map file i found that the Cap1_Data of the ISR is written in to RAM from 3000 to 3FFF.&lt;/P&gt;&lt;P&gt;Its just an empty ISR with no code wirtten yet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i attached my project here, so hopefully you can help me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="message-edit-history"&gt;&lt;SPAN class="edit-author"&gt;Message Edited by Greeny on&lt;/SPAN&gt; &lt;SPAN class="local-date"&gt;2009-05-12&lt;/SPAN&gt; &lt;SPAN class="local-time"&gt;08:22 AM&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2009 14:06:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Link-Error-MC9S12C64/m-p/180464#M6097</guid>
      <dc:creator>Greeny</dc:creator>
      <dc:date>2009-05-12T14:06:04Z</dc:date>
    </item>
    <item>
      <title>Re: Link Error MC9S12C64</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Link-Error-MC9S12C64/m-p/180465#M6098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Greeny,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems you don't use #pragma to place constants correctly.&lt;/P&gt;&lt;P&gt;I'd suggest you to use:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#pragma CONST_SEG ROM_VAR&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;instead of &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#pragma ROM_VAR WINKEL_ROM&lt;/P&gt;&lt;P&gt;#pragma ROM_VAR TRIGGER_ZAHN_ROM&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#pragma ROM_VAR DEG_ABS_TOOTH_ROM&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#pragma CONST_SEG DEFAULT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;instead of&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#pragma ROM_VAR DEFAULT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;or you can create separate entry in PLACEMENT section of prm file for each constant if you need to have these constants at specific addresses: e.g.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;PLACEMENT&amp;nbsp;&lt;/P&gt;&lt;P&gt;WINKEL&amp;nbsp; INTO&amp;nbsp; WINKEL_ROM&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and then you can use:&lt;/P&gt;&lt;P&gt;#pragma CONST_SEG WINKEL&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Stanish&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2009 15:05:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Link-Error-MC9S12C64/m-p/180465#M6098</guid>
      <dc:creator>stanish</dc:creator>
      <dc:date>2009-05-12T15:05:01Z</dc:date>
    </item>
    <item>
      <title>Re: Link Error MC9S12C64</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Link-Error-MC9S12C64/m-p/180466#M6099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;There is no .prm file in the project. I don't think it is possible for CW to work without one.&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2009 15:07:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Link-Error-MC9S12C64/m-p/180466#M6099</guid>
      <dc:creator>Lundin</dc:creator>
      <dc:date>2009-05-12T15:07:01Z</dc:date>
    </item>
    <item>
      <title>Re: Link Error MC9S12C64</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Link-Error-MC9S12C64/m-p/180467#M6100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Thanks stanish. i corrected the pragmas and is seems to work.&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2009 17:07:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Link-Error-MC9S12C64/m-p/180467#M6100</guid>
      <dc:creator>Greeny</dc:creator>
      <dc:date>2009-05-12T17:07:07Z</dc:date>
    </item>
  </channel>
</rss>

