[Atmega8L] Device signature = 0x000000

For Adafruit customers who seek help with microcontrollers

Moderators: adafruit_support_bill, adafruit

[Atmega8L] Device signature = 0x000000

Postby tamatarpakoda » 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
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

Postby westfw » 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: 1321
Joined: Fri Apr 27, 2007 12:01 pm
Location: SF Bay area

Re: [Atmega8L] Device signature = 0x000000

Postby tamatarpakoda » 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


Return to Microcontrollers

Who is online

Users browsing this forum: mibignistinly and 4 guests

Stuff to buy from the Adafruit store and links to product documentation!


New Products [102]

Raspberry Pi[80]
 
FLORA[23]
 
Bunnie Studios[9]
 
FPGA[1]
 
mbed[11]
Arduino[60]
 
NETduino[14]
 
BeagleBone[24]
 
Android[6]
 
XBee[10]
More Dev Boards[30]


 
BoArduino[8]
 
SpokePOV[4]
 
TV-B-Gone[4]
 
MiniPOV[3]
 
SIM reader[3]
 
Microtouch[5]
 
Clocks & Watches[18]
 
Drawdio[4]
 
Brain Machine[1]
 
Game of Life[2]
 
MintyBoost[2]
More DIY Kits[16]


 
MaKey MaKey[3]
 
Tweet-a-Watt[5]
 
Young Engineers[33]
 
Discover Electronics[2]
 
Snap Circuits[4]
 
littleBits[3]
 
Project packs[8]


 
Breakout Boards[33]
LCDs & Displays[48]
Components & Parts[69]
Batteries & Power[49]
EL Wire/Tape/Panel[52]
LEDs[108]
 
Wireless[14]
Cables[60]
 
Lasers[6]
Sensors/Parts[145]
 
Enclosures/Cases[11]
 
Solar[11]
 
RFID / NFC[13]
Prototyping[69]
 
iDevices[13]
Tools[71]
 
Wearables[39]
 
CNC[37]
 
Robotics[29]
 
3D printing[1]
 
Materials[24]


 
Stickers[41]
 
Skill badges[55]
 
Books[25]
 
Circuit Playground[7]
 
Gift Certificates[4]