I have searched a lot during the last 2 days but some how can't get it.
As far as I understand the XC1-A does not support debugging via xConnect Link.
There for I would like to use printf to uart. As per Tutorial I have added:
Code: Select all
#include <xscope.h>
port uart_tx = PORT_UART_TX;
void xscope_user_init(void) {
xscope_register(0);
xscope_config_uart(uart_tx);
xscope_config_io(XSCOPE_IO_BASIC);
}
Code: Select all
**** Build of configuration Debug for project MyTest ****
xmake CONFIG=Debug all
Creating dependencies for main.xc
Updating eclipse config
No modules used.
Compiling main.xc
cd ./.build_Debug && xcc -c -I"../." -I".././src" -g -O0 -target="XC-1A" -DCONFIG=Debug "../src/main.xc" -o ../.build_Debug/src/main.xc.o
cd ./.build_Debug && xcc -target="XC-1A" -g -O0 .././.build_Debug/src/main.xc.o -o "../bin/Debug/MyTest_Debug.xe"
../src/main.xc: Error: Undefined reference to 'xscope_config_io'
../src/main.xc: Error: Undefined reference to 'xscope_config_uart'
../src/main.xc: Error: Undefined reference to 'xscope_register'
xmake[1]: *** [bin/Debug/MyTest_Debug.xe] Error 1
xmake: *** [bin/Debug/MyTest_Debug.xe] Error 2
Some how i am to stupid. I can't find the the definition of the library path or the linker directive.
Any body who has a good Idea (and some patience with a newbe ;-) )
See you around
Frank