Burning Bootloader error: first mismatch at byte 0x0000

Hi!
I'm kinda new to all the Arduino stuff and recently found out that you can use the ATmega standalone without the actual Arduino-board (AWESOME!!!). Accordingly I wanted to burn the bootloader on a new "blank" ATmega328P using my Arduino Uno as an In-System as described here: https://www.arduino.cc/en/Tutorial/ArduinoToBreadboard

However after wiring and setting it up I tried to run "Burn Bootloader" but all I got was an error message saying:

verification error, first mismatch at byte 0x0000
         0xfd != 0x05
avrdude: verification error; content mismatch

I checked my breadboard like a thousand times without success.
Do you guys have any idea of what I am doing wrong?

Here are the exact steps I went through:

  1. Uploading the ArduinoISP program onto my Arduino Uno.
  2. Wiring up the ATmega328P with the Arduino Uno (see image).
  3. Setting Tools->Board to "Arduino Nano"
  4. Setting Tools->Processor to "ATmega328"
  5. Setting Tools->Programmer to "Arduino as ISP"
  6. Running Tools->Burn Bootloader

This is the whole output that I'm getting:

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

avrdude: Version 6.3, compiled on Jun 22 2016 at 16:05:21
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

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

         Using Port                    : COM3
         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 = 0x1e950f (probably m328p)
avrdude: erasing chip
avrdude: reading input file "0x3F"
avrdude: writing lock (1 bytes):

Writing | ################################################## | 100% 0.01s

avrdude: 1 bytes of lock written
avrdude: verifying lock memory against 0x3F:
avrdude: load data lock data from input file 0x3F:
avrdude: input file 0x3F contains 1 bytes
avrdude: reading on-chip lock data:

Reading | ################################################## | 100% 0.01s

avrdude: verifying ...
avrdude: 1 bytes of lock verified
avrdude: reading input file "0x05"
avrdude: writing efuse (1 bytes):

Writing |  ***failed;  
################################################## | 100% 0.07s

avrdude: 1 bytes of efuse written
avrdude: verifying efuse memory against 0x05:
avrdude: load data efuse data from input file 0x05:
avrdude: input file 0x05 contains 1 bytes
avrdude: reading on-chip efuse data:

Fehler beim Brennen des Bootloaders.
Reading | ################################################## | 100% 0.01s

avrdude: verifying ...
avrdude: verification error, first mismatch at byte 0x0000
         0xfd != 0x05
avrdude: verification error; content mismatch

avrdude done.  Thank you.

Thanks a lot for your answers!

This is a known issue with Arduino AVR Boards 1.6.12(included with Arduino IDE 1.6.10). If you're using Arduino IDE 1.6.10 I highly recommend updating to Arduino IDE 1.6.11. If you're using a previous IDE version you can fix the issue by doing this:

  • Tools > Board > Boards Manager... > Arduino AVR Boards(click on it) > Update
  • Once the installation is complete click the "Close" button.

That really did the trick!!!
...thought it was kind of hardware problem. Thank you so much!
Now I'm gonna spend my whole day to burn my other 15 Atmegas :smiley:

If it takes you a whole day to burn 15 atmegas, you need to use a hotter flame.

I have fix the problem after work in 3 days. I was using Atmega 328-pu ..usbasp..avrdudes.. Arduino IDE 1.6.1

I uploaded the Uno.hex file to atmega 328-pu using usbasp + avrdudes

The main problem was the fused bits

Check the fuse bits for Atmega 328-pu I have attached it.
Atmega328p-pu is different..

It will upload the uno.hex file...then u have to change the avrdudes.confi file which is located in arduino ide sub folders ..plz search it...in. Your c drive ..open it search 328...u will find signature of atmega 328 ...it will be 0x0F

Change it to

0x14

Save it

Now open your arduino ide..

Change programmer to usbasp

Upload code using programmer

..

It work for me..

rahulbaruri20@gmail.com

For any queries..

Thanks :slight_smile:

nice necroing, 1 and 1/2 years old thread with a sort of a me-too post. :confused: