print works in Getting Started project but not my project

Technical questions regarding the xTIMEcomposer, xSOFTip Explorer and Programming with XMOS.
daniel3550
Member
Posts: 8
Joined: Thu Dec 06, 2018 12:07 am

print works in Getting Started project but not my project

Postby daniel3550 » Thu Dec 06, 2018 11:09 pm

Hello,

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;
}

When I run the debugger I see the print out from printintln(data) in the console.

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?

Who is online

Users browsing this forum: No registered users and 1 guest