Burning Bootloader in Atmega 328P-PU for Arduino Uno

I am trying to burn bootloader in Atmega 328P-PU
Here are the steps I have followe

  1. Upload ArduinoISP sketch
  2. Connecting Atmega328p-PU to breadboard
    Arduino Uno -> Atmega328P-PU(on breadboard)
    pin 13 - pin 19
    pin 12 - pin 18
    pin 11 - pin 17
    pin 10 - pin 1 (Reset, A 10k ohms resistor from Reset to Vcc)
  3. Changed Programmer to Arduino as ISP
  4. Burn Bootloader

As I have Atmega328P-PU i didnot change or edit the avrdude.conf (hardware\tools\avr\etc) in arduino folder

I tried changing various things but the ERROR remains same

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

Please help

omkarkekre:
I tried changing various things but the ERROR remains same .

And that error is......... ?

[Error]
Arduino: 1.6.6 (Windows 8.1), Board: "Arduino Uno"

C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avrdude -CC:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf -v -patmega328p -cstk500v1 -PCOM11 -b19200 -e -Ulock:w:0x3F:m -Uefuse:w:0x05:m -Uhfuse:w:0xDE:m -Ulfuse:w:0xFF:m

avrdude: Version 6.0.1, compiled on Apr 15 2015 at 19:59:58
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2009 Joerg Wunsch

System wide configuration file is "C:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf"

Using Port : COM11
Using Programmer : stk500v1
Overriding Baud Rate : 19200
AVR Part : ATmega328P
Chip Erase delay : 9000 us
PAGEL : PD7
BS2 : PC2
RESET disposition : dedicated
RETRY pulse : SCK
serial program mode : yes
parallel program mode : yes
Timeout : 200
StabDelay : 100
CmdexeDelay : 25
SyncLoops : 32
ByteDelay : 0
PollIndex : 3
PollValue : 0x53
Memory Detail :

Block Poll Page Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack


eeprom 65 20 4 0 no 1024 4 0 3600 3600 0xff 0xff
flash 65 6 128 0 yes 32768 128 256 4500 4500 0xff 0xff
lfuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
hfuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
efuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
lock 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
calibration 0 0 0 0 no 1 0 0 0 0 0x00 0x00
signature 0 0 0 0 no 3 0 0 0 0 0x00 0x00

Programmer Type : STK500
Description : Atmel STK500 Version 1.x firmware
Hardware Version: 2
Firmware Version: 1.18
Topcard : Unknown
Vtarget : 0.0 V
Varef : 0.0 V
Oscillator : Off
SCK period : 0.1 us

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.02s

avrdude: Device signature = 0x000000 (retrying)

Reading | ################################################## | 100% 0.02s

avrdude: Device signature = 0x000000 (retrying)

Error while burning bootloader.
Reading | ################################################## | 100% 0.02s

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.[/Error]

This is the complete Error Message Sir
Thanks

Your pin connections are correct.

I assume you're powering the target chip with 5V, and that you have a 16MHz resonator or crystal attached to pins 9 and 10, (with load capacitors if using a crystal). You should also have a capacitor across the target chip's supply. 0.1uF is all that's needed.

If you have everything connected as above, do what the error message says and double-check all connections. An invalid signature indicates a possible bad connection.

Thank you Sir
I had not connected a capacitor between chip Supply
Yes i have powered the board by 5V and 16 MHz crystal with 22pF capacitors

After uploading the portion of error now is

[Error]

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.02s

avrdude: Device signature = 0xffffff (retrying)

Error while burning bootloader.
Reading | ################################################## | 100% 0.02s

avrdude: Device signature = 0xffff00
avrdude: Expected signature for ATmega328P is 1E 95 0F
Double check chip, or use -F to override this check.

avrdude done. Thank you.
[/Error]

The device signature is changing Randomly
Please can you tell the Reason behind this

(deleted)

spycatcher2k:
Can you take a close up, in focus picture and post it, showing both the Arduino connections & ATMEGA Connections

You took the words right out of my mouth. :slight_smile:

@omkarkekre - Did your problem get resolved?. If yes, how?. Appreciate if you could share the solution.

I have the same exact problem where every time I burn the bootloader, the following device signature changes

avrdude: Device signature = 0xffff00

My setup :
OS = Linux
Arduino IDE = 1.6.9
Arduino ISP = Atmega 328p
Target uc = Atmel 328P-AU

I even soldered the pins directly but did not help. I have the 16 MHz crystal and the corresponding caps in place. In one instance, tried with the internal 8 MHz clock. Did not help.

Appreciate any thoughts and help.

Note: We have burnt the bootloader so many times earlier without any issues. But this time it seems to be a bit sticky.