ArduinoISP.ino does not properly handle word-based address for EEPROM read/write
x0urc3 opened this issue · comments
Steps to reproduce
Reading and writing EEPROM using Adafruit ArduinoISP.ino will cause Bad EEPROM data. The official Arduino ArduinoISP.ino does not have similar issue. See avrdudes/avrdude/issues/990
Possible solution
The read and write EEPROM function does not handle word-based address. The high address byte is 0x00 in both function.
Adafruit_Learning_System_Guides/ArduinoISP/ArduinoISP/ArduinoISP.ino
Lines 550 to 557 in 0090edd
Adafruit_Learning_System_Guides/ArduinoISP/ArduinoISP/ArduinoISP.ino
Lines 487 to 496 in 0090edd
Please submit a pull request if at all possible.
FYI, Arduino's example has the fix back in Dec 2011.
arduino/arduino-examples@ea98fc8
Specific fix here.
rsbohn/ArduinoISP@bc480b0