LadyAda just commented on my website here:
http://www.noiselandarcade.net/index.ph ... a-bigpita/
I'm trying to follow the instructions here:
http://www.evilmadscientist.com/forum/v ... wtopic=385
I can't get my USBTinyISP to communicate with my AVR chip. I've read through just about every post regarding this here, and I've given up and decided to post about it. I hope I'm not posting too much info but not sure what's important and what's not.
I can solder well, so I don't think I have any setup problems. I checked continuity with a meter from the pins on the 6 pin header on USBTinyISP, through the cable, through the header on my EvilMadScientist.com peggy board, and to the corresponding pins on the ATMega164p controller chip. Everything checks out connection wise.
Here's a pic of it hooked up:
I am running:
Windows XP
AVRDude 5.5, with the 5.3 patch
1.12 USBTinyISP drivers (I've tried 1.10 as well)
The gist of what's going on is I do a "make all" from DOS, followed by a "make install". The make install fails with:
- Code: Select all
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.
I've tried this with a "-B 32" and "-B 25" in the avrdude line inside the make file. I've tried powering the board externally, and also via the J3 jumper on USBTinyISP.
Heres a log of the output from the call to "make all":
- Code: Select all
C:\AVR_code\peggy_scanline>make all
avr-gcc -g -Wall -Os -mmcu=atmega164p -c -o peggy.o peggy.c
avr-gcc -g -Wall -Os -mmcu=atmega164p -Wl,-Map,peggy.map -o peggy.elf peggy.o
avr-objdump -h -S peggy.elf > peggy.lst
avr-objcopy -j .text -j .data -O ihex peggy.elf peggy.hex
avr-objcopy -j .text -j .data -O binary peggy.elf peggy.bin
avr-objcopy -j .text -j .data -O srec peggy.elf peggy.srec
C:\AVR_code\peggy_scanline>
And here is the complete output from "make install":
- Code: Select all
C:\AVR_code\peggy_scanline>make install
avrdude -p m164 -c usbtiny -P usb -v -e -b 115200 \
-U lfuse:w:0xE2:m \
-U hfuse:w:0xD9:m \
-U efuse:w:0xff:m \
-U flash:w:peggy.hex
avrdude: Version 5.3.1, compiled on Apr 8 2007 at 17:05:38
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
System wide configuration file is "C:\WinAVR-20071221\bin\avrdude.conf"
Using Port : usb
Using Programmer : usbtiny
Overriding Baud Rate : 115200
found 5 busses
AVR Part : ATMEGA164
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 65 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
efuse 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 1 0 0 0
0 0x00 0x00
Programmer Type : USBTINY
Description : USBtiny simple USB programmer
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.
avrdude done. Thank you.
make: *** [install] Error 1
C:\AVR_code\peggy_scanline>
I was thinking of taking the AVR out of the peggy board, and wiring it up directly to the programmer to see if that helps, but maybe there is a simpler fix?
Thanks for the help!


