Can't upload - Initialization failed

Hi all,

I’ve just received my DevKit and I can’t seems to upload the exemple.

I get the following error on Arduino :

avrdude: Version 6.3-20190619
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch

     System wide configuration file is "C:\Users\Drizzt\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/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 : ATmega168PB
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        512    4      0  3600  3600 0xff 0xff
       flash         65     6   128    0 yes     16384  128    128  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 : USBtiny
     Description     : USBtiny simple USB programmer, https://learn.adafruit.com/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.

An error occurred while uploading the sketch
avrdude done. Thank you.

I’m using the v10.2020 dev tools.

For info (don’t know if this is relevant or not), when plugged in, the blinks is cycling between red, green and blue light.

I’ve installed tha adafruit drivers as well and the device is correctly identified as USBTiny in the Device Manager. The current Programmer in Arduino is set to Blinks USBTinyISP.

I’ve also tried both USB cables and different USB ports.

Any help will be appreciated

Hi again,

As usual, it’s when you post the question that you find the answer…
I’ve just find the fix by switching the tiny switch on the AVR Programmer from “No power” to “Power Target”.

Well, who knows, it might help someone with the same issue :slight_smile:

Have a nice day !

3 Likes

OMG Thank you!!! I was having the exact same issue and for the life of me could not figure out what I was doing wrong.