Error C1822 when migrating from Banked to Large Memory Model

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Error C1822 when migrating from Banked to Large Memory Model

Jump to solution
1,387 Views
chrissam
Contributor I

Hi, 

 

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 Error C1822: Type mismatch (expected 'unsigned char *const', given 'Variable_Name *const near'). The problem here is that the pointer is unsigned char and the Variable_Name is unsigned long. 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.

 

So is there any way to force the compiler to continue the built process without this error?  

 

In the compiler settings window codewarrior does not give me the possibility to change this error to a warning.

 

Thank you in advance,

 

Chris.

Labels (1)
0 Kudos
Reply
1 Solution
1,033 Views
trytohelp
NXP Employee
NXP Employee

Hi Chris,

You're right the C1822 can not be disabled or moved to Information or Warning message.

I don't see a way to compiler the project without changing the source code.

Last week with colleague we handle "may be" a similar question which was how to move a banked project to large project.

The problem on customer side was linked to the pointers.

We created a short example, don't know if this could help you.

    mc9s12xdt512 & paged - unpaged ram memory

Now if you provide us a code example we could perform some tests on our side too.

If you prefer we can continue via Case system.

To submit your case into the new system, please follow below steps:

   1) Go to http://www.nxp.com/support/sales-and-support:SUPPORTHOME.

   2) On the bottom of the page under Submit New Issues, click Hardware & Software.

   3) Register with your business email to access NXP technical online support.

   4) A verification email will be sent to your account. Click the link embedded in that email to verify your access.

   5) On the NXP online support page, select Contact Support from the top menu and click “submit a new case” to start the process.

Have a great day,
Pascal
NXP Technical Support

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

View solution in original post

0 Kudos
Reply
1 Reply
1,034 Views
trytohelp
NXP Employee
NXP Employee

Hi Chris,

You're right the C1822 can not be disabled or moved to Information or Warning message.

I don't see a way to compiler the project without changing the source code.

Last week with colleague we handle "may be" a similar question which was how to move a banked project to large project.

The problem on customer side was linked to the pointers.

We created a short example, don't know if this could help you.

    mc9s12xdt512 & paged - unpaged ram memory

Now if you provide us a code example we could perform some tests on our side too.

If you prefer we can continue via Case system.

To submit your case into the new system, please follow below steps:

   1) Go to http://www.nxp.com/support/sales-and-support:SUPPORTHOME.

   2) On the bottom of the page under Submit New Issues, click Hardware & Software.

   3) Register with your business email to access NXP technical online support.

   4) A verification email will be sent to your account. Click the link embedded in that email to verify your access.

   5) On the NXP online support page, select Contact Support from the top menu and click “submit a new case” to start the process.

Have a great day,
Pascal
NXP Technical Support

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply