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

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

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

1,412 Views
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
Labels (1)
0 Kudos
1 Reply

269 Views
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 Kudos