KH Schildt

M52223EVB Link error

Discussion created by KH Schildt on Sep 17, 2007
Latest reply on Jan 24, 2014 by Cristina Casas
Hi,
I'm using the M52223EVB together with the CW Special edition 5.7.0. I'm having problems when trying to compile my code. I was down to 1 linking error and then added the lcf files and suddenly I had 1001 errors. Almost all errors are are like this:
"Link error : Unexpected relocation R_68K_SDA16: __SDA_BASE not set in file xcp_usb.c"
Followed by:
"Link error : Illegal 16-bit small data area relative reference to symbol '_xcp_daq_dto_buffer_status'
from address 0x20004F0 in section '.text' of file 'xcp_usb.c'.
This type of reference has a range from 4294934528 to 32767 bytes."
I can't find any solution to the problem either in the manuals or on the forum.
What am I doing wrong?
I'm trying to implement the ASAM standard communication "XCP on USB" for communication between the evaluation board and my PC.
 
Thanks in advance!
 
Hakan Schildt

Outcomes