Codewarrior V2.1 linker error for OSEK OS generated file relocation

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Codewarrior V2.1 linker error for OSEK OS generated file relocation

1,419 次查看
vdk
Contributor I
Hello,
 
I am using CW V2.1 and OSEKturbo OS for our application. When I compiled the OS source code and my application code. I am getting error as " Relocation (10) of symbol 'xxxx' in 'xxxx.o' is out of range. (1073731352 not in range [ -33554432...33554428] ".
 
Is is something to do with the .lcf file??
I am using the IDE generated linker file for MPC5534.
please suggest what should be done.
 
Venki
标签 (1)
标记 (1)
0 项奖励
1 回复

276 次查看
stanish
NXP Employee
NXP Employee
Indeed it seems to be an issue related to .lcf file.
OSEKturbo source uses specific linker sections for OS code and OS data. I assume these sections are missing in your .lcf.
I'd suggest you to try to adapt existing .lcf from OSEKturbo sample application that is usually available here:

"c:\Program Files\Freescale\CodeWarrior for MPC55xx
V2.1\(CodeWarrior_Examples)\OSEKturbo\ostmpc55xx\standard\mpc5554\lcf\sample.lcf"

Stanish


Message Edited by stanish on 2008-04-10 01:29 PM

Message Edited by stanish on 2008-04-10 01:29 PM
0 项奖励