AVRDUDE errors and troubleshooting(device not responding) This tutorial is taken from the book
MY EXPERIENCE IN PROGRAMMING AVR MICROCONTROLLER
IN C USING WINAVR/AVRGCC.
you can download it free from the files
section(FILE-AVRBOOK.RAR) of yahoo group-booksbybibinhttp://groups.yahoo.com/group/booksbybibin/
comments about this book on
www.booksbybibin.blogspot.comCOMMON ERRORS IN AVR PROGRAMMING
1.
avrdude: AVR device not responding
avrdude: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.
avrdude done. Thank you.
make.exe: *** Error 1
2. Here is another
3. one more
A small circuit, but too many errors???????.
TROUBLESHOOTING
1. First check whether your parallel port is working or not using lpt.exe. You can
get more explanation on my previous book- MY EXPERIENCE ON PARALLEL
PORT INTERFACING.
2. See bios settings. Better set for bidirectional mode, but spp and ecp modes will also work. See the address of the parallel port(0x378). See my bios settings in my previous book - MY EXPERIENCE ON PARALLEL PORT INTERFACING.
3. You connected reset pin to external Vcc or gnd ( disconnect it)
4. External power supply may be off
5. Parallel port cable may be not fitted properly.
6. See whether u interchanged MISO and MOSI
7. See whether ur parallel port is working or not by using LPT.exe
8. See for short-ckt between pins
9. See for any loose connection in wires using Continuity tester of multimeter
10. Some parallel ports won't work like that of Intel915 because they have special protection, i don't know much about it. I have tried parallel port interfacing on it but data port was not properly working.
11. If you are using soldered wires then see for any short circuit or loose
connections in solderings
12.Ground of power supply and parallel port should be short circuited.
13.Execute install_giveio.bat for acessing ports
Now the main problems are
Yikes! :- I have faced it, but after sometime i again programmed it(i might have done some hardware repairs), it worked properly. This is mainly due to lack of power supply.
Verification Error:- This is due to loose contact with wires. If u keep wires just touched with parallel port(once i tried with hand for connecting parallel port and wires to uC), then this occured. This occur when u remove crystal when programing(after doing fuse bits)
So u check the following things:-
1. Check breadboard, new breadboards have this problem(some parts don't have good connection)
2.Check ur parallel port with lpt.exe
3. See any loose contact.
4. See the tips i said above
MOST IMPORTANT TIP
Always see the voltage at the Vcc pin of the microcontroller. It should not be greater than 5V, if it is greater than 5V then your microcontroller will get burned. See the Vcc of the microcontroller when you switch on the power supply. The other thing you have to remember is about fuse bits.
Forumer™ is Voted #1 Free Forum Hosting provider
Build your own community today with the largest message board hosting company.