I am brand-new to XMOS and trying to figure out some issues I am having debugging.
I have imported and debugged AN00193_Getting_started_with_debugging_in_xTIMEcomposer_Studio project. The main file is very simple,
Code: Select all
// Copyright (c) 2016, XMOS Ltd, All rights reserved
#include <print.h>
void producer(chanend c) {
for (unsigned int i = 0; i < 10; ++i) {
c <: i;
}
}
void consumer(chanend c) {
int data = 0;
c :> data;
printintln(data);
}
int main() {
chan c;
par {
producer(c);
consumer(c);
}
return 0;
}
Now I'm trying to do the same in my project. My project is a modified version of the XMOS USB audio reference project app_usb_aud_xk_216_mc. When I debug my project I do not see the print outs in the console. I have included <print.h> and a call to printintln(); The project builds fine, but I see nothing in the console. Another interesting point is the font for printintln() is bold in the Getting Started project. Somehow eclipse knows it's a built-in and makes the font bold. But in my project it is not bold.
Could this be something in the project settings? How do I get print statements to go to the console from my project?