When I build my project in Codewarriar, a warning " L1128: Cutting value _Range beg data member from 0xF01000 to 0x1000" is appeared.
The compiler treat it as a warning, but I think it is a error. Does someone tell me how to resolve the problem? (My MCU is mc9s12xet256)
That L message is coming from the linker. It seems that the value 0f 0xf01000 gets truncated to 0x1000.
Can you check where in your application you are using the variable _Range?
I guess you initialize an address/pointer with an address which does not fit the 16bit range.
I hope this helps,
Erich
Hi, Erich
Thanks for answer me.
It has been resolved already.
The reason is some global variables in banked memory. We should let the startup code know this.
In order to do that add option -D__FAR_DATA to compiler command line or add #define __FAR_DATA in head of start12.c file.
Make sure to rebuild the start12.c file with that option activated.