Windbg USB debugging issue - Target machine Windows 7 hanging

I have been using USB debug cable to debug my device driver for windows 7 with WinDbg.
I am using ?Ajays technology - NET20DC - Hi-Speed USB 2.0 Host-to-Host Debug Device? USB debug cable.

I configured the USB debug setting with the steps given in

http://msdn.microsoft.com/en-us/library/ff556869(v=vs.85).aspx

Also I made sure that my USB port had debug support.

My USb debugging setup is :

Host System : x86 desktop with Windows XP SP3

Target System : x86 desktop with Windows 7 (BIOS version : LENOVO 5CKT63AUS )

The steps I followed is

  1. Configured the Target PC for USB debugging.

  2. Connected the one end of USB debug cable to Host PC (windows xp service pack3), USB2.0 debug device driver is loaded.

  3. Opened the Windbg and selected usb debugging and pressed ctrl+alt+k twice.

  4. Connected the other end of USB debug cable on the Target PC which is configured for USB debugging and booted windows with debug enabled mode in boot menu

  5. Now the Target system is hanging, and nothing appears on Windbg.

Note : In the same setup if I connect the USB debug cable in the target system after Windows logo appears, the connection is established. But the debugger is not breaking the loading of windows.

So my question is why the target system is hanging if I connect the usb cable to the target system before windows boots.

Because if I connect the cable after windows logo appears, there might be a chance that before I connect the USB cable, my driver to be debugged will be loaded.

So I cant debug our driver during loading.

And we didnt find option to “Disable USB Legacy support” in our target system BIOS. Could this cause the above mentioned issue?

Please help me to fix the issue

Thank you in advance

Dani

Fire up the debugger on the host. Set the debugger to break on first symbol load. (Ctrl-alk-k twice in winload.)

Boot the target. Wait for it to hang.

When it hangs unplug the ajay device from the host for about 1 second and plug it back in.

At that point you should break into the debugger.

Welcome to the joy of USB2 debugging. (NOT)

Joe.

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@gmail.com
Sent: Wednesday, January 12, 2011 9:23 PM
To: Kernel Debugging Interest List
Subject: [windbg] Windbg USB debugging issue - Target machine Windows 7 hanging

I have been using USB debug cable to debug my device driver for windows 7 with WinDbg.
I am using ?Ajays technology - NET20DC - Hi-Speed USB 2.0 Host-to-Host Debug Device? USB debug cable.

I configured the USB debug setting with the steps given in

http://msdn.microsoft.com/en-us/library/ff556869(v=vs.85).aspx

Also I made sure that my USB port had debug support.

My USb debugging setup is :

Host System : x86 desktop with Windows XP SP3

Target System : x86 desktop with Windows 7 (BIOS version : LENOVO 5CKT63AUS )

The steps I followed is

  1. Configured the Target PC for USB debugging.

  2. Connected the one end of USB debug cable to Host PC (windows xp service pack3), USB2.0 debug device driver is loaded.

  3. Opened the Windbg and selected usb debugging and pressed ctrl+alt+k twice.

  4. Connected the other end of USB debug cable on the Target PC which is configured for USB debugging and booted windows with debug enabled mode in boot menu

  5. Now the Target system is hanging, and nothing appears on Windbg.

Note : In the same setup if I connect the USB debug cable in the target system after Windows logo appears, the connection is established. But the debugger is not breaking the loading of windows.

So my question is why the target system is hanging if I connect the usb cable to the target system before windows boots.

Because if I connect the cable after windows logo appears, there might be a chance that before I connect the USB cable, my driver to be debugged will be loaded.

So I cant debug our driver during loading.

And we didnt find option to “Disable USB Legacy support” in our target system BIOS. Could this cause the above mentioned issue?

Please help me to fix the issue

Thank you in advance

Dani


WINDBG is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

Hi Joe

Thank you for your reply.
I tried as you suggested but when I unplug the ajay device from the host for about 1 second and plug it back in, still Windows is hanged and the connection is not established.
Can you please explain why you suggested to unplug it for a second and then plug it again…?

Also will the USB legacy support create any issues with USB debugging…

Thank you
Dani