Attempt to fix EEPROM write issue #1009
This commit is contained in:
parent
f22b81c00e
commit
d2bb964fc7
|
@ -1770,7 +1770,7 @@ static int jtag3_paged_write(PROGRAMMER * pgm, AVRPART * p, AVRMEM * m,
|
||||||
free(cmd);
|
free(cmd);
|
||||||
return n_bytes;
|
return n_bytes;
|
||||||
}
|
}
|
||||||
cmd[3] = ( p->flags & AVRPART_HAS_PDI ) ? MTYPE_EEPROM_XMEGA : MTYPE_EEPROM_PAGE;
|
cmd[3] = ( p->flags & AVRPART_HAS_PDI || p->flags & AVRPART_HAS_UPDI ) ? MTYPE_EEPROM_XMEGA : MTYPE_EEPROM_PAGE;
|
||||||
PDATA(pgm)->eeprom_pageaddr = (unsigned long)-1L;
|
PDATA(pgm)->eeprom_pageaddr = (unsigned long)-1L;
|
||||||
} else if (strcmp(m->desc, "usersig") == 0 ||
|
} else if (strcmp(m->desc, "usersig") == 0 ||
|
||||||
strcmp(m->desc, "userrow") == 0) {
|
strcmp(m->desc, "userrow") == 0) {
|
||||||
|
|
Loading…
Reference in New Issue