Go Down

Topic: Error while burning bootloader (Read 1 time) previous topic - next topic


Hey, everyone. I'm trying to burn a bootloader to my ATmega168, using an arduino as ISP, but this error always occurs:

avrdude: verification error, first mismatch at byte 0x0000
         0x3f != 0x00
avrdude: verification error; content mismatch

How do I fix this?


On the Arduino where you are running ArduinoISP you have to disable the auto-reset.  Find a small electrolytic capacitor (roughly 1 or 2 microfarad) and connect it between the Reset pin and Ground (+ side to Reset, - side to Ground).  You can probably harvest one off an old circuit board if you don't have a source handy.

This drove me NUTS for months!  The bootloader of the Arduino speaks a dialect of the STK500v1 protocol that the ArduinoISP sketch speaks.  If your Arduino gets reset when the serial connection is made (normal) this causes the programming software to start talking to your bootloader.  The bootloader will say "OK!" when asked to set the lock bits... and will always reply 0x00 when asked to read them back.  Verification error!
Send Bitcoin tips to: 1G2qoGwMRXx8az71DVP1E81jShxtbSh5Hp

Go Up