<?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: declaring large data arrays in external memory in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/HC12-declaring-large-data-arrays-in-external-memory/m-p/133082#M1372</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello&lt;/DIV&gt;&lt;DIV&gt;There seems to be something wrong in the application.&lt;/DIV&gt;&lt;DIV&gt;Please submit a SR for that through our on-line support web page and attach the whole project reproducing the trouble.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Our support people will be able to look into that and identify the problem.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;CrasyCat&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 Oct 2006 19:10:00 GMT</pubDate>
    <dc:creator>CrasyCat</dc:creator>
    <dc:date>2006-10-31T19:10:00Z</dc:date>
    <item>
      <title>HC12: declaring large data arrays in external memory</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/HC12-declaring-large-data-arrays-in-external-memory/m-p/133078#M1368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&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;BatteryRAM&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = NO_INIT&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x200000'G TO 0x3FFFFF'G;&amp;nbsp; // CS1&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV&gt;&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;Bat_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; INTO&amp;nbsp; BatteryRAM;&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV&gt;typedef struct&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;unsigned char cOutExit;&lt;BR /&gt;&amp;nbsp;unsigned&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;bOutFired:1;&lt;BR /&gt;&amp;nbsp;unsigned char cBatchExit;&lt;BR /&gt;&amp;nbsp;unsigned char cLabelPoint;&lt;BR /&gt;&amp;nbsp;unsigned char cFruitSize;&lt;BR /&gt;&amp;nbsp;unsigned int&amp;nbsp;&amp;nbsp; &amp;nbsp;iFruitWeight;&lt;BR /&gt;}BED;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;#define MAX_BED&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;0x03FF&lt;/DIV&gt;&lt;DIV&gt;#define MAX_LANES&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 16&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;#pragma DATA_SEG __GPAGE_SEG Bat_RAM&lt;BR /&gt;&amp;nbsp;char cExt_RAM[56];&lt;BR /&gt;&amp;nbsp;Prog_Layout Program[9];&lt;BR /&gt;&amp;nbsp;BED FruitBed[MAX_LANES][MAX_BED];&lt;BR /&gt;#pragma DATA_SEG DEFAULT&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV&gt;L4100: Failed to convert address 0x200000'G of FruitBed because of 'External space area (140000..3FFFFF) has no logical address'&lt;/DIV&gt;&lt;DIV&gt;&lt;BR /&gt;L4100: Failed to convert address 0x200000'G of In debug info because of 'External space area (140000..3FFFFF) has no logical&lt;BR /&gt;address'&lt;/DIV&gt;&lt;DIV&gt;&lt;BR /&gt;L4100: Failed to convert address 0x200000'G of In debug info because of 'External space area (140000..3FFFFF) has no logical&lt;BR /&gt;address'&lt;/DIV&gt;&lt;DIV&gt;&lt;BR /&gt;That is understandable but how do I declair my arrays so as the complier recognises them.&lt;/DIV&gt;&lt;DIV&gt;My old compiler wasn't able to cope with paging so I did it manuallly in my code. Putting each lane on a seperate page at the same address.&amp;nbsp;I are trying to get away from this.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Does anybody have a good surgestion.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Daniel&lt;/DIV&gt;&lt;P&gt;Message Edited by CrasyCat on &lt;SPAN class="date_text"&gt;2007-04-13&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;01:24 PM&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Oct 2006 06:29:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/HC12-declaring-large-data-arrays-in-external-memory/m-p/133078#M1368</guid>
      <dc:creator>NZ_Design</dc:creator>
      <dc:date>2006-10-13T06:29:19Z</dc:date>
    </item>
    <item>
      <title>Re: declaring large data arrays in external memory</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/HC12-declaring-large-data-arrays-in-external-memory/m-p/133079#M1369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;Which CPU are you targeting?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;Which version of CodeWarrior are you using?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;To retrieve that information:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;- Start IDE&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;- Select Help -&amp;gt; "About Freescale CodeWarrior"&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;- Click on "Installed Products"&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;- Click on "Save As", save the result in a file and attach it to that post.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;CrasyCat&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Oct 2006 18:34:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/HC12-declaring-large-data-arrays-in-external-memory/m-p/133079#M1369</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2006-10-13T18:34:44Z</dc:date>
    </item>
    <item>
      <title>Re: declaring large data arrays in external memory</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/HC12-declaring-large-data-arrays-in-external-memory/m-p/133080#M1370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;One reason for this warning is if you do only surround the definition of the variables with a&lt;BR /&gt;#pragma DATA_SEG __GPAGE_SEG Bat_RAM&lt;BR /&gt;but not the declarations of the variables.&lt;BR /&gt;I recommend to always use the same #pragmas before/after both, and to include the header file declaring the variable also in the C file defining the variable so the compiler can issue a warning:&lt;BR /&gt;&amp;gt;Warning : C4200: Other segment than&lt;BR /&gt;&amp;gt;in previous declaration&lt;BR /&gt;&lt;BR /&gt;in case of a inconsistency.&lt;BR /&gt;&lt;BR /&gt;If the compiler does not know that an external variable should be accessed with __GPAGE_SEG,&lt;BR /&gt;and the debug information will refer with logical addresses to it and this does cause this message.&lt;BR /&gt;&lt;BR /&gt;Note also that this is just a warning about the debug information (and not about code).&lt;BR /&gt;&lt;BR /&gt;Daniel&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Oct 2006 04:44:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/HC12-declaring-large-data-arrays-in-external-memory/m-p/133080#M1370</guid>
      <dc:creator>CompilerGuru</dc:creator>
      <dc:date>2006-10-17T04:44:16Z</dc:date>
    </item>
    <item>
      <title>Re: declaring large data arrays in external memory</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/HC12-declaring-large-data-arrays-in-external-memory/m-p/133081#M1371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;The processsor I are using is MCS12XDP512 and code worrier version is 5.7.0&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I re wondering if I should be setting up indervidual pages and assigning the pages to Bat_RAM.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Daniel&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Oct 2006 08:05:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/HC12-declaring-large-data-arrays-in-external-memory/m-p/133081#M1371</guid>
      <dc:creator>NZ_Design</dc:creator>
      <dc:date>2006-10-31T08:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: declaring large data arrays in external memory</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/HC12-declaring-large-data-arrays-in-external-memory/m-p/133082#M1372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello&lt;/DIV&gt;&lt;DIV&gt;There seems to be something wrong in the application.&lt;/DIV&gt;&lt;DIV&gt;Please submit a SR for that through our on-line support web page and attach the whole project reproducing the trouble.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Our support people will be able to look into that and identify the problem.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;CrasyCat&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Oct 2006 19:10:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/HC12-declaring-large-data-arrays-in-external-memory/m-p/133082#M1372</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2006-10-31T19:10:00Z</dc:date>
    </item>
  </channel>
</rss>

