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.
http://i.imgur.com/OPsd4yd.png
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>
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!