mirror of
https://github.com/mariusgreuel/avrdude.git
synced 2025-09-27 14:35:27 +00:00
* avrdude.conf.in: Add page mode parameters for all "eeprom" memory
definitions that are organized in pages. * avr.c (avr_write_byte_default): Consider using the loadpage instructions only if the respective memory is marked "paged". Closes bug #17199: EEPROM fails verification on ATmega645 with pony-stk200 hardware Closes bug #16849: EEPROM write fails for AT90USB1287 with mode 0x41 Closes bug #15146: stk500v2_paged_write: loadpage instruction not defined for part git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@622 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
2
avr.c
2
avr.c
@@ -345,7 +345,7 @@ int avr_write_byte_default(PROGRAMMER * pgm, AVRPART * p, AVRMEM * mem,
|
||||
writeop = mem->op[AVR_OP_WRITE_LO];
|
||||
caddr = addr / 2;
|
||||
}
|
||||
else if (mem->op[AVR_OP_LOADPAGE_LO]) {
|
||||
else if (mem->paged && mem->op[AVR_OP_LOADPAGE_LO]) {
|
||||
if (addr & 0x01)
|
||||
writeop = mem->op[AVR_OP_LOADPAGE_HI];
|
||||
else
|
||||
|
Reference in New Issue
Block a user