avrdude: Using SCK period of 10 usec
avrdude: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.
Here are my configurations under the tools menu:
Board: "ATtiny25/45/85"
Timer 1 Clock: "CPU"
B.O.D: "B.O.D. Disabled"
LTO (1.6.11+ only): "Disabled"
Chip: "ATtiny85"
Clock: "8 MHz (internal)
Port: THIS IS GRAYED OUT. I CAN'T SELECT IT (But in the bottom right corner of the IDE it says COM3)
I also plugged my programmer into the port so it is on COM3 in device manager to match the IDE
Programmer: "USBtinyISP (ATtiny)"
I am using arduino IDE version 1.8.1 and ATTinyCore version 1.1.2. I downloaded ATTinyCore from the boards manager. (Just trying to provide as much information)
As mentioned above, the port option is grayed out so I can't select it. I tried to use Sketch> Upload Using Programmer, but that didn't work either. I just get the same error as I do when I press the upload button.
However, when I plug in my arduino UNO, I can change the port and it's not grayed out
Let me know if you need any more information!
Thanks!
nick13579:
Port: THIS IS GRAYED OUT. I CAN'T SELECT IT
This is normal and to be expected because you're using the programmer instead of uploading via serial as on the Uno. That is not the cause of your problem.
Did you install the driver from the sparkfun page?
I used that same programmer. Did you first use the "Burn Bootloader" command in the Tools menu? I always do this before doing "Upload Using Programmer". Of course it's not really burning a bootloader, it's setting the 'fuses' for the configuration you have selected.
Are you plugging your 85 directly into the socket on the programmer board, or connecting via the little pin header sockets outside of the chip socket? I found that one of the little feet of the header was broken off the solder pad, so it did not work that way. I ended up getting Sparkfun's slightly larger (and slightly cheaper) Pocket Programmer.
I get an error every time I try to burn the bootloader:
avrdude: Version 6.3, compiled on Dec 16 2016 at 13:33:19
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch
System wide configuration file is "C:\Users\Nick1\AppData\Local\Arduino15\packages\ATTinyCore\hardware\avr\1.1.2/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 :
Looks like he's selected tiny85 with internal oscillator at 8mhz. Edit: Yup, now I see he's posted a pic of it (I was thrown off because he didn't use quote tags, and didn't see the attachment on the new posts screen)
nick13579:
I get an error every time I try to burn the bootloader:
Is that the only output you get?
It looks like the bottom of that output is cut off - it should end with an error of some sort, or an indication of success. Can you confirm that that really is the entirety of the output, or post the complete output if not?
People seem to have a lot of weird problems with USBTinyISP and clones thereof - I recommend USBAsps instead, I've had very good luck with them.
avrdude: Version 6.3, compiled on Dec 16 2016 at 13:33:19
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch
System wide configuration file is "C:\Users\Nick1\AppData\Local\Arduino15\packages\ATTinyCore\hardware\avr\1.1.2/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 :
I can get the same error by by removing the chip from the dip connector or having the chip reversed in the dip connector.
The other day I replaced a 328p-pu chip in a clone Uno and just plugged in using the notch on the dip connector which just happened to be installed backwards. Double check everything on your programmer including checking for voltage on the reset lead as well as Bat and Gnd being where it is supposed to be.
Looking at this schematic, I don't see how the reset lead on pin 1 of the target attiny85 works without a 10k ohm resistor connected to vcc. Also there are no .1uF connected on the target attiny. I must be jumping to conclusions and would welcome somebody setting me straight.
You get that error from most wiring problems (though shorting MISO to Vcc or Gnd, or leaving it unconnected will give signature errors. Check continuity as well as pins shorted to eachother or ground.
kprims: The 10k resistor on reset is optional. It's recommended, particularly in high EMI environments, and is required for the DTR reset trick, but the reset pin's internal pullup is enabled by default. And it's 0.1uF you want, not 0.01