atmega168 rc=-1 still... Help please.

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

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
foxah
 
Posts: 8
Joined: Sat Dec 15, 2007 6:04 pm

atmega168 rc=-1 still... Help please.

Post by foxah »

OK, so I still cannot get my usbtiny to program my atmega168. I have ordered fresh mega168s, and still no go. I think I have a wiring error. Here is how my connections go...

pinout
USBTiny - mega168
1 - 18
2 - 7/21/20
3 - 19
4 - 17
5 - 1
6 - 8/22

since the chip has an internal oscillator, I have not connected an external oscillator. I have also tried powering the chip from the usbtiny, and from an external source.

I have been able to talk to a Atmel Butterfly board, but I just can't seem to fix my problem using a breadboard.

I am using a Mac, OSX 10.4.11 Intel.

Below is my terminal screen output.

Any help is greatly appreciated.
-Adam



-computer:~] foxah% avrdude -p atmega168 -c usbtiny -v -v -n

avrdude: Version 5.4, compiled on Oct 15 2007 at 00:27:53
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/

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

Using Port : unknown
Using Programmer : usbtiny
AVR Part : ATMEGA168
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 5 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

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.

Hazard
 
Posts: 196
Joined: Tue Oct 30, 2007 7:27 am

Post by Hazard »

Maybe the fuses are set to external clock?

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

Return to “USBtinyISP”