change of memory model (CW 5.7  MC9S08RE16)

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

change of memory model (CW 5.7  MC9S08RE16)

Jump to solution
1,724 Views
stevec
Contributor III
I inadvertantly set my memory model to TINY when I started the project a while back and now need to set it to SMALL. I set the assembler and compiler options under Standard Settings to SMALL (-Ms) and now get a link error L1401:"Incompatible memory model: TINY in previous file ASSERT.C.o (ansitis.lib) and SMALL in (MC9S08RE16.C.o)". Have I missed something out?

Regards,

Steve
Labels (1)
Tags (1)
0 Kudos
1 Solution
457 Views
stanish
NXP Employee
NXP Employee
Hi Stevec,

you have to replace the ansi library since the one you are usnig in the project refers to TINY memory model.
The library has to match with project memory model otherwise it's not possible to link them together.
I'd suggest you to replace file ansitis.lib by ansiis.lib.

The Libs are located here by default:
"<CodeWarrior home directory>\lib\HC08c\lib\*.lib"

For more information about the available ansi libraries I'd suugest you to see:
"<CodeWarrior home directory>\lib\HC08c\readme.txt"

Stanish

View solution in original post

0 Kudos
1 Reply
458 Views
stanish
NXP Employee
NXP Employee
Hi Stevec,

you have to replace the ansi library since the one you are usnig in the project refers to TINY memory model.
The library has to match with project memory model otherwise it's not possible to link them together.
I'd suggest you to replace file ansitis.lib by ansiis.lib.

The Libs are located here by default:
"<CodeWarrior home directory>\lib\HC08c\lib\*.lib"

For more information about the available ansi libraries I'd suugest you to see:
"<CodeWarrior home directory>\lib\HC08c\readme.txt"

Stanish

0 Kudos