cannot get printf to work over jtag Topic is solved

New to XMOS and XCore? Get started here.
ycui7
Member
Posts: 9
Joined: Wed Sep 25, 2024 5:46 am

cannot get printf to work over jtag

Post by ycui7 »

I am having so many problems as a newcomer to the XMOS ecosystem. Here is one.

The printf function does not work over jtag. But somehow it can work over xscope.

Here is the code I have

Code: Select all

#define DEBUG_UNIT ETHERNET_MODULE
#include "debug_print.h"

void AudioHwInit()
{
xk_evk_xu316_AudioHwInit(config);
printf(“rnAudioHwRemoteDone2_printf”);    <== this line is executed with --xscope option, but not --io
debug_printf(“rnAudioHwInitDone”);		<== this line never show up on the sceeen with --xscope option
}
nothing ever show up with --io option on xrun.

some suggestions would be nice.

one thing I cannot figure out is how to set the compile to build as debug not release. where to change between debug/release?
View Solution
User avatar
xhuw
Verified
Active Member
Posts: 39
Joined: Wed May 22, 2024 2:36 pm

Post by xhuw »

Hey, you will need to disable xscope in your application. This will either be by removing the `-fxscope` flag from your xcc invocation. Or if you have a "config.xscope" file then set the "enabled" attribute to false in there
XMOS Software Engineer

Image