Using the XTAG4 adapter on the XK-AUDIO-316-MC-AB board with a custom board

Discussions relating to the XK-EVK-XU316
satov
Member
Posts: 10
Joined: Wed Apr 30, 2025 3:34 pm

Using the XTAG4 adapter on the XK-AUDIO-316-MC-AB board with a custom board

Post by satov »

Hello!

I have a custom board with a XU316 that I can use with no problems with XTAG4 debug adapter.

I would like to use my board with the XTAG4 adapter embedded into the XK-AUDIO-316-MC-AB board as well, so I soldered J4 on the latter. I can load the .xe and run xgdb but I cannot use xscope apparently. I don't see any error, I just don't see my printfs...any idea why? Is it expected to work like that? On the XK-AUDIO-316-MC-AB board I only power the XTAG4 adapter via its USB and nothing else.
User avatar
andrewxcav
Verified
Experienced Member
Posts: 82
Joined: Wed Feb 17, 2016 5:10 pm

Post by andrewxcav »

XSCOPE uses the high speed XCONNECT fabric and thus has much tighter signal integrity requirements than JTAG, so it could be that.

You can try clocking the links to something low like 10MHz. and see if it starts working, then gradually increase it:

https://www.xmos.com/documentation/XM-0 ... 02022.html

There are also lines in the XN file that can slow these links down:

https://github.com/xmos/sw_usb_audio/bl ... -mc.xn#L77 (increase 5clk to 20clk or so)

Cheers,
-Andrew
CiaranW
Verified
Member
Posts: 14
Joined: Tue Jun 28, 2022 10:58 am

Post by CiaranW »

Another check: Are you using both the '-fxscope' argument to the compiler, and the --xscope argument to 'connect' in xgdb?

XScope support requires the program being run is compiled with xscope, and the debugger needs to be told to use it.

(You should have seen warnings in the xgdb output if this were the case though)
Joe
Verified
Experienced Member
Posts: 127
Joined: Sun Dec 13, 2009 1:12 am

Post by Joe »

The XTAG4 integrated on the XK-AUDIO-316-MC-AB board is only for use on that board, it's not designed for use as an XTAG with other boards and will not function.
XMOS hardware grey beard.