I’m am having issues with my USBasp programmer (Windows 10). I installed the WinUSB driver using zadig 2.4.
When I run AVR dude with the following parameters
avrdude -c USBasp -p m32u4 -u -U flash:w:justahex.ino.hex:i
It immediately returns with this error:
avrdude: error: could not find USB device with vid=0x16c0 pid=0x5dc vendor='www.fischl.de' product='USBasp'
It looks for a USB device with vendor ID “0x16c0” and product ID “0x5dc”. This is the correct set of IDs according to Zadig:
Also the device manager seems to find the device without issues:
When I google the topic I see a lot of forums where people have issues getting their USBasp device working under windows 10. But they mostly are having issues with the libusb /WinUSB drivers (Which seems to be fine in my case thanks to the Zadig tool).
So I find myself stuck in getting further. Are there any other things I can check? Or is the device broken somehow (which would surprise me as it does get installed properly in windows)
I'm a bit late to the game, but I just experienced the same error (albeit with different causes).
libusbKdriver, which doesn't work, use the
AVRDUDE.EXEtool is the latest version (the older doesn't work with the newer USB drivers for some reason)
-c usbasp-clone -P usbAVRDUDE settings instead of
-c usbap -P usb. The clone setting causes AVRDUDE to ignore the vendor description and also accept the clone. You'd think having the correct VID, PID combination would be sufficient but no...
Bonus: for the extra lazy ones, here's an example command line that would flash that Arduino Leonardo board from Atmel studio (warning, this will overwrite the bootloader):
avrdude.exe -C"avrdude.conf" -p atmega32u4 -c usbasp-clone -P usb -U flash:w:"$(ProjectDir)Debug$(TargetName).hex":i
Correct answer by E. van Putten on December 5, 2020
For avrdude to correctly work with USBAsp, I found the best to install the libusbK driver, at least under Windows 7. This way it works with both - the official avrdude build, and the one from the Arduino IDE. With the libusb-win32 or the WinUSB it works with one, but fails with another.
Answered by TzOk on December 5, 2020
Found the solution, which is of course dead simple once you know...
In Zadig, you can select the driver. Default selected is (in my case) the WinUSB driver. When I select the libusb driver, and install that driver, it works like a charm.
avrdude -vvv -c USBasp -p m32u4 -u -U flash:w:Duroduino.ino.hex:i avrdude: Version 6.3, compiled on Feb 17 2016 at 09:25:53 Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/ Copyright (c) 2007-2014 Joerg Wunsch System wide configuration file is "c:_SVNp(r)insDurocanDeploymentavrdude.conf" Using Port : usb Using Programmer : USBasp avrdude: usbasp_open("usb") avrdude: seen device from vendor ->www.fischl.de<- avrdude: seen product ->USBasp<- AVR Part : ATmega32U4 Chip Erase delay : 9000 us PAGEL : PD7 BS2 : PA0 RESET disposition : dedicated RETRY pulse : SCK serial program mode : yes parallel program mode : yes Timeout : 200 StabDelay : 100 CmdexeDelay : 25 SyncLoops : 32 ByteDelay : 0 PollIndex : 3 PollValue : 0x53 Memory Detail :
Answered by bas on December 5, 2020
1 Asked on January 9, 2021 by thekraken86
1 Asked on January 8, 2021 by user3201500
1 Asked on January 8, 2021 by foxie
1 Asked on January 7, 2021
1 Asked on January 7, 2021 by paa
2 Asked on January 7, 2021 by spinjector
0 Asked on January 6, 2021 by jaym
0 Asked on January 6, 2021
1 Asked on January 6, 2021 by paolo-linaac
1 Asked on January 5, 2021 by adaptive
3 Asked on January 5, 2021 by colby-johnson
3 Asked on January 5, 2021 by rafaame
1 Asked on January 5, 2021 by juandoe
3 Asked on January 4, 2021 by kshitij-bhatnagar
2 Asked on January 4, 2021 by kakeh
3 Asked on January 4, 2021 by mac_79
3 Asked on January 3, 2021 by tomasz-dziku
Get help from others!