Uninstalling LibUSB-Win32?

General discussions about V-USB, our firmware-only implementation of a low speed USB device on Atmel's AVR microcontrollers
Post Reply
Michael_E

Uninstalling LibUSB-Win32?

Post by Michael_E » Tue Aug 05, 2008 6:40 pm

Hi!

After I connected both USBasp and uDMX (they are both using the same VID 16c0 / PID 05dc) to my Win-XP PC, avrdude does not find the USBasp anymore.

So I "uninstalled" both drivers in device manager and re-installed USBasp. It all looks fine in device manager, usbview and testlibusb-win, but avrdude still does not find it.

The registry still has several entries for libusb, USBasp and uDMX. Trying to delete these entries, even with admin rights, I just get errors ("...kann nicht gelöscht werden: Fehler beim Löschen des Schlüssels"). Is there a way to _completely_ remove libusb, so I can set it up from scratch?

Thanks a lot,

bye,
Michael.

Grendel
Rank 4
Rank 4
Posts: 167
Joined: Sat Dec 16, 2006 9:53 pm
Location: Oregon, USA
Contact:

Post by Grendel » Tue Aug 05, 2008 9:09 pm

Rather delete the devices. Search the registry for the pid/vid pairs.

Michael_E

Post by Michael_E » Tue Aug 05, 2008 9:58 pm

Hi,

Grendel wrote:Rather delete the devices.

Using regedit, I guess, as the device manager only shows the devices it recognized as connected.


Grendel wrote:Search the registry for the pid/vid pairs.

I found and deleted several keys as:
[HKLM\SYSTEM\CurrentControlSet\Control\DeviceClasses\{a5dcb...}\##?#USB#Vid_16c0&Pid_05dc#5&2a420e43&0&1#{a5dcb...}]

But (also after reboot) regedit can't delete this key:
[HKLM\SYSTEM\CurrentControlSet\Enum\USB\Vid_16c0&Pid_05dc]

its subkeys:
\5&2a420e43&0&1
\5&2a420e43&0&2
\6&29f29717&0&2
\6&29f29717&0&3

or their values:
"DeviceDesc"="USBasp"
"LocationInformation"="USBasp"
"Capabilities"=dword:00000084
"UINumber"=dword:00000000
"HardwareID"=hex(7):55,00,53,00,42 ...
"CompatibleIDs"=hex(7):55,00,53,00,42, ...
"ClassGUID"="{EB781AAF-9C70-4523-A5DF-642A87ECA567}"
"Class"="LibUsbDevices"
"Driver"="{EB781AAF-9C70-4523-A5DF-642A87ECA567}\\0000"
"Mfg"="www.fischl.de"
"Service"="libusb0"
"ConfigFlags"=dword:00000000

Bye,
Michael.

Michael_E

Re: Uninstalling LibUSB-Win32?

Post by Michael_E » Tue Aug 05, 2008 11:43 pm

Oh, XP is _so_ funny!

As admin, you don't have the right to delete this key - but for sure, you have the right to give yourself the right to delete it!

And naturally, regedit does not just tell you that you don't have the right to delete this key, instead of this it gives you the very most useful and exact information ever: "key could not be deleted: error deleting key."

Great!

Bye,
Michael.

Grendel
Rank 4
Rank 4
Posts: 167
Joined: Sat Dec 16, 2006 9:53 pm
Location: Oregon, USA
Contact:

Post by Grendel » Wed Aug 06, 2008 2:10 am

Try plugging the device(s) back in, go to the device manager and "uninstall" them there.

Post Reply