Open mlasevich opened 7 years ago
PR #24 may have fixed this issue.
For those who want to use an Arduino Core with PR #24 , you can use this one. https://github.com/MCUdude/MegaCore
It has incorported #24 fix here. https://github.com/MCUdude/MegaCore/commit/eba4f4a827aa3597b8e65144caee83f69724f280
The zip file here contains this EEPROM fix and a few other fixes.
When reading EEPROM via avrdude using wiring (via bootloader) - results are corrupted. Every other 8 bytes are lost. Writing to EEPROM works, but, as expected, validation fails as what is written does not match corrupted version that is read back.
You can reproduce on Mega2560(and probably others using this bootloader) using following sketch to initialize EEPROM to known state:
After that if executing a read via a programmer you get expected correct output:
But using the bootloader for same thing you get corrupted output: