<?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: Handling large constants arrays with paging? in CodeWarrior Development Tools</title>
    <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Handling-large-constants-arrays-with-paging/m-p/449203#M3249</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this error message&lt;/P&gt;&lt;P&gt;Link Error: L4025: This limited version allows only 32768 bytes of C code.&amp;nbsp; My Main.c which includes the 32 kBytes on of constants has a file size of 36462 (&amp;gt;32768).&lt;/P&gt;&lt;P&gt;is because of license code size limitation&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;please go to &lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:support@freescale.com"&gt;support@freescale.com&lt;/A&gt;&lt;SPAN&gt; to apply an evaluation license then test the project again.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;how does it work?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Zhang Jun&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Nov 2015 02:22:42 GMT</pubDate>
    <dc:creator>ZhangJennie</dc:creator>
    <dc:date>2015-11-05T02:22:42Z</dc:date>
    <item>
      <title>Handling large constants arrays with paging?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Handling-large-constants-arrays-with-paging/m-p/449202#M3248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: .0001pt;"&gt;I am having difficulty with using paging properly.&amp;nbsp; I have 32 kbytes of constant values that I need stored in arrays.&amp;nbsp; I can store the data in chunks as small as 1 kbyte or larger up to 9 kbytes.&amp;nbsp; I then need to transfer these constants to variables in 1Khz chunks for usage.&amp;nbsp; I have studied how paging works and feel I understand the concepts, but I am not convinced I have it programmed correctly. Here is a snippet:&amp;nbsp; &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;#pragma CONST_SEG __PPAGE_SEG PAGEDCONSTANTS1&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;volatile const short __far testwave_S [3584]={0, 0, 1301, 393, 0, -31470, 3, 8488, -28334,…..} &lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;#pragma CONST_SEG __PPAGE_SEG DEFAULT&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;#pragma CONST_SEG __PPAGE_SEG PAGEDCONSTANTS2&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;volatile const short __far PHYwave_S [4608]={25908, 30594, -31982, 18178, 1860, 21617,….]&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;#pragma CONST_SEG __PPAGE_SEG DEFAULT&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;#pragma CONST_SEG __PPAGE_SEG PAGEDCONSTANTS3&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;volatile const short __far testwave_D [3584]={0, 0, 8215, 328, 0, -32746, 2, -27388, 25476,….}&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;#pragma CONST_SEG __PPAGE_SEG DEFAULT&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;#pragma CONST_SEG __PPAGE_SEG PAGEDCONSTANTS4&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;volatile const short __far PHYwave_D [4608]={16936, 9766, -32206, 25704, 584, 28691,….}&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;#pragma CONST_SEG __PPAGE_SEG DEFAULT&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;With the following added to my *.prm file:&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DEFAULT_ROM&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; INTO PAGE_01, PAGE_02, PAGE_03, PAGE_04, PAGE_05, PAGE_06, PAGE_07, PAGE_08, PAGE_09;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PAGEDCONSTANTS1&amp;nbsp;&amp;nbsp; INTO PAGE_0A;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PAGEDCONSTANTS2&amp;nbsp;&amp;nbsp; INTO PAGE_0B;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PAGEDCONSTANTS3&amp;nbsp;&amp;nbsp; INTO PAGE_0C;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PAGEDCONSTANTS4&amp;nbsp;&amp;nbsp; INTO PAGE_0E;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;When I compile (using CodeWarrior for 9S12GA240 on an Esduino Xtreme board), I get the following error message:&amp;nbsp; Link Error: L4025: This limited version allows only 32768 bytes of C code.&amp;nbsp; My Main.c which includes the 32 kBytes on of constants has a file size of 36462 (&amp;gt;32768).&amp;nbsp; Considering that the 32 kBytes of constants = 32768, how do I get under?&amp;nbsp; &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;It appears I am not handling the constants right or paging properly.&amp;nbsp; Any advice? Where am I going wrong.&amp;nbsp; Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Nov 2015 04:50:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Handling-large-constants-arrays-with-paging/m-p/449202#M3248</guid>
      <dc:creator>timdrake</dc:creator>
      <dc:date>2015-11-02T04:50:50Z</dc:date>
    </item>
    <item>
      <title>Re: Handling large constants arrays with paging?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Handling-large-constants-arrays-with-paging/m-p/449203#M3249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this error message&lt;/P&gt;&lt;P&gt;Link Error: L4025: This limited version allows only 32768 bytes of C code.&amp;nbsp; My Main.c which includes the 32 kBytes on of constants has a file size of 36462 (&amp;gt;32768).&lt;/P&gt;&lt;P&gt;is because of license code size limitation&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;please go to &lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:support@freescale.com"&gt;support@freescale.com&lt;/A&gt;&lt;SPAN&gt; to apply an evaluation license then test the project again.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;how does it work?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Zhang Jun&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Nov 2015 02:22:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Handling-large-constants-arrays-with-paging/m-p/449203#M3249</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2015-11-05T02:22:42Z</dc:date>
    </item>
  </channel>
</rss>

