First Debug, "Target connection failed," on xCORE200

New to XMOS and XCore? Get started here.
Post Reply
lslarry86
Member
Posts: 12
Joined: Wed Apr 11, 2018 1:35 pm

First Debug, "Target connection failed," on xCORE200

Post 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?


User avatar
mon2
XCore Legend
Posts: 1913
Joined: Thu Jun 10, 2010 11:43 am
Contact:

Post 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.
User avatar
mon2
XCore Legend
Posts: 1913
Joined: Thu Jun 10, 2010 11:43 am
Contact:

Post 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
lslarry86
Member
Posts: 12
Joined: Wed Apr 11, 2018 1:35 pm

Post by lslarry86 »

The hardware is xCORE-200 eXplorer with xTAG3. By "design" I meant my RFID software ported from Propeller.
Last edited by lslarry86 on Tue Aug 28, 2018 1:11 am, edited 1 time in total.
lslarry86
Member
Posts: 12
Joined: Wed Apr 11, 2018 1:35 pm

Post by lslarry86 »

Topic 3964 worked for me too:
XMOS_XTAG_WINDOWS7_STARTUP_TIME=500 in Properties/C/C++ Build/Environment
Thanks!
User avatar
mon2
XCore Legend
Posts: 1913
Joined: Thu Jun 10, 2010 11:43 am
Contact:

Post 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).
Post Reply