Society of Robots - Robot Forum

Electronics => Electronics => Topic started by: arun_nr on September 18, 2011, 02:08:02 PM

Title: how to correct avr device signatue-using avrdude
Post by: arun_nr 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.
Title: Re: how to correct avr device signatue-using avrdude
Post by: joe61 on September 18, 2011, 06:28:20 PM
Can you post your command line?

Joe
Title: Re: how to correct avr device signatue-using avrdude
Post by: arun_nr on September 18, 2011, 09:08:08 PM
hei joe
im attaching a screenshot of command line here.
Title: Re: how to correct avr device signatue-using avrdude
Post by: joe61 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
Title: Re: how to correct avr device signatue-using avrdude
Post by: arun_nr 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?
Title: Re: how to correct avr device signatue-using avrdude
Post by: joe61 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