Can't use ISP programmer...

I have used all of my ISP programmers (This, vers 2 of this, and this) in the past...
Over time, something went wrong (I am currently using Arduino 1.6.9); I haven't used any isp programmers for a few months (either to upload a sketch or burn a bootloader).

Today I wanted to burn a bootloader to an attiny85 (to set a fusebit). This failed, I did a HV reset of the chip to make sure it wasn't somehow misconfigured, same thing. I then got another attiny85... same thing.

Any combination of the 3 ISP programmers, various attiny85 chips (inc brand new ones), and which (I have tried 3) attiny85 cores; and regardless of uploading a sketch or burning a boot loader all attempts fail with the same exact message:

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

Error while burning bootloader.

I've tried hopelessly to search for a solution; short of deleting arduino & hardware cores; anyone have an idea on how to trouble shoot/fix this?
(for what it's worth; uploading a sketch to a pre-built board works fine; there are no errors in windows device manager. I am using Windows 8 x64)

That error typically indicates incorrect wiring - not bad fuse settings (they normally result in incorrect signature errors). Recheck all wiring with multimeter to verify continuity.

Enable verbose upload and post output so we can see the command line it's sending to avrdude.

It could be a 1.6.9 issue (that version hasn't been released yet). 1.6.5r5 was the last "good" release.

Thanks. Here's the verbose output:

C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avrdude -CC:\Users\dave\Documents\Arduino\hardware\ATTinyCore\avr/avrdude.conf -v -pattiny85 -cusbasp -Pusb -e -Ulock:w:0xFF:m -Uefuse:w:0xFF:m -Uhfuse:w:0xD7:m -Ulfuse:w:0xFF:m 

avrdude: Version 6.0.1, compiled on Apr 15 2015 at 19:59:58
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2009 Joerg Wunsch

         System wide configuration file is "C:\Users\dave\Documents\Arduino\hardware\ATTinyCore\avr/avrdude.conf"

         Using Port                    : usb
         Using Programmer              : usbasp
         Setting bit clk period        : 5.0
         AVR Part                      : ATtiny85
         Chip Erase delay              : 400000 us
         PAGEL                         : P00
         BS2                           : P00
         RESET disposition             : possible i/o
         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    12     4    0 no        512    4      0  4000  4500 0xff 0xff
           flash         65    12    32    0 yes      8192   64    128 30000 30000 0xff 0xff
           signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00
           lock           0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           lfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           hfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           efuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           calibration    0     0     0    0 no          2    0      0     0     0 0x00 0x00

         Programmer Type : usbasp
         Description     : USBasp, http://www.fischl.de/usbasp/

avrdude: set SCK frequency to 187500 Hz
avrdude: error: programm enable: target doesn't answer. 1 
avrdude: initialization failed, rc=-1
         Double check connections and try again, or use -F to override
         this check.


avrdude done.  Thank you.

Error while burning bootloader.

or

C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avrdude -CC:\Users\dave\Documents\Arduino\hardware\ATTinyCore\avr/avrdude.conf -v -pattiny85 -cusbtiny -e -Ulock:w:0xFF:m -Uefuse:w:0xFF:m -Uhfuse:w:0xD7:m -Ulfuse:w:0xFF:m 

avrdude: Version 6.0.1, compiled on Apr 15 2015 at 19:59:58
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2009 Joerg Wunsch

         System wide configuration file is "C:\Users\dave\Documents\Arduino\hardware\ATTinyCore\avr/avrdude.conf"

         Using Port                    : usb
         Using Programmer              : usbtiny
         Setting bit clk period        : 5.0
avrdude: usbdev_open(): Found USBtinyISP, bus:device: bus-0:\\.\libusb0-0001--0x1781-0x0c9f
         AVR Part                      : ATtiny85
         Chip Erase delay              : 400000 us
         PAGEL                         : P00
         BS2                           : P00
         RESET disposition             : possible i/o
         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    12     4    0 no        512    4      0  4000  4500 0xff 0xff
           flash         65    12    32    0 yes      8192   64    128 30000 30000 0xff 0xff
           signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00
           lock           0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           lfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           hfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           efuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           calibration    0     0     0    0 no          2    0      0     0     0 0x00 0x00

         Programmer Type : USBtiny
         Description     : USBtiny simple USB programmer, http://www.ladyada.net/make/usbtinyisp/
avrdude: programmer operation not supported

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


avrdude done.  Thank you.

Error while burning bootloader.

avrdude: writing lfuse (1 bytes):

Writing | ################################################## | 100% -0.00s

avrdude: 1 bytes of lfuse written
avrdude: verifying lfuse memory against 0xff:
avrdude: load data lfuse data from input file 0xff:
avrdude: input file 0xff contains 1 bytes
avrdude: reading on-chip lfuse data:

Reading | ################################################## | 100% -0.00s

avrdude: verifying ...
avrdude: 1 bytes of lfuse verified

avrdude done. Thank you.

Using Port : usb
Using Programmer : arduinoisp
avrdude: usbdev_open(): Found USBtinyISP, bus:device: bus-0:\.\libusb0-0001--0x2341-0x0049
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 :

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 9000 9000 0x00 0x00
flash 65 6 128 0 yes 32768 128 256 4500 4500 0x00 0x00
lfuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
hfuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
efuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
lock 0 0 0 0 no 1 0 0 9000 9000 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 : USBtiny
Description :
avrdude: programmer operation not supported

avrdude: Using SCK period of 10 usec
avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% -0.00s

avrdude: Device signature = 0x1e9587
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: Using SCK period of 10 usec
avrdude: reading input file "C:\Program Files\Arduino\hardware\arduino\avr/bootloaders/caterina/Caterina-Micro.hex"
avrdude: writing flash (32730 bytes):

Writing | ################################################## | 100% 61.20s

avrdude: 32730 bytes of flash written
avrdude: verifying flash memory against C:\Program Files\Arduino\hardware\arduino\avr/bootloaders/caterina/Caterina-Micro.hex:
avrdude: load data flash data from input file C:\Program Files\Arduino\hardware\arduino\avr/bootloaders/caterina/Caterina-Micro.hex:
avrdude: input file C:\Program Files\Arduino\hardware\arduino\avr/bootloaders/caterina/Caterina-Micro.hex contains 32730 bytes
avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 30.19s

avrdude: verifying ...
avrdude: verification error, first mismatch at byte 0x0300
0x11 != 0xac
avrdude: verification error; content mismatch

avrdude done. Thank you.

Error while burning bootloader.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Having both the verbose checkboxes ticked...
here's a run with arduino as isp:

C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avrdude -CC:\Users\dave\Documents\Arduino\hardware\ATTinyCore\avr/avrdude.conf -v -pattiny85 -cstk500v1 -PCOM7 -b19200 -e -Ulock:w:0xFF:m -Uefuse:w:0xFF:m -Uhfuse:w:0xD7:m -Ulfuse:w:0xFF:m 

avrdude: Version 6.0.1, compiled on Apr 15 2015 at 19:59:58
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2009 Joerg Wunsch

         System wide configuration file is "C:\Users\dave\Documents\Arduino\hardware\ATTinyCore\avr/avrdude.conf"

         Using Port                    : COM7
         Using Programmer              : stk500v1
         Overriding Baud Rate          : 19200
         Setting bit clk period        : 5.0
         AVR Part                      : ATtiny85
         Chip Erase delay              : 400000 us
         PAGEL                         : P00
         BS2                           : P00
         RESET disposition             : possible i/o
         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    12     4    0 no        512    4      0  4000  4500 0xff 0xff
           flash         65    12    32    0 yes      8192   64    128 30000 30000 0xff 0xff
           signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00
           lock           0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           lfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           hfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           efuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           calibration    0     0     0    0 no          2    0      0     0     0 0x00 0x00

         Programmer Type : STK500
         Description     : Atmel STK500 Version 1.x firmware
         Hardware Version: 2
         Firmware Version: 1.18
         Topcard         : Unknown
         Vtarget         : 0.0 V
         Varef           : 0.0 V
         Oscillator      : Off
         SCK period      : 0.1 us

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.02s

avrdude: Device signature = 0x000000 (retrying)

Reading | ################################################## | 100% 0.02s

avrdude: Device signature = 0x000000 (retrying)

Reading | ################################################## | 100% 0.04s

avrdude: Device signature = 0x000000
avrdude: Yikes!  Invalid device signature.
         Double check connections and try again, or use -F to override
         this check.


avrdude done.  Thank you.

Error while burning bootloader.

Based on these errors; it appears to be more of a systemic problem; not an isp programmer issue.... I have tried 4 tiny's, 4 programmers (3 dedicated: 2 usbtinyisp, 1 usbisp; and 1 arduino-as-isp). all seem to fail with "unknown signature"; I'll try rolling back to 'official' version tonight.
Thanks.

Did you try avrdude ?

press +R,type "cmd"
then,

cd C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/

Use a usbtiny or modify programmer parameter (-c) in following command line

avrdude -C-CC:\Program Files (x86)\Arduino\hardware/tools/avr/etc/avrdude.conf -v -pattiny85 -cusbtiny -b19200 -e -Uefuse:w:0xFF:m -Uhfuse:w:0xD7:m -Ulfuse:w:0xFF:m -Ulock:w:0xFF:m

Also, try without the -C argument
Sorry if I underestimated your knowledge.
Try and tell us what happens.
Cheers,
-Malhar

Attached the result of both runs (coloration added)

Try just this

avrdude -v -v -v -v -CC:\Program Files (x86)\Arduino\hardware/tools/avr/etc/avrdude.conf  -cusbtiny -pt85

And post the output in code tags, if possible.

If above line puts out "Avrdude done,safemode:fuses ok"

Then try the followng,it will set a tiny85 with 8MHz internal clock.

avrdude -CC:\Program Files (x86)\Arduino\hardware/tools/avr/etc/avrdude.conf -v -v -v -v -pattiny85 
 -cusbtiny -e -Uefuse:w:0xff:m -Uhfuse:w:0xdf:m -Ulfuse:w:0xe2:m

-Malhar

daveyjones:
Having both the verbose checkboxes ticked...
here's a run with arduino as isp:

C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avrdude -CC:\Users\dave\Documents\Arduino\hardware\ATTinyCore\avr/avrdude.conf -v -pattiny85 -cstk500v1 -PCOM7 -b19200 -e -Ulock:w:0xFF:m -Uefuse:w:0xFF:m -Uhfuse:w:0xD7:m -Ulfuse:w:0xFF:m 

avrdude: Version 6.0.1, compiled on Apr 15 2015 at 19:59:58
        Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
        Copyright (c) 2007-2009 Joerg Wunsch

System wide configuration file is "C:\Users\dave\Documents\Arduino\hardware\ATTinyCore\avr/avrdude.conf"

Using Port                    : COM7
        Using Programmer              : stk500v1
        Overriding Baud Rate          : 19200
        Setting bit clk period        : 5.0
        AVR Part                      : ATtiny85
        Chip Erase delay              : 400000 us
        PAGEL                        : P00
        BS2                          : P00
        RESET disposition            : possible i/o
        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    12    4    0 no        512    4      0  4000  4500 0xff 0xff
          flash        65    12    32    0 yes      8192  64    128 30000 30000 0xff 0xff
          signature      0    0    0    0 no          3    0      0    0    0 0x00 0x00
          lock          0    0    0    0 no          1    0      0  9000  9000 0x00 0x00
          lfuse          0    0    0    0 no          1    0      0  9000  9000 0x00 0x00
          hfuse          0    0    0    0 no          1    0      0  9000  9000 0x00 0x00
          efuse          0    0    0    0 no          1    0      0  9000  9000 0x00 0x00
          calibration    0    0    0    0 no          2    0      0    0    0 0x00 0x00

Programmer Type : STK500
        Description    : Atmel STK500 Version 1.x firmware
        Hardware Version: 2
        Firmware Version: 1.18
        Topcard        : Unknown
        Vtarget        : 0.0 V
        Varef          : 0.0 V
        Oscillator      : Off
        SCK period      : 0.1 us

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.02s

avrdude: Device signature = 0x000000 (retrying)

Reading | ################################################## | 100% 0.02s

avrdude: Device signature = 0x000000 (retrying)

Reading | ################################################## | 100% 0.04s

avrdude: Device signature = 0x000000
avrdude: Yikes!  Invalid device signature.
        Double check connections and try again, or use -F to override
        this check.

avrdude done.  Thank you.

Error while burning bootloader.

Maybe,while trying this,unfortunately ,the reset pin on arduinoasisp is dameged,(D10). Maybe,just a guess...
If you are using a Arduino leonardo, there isa slightely different procedure for using it as a ISP.

-Malhar

Using two programers that fall in the category of "usbtinyisp"

C:\Arduino>avrdude -v -v -v -v -C"C:\Program Files (x86)\Arduino\hardware/tools/avr/etc/avrdude.conf"  -cusbtiny -pt85

avrdude: Version 5.10, compiled on Jan 19 2010 at 10:45:23
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2009 Joerg Wunsch

         System wide configuration file is "C:\Program Files (x86)\Arduino\hardware/tools/avr/etc/avrdude.conf"
syntax error at C:\Program Files (x86)\Arduino\hardware/tools/avr/etc/avrdude.conf:348

MalharD:
Maybe,while trying this,unfortunately ,the reset pin on arduinoasisp is dameged,(D10). Maybe,just a guess...
If you are using a Arduino leonardo, there isa slightely different procedure for using it as a ISP.

I would buy that if it weren't for the fact that I've tried 5 physically different programmers, 3 dedicated, and using an arduino (ADK and also tried UNO) and 4 different attiny85's (one could be used; but not all 4, so I feel confident that at least 3 were "brand new".

Thanks! Hope this gets us somewhere...

well; I deleted every arduino file I could find & installed 1.6.8 (released version). still get an error.
I ordered a new isp programmer on the off chance I somehow simultaneously fried every one of the ones I have here... I think it's got to be some sort of hardware abstraction layer....

I'll report if I discover anything. Sadly; I only have one computer... if anyone has any ideas on what to try I would appreciate it & try just about anything at this point...

Do you have the WinAVR ?
Can you use a older version of IDE? like 1.0.6 ?

I will try to find an older copy of the ide.
I do have winavr installed.

https://www.arduino.cc/en/Main/OldSoftwareReleases#1.0.x
Top Right of the page.

@CrossRoads -- Thanks! Appreciate it -- I completely missed that.
(I am crosseyed mad now; somehow my hardware-download list (json files in preferences) was truncated to only a couple lines; and I seem to have failed to backup my hardware folder; so I am really starting over.

I don't know how the libusb0.* files got installed; but I'm looking for an installer for the programmers to see if there's something in the registry that got fubar'd.

When using the tools (ie avrdude); I can see the led flash on my programmer; so I know it's talking; but it ultimately fails....

Fixed...

short version:
drivers and/or registry bad; manually deleted drivers & all ok.

Long version:

that was a horrific tiring experience.

I rolled back to 1.0 and still had problems. I then deleted arduino & all folders I could find.
What sucks the most is I somehow deleted my added hardware folders, which contained some cores that worked in some situations when the 'standard' ones wouldn't work...(to make it worse, the json url list (preferences) was truncated by some random way (I lost entries in the middle of the list) -- both official, and unofficial urls were lost; but not all.
So far, I haven't noticed any libraries missing; but I hope that I still have what I need. (the hardware is the kick when I'm down).

OK -- so what I ended up doing was, after testing every single 'bare DIP mcu' I could find; and all failing to communicate; and having rolled back all software (and deleted all files) with nothing helping; I restored (what I could) and then attacked the drivers.

I tried uninstalling (thru device manager) the files; no help. I tried re-installing the drivers (no help). I then deleted every single copy of libusb0*.dll/.sys I could find. then attached a programmer and reinstalled drivers.

Now it works. my usbasp doesn't work - at all. Both versions of usbtinyisp (2 different types) and arduino-as-isp work as expected.

additionally; somewhere along the line, 2 of my attiny85 chips got fubar'd; I did a HV restoration of the fuse bits & they started working again. (luckily; I was testing with good chips & a usbtinyisp, otherwise I may still be trying things with a bad isp & bad attiny).


Hopefully it will stay working & I can recover (from the internet) my lost/missing/deleted hardware core definitions.

A BIG Thank You to everyone who had patience and gave me their thoughts & time.