Problem with uploading marlin firmware


I'm trying to upload the latest Marlin firmware to my Anet A8(ATMEGA1284P) printer using a USBtinyISP programmer plug into the J3 head but I keep getting this verification error:

avrdude: verification error, first mismatch at byte 0x10000
         0x0c != 0xf2
avrdude: verification error; content mismatch
avrdude: verification error; content mismatch

I've looked around for similar issues but can't find anything with the same error code.

I think its to do with the memory on the board

Any suggestions?

I always get these verification errors when using the USBtinyISP, but never with any other programmer. I think there is also a limit to the maximum program memory size the USBtinyISP can handle and maybe the ATmega1284P is over that limit. I own all the popular AVR ISP programmers and the USBtinyISP is the only one I refuse to use.

If you have a spare Arduino board, use it as an "Arduino as ISP" instead of the USBtinyISP:

Otherwise, buy a USBasp programmer, which is the best of all. You can get them cheap on eBay if you don't mind waiting for the China shipping (which is longer than normal right now due to Chinese New Year). I prefer the 6 pin model because all the Arduino boards have the 6 pin ICSP header.