Page 1 of 1
usbasp programmer issue attiny85
Posted: Tue May 21, 2024 11:14 am
by gusisin
Hi there I am sure it is me not you...
I have configured my device using ZADIG as shown in the file and I get the following message
avrdude.exe -c usbasp -p t85 -P usb
avrdude error: program enable: target does not answer (0x01)
avrdude error: initialization failed, rc=-1
- double check the connections and try again
- use -B to set lower ISP clock frequency, e.g. -B 125kHz
- use -F to override this check
avrdude done. Thank you.
I am pulling my hair out please can you advise me?
Re: usbasp programmer issue attiny85
Posted: Tue May 21, 2024 2:19 pm
by andrew
avrdude error: program enable: target does not answer (0x01)
avrdude error: initialization failed, rc=-1
From the error message it looks to me like you have the driver installed correctly. The bit of the error message above is saying ‘I can’t talk to the device for some reason’. That could be for any number of reasons but will likely be one of the following things:
Something wrong with the programmer
A bad or incorrect connection between the programmer and the IC
A wrong configuration
A bad IC or something that is stopping it from working.
We have a blog post on how to link an LED with an ATTiny85. It’s using a USBtinyISP programmer rather than a USBasp but it may be worth a scan though it may help you sanity check your setup:
https://blog.hobbycomponents.com/?p=553
Could you also check that you have the programmer connected to your ATTiny85 as follows:
USBAsp (10 Pin IDC)………ATTiny88
1 (MOSI)..………....……...………..6 (MISO)
2 (VCC)................................8 (VCC)
3 (GND)...............................4 (GND)
5 (RESET).............................1 (RESET)
7 (SCK)................................7 (SCK)
9 (MISO)..............................5 (MOSI)
Finally, have you programmed anything in the past with the programmer? This would help to determine if the issue is with the programmer or not.
Re: usbasp programmer issue attiny85
Posted: Tue May 21, 2024 7:47 pm
by gusisin
H thanks for the reply, when I connect using AVRDUDESS 2.17 I can do the following just fine
>>>: avrdude.exe -c usbasp -P usb -B 4.0 -p m8
Detected 1e930b = ATtiny85
Reading fuses...
>>>: avrdude.exe -c usbasp -p t85 -P usb -B 4.0 -U hfuse:r:-:h -U lfuse:r:-:h -U efuse:r:-:h
SUCCESS: Read high fuse
SUCCESS: Read low fuse
SUCCESS: Read extended fuse
Writing fuses...
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
>>>: avrdude.exe -c usbasp -p t85 -P usb -B 4.0 -U lfuse:w:0x62:m -U hfuse:w:0xDF:m -U efuse:w:0xFF:m
avrdude: set SCK frequency to 187500 Hz
avrdude: AVR device initialized and ready to accept instructions
avrdude: device signature = 0x1e930b (probably t85)
avrdude: processing -U lfuse:w:0x62:m
avrdude: reading input file 0x62 for lfuse
with 1 byte in 1 section within [0, 0]
avrdude: writing 1 byte lfuse ...
avrdude: 1 byte of lfuse written
avrdude: verifying lfuse memory against 0x62
avrdude: 1 byte of lfuse verified
avrdude: processing -U hfuse:w:0xDF:m
avrdude: reading input file 0xDF for hfuse
with 1 byte in 1 section within [0, 0]
avrdude: writing 1 byte hfuse ...
avrdude: 1 byte of hfuse written
avrdude: verifying hfuse memory against 0xDF
avrdude: 1 byte of hfuse verified
avrdude: processing -U efuse:w:0xFF:m
avrdude: reading input file 0xFF for efuse
with 1 byte in 1 section within [0, 0]
avrdude: writing 1 byte efuse ...
avrdude: 1 byte of efuse written
avrdude: verifying efuse memory against 0xFF
avrdude: 1 byte of efuse verified
avrdude done. Thank you.
However, when I use the arduino IDE it all falls apart:
ide.png
load.png
Re: usbasp programmer issue attiny85
Posted: Wed May 22, 2024 8:26 am
by andrew
If you're able to set fuses ok then it’s likely your setup and programmer is working ok.
Wrt the Arduino error, it looks like it’s simply not seeing the programmer. One thing you could try is to enable verbose mode for uploading (File->Preferences->Show verbose output during: Upload check box). It may give you a little more information as to why it’s not working with the IDE.
Another thing I need to check is are you sure the programmer was purchased from us? I ask this because most other sellers of this programmer are shipping it with out of date firmware that doesn’t work with the Arduino IDE. We reflash them to the latest version for this exact reason.
Re: usbasp programmer issue attiny85
Posted: Mon Sep 23, 2024 7:56 am
by Juliet23491
hey!it loks like youre having a problem with configurng your device.check if the WinUSB driver is corectly instaled for your device.try reinstaling the driver using ZADIG.Ifit still doesnt work, let us know on the forum, and someone will definitely help you!

Re: usbasp programmer issue attiny85
Posted: Sat Oct 12, 2024 10:01 pm
by BreadBoard
I experienced similar problems with the Zadig drivers under Windows 10 for the USBTinyISP AVR Programmer (HCARDU0002). AVRDude would not connect to the programmer from within the Arduino IDE. I found that changing the driver from "WinUSB" to "libusb-win32" resolved the problem.