I have created a new xTimecomposer project with Target Hardware set to 'XUF216-256-TQ128-C20.xn'
In the makefile I set
XCC_FLAGS = -O2 -g -fxscope
The main.xc file is:
#include <xscope.h>
#include "dsp.h"
void xscope_user_init ( void )
{
xscope_register(1,
XSCOPE_CONTINUOUS,"debug",XSCOPE_INT,""
);
xscope_config_io( XSCOPE_IO_BASIC );
}
int main()
{
int x = 4;
for (int i = 0; i < 10; i++)
{
x += 9;
xscope_int(0, x);
}
return 0;
}
The program compiles but I get a link error:
xscope_probe_xlink.S: Error: Undefined reference to '__sodEnd' (using xScope without specifying -fxscope?)
xscope_api.c: Error: Undefined reference to '__sodFlag' (using xScope without specifying -fxscope?)
---------------------------------
I the project was created with SLICEKIT-L16.xn I do not have this problem, and the file compile, links and runs fine.
What's up?? And how do I fix it.
xscope fails link as a function of Target Hardware
-
- New User
- Posts: 2
- Joined: Sun Feb 12, 2017 7:19 pm
-
- Active Member
- Posts: 43
- Joined: Wed Apr 06, 2011 8:02 pm
Xscope requires certain elements to be present in the XN file. It happens that SLICEKIT-L16.xn already has those elements, but XUF216-256-TQ128-C20.xn does not (none of the processor targets do). You will need to copy that file to your project and edit it to suit. See the Xscope documentation for details.