SparkFun Forums 

Where electronics enthusiasts find answers.

Discussions on the software and hardware for Atmel's STK standard.
#178543
I am trying to program my ATtiny84 using the Pocket AVR and AVR Studio 6.2. The problem is that the tiny84 cannot be programmed with the STK500 and, of course, the Pocket AVR driver is telling AVR Studio that it is a STK500 programmer. :doh: How do I trick AVR Studio into thinking it is connected to a STK600 programmer? I've tried hacking the .xml tool files to make it think that the chip is designed for the STK500, but it would seem that this is hardcoded or encrypted. Nothing I have done so far has an effect.

The issue is that AVR Studio has programmers assigned to the various AVR chips and it will not allow a non-assigned programmer to be used. The ATttiny84 can be programmed with the STK600, but not the STK500.

This really sucks since I'm programming the chip via SPI and not using a STK500 programmer. There has got to be a way.
User avatar
By Ross Robotics
#178544
Why SPI?
#178560
jremington wrote:According to the Sparkfun product page, avrdude works well with it.
https://learn.sparkfun.com/tutorials/po ... ng-avrdude
What SparkFun and AVRDude says are completely different. AVRDude stops with an error stating that stk500 is incompatible with the device. AVR Studio wont even let me get that far.

I've tried most of the programmers listed by AVR Dude and none of them work with the Pocket AVR and the ATtiny84. Most of them get stuck in endless loops saying that it timed out.
User avatar
By Ross Robotics
#178568
Post a schematic of how everything is hooked up.
By jremington
#178573
AVRDude stops with an error stating that stk500 is incompatible with the device.
Did you bother to read the Sparkfun tutorial I linked? If avrdude tells you that the stk500 is incompatible with the device, then it thinks you are using the stk500 programmer. The command line MUST inform avrdude that you are using a programmer called "usbtiny". It must also identify the target mcu.

Try this command to get the device signature: avrdude -c usbtiny -p t84
#178592
I use the Pocket AVR to program the ATtiny85 from Arduino. That's not exactly what you are doing but Arduino just calls avrdude to do the programming and I think the '84 programs the same as the '85.

Minus the full path expansion, the command that Arduino executes is

avrdude -CC:\.../avrdude.conf -v -v -v -v -pattiny85 -cusbtiny -Uflash:w:C:\...\myfile.cpp.hex:i

I first set this up in Arduino following the instructions in the Tiny AVR Programmer Hookup Guide, but I used the Pocket AVR programmer because it's easier to connect to the ATtiny in a SOIC package on the board. For me it all just works.

You might try the hookup guide to see if that has a different driver or something.

Good luck,
- Chip