ATMega8 for the 1st time!

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

Hi there. I'm trying to enter to this world of AVR ATMega, but I have some problems.
I'm trying to flash an ATMega8(which I just bought 3 days ago) with an USBASP programmer. The thing is I can't flash it for some reason:

avrdude.exe: error: programm enable: target doesn't answer. 1
avrdude.exe: AVR device initialized and ready to accept instructions
avrdude.exe: Device signature = 0x000000
avrdude.exe: Yikes! Invalid device signature.
Double check connections and try again, or use -F to override
this check.

avrdude.exe done. Thank you.

This is what AVR8 Burn-O-Mat shows, and ProgISP tells me "Chip Enable Programm error".
Okay... I've rechecked the connections 2 times and when I've read the readme of USBasp I've found something interesting "
Setting jumpers:
J1 Power target
Supply target with 5V (USB voltage). Be careful with this option, the
circuit isn't protected against short circuit!
J2 Jumper for firmware upgrade (not self-upgradable)
Set this jumper for flashing the ATMega(4)8 of USBasp with another working
programmer.
J3 SCK option
If the target clock is lower than 1,5 MHz, you have to set this jumper.
Then SCK is scaled down from 375 kHz to about 8 kHz. "
What I'm asking now is that if someone who has/had this programmer can help me identify these jumpers, the picture of the programmer is here : http://www.hi-end.ro/images/atus...
Thank you in advance.

Nicu reSpawn.

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

Yes, you have to set J3. By default ATmega8s clock speed is only 1 MHz.

J3 is the one connecting PC2 (pin #25) to the ground.

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

Hmmm, to be honest, I'm a newbie, I'm trying to look on the PCB but I can't notice which one connects that pin to GND so I was wondering if you can tell me which one of those 3(... directions :P)

Nicu reSpawn.

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

bump!

Nicu reSpawn.

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

Questions about avrdude are better posted in the GCC forum where the avrdude author will see them.