How to resolve the problem "L1128"

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

How to resolve the problem "L1128"

953 Views
jasoncui
Contributor II

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)

Labels (1)
0 Kudos
Reply
2 Replies

626 Views
BlackNight
NXP Employee
NXP Employee

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

0 Kudos
Reply

626 Views
jasoncui
Contributor II

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.

0 Kudos
Reply