[Atmega8L] Device signature = 0x000000

by tamatarpakoda on Thu Jan 31, 2013 5:26 am

Hi,

I'm new to microcontrollers and have been facing this irritating problem with the Atmega8L. Here are the details.

  • Microcontrollers used - Atmega8L-8PU / AtTiny2313V-10PU
  • Programmer - Arduino clone - Freeduino
  • Freeduino Website - http://www.bhashatech.com/70-freeduino- ... -atmega328
  • Arduino board selected (inside Arduino IDE) - Arduino Duemilanove w/ Atmega328
  • Breadboard powersupply used - LM317 board - 5V verified using multimeter
  • Connections - USB 3.0 port --> FTDI converter --> Freeduino
  • Freeduino board has a 100 ohm resistance between Reset and 5V to set it to be used as an AVR ISP
    Software used -
    • WinAVR / Arduino IDE (Windows 7 x64)
    • avrdude (Ubuntu 12.10)
  • GND of programmer connected GND of breadboard power supply.

Breadboard configuration
http://i.imgur.com/OPsd4yd.png
Image

Avrdude input/output
Code: Select all | TOGGLE FULL SIZE
C:\WinAVR-20100110\bin>avrdude -c avrisp -p atmega8 -P COM5 -b 19200

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.09s

avrdude: Device signature = 0x000000
avrdude: Yikes!  Invalid device signature.
         Double check connections and try again, or use -F to override
         this check.


avrdude done.  Thank you.


C:\WinAVR-20100110\bin>avrdude -c avrisp -p atmega8 -P COM5 -b 19200 -B 250

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.09s

avrdude: Device signature = 0x000000
avrdude: Yikes!  Invalid device signature.
         Double check connections and try again, or use -F to override
         this check.


avrdude done.  Thank you.


C:\WinAVR-20100110\bin>avrdude -c avrisp -p atmega8 -P COM5 -B 250
avrdude: stk500_getsync(): not in sync: resp=0x00

avrdude done.  Thank you.


C:\WinAVR-20100110\bin>avrdude -c avrisp -p atmega8 -P COM5
avrdude: stk500_getsync(): not in sync: resp=0xe0

avrdude done.  Thank you.


C:\WinAVR-20100110\bin>avrdude -c arduino -p atmega8 -P COM5 -b 19200

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.03s

avrdude: Device signature = 0x000000
avrdude: Yikes!  Invalid device signature.
         Double check connections and try again, or use -F to override
         this check.


avrdude done.  Thank you.


C:\WinAVR-20100110\bin>avrdude -c arduino -p t2313 -P COM5
avrdude: stk500_getsync(): not in sync: resp=0x00

avrdude done.  Thank you.


C:\WinAVR-20100110\bin>avrdude -c arduino -p t2313 -P COM5  -b 19200

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.03s

avrdude: Device signature = 0x1e910a

avrdude: safemode: Fuses OK

avrdude done.  Thank you.


C:\WinAVR-20100110\bin>avrdude -c arduino -p t2313 -P COM5  -b 9600
avrdude: stk500_getsync(): not in sync: resp=0xf0

avrdude done.  Thank you.


C:\WinAVR-20100110\bin>avrdude -c avrisp -p t2313 -P COM5 -b 19200

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.09s

avrdude: Device signature = 0x1e910a

avrdude: safemode: Fuses OK

avrdude done.  Thank you.


C:\WinAVR-20100110\bin>


The problem:
Whenever I stick the Atmega8L in the breadboard it gives the Invalid device signature message.

This is what I type
avrdude -c avrisp -p atmega8 -P COM5 -b 19200 the heartbeat LED keeps blinking, error LED does not light up.

If I skip the -b 19200 part or set it to 9600 then I get
stk500_getsync(): not in sync: resp=0xf0 and the heartbeat LED keeps blinking but the error LED comes on.

Using -B 6 to -B 250 hasn't helped at all.

I thought maybe I got the microcontroller burnt so I got another Atmega8L and tried it again and that didn't help either.

The entire process when repeated with the AtTiny2313 works great and I can get the bootloader onto it and program it with the blink example. I don't get any of the error messages with the AtTiny2313.

It's a minimal configuration so there is no Crystal connected at the moment, will do that soon.

I can't get the damn Atmega8L to work at all, please help!
tamatarpakoda
 
Posts: 2
Joined: Thu Jan 31, 2013 3:43 am

Re: [Atmega8L] Device signature = 0x000000

by westfw on Thu Jan 31, 2013 11:01 am

avrdude -c avrisp -p atmega8 -P COM5 -b 19200

add "-v -v -v -v" to get additional debug information.
Bypass caps would be a good idea, though you can probably get away without them since the power supply is so close...
User avatar
westfw
 
Posts: 1373
Joined: Fri Apr 27, 2007 12:01 pm
Location: SF Bay area

Re: [Atmega8L] Device signature = 0x000000

by tamatarpakoda on Thu Jan 31, 2013 4:38 pm

Thanks for replying.

The culprit turned out to be oxidation on the terminals. They started working after a nice scrub.
tamatarpakoda
 
Posts: 2
Joined: Thu Jan 31, 2013 3:43 am



cron