Help with STK500

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

Help with STK500

Post by foxah »

Ok, I built the Usbtiny, and it reports back that it works, even a green light. However I am having problems getting it to program or erase a 90S8515.

I am running OSX 10.4.11, and have installed OSX-AVR, and copied over the AVRdude conf file and binary as described on the ladyada page. Anything else?

I have the 6pin cable from the usbtiny hooked up to the sprog3 header on the board.

What else should I be doing? Is there a good how-to online somewhere for using usbtiny and avrdude? I am all for RTFM, and I have had little luck in my searches. I think I am close, I just need a little push from some helpful person.

Below is the output I get.

Thanks for all your help and insight,
Adam



adam-foxs-computer:~ foxah$ avrdude -c usbtiny -p at90s8535 -v -v

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 : AT90S8535
Chip Erase delay : 20000 us
PAGEL : P00
BS2 : P00
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 4 12 128 0 no 512 0 0 9000 20000 0x00 0xff
flash 4 12 128 0 no 8192 0 0 9000 20000 0xff 0xff
signature 0 0 0 0 no 3 0 0 0 0 0x00 0x00
fuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
lock 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00

Programmer Type : USBTINY
Description : USBtiny simple USB programmer

avrdude: Using SCK period of 10 usec
CMD: [ac 53 00 00] [ff ff ff ff]
CMD: [ac 53 00 00] [ff ff ff ff]
avrdude: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.


avrdude done. Thank you.

foxah
 
Posts: 8
Joined: Sat Dec 15, 2007 6:04 pm

Sorry, wrong output posted earlier

Post by foxah »

Sorry, I posted the wrong output earlier. Below is the output for the 8515 I have in the socket right now.

-Adam


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 : AT90S8515
Chip Erase delay : 20000 us
PAGEL : P00
BS2 : P00
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 4 12 128 0 no 512 0 0 4000 9000 0x80 0x7f
flash 4 12 128 0 no 8192 0 0 4000 9000 0x7f 0x7f
signature 0 0 0 0 no 3 0 0 0 0 0x00 0x00
fuse 0 0 0 0 no 1 0 0 0 0 0x00 0x00
lock 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00

Programmer Type : USBTINY
Description : USBtiny simple USB programmer

avrdude: Using SCK period of 10 usec
CMD: [ac 53 00 00] [ff ff ff ff]
CMD: [ac 53 00 00] [ff ff ff ff]
avrdude: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.


avrdude done. Thank you.

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm

Post by adafruit »

its not clear whether at90's are supported & since these chips have been discontinued its actually rather hard for me to debug the problem. :(

foxah
 
Posts: 8
Joined: Sat Dec 15, 2007 6:04 pm

Post by foxah »

ladyada wrote:its not clear whether at90's are supported & since these chips have been discontinued its actually rather hard for me to debug the problem. :(
Bummer, I moved on and used my butterfly instead. It works like a charm. Thanks for your help. I have been absent from real embedded development for 7 years, and decided to get back into it. I will just have to buy some new parts, as from what I have seen, none of my avr's are current anymore.

-Adam

User avatar
caitsith2
 
Posts: 217
Joined: Thu Jan 18, 2007 11:21 pm

Post by caitsith2 »

On the plus side, the AT90S8515 and AT90S8535 both have an updated equivelent, the ATMega8515 and ATMega8535.

rb76543
 
Posts: 29
Joined: Sat Dec 15, 2007 7:52 pm

Post by rb76543 »

ladyada wrote:its not clear whether at90's are supported & since these chips have been discontinued its actually rather hard for me to debug the problem. :(
mine, ver 2.0, programs an at90s8535 with no problems.

rod

wtfwtfdef
 
Posts: 37
Joined: Sat Dec 15, 2007 2:35 am

Post by wtfwtfdef »

check the list in avrdude,.. those are the chips supported..all the AT90s's that are any good are listed there and there new equivs, I have not started testing yet the STK conversion kit, im working on that right now, i will test which are working on that conversion kit too

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

Return to “USBtinyISP”