Hello,
MCU: ATtiny85
Programmer: Sparkfun Tiny AVR Programmer https://www.sparkfun.com/products/11801
Clk: 1MHz internal. Did not try external once.
Error: Wrong microcontroller found.
Cause: 1st upload after plugging in says 'done uploading' but doesn't seem to run. 2nd etc attempts to upload say 'wrong microcontroller found'.
When I put a DIP-8 ATtiny85 in the programmer, it works. I can program multiple times and blink the onboard LED with whatever delay I choose.
When I try to program the SOIC-8 ATtiny85 I have on a small PCB it fails. Which makes me think the PCB or wires are bad, not the IDE or programmer but the programmer acts funny so...
My code is supposed to blink LEDs but it doesn't. I also tried unplugging everything except power and cycling power and LEDs don't blink. Except when programming, LED that is driven by PMOS with gate connected to SCK blinks during programming as expected.
First upload after being plugged in say 'Done uploading':
Sketch uses 782 bytes (9%) of program storage space. Maximum is 8192 bytes.
Global variables use 9 bytes of dynamic memory.
C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avrdude -CC:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf -v -pattiny85 -cusbtiny -Uflash:w:C:\Users\Admin\AppData\Local\Temp\arduino_build_856843/test.ino.hex:iavrdude: Version 6.3, compiled on Jan 17 2017 at 12:00:53
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg WunschSystem wide configuration file is "C:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf"
Using Port : usb
Using Programmer : usbtiny
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 6 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 1 0 0 0 0 0x00 0x00Programmer Type : USBtiny
Description : USBtiny simple USB programmer, USBtinyISP - Inexpensive USB AVR Programmer
avrdude: programmer operation not supportedavrdude: Using SCK period of 10 usec
avrdude: AVR device initialized and ready to accept instructionsReading | ################################################## | 100% 0.00s
avrdude: Device signature = 0x1e930b (probably t85)
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:\Users\Admin\AppData\Local\Temp\arduino_build_856843/test.ino.hex"
avrdude: writing flash (782 bytes):Writing | ################################################## | 100% 1.46s
avrdude: 782 bytes of flash written
avrdude: verifying flash memory against C:\Users\Admin\AppData\Local\Temp\arduino_build_856843/test.ino.hex:
avrdude: load data flash data from input file C:\Users\Admin\AppData\Local\Temp\arduino_build_856843/test.ino.hex:
avrdude: input file C:\Users\Admin\AppData\Local\Temp\arduino_build_856843/test.ino.hex contains 782 bytes
avrdude: reading on-chip flash data:Reading | ################################################## | 100% 1.25s
avrdude: verifying ...
avrdude: 782 bytes of flash verifiedavrdude done. Thank you.
////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////
Second attempt to upload after being plugged in.
Arduino: 1.8.5 (Windows 10), Board: "ATtiny, ATtiny85, 1 MHz (internal)"
Sketch uses 782 bytes (9%) of program storage space. Maximum is 8192 bytes.
Global variables use 9 bytes of dynamic memory.
C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avrdude -CC:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf -v -pattiny85 -cusbtiny -Uflash:w:C:\Users\Admin\AppData\Local\Temp\arduino_build_856843/test.ino.hex:iavrdude: Version 6.3, compiled on Jan 17 2017 at 12:00:53
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg WunschSystem wide configuration file is "C:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf"
Using Port : usb
Using Programmer : usbtiny
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 6 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 1 0 0 0 0 0x00 0x00Programmer Type : USBtiny
Description : USBtiny simple USB programmer, USBtinyISP - Inexpensive USB AVR Programmer
avrdude: programmer operation not supportedavrdude: Using SCK period of 10 usec
avrdude: AVR device initialized and ready to accept instructionsReading | ################################################## | 100% 0.00s
avrdude: Device signature = 0x000102
avrdude: Expected signature for ATtiny85 is 1E 93 0B
Double check chip, or use -F to override this check.avrdude done. Thank you.
Wrong microcontroller found. Did you select the right board from the Tools > Board menu?
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.