Author Topic: how to correct avr device signatue-using avrdude  (Read 3453 times)

0 Members and 1 Guest are viewing this topic.

Offline arun_nrTopic starter

  • Jr. Member
  • **
  • Posts: 9
  • Helpful? 0
how to correct avr device signatue-using avrdude
« on: September 18, 2011, 02:08:02 PM »
im using avrdude and atmega8 and have usbasp programmer,while burning an error message comes::
avrdude:device signature = ox000000
avrdude: yikes! invalid device signature.


i'm compiling from commandline and uses a 4mhz crystal also as oscillator for atmega 8.
« Last Edit: September 18, 2011, 09:05:20 PM by arun_nr »

Offline joe61

  • Supreme Robot
  • *****
  • Posts: 417
  • Helpful? 16
Re: how to correct avr device signatue-using avrdude
« Reply #1 on: September 18, 2011, 06:28:20 PM »
Can you post your command line?

Joe

Offline arun_nrTopic starter

  • Jr. Member
  • **
  • Posts: 9
  • Helpful? 0
Re: how to correct avr device signatue-using avrdude
« Reply #2 on: September 18, 2011, 09:08:08 PM »
hei joe
im attaching a screenshot of command line here.

Offline joe61

  • Supreme Robot
  • *****
  • Posts: 417
  • Helpful? 16
Re: how to correct avr device signatue-using avrdude
« Reply #3 on: September 19, 2011, 06:22:11 AM »
hei joe
im attaching a screenshot of command line here.

I don't see your setting for the fuses. You said you were using the Atmega8 at 8MHz, what fuse settings did you use to get that? I'm thinking the fuses might have gotten messed up.

Joe

Offline arun_nrTopic starter

  • Jr. Member
  • **
  • Posts: 9
  • Helpful? 0
Re: how to correct avr device signatue-using avrdude
« Reply #4 on: September 20, 2011, 08:25:57 AM »
actually im using a crystal(4mhz)and the usbasp im using is of my avr developement board.im using a breadboard platform to burn the code in to microcontroller.
i didnt change anything on my microcontroller(fuse settings).
how do one change the fuse settings on the microcontroller?

Offline joe61

  • Supreme Robot
  • *****
  • Posts: 417
  • Helpful? 16
Re: how to correct avr device signatue-using avrdude
« Reply #5 on: September 20, 2011, 10:11:24 AM »
actually im using a crystal(4mhz)and the usbasp im using is of my avr developement board.im using a breadboard platform to burn the code in to microcontroller.
i didnt change anything on my microcontroller(fuse settings).
how do one change the fuse settings on the microcontroller?

If you haven't changed the fuse settings then you should be using the default clock setting of the microprocessor, using the internal clock (the crystal would be ignored in that case). I don't have time to look up the data sheet right now, but you can find the default setting in the "Clocks" section of the data sheet. The "Memory Programming" section gives information about the fuses. Don't change the fuse settings unless you understand this section.

However, if you haven't changed the fuses, then I suspect your breadboard setup. Try verifying that all the wires are actually making contact the way they're supposed to. Maybe it's just a loose wire on your SPI connection. If that's not it, you may need to adjust the speed of your programmer to match the speed that the chip is actually running at. I don't use usbasp, but I've seen discussions which mention it sometimes needs adjustment. Just a thought.

Joe

 

SMF spam blocked by CleanTalk