I have been getting the error
avrdude: verification error, first mismatch at byte 0x036c
0xb8 != 0xf8
avrdude: verification error; content mismatch
avrdude done. Thank you.
When trying to upload the example blink sketch to an Arduino mega 2560.
I did some googling and found that the common recommendation to solve this is to flash the bootloader.
Which does fix the issue for the first upload after flashing, but the issue reappears after one upload. But every time I flash the bootloader I do get one successful upload following that with no errors.
The mismatch is always at 0x036c every time.