avrdude: verification error; content mismatch

Hey guys, I am currently trying to burn a bootloader onto my melzi board (for a tronxy X5S 3d printer). I'm using a arduino genuino uno as the ISP (I uploaded the standard "ArduinoISP" sketch to it) and I'm quite certain I have the uno wired correctly to the melzi board as well as the correct board and chip configuration. However, when I go to burn the bootloader, this is the feedback I get:

"Arduino: 1.8.8 (Windows 10), Board: "Sanguino, ATmega1284 or ATmega1284P (16 MHz)"

C:\Users\lax51\OneDrive\Desktop\arduino-1.8.8-windows\arduino-1.8.8\hardware\tools\avr/bin/avrdude -CC:\Users\lax51\OneDrive\Desktop\arduino-1.8.8-windows\arduino-1.8.8\hardware\tools\avr/etc/avrdude.conf -v -patmega1284p -carduino -PCOM5 -b19200 -e -Ulock:w:0x3F:m -Uefuse:w:0xFD:m -Uhfuse:w:0xDE:m -Ulfuse:w:0xFF:m

avrdude: Version 6.3-20171130
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch

System wide configuration file is "C:\Users\lax51\OneDrive\Desktop\arduino-1.8.8-windows\arduino-1.8.8\hardware\tools\avr/etc/avrdude.conf"

Using Port : COM5
Using Programmer : arduino
Overriding Baud Rate : 19200
AVR Part : ATmega1284P
Chip Erase delay : 55000 us
PAGEL : PD7
BS2 : PA0
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 10 128 0 no 4096 8 0 9000 9000 0xff 0xff
flash 65 10 256 0 yes 131072 256 512 4500 4500 0xff 0xff
lock 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
lfuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
hfuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
efuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
signature 0 0 0 0 no 3 0 0 0 0 0x00 0x00
calibration 0 0 0 0 no 1 0 0 0 0 0x00 0x00

Programmer Type : Arduino
Description : Arduino
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.01s

avrdude: Device signature = 0x1e9705 (probably m1284p)
avrdude: erasing chip
avrdude: reading input file "0x3F"
avrdude: writing lock (1 bytes):

Error while burning bootloader.
Writing | ################################################## | 100% 0.03s

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: verification error, first mismatch at byte 0x0000
0x01 != 0x3f
avrdude: verification error; content mismatch

avrdude done. Thank you."

I'm relatively new to the Arduino software but as far as I can tell, I seem to be establishing a connection to the melzi board but Arduino isn't liking my code/sketch? Do you guys have any advice on this?

I've researched my soul away and I can't seem to figure this one out.

Update: I figured it out this morning. I had an sd card plugged into my melzi board and it was somehow trying to burn to the sd card. removed it and it worked :slight_smile: FINALLY

Thanks for the update.