[solved] Arduinos don't work after trying to program with an usbASP

Hi,
as i tried to get beyond the arduino IDE i tried out Atmel Studio 7 to program in pure C code.
I did a simple Blink sketch and installed the usbASP via Zadig (libusb-win32 (v1.2.6.0)).

I tried to upload said sketch to my arduino uno via Atmel Studio and the error was:

avrdude: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.

I checked all connections twice with my multimeter, there was nothing wrong.
My thougt was that there was something about the Atmel Studio confing that caused this error so i went back to the Arduino IDE to see if the ASP would work. I opened the Blink example and set the Programmer to "usbASP" and got this error message :

avrdude: auto set sck period (because given equals null)
avrdude: warning: cannot set sck period. please check for usbasp firmware update.
avrdude: error: program enable: target doesn't answer. 1
avrdude: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.

I did this with two diffenent computers an reinstalled the IDE but it was always the same error.
After that i tried to upload the blink sketch to the Arduino via the normal usb port but i got this error:

avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0xd1

So now my Arduino doesn't work at all :frowning:
I tried the whole process again with another arduino, with the exact same result.
So i thougt that the ASP would be faulty and replaced it. but even with another asp it wouldn't work.
So I've chanded pc, arduino and Asp and im really helpless what to look for now .
when googling around i read about eXtreme Burner and thougt maybe if I look into the registers of the ATmega328 i would be able to find something but eXtreme Burner was also not able to communicate with the Arduino.
My Questions are now:
What happened?
Can my Arduinos be saved?
Did i overlook something about the usbASP wich i should have done (more than installing the driver)?
Both of the PCs i have used run Win10.

The full output of avrdude when i try to upload the Blink sketch via usbASP:
System wide configuration file is "C:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf"

Using Port : usb
Using Programmer : usbasp
AVR Part : ATmega328P
Chip Erase delay : 9000 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 65 20 4 0 no 1024 4 0 3600 3600 0xff 0xff
flash 65 6 128 0 yes 32768 128 256 4500 4500 0xff 0xff
lfuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
hfuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
efuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
lock 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
calibration 0 0 0 0 no 1 0 0 0 0 0x00 0x00
signature 0 0 0 0 no 3 0 0 0 0 0x00 0x00

Programmer Type : usbasp
Description : USBasp, USBasp - USB programmer for Atmel AVR controllers - fischl.de

avrdude: auto set sck period (because given equals null)
avrdude: warning: cannot set sck period. please check for usbasp firmware update.
avrdude: error: program enable: target doesn't answer. 1
avrdude: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.

I am really desperate ATM so any help ist highly Appreciated.

Did you change the fuses on the Uno when you were using Atmel Studio?

OK i asked google what fuses are and i don't know if i changed them. It would make sense that i accidentally set the 5th and 7th high fuse bits bcs it seems like the chips on the arduinos are still working ( one of them does blink if powered on, but the skech was uploaded before trying to flash them via usbasp).
Is there a way to see wich fuses i set when flashing?
The second arduino was only flashed with the ASP/ IDE combination.
Are the fuses the first thing that get set when flashing?
Thanks for your help.

I solved it myself. The error was the driver of the usbASP.
I installed it again not via zadig but via the windows device manager and the original files of USBasp - USB programmer for Atmel AVR controllers - fischl.de.
I followed this video tutorial: How to install USBasp driver in Windows 10 - YouTube

I then burned the bootloader directly via avrdude.
So the problem was that there was no bootloader on the arduinos and the ASP was set up wrong.

I'm glad to hear it's working now. Thank you for taking the time to post an update with your solution. I'm sure those who find this thread while searching for a solution to the same problem will be very grateful.

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.