You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
buffer2[20]='\0';
Serial.printlin (buffer2);
prints "757343238393515142B0" to serial
when i download the EEPROM memory using AVRDude, i get no errors.
A printout of the hex file reveals :
b':2000000037353733343332333432423000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF79\n:20002000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFE0\n:20004000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFC0\n
etcetera
which has only 12 of the bytes i wrote to EEPROM
hex 37 35 37 33 34 33 32 33 34 32 42 30
ascii 7 5 7 3 4 3 2 3 4 2 B 0
i wrote 20 bytes 757343238393515142B0
so the download doesn't have 8 bytes in the middle.
the bytes missing start at position 7 and are the 8 bytes 83935151
so the download has the first 7 bytes of what i wrote
plus the last 4, but lacks bytes 8 thru 15
any idea how avrdude's download would disagree with what the arduino sketch can READ??
i used
avrdude -p m2560 -c wiring -P [port] -U eeprom:r:file.hex:i
The text was updated successfully, but these errors were encountered:
Thanks so much for the speedy and excellent support. Once i sussed out burning bootloaders, burning with stk500boot_v2_mega2560_eeprom_fix.hex is working!!!
mcuee
changed the title
Problem downloading EEPROM from Arduino Mega 2650
Problem downloading EEPROM from Arduino Mega 2560
Jun 4, 2023
Mac Big Sur, avrdude 6.3
in a sketch running on a Mega2650: using EEPROM library I wrote "757343238393515142B0" starting at location Zero
char buffer[] = "757343238393515142B0";
for (int i=0; i<21; i++) {
EEPROM.write(i,buffer[i]);
}
reading it works fine
char buffer2[21]
for (int i=0; i<21; i++) {
buffer2[i] = EEPROM.read(i);
}
buffer2[20]='\0';
Serial.printlin (buffer2);
prints "757343238393515142B0" to serial
when i download the EEPROM memory using AVRDude, i get no errors.
A printout of the hex file reveals :
b':2000000037353733343332333432423000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF79\n:20002000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFE0\n:20004000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFC0\n
etcetera
which has only 12 of the bytes i wrote to EEPROM
hex 37 35 37 33 34 33 32 33 34 32 42 30
ascii 7 5 7 3 4 3 2 3 4 2 B 0
i wrote 20 bytes 757343238393515142B0
so the download doesn't have 8 bytes in the middle.
the bytes missing start at position 7 and are the 8 bytes 83935151
so the download has the first 7 bytes of what i wrote
plus the last 4, but lacks bytes 8 thru 15
any idea how avrdude's download would disagree with what the arduino sketch can READ??
i used
avrdude -p m2560 -c wiring -P [port] -U eeprom:r:file.hex:i
The text was updated successfully, but these errors were encountered: