December 14, 2018

On the host computer, open WinDbg. This cable is not a standard USB 2. If you are successful, you should see: April 13, at 1: This article describes the story of an experiment whose main goal was to perform the Windows OS debugging using the USB bus. If you have additional questions, please leave a comment. My vote of 2 Mic 8-Aug

Uploader: Vosho
Date Added: 26 June 2016
File Size: 58.58 Mb
Operating Systems: Windows NT/2000/XP/2003/2003/7/8/10 MacOS 10/X
Downloads: 31442
Price: Free* [*Free Regsitration Required]

Setting Up Kernel Debugging with USB 2.0

So USB is an only option for some devices. Then, on one of the machines host machinethe Win debugger application edbug and, on another machine target machinethe driver or OS component to be debugged started.

Even though USB debugging is available on most Intel chipsets, it is not available on all computers. Also, this article can be interesting for engineers and analysts that develop devices, which interact with Windows OS. It would be a pleasure if you could give some suggestion for the development enviroment.

On the figure above, pay attention to the USB target name field that has the debug value. To do this, we need the following:. In a case like this, you might still be able to establish kernel-mode debugging over a USB 2. Make a note of the bus, device, and function numbers for the EHCI controller that you intend to use for debugging.

That is, unplug both cables from the dongle, and swap the sides that the cables are connected to. On the host machine, after the debugger start, the following record will be displayed in the Command window:. You can find it by yourself or see the Links section of the article. Otherwise, the debugging process will be impossible.

Related Drivers  SRP-275 BIXOLON DRIVER

The target computer has the kernel-mode software you want to debug. Recently I purchased one board of Gigabyte Model: The main shortcoming was the low speed of data transfer that, in its turn, influenced the debugging speed significantly. After you have completed Step 3 and Windows has started normally, on the target computer run WinDbg as administrator. This is why it is important to match the bitness of WinDbg to the bitness of Windows.

Articles Quick Answers Messages.

Make sure that you have installed, USBView on the target computer. Navigate to the C: If you were not successful in setting a break point, try to reconnect the USB debug cable on the host computer. This cable is not a standard USB 2. Note the PCI device bus, device, and function number; you will need this information later.

Setting Up Kernel-Mode Debugging over a USB 2.0 Cable Manually

The direction of the dongle is important; one side powers the device, and the other side does not. Pro Building Reactive Apps. Important Before using bcdedit to change boot information you may need to temporarily suspend Windows security features such as BitLocker and Secure Boot on the test PC.


Next, set up your target computer on which you identified the USB debug port. Thus I must have to use USB debug only.

How to Debug the Windows OS using USB – CodeProject

Evolution of Debug Modes In this part of the article, I will give a short description of how the tools and methods of the Windows debug modes evolved together with the development of software and hardware. Next, I will describe a number of rules and tips that will help you to perform the debugging via the USB bus. I am using the Ajay USB debug cable. This made the debugging process more pleasant and, at the same time, caused one serious problem.

Otherwise, the debugging process will be impossible.

You can also start a session with WinDbg by entering the following command in a Command Prompt window, where TargetName is the target name you created when you set up the target computer:. This article describes the story of an experiment whose main goal was to ahays the Windows OS debugging using the USB bus.