<?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: main() mapped over several flash pages in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/main-mapped-over-several-flash-pages/m-p/145846#M3312</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Err... if you wrote your program as a single, 16kb large function, this one is the least of your problems...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Sep 2010 19:22:59 GMT</pubDate>
    <dc:creator>Lundin</dc:creator>
    <dc:date>2010-09-08T19:22:59Z</dc:date>
    <item>
      <title>main() mapped over several flash pages</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/main-mapped-over-several-flash-pages/m-p/145844#M3310</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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using Codewarrior 4.5 with a MC9S12XDP512CAL.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I ran into a problem after my Main() went too big. I get the following error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Link Error: L1102 Out of allocation space in segment PAGE_F7 at adress 0xF78229&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I looked at the map file and the main() is indeed to big for a single segment. but there are more than enough free segments.&lt;/P&gt;&lt;P&gt;I allready tryed the "allocation over segment boundries" options of the linker, but the problem stays the same.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there anything else i have to adjust to allow the allocation over segment boundries?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Sep 2010 16:38:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/main-mapped-over-several-flash-pages/m-p/145844#M3310</guid>
      <dc:creator>Olitsch</dc:creator>
      <dc:date>2010-09-08T16:38:05Z</dc:date>
    </item>
    <item>
      <title>Re: main() mapped over several flash pages</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/main-mapped-over-several-flash-pages/m-p/145845#M3311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should split main() into two or more smaller functions and call them from main(). You can't allocate functions over page window boundaries, code won't run.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Sep 2010 17:29:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/main-mapped-over-several-flash-pages/m-p/145845#M3311</guid>
      <dc:creator>kef</dc:creator>
      <dc:date>2010-09-08T17:29:20Z</dc:date>
    </item>
    <item>
      <title>Re: main() mapped over several flash pages</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/main-mapped-over-several-flash-pages/m-p/145846#M3312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Err... if you wrote your program as a single, 16kb large function, this one is the least of your problems...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Sep 2010 19:22:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/main-mapped-over-several-flash-pages/m-p/145846#M3312</guid>
      <dc:creator>Lundin</dc:creator>
      <dc:date>2010-09-08T19:22:59Z</dc:date>
    </item>
  </channel>
</rss>

