AVR Dragon and ATTINY85 ISP errors

Go To Last Post
3 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

This is the first time I have worked with anything like this outside of classes. I'm using it for a project.

Setup:
Newest version of Studio and Winavr
AVR Dragon with 40 pin zif socket
Jumpers are attached according to the pinouts in the studio help files for ATTINY85
ATTINY85 20PU

I have verified it has power by checking to see if there was voltage accross the ground and VCC and there is.

At this point I just want to get it to flash, so I copied a simple program:

#include

int main(void)
{
// Set Port B pins as all outputs
DDRB = 0xff;

// Set all Port B pins as HIGH
PORTB = 0xff;

return 1;
}

I just want to get LED's to turn on.

Problem:
When I Read Signature is says WARNING:Signature does not match selected device! even though I have the device and signature bytes on ATTINY85.
Also when I try to flash the .hex file to it I get WARNING: FLASH byte address 0x0000 is 0x00 (should be 0x0E).. FAILED!

So I don't understand why this is happening. Any help would be appreciated!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

The ISP speed for a new chip should be 125KHz. Try that.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

That fixed the signature not matching problem, however it was still giving me WARNING: FLASH byte address 0x0000 is 0x00 (should be 0x0E).. FAILED!. I erased the chip and reprogrammed it, now its fine. Thanks for the help.