Page 1 of 1

First Debug, "Target connection failed," on xCORE200

Posted: Mon Aug 27, 2018 10:45 pm
by lslarry86
I am new to XMOS, trying to start debugging my new design on xCORE200. I have 5V from a charger coming in the 5V IN USB connector. I have a USB cable from my PC to the xTAG3 that came with the xCORE. The boards are plugged together in the only place they seem to mate. Build gives me a debug executable. "xCORE-200 Explorer Kit" is selected as the build target in Makefile. Launch Configuration. The HS USB connector has nothing plugged to it because I am out of that size connector (micro A?).

When I click the little bug in Eclipse to Debug, the software builds, then the gdb console shows this:
.gdbinit: No such file or directory.
connect --adapter-id nSSTVAiU
Missing gdbinit looks fishy but that seems to be a common forum question, and doesn't seem to be the root of anything. Platform.h does not open.

No breakpoints are ever hit. After a few seconds I get a dialog box that says "Target connection failed." I have tried pressing Reset around the end of the build phase, same story.

Funny thing is, I left the xCORE-200 5V IN unplugged one time and the exact same thing happened. So I think I may be missing something. Help?

Re: First Debug, "Target connection failed," on xCORE200

Posted: Mon Aug 27, 2018 10:52 pm
by mon2
Being a custom design, there are a lot of potential issues that could be the root cause. Can you post the relevant parts of your schematic? This would be the USB connectors + power supply sequencing + XTAG3 interface.

Re: First Debug, "Target connection failed," on xCORE200

Posted: Tue Aug 28, 2018 12:36 am
by mon2
In the meantime, review these related threads:

http://www.xcore.com/viewtopic.php?t=5628

http://www.xcore.com/viewtopic.php?t=3964

Code: Select all

http://www.xcore.com/viewtopic.php?t=5628

http://www.xcore.com/viewtopic.php?t=3964

Re: First Debug, "Target connection failed," on xCORE200

Posted: Tue Aug 28, 2018 1:03 am
by lslarry86
The hardware is xCORE-200 eXplorer with xTAG3. By "design" I meant my RFID software ported from Propeller.

Re: First Debug, "Target connection failed," on xCORE200

Posted: Tue Aug 28, 2018 1:08 am
by lslarry86
Topic 3964 worked for me too:
XMOS_XTAG_WINDOWS7_STARTUP_TIME=500 in Properties/C/C++ Build/Environment
Thanks!

Re: First Debug, "Target connection failed," on xCORE200

Posted: Tue Aug 28, 2018 1:13 am
by mon2
Then the issue is most likely related to the use of USB3 ports and/or internal hub controllers. Review the 2nd post in this thread and test the suggestions.

http://www.xcore.com/viewtopic.php?t=3964

On your box, check to see if you have any black insulator USB ports. If yes, consider to test them over the blue insulator ports (USB 3.0 / aka USB 3.1 Gen1).

Also, be sure that you have quality USB cables. The XTAG3 operates @ 480 Mbps (USB 2.0 HS) so it is worth testing with other USB cables. These cables should be fully loaded (ie. not charging cables which lack the D+ & D- lines).