Tue Dec 03, 2013 7:32 pm
Dirk S has already provided the right suggestion in this case. However, the following may be helpful. AVRDUDE verification errors have an interesting origin.
What is frequently happening is that the upload didn't work at all (for various reasons) and the subsequent verification fails. The way AVRDUDE works is that it does all of the upload work first, and then does the verification second. The upload process doesn't appear to have any checks built-in. If every part of the upload fails, you won't know anything about it at this stage. Of course, the verification will fail. If the new upload is only slightly different than the old upload the first mismatch can be far into the flash (not at offset 0x0000).
Why can upload fail? Many reasons of course. I have had good results using the 'Arduino as ISP' approach to uploading sketches. This approach does not use the bootloader at all. That's important when you can't trust the bootloader. Note that you MUST use the 'Upload Using Programmer' command from the file menu and not the normal upload button.