initialization failed, rc=-1

USB AVR Programmer and SPI interface. Adafruit's USBtinyISP.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
koobe
 
Posts: 5
Joined: Sun Feb 15, 2009 4:18 pm

Re: initialization failed, rc=-1

Post by koobe »

ladyada wrote: as for the instructions, the steps don't say to solder in LED1 and LED2 until after the image showing how they should be offset.
You're right, the instructions are technically correct. But I agree with cam54321 that they could be further improved. I made the same mistake with the leds as he did.

Don't get me wrong, I think the instructions are exceptionally good. Very detailed instructions are great for beginners like me. But after a number of similar cycles of placing, soldering and clipping the components it is easy just to assume that it's the same steps again. This is why highlighting any exceptions early would be helpful. For example this led placement.

Another thing that might be a good idea to describe in detail as early as possible is the optional replacement of the resistors with jumpers.

Stoney3K
 
Posts: 3
Joined: Sun Feb 22, 2009 2:22 pm

Re: initialization failed, rc=-1

Post by Stoney3K »

I'm having the same problem with Avrdude on Windows XP. WinAVR version 20081205.

Checked all solder joints, the only thing I forget to solder in was R5 (which drives the green LED). Printout from AVRdude:

Code: Select all

avrdude: Version 5.6cvs, compiled on Nov 10 2008 at 17:15:38
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/

         System wide configuration file is "C:\WinAVR-20081205\bin\avrdude.conf"


         Using Port                    : lpt1
         Using Programmer              : usbtiny
         AVR Part                      : ATMEGA16
         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  Max
W   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ---
-- ---------
           eeprom         4    10   128    0 no        512    4      0  9000  90
00 0xff 0xff
           flash         33     6   128    0 yes     16384  128    128  4500  45
00 0xff 0xff
           lock           0     0     0    0 no          1    0      0  9000  90
00 0x00 0x00
           lfuse          0     0     0    0 no          1    0      0  9000  90
00 0x00 0x00
           hfuse          0     0     0    0 no          1    0      0  9000  90
00 0x00 0x00
           signature      0     0     0    0 no          3    0      0     0
 0 0x00 0x00
           calibration    0     0     0    0 no          4    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: initialization failed, rc=-1
         Double check connections and try again, or use -F to override
         this check.


avrdude done.  Thank you.
Powering the uC (a Sure-electronics Avrdem2 board) from the USB seems to work fine. Might be a dodgy connection or a resistor problem (R4 and R6). Might need to try Linux as well.

Locked
Please be positive and constructive with your questions and comments.

Return to “USBtinyISP”