<?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>Classic/Legacy CodeWarrior中的主题 Error C1822 when migrating from Banked to Large Memory Model</title>
    <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Error-C1822-when-migrating-from-Banked-to-Large-Memory-Model/m-p/484075#M7029</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp; &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a project in the Banked Memory Model in Freescale's MC9S12XDT512 MCU. I have to change the Memory model to Large. When i change the compiler settings and built the program i get an&lt;STRONG&gt; Error C1822: Type mismatch (expected 'unsigned char *const', given 'Variable_Name *const near').&lt;/STRONG&gt; The problem here is that the pointer is &lt;STRONG&gt;unsigned char&lt;/STRONG&gt; and the Variable_Name is &lt;STRONG&gt;unsigned long&lt;/STRONG&gt;. This problem did not occur when the memory model was in Bank. The changes i have to make to the project are countless and i would prefer not to change it. &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So is there any way to force the compiler to continue the built process without this error?&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the compiler settings window codewarrior does not give me the possibility to change this error to a warning.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Chris.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Feb 2016 09:01:15 GMT</pubDate>
    <dc:creator>chrissam</dc:creator>
    <dc:date>2016-02-03T09:01:15Z</dc:date>
    <item>
      <title>Error C1822 when migrating from Banked to Large Memory Model</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Error-C1822-when-migrating-from-Banked-to-Large-Memory-Model/m-p/484075#M7029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp; &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a project in the Banked Memory Model in Freescale's MC9S12XDT512 MCU. I have to change the Memory model to Large. When i change the compiler settings and built the program i get an&lt;STRONG&gt; Error C1822: Type mismatch (expected 'unsigned char *const', given 'Variable_Name *const near').&lt;/STRONG&gt; The problem here is that the pointer is &lt;STRONG&gt;unsigned char&lt;/STRONG&gt; and the Variable_Name is &lt;STRONG&gt;unsigned long&lt;/STRONG&gt;. This problem did not occur when the memory model was in Bank. The changes i have to make to the project are countless and i would prefer not to change it. &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So is there any way to force the compiler to continue the built process without this error?&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the compiler settings window codewarrior does not give me the possibility to change this error to a warning.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Chris.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Feb 2016 09:01:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Error-C1822-when-migrating-from-Banked-to-Large-Memory-Model/m-p/484075#M7029</guid>
      <dc:creator>chrissam</dc:creator>
      <dc:date>2016-02-03T09:01:15Z</dc:date>
    </item>
    <item>
      <title>Re: Error C1822 when migrating from Banked to Large Memory Model</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Error-C1822-when-migrating-from-Banked-to-Large-Memory-Model/m-p/484076#M7030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You're right the C1822 can not be disabled or moved to Information or Warning message.&lt;/P&gt;&lt;P&gt;I don't see a way to compiler the project without changing the source code.&lt;/P&gt;&lt;P&gt;Last week with colleague we handle "may be" a similar question which was how to move a banked project to large project.&lt;/P&gt;&lt;P&gt;The problem on customer side was linked to the pointers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We created a short example, don't know if this could help you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;A href="https://community.nxp.com/thread/384307"&gt;mc9s12xdt512 &amp;amp;amp; paged - unpaged ram memory&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now if you provide us a code example we could perform some tests on our side too.&lt;/P&gt;&lt;P&gt;If you prefer we can continue via Case system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To submit your case into the new system, please follow below steps:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; 1) Go to &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.nxp.com/support/sales-and-support:SUPPORTHOME" rel="nofollow"&gt;http://www.nxp.com/support/sales-and-support:SUPPORTHOME&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; 2) On the bottom of the page under Submit New Issues, click Hardware &amp;amp; Software.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; 3) Register with your business email to access NXP technical online support.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; 4) A verification email will be sent to your account. Click the link embedded in that email to verify your access.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; 5) On the NXP online support page, select Contact Support from the top menu and click “submit a new case” to start the process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Pascal&lt;BR /&gt;NXP Technical Support&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>Wed, 03 Feb 2016 15:44:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Error-C1822-when-migrating-from-Banked-to-Large-Memory-Model/m-p/484076#M7030</guid>
      <dc:creator>trytohelp</dc:creator>
      <dc:date>2016-02-03T15:44:58Z</dc:date>
    </item>
  </channel>
</rss>

