UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Adventurer
Adventurer
8,933 Views
Registered: ‎11-13-2008

Cable connection times out w/ iMPACT/XMD and cannot clean cable lock

Neither iMPACT's cleancablelock nor XMD's xclean_cablelock commands help. How can I fix the connection without restaring the board or re-connecting the usb cable? See details below.

 

Using uBlaze on ML505, 9.2i tools (EDK 9.2.02 ISE 9.2.04), Linux

 

-------------------------

REPORTS

-------------------------

XMD prints:

ERROR set configuration. strerr=Connection timed out.

 

iMPACT prints:

Checking cable driver.

...

write cmdbuffer failed 20000020.

write cmdbuffer failed 20000020.

Loopback test failed. ...

Cable connection failed.

 

-------------------------

HOW IT GETS TO THIS STATE

-------------------------

0. Normal usage, iMPACT works, upload bitstream, disconnect. Then connect w/ XMD and debug. Exit XMD without stopping uBlaze. So, at the time of cable connection conflict the uBlaze is still running.

1. Upload bitstream w/ iMPACT, but forgetting to disconnect

2. XMD connection fails, exit

4. $ impact -batch; And run cleancablelock. Does not help (i.e. not able to connect later)

5. $ xmd; And run xclean_cablelock. Does not help (i.e. not able to connect later)

 

-------------------------

WHAT HELPED

-------------------------

Restarting the board and disconnecting/re-connecting USB cable.

However, since I am connecting to the computer remotely, this is not always an option.

 

-------------------------

OTHER

-------------------------

I have tried removing and adding usb module.

$ lsusb (Shows Xilinx Platform Cable connected)

$ sudo modprobe  -r -v usbhid

$ lsusb (still shows the Xilinx Platform Cable connected)

$ sudo modprobe usbhid

 

Note that "$lsmod |grep usb" returns usbhid and usbserial modules, but I am not using usb2serial adapter in this configuration, so it must be usbhid.

 

- Why could be the cable still locked after running the clean commands in iMPACT and XMD?

- Am I properly restaring the USB device?

 

Thanks,

Victor

 

 

Tags (2)
0 Kudos
5 Replies
Visitor adacsys
Visitor
7,719 Views
Registered: ‎05-03-2011

Re: Cable connection times out w/ iMPACT/XMD and cannot clean cable lock

I have exactly the same problem, with ML605.

Would you please give the final solution?

0 Kudos
Adventurer
Adventurer
7,710 Views
Registered: ‎11-13-2008

Re: Cable connection times out w/ iMPACT/XMD and cannot clean cable lock

I work around this solution by reconnecting the USB cable. It is not ideal, but at the time of this post I haven't found another workaround. Maybe it was fixed in the latest tools? I am still on EDK 9.2. It'd be great to hear if anyone knows the fix.

Victor
Tags (1)
0 Kudos
Visitor krlarsen
Visitor
7,653 Views
Registered: ‎11-14-2008

Re: Cable connection times out w/ iMPACT/XMD and cannot clean cable lock

From the libusb-driver README file:

 

Locked cables
=============

If you get the message 'The cable is being used by another application.' from
impact, try running the following command:

echo -e 'cleancablelock\nexit' | impact -batch

 This seemed to work for me.

 

EDIT:

Nevermind! I hadn't noticed you've already tried this.

 
0 Kudos
Newbie oespino
Newbie
7,533 Views
Registered: ‎11-28-2011

Re: Cable connection times out w/ iMPACT/XMD and cannot clean cable lock

I have the same problem with 12.4 on RedHat Enterprise 5. Neither iMPACT's cleancablelock nor XMD's xclean_cablelock commands works.

 

Anyone got some feeback?

Tags (1)
0 Kudos
Newbie msanchez
Newbie
7,428 Views
Registered: ‎02-22-2012

Re: Cable connection times out w/ iMPACT/XMD and cannot clean cable lock

I'm having the same problem. Did anyone could solve it?

 

Regards.

Tags (1)
0 Kudos