Usbasp V2 0 Driver Windows 10
There are a few variants of the USBAsp, mostly they work the same and need the same drivers.
- 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.
- USBASP Driver To easily install USB Driver (without requiring windows signature check) on Windows 10, and Windows 8 you can use Zadig tool. The detailed procedure can be seen here Also buy AVR-ISP 10Pin to 6pin Adapter PCB (Not included with USBASP V2.0 programmer).
Early enthusiasm for microcontroller programming - Master degree in computer science (Diplom-Informatiker) - Electrical engineering as subsidiary subject - Co-founding of the web application Spritmonitor.de - Open Source developments (USBasp, USBtin.) - Over 10 years practice in embedded software development - Certification as innovation manager (sensors). USBasp board with additional 6pin header and selectable target supply (3.3V/off/5.0V). (10/2020) John included a 40 pin universal socket which takes 8, 14, 20 and 28 pin devices. He also added a versatile crystal oscillator with outputs of 1, 2, 4, 8 and 16 Mhz to clock the chips.
Usbasp Driver For Windows
This guide is for the ones that look like this, but as I say mostly they work the same so try it anyway.
Linux Drivers
Your system should already have the necessary driver, but might need a tweak to allow non-root users to access the USBasp
Create a text file /etc/udev/rules.d/99-USBAsp.rules and inside that file put the following single line
SUBSYSTEM'usb', ATTR{product}'USBasp', ATTR{idProduct}'05dc', ATTRS{idVendor}'16c0', MODE='0666'
this is tested on my Ubuntu systems, your milage may vary, you probably need to restart udev (/etc/init.d/udev restart), or just reboot.
Google is your friend.
Mac Drivers
Nope, I don’t think you need any, it will probably “just work”.
Windows Drivers
Windows is of course the bothersome child, but it’s not too hard once you know how.
You need to install “libusb”, the simplest way to install is to use the “Zadig” software, first download it…
Now connect your USBAsp and run the Zadig program. In the Zadig window a drop-down shows all the found devices which it might be able to help with and hopefully USBasp is in there.
Usbasp Drivers
If it’s now shown in the drop down, try selecting “List All Devices” from the Options menu
now in the area on the right side of the arrow, you will see some little up and down arrows, this selects the driver to install for that device, on the left of the green arrow is the driver already installed for that device if any. You probably want to select “libusbK” if it is available on the right of that green arrow.
But you can always run zadig again and try a different driver if you have no luck the first time.
The Zadig website is here, Zadig is GPL open source software.
Troubleshooting Windows
If you get a message like “could not find USB device with vid=0x16c0 pid=0x5dc”
This probably indicates that zadig (or you) selected the wrong driver, re-run zadig and try a different one, typically at least for a 64bit system, libusbK is what you want.
If the zadig install times-out and says it failed to install
Don’t worry just reboot (you might not be able to quit Zadig, doesn’t matter, just reboot), it probably worked anyway. Try again if not.
If you don’t see USBasp in the devices list in Zadig
Remember to plug in your USBasp before starting Zadig, and select Options > List All Devices in zadig’s window in case it think’s it’s already installed.
Cheap USBASP programmer which you china buy on ebay, ali and others. Official project WebPage: http://www.fischl.de/usbasp/
- JP1 – Supply Target – Choose between 5V and 3.3V.
- JP2 – Self Program – jumper on for self program, normally free
- JP3 – Slow SCK – Jumper on only if the target clock is lower than 1.5 MHz.
- LED R – Programmer communicating with target device
- LED G – Power on
- IDC pinout:
Usbasp V2 0 Driver Windows 10 64-bit
I will write how to solve:
avrdude: warning: cannot set sck period. please check for usbasp firmware update
You have to flash a new firmware version: usbasp.2011-05-28. Precompiled bin to flash is in binfirmware directory.
Usbasp V2.0
I’ve got USBASP with Atmega8 so I will use usbasp.atmega8.2011-05-28.hex and Arduino UNO R3 as ISP to flash it.
- First open ArduinoISP example in Arduino IDE 1.6.8 and upload the sketch (CTRL+U). Disconnect Arduino.
- Connect arduino to usb asp directly (without any adapter only cables) as follows:
ArduinoUSBASP
105 (RESET)
111 (MOSI)
129 (MISO)
137 (SCK)
5V2 (VCC +5V)
GND10 (GROUND) - Set jumper on JP2 (you can solder goldpins).
- Set power jumper for 5V (JP1)
- Connect only Arduino to USB and check which port com it use. You must not connect usbasp to usb!
- Download AVRDUDE avrdude-6.3-mingw32.zip: http://download.savannah.gnu.org/releases/avrdude/
- Copy correct hex file to avrdude.exe file directory.
- Check the connection with command:
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 WunschSystem wide configuration file is “C:WinAVR-20100110binavrdude.conf”
Using Port : COM4
Using Programmer : avrisp
Overriding Baud Rate : 19200
AVR Part : ATmega8
Chip Erase delay : 10000 us
PAGEL : PD7
BS2 : PC2
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 :Block Poll Page Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
———– —- —– —– —- —— —— —- —— —– —– ———
eeprom 4 20 128 0 no 512 4 0 9000 9000 0xff 0xff
flash 33 10 64 0 yes 8192 64 128 4500 4500 0xff 0x00
lfuse 0 0 0 0 no 1 0 0 2000 2000 0x00 0x00
hfuse 0 0 0 0 no 1 0 0 2000 2000 0x00 0x00
lock 0 0 0 0 no 1 0 0 2000 2000 0x00 0x00
calibration 0 0 0 0 no 4 0 0 0 0 0x00 0x00
signature 0 0 0 0 no 3 0 0 0 0 0x00 0x00Programmer Type : STK500
Description : Atmel AVR ISP
Hardware Version: 2
Firmware Version: 1.18
Topcard : Unknown
Vtarget : 0.0 V
Varef : 0.0 V
Oscillator : Off
SCK period : 0.1 usavrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.04s
avrdude: Device signature = 0x1e9307 (probably m8)
avrdude: safemode: hfuse reads as D9avrdude: safemode: hfuse reads as D9
avrdude: safemode: Fuses OK (E:FF, H:D9, L:9F)avrdude done. Thank you.
replace COMX with correct com port for arduino.
- Set the fuses like on Readme file:
# TARGET=atmega8 HFUSE=0xc9 LFUSE=0xef
# TARGET=atmega48 HFUSE=0xdd LFUSE=0xff
# TARGET=atmega88 HFUSE=0xdd LFUSE=0xffwith command:
- If it recognize the M8 you can flash it:
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 WunschSystem wide configuration file is “C:WinAVR-20100110binavrdude.conf”
Using Port : COM4
Using Programmer : avrisp
Overriding Baud Rate : 19200
AVR Part : ATmega8
Chip Erase delay : 10000 us
PAGEL : PD7
BS2 : PC2
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 :Block Poll Page Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
———– —- —– —– —- —— —— —- —— —– —– ———
eeprom 4 20 128 0 no 512 4 0 9000 9000 0xff 0xff
flash 33 10 64 0 yes 8192 64 128 4500 4500 0xff 0x00
lfuse 0 0 0 0 no 1 0 0 2000 2000 0x00 0x00
hfuse 0 0 0 0 no 1 0 0 2000 2000 0x00 0x00
lock 0 0 0 0 no 1 0 0 2000 2000 0x00 0x00
calibration 0 0 0 0 no 4 0 0 0 0 0x00 0x00
signature 0 0 0 0 no 3 0 0 0 0 0x00 0x00Programmer Type : STK500
Description : Atmel AVR ISP
Hardware Version: 2
Firmware Version: 1.18
Topcard : Unknown
Vtarget : 0.0 V
Varef : 0.0 V
Oscillator : Off
SCK period : 0.1 usavrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.04s
avrdude: Device signature = 0x1e9307 (probably m8)
avrdude: safemode: hfuse reads as D9
avrdude: NOTE: “flash” memory has been specified, an erase cycle will be performed
To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: reading input file “usbasp.atmega8.2011-05-28.hex”
avrdude: input file usbasp.atmega8.2011-05-28.hex auto detected as Intel Hex
avrdude: writing flash (4700 bytes):Writing | ################################################## | 100% 7.34s
avrdude: 4700 bytes of flash written
avrdude: verifying flash memory against usbasp.atmega8.2011-05-28.hex:
avrdude: load data flash data from input file usbasp.atmega8.2011-05-28.hex:
avrdude: input file usbasp.atmega8.2011-05-28.hex auto detected as Intel Hex
avrdude: input file usbasp.atmega8.2011-05-28.hex contains 4700 bytes
avrdude: reading on-chip flash data:Reading | ################################################## | 100% 3.89s
avrdude: verifying …
avrdude: 4700 bytes of flash verifiedavrdude: safemode: hfuse reads as D9
avrdude: safemode: Fuses OK (E:FF, H:D9, L:9F)avrdude done. Thank you.
- Done. Disconnect Arduino.
USBASP Drivers on Windows 8, 8.1 and Windows 10
Read this: http://tosiek.pl/manual-install-drivers-and-disable-drivers-signing-policy-on-windows-10-8-8-1/
You have to first disable check signed drivers on windows 8, 8.1 and 10!
(pull Shift and click to restart > Troubleshoot > Advanced options > Startup Settings > Restart button again > On the Startup Settings screen press 7 or F7 to disable driver signature enforcement.)
Download: usbasp-windriver.2011-05-28
Then install it manually in device manager.