How to resolve the problem "L1128"

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to resolve the problem "L1128"

996件の閲覧回数
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)

ラベル(1)
0 件の賞賛
返信
2 返答(返信)

669件の閲覧回数
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 件の賞賛
返信

669件の閲覧回数
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 件の賞賛
返信