USBtiny First Time: programmer operation not supported, rc=-1
Moderators: adafruit_support_bill, adafruit

USBtiny First Time: programmer operation not supported, rc=-1

by wcoggeshall on Mon Mar 25, 2013 10:18 pm

Hi, forums! I built a usbtiny from a kit and am trying to program an attiny85. I have tried with two 85s and one 2313, and every time I get the exact same error. I use Mac OS 10.6.8 with AVRdude 5.11.1, and libusb 1.0.9_0 (according to macports). I am aware the error is a general one, but I am running out of things I can think of, and would like someone with more experience to suggest something to check.
EDIT: I am using avr-libc 1.8.0. I installed AVRdude via MacPorts and it installed all the dependencies for me.

Code: Select all | TOGGLE FULL SIZE
avrdude -p attiny2313 -P usb -U flash:w:test.hex -c usbtiny -vvvv

avrdude: Version 5.11.1, compiled on Mar 23 2013 at 11:52:42
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2009 Joerg Wunsch

         System wide configuration file is "/opt/local/etc/avrdude.conf"
         User configuration file is "/Users/waltercoggeshall/.avrduderc"
         User configuration file does not exist or is not a regular file, skipping

         Using Port                    : usb
         Using Programmer              : usbtiny
avrdude: usbdev_open(): Found USBtinyISP, bus:device: 250:006
         AVR Part                      : ATtiny2313
         Chip Erase delay              : 9000 us
         PAGEL                         : PD4
         BS2                           : PD6
         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     6     4    0 no        128    4      0  4000  4500 0xff 0xff
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           flash         65     6    32    0 yes      2048   32     64  4500  4500 0xff 0xff
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           lock           0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           lfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           hfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           efuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           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: Using SCK period of 10 usec
CMD: [ac 53 00 00] [00 00 00 00]
CMD: [ac 53 00 00] [00 00 00 00]
avrdude: initialization failed, rc=-1
         Double check connections and try again, or use -F to override
         this check.


avrdude done.  Thank you.


The programmer is recognized, my cables are plugged in fine,
[img]
project2.jpg
project2.jpg (319.71 KiB) Viewed 2286 times

[/img]

I have a 47KΩ pull-up on RESET (also tried with 4.7K and 10K), my supply is outputting ~5.08 V (with .1uF decoupling cap), there are no solder bridges [img]
back.jpg
[/img]
, and as far as I know my software base is OK. I don't know what else to check. Thank you.

EDIT: Oops, in this picture, ground isn't connected. However, I have tried this dozens of times, on several different chips. Ground was there then. It is there now.
Attachments
back.jpg
back.jpg (290.79 KiB) Viewed 2286 times
Last edited by wcoggeshall on Sat Apr 06, 2013 4:37 pm, edited 1 time in total.
wcoggeshall
 
Posts: 5
Joined: Mon Mar 25, 2013 9:52 pm

Re: USBtiny First Time: programmer operation not supported, rc=-1

by adafruit_support_rick on Tue Apr 02, 2013 9:31 pm

The USBTiny is OK, but you're not talking to the target chip. Try some different jumpers and breadboard locations for the SPI lines. Also, make sure you're got the SPI lines mapped to the target chip correctly

adafruit_support_rick
 
Posts: 13844
Joined: Tue Mar 15, 2011 11:42 am
Location: Buffalo, NY

Re: double-check connections

by wcoggeshall on Sat Apr 06, 2013 4:32 pm

I tried rebuilding my whole setup on a different breadboard, and double-checked all the connections. still nothing.
wcoggeshall
 
Posts: 5
Joined: Mon Mar 25, 2013 9:52 pm

Re: USBtiny First Time: programmer operation not supported, rc=-1

by adafruit_support_rick on Sat Apr 06, 2013 6:33 pm

Hmmm... How about a picture of the component side of the USBTiny?

adafruit_support_rick
 
Posts: 13844
Joined: Tue Mar 15, 2011 11:42 am
Location: Buffalo, NY

Re: USBtiny First Time: programmer operation not supported, rc=-1

by wcoggeshall on Fri May 17, 2013 2:54 pm

Sorry I totally forgot about this post. I had the wires in a mirror-image.
wcoggeshall
 
Posts: 5
Joined: Mon Mar 25, 2013 9:52 pm