mirror of
https://github.com/mariusgreuel/avrdude.git
synced 2025-12-19 19:40:10 +00:00
Various fixes for Xmega devices.
* avrdude.conf.in: Correctly declare EEPROM page sizes for all Xmega devices (0x20 instead of 0x100). * avr.c: If a memory region has a page size declared, try using the paged IO routines regardless of the target memory name. Xmega EEPROM requires to be written in paged mode. Correctly use a long (rather than unsigned long) variable to evaluate the success status of the paged mode write attempt. * stk500v2.c: Don't apply TIF space offsets twice (bug #27995: AVRDUDE 5.8svn fails to program and read XMEGA); use stk500v2_loadaddr() prior to paged mode (EEPROM and flash) writes, otherwise programming of flash areas will fail; while being there, check the return value of stk500v2_loadaddr() everywhere; use the correct write/erase mode bits (same as AVR Studio does). git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@907 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
@@ -13737,7 +13737,7 @@ part
|
||||
memory "eeprom"
|
||||
size = 0x0800;
|
||||
offset = 0x08c0000;
|
||||
page_size = 0x100;
|
||||
page_size = 0x20;
|
||||
readsize = 0x100;
|
||||
;
|
||||
|
||||
@@ -13834,7 +13834,7 @@ part
|
||||
memory "eeprom"
|
||||
size = 0x0800;
|
||||
offset = 0x08c0000;
|
||||
page_size = 0x100;
|
||||
page_size = 0x20;
|
||||
readsize = 0x100;
|
||||
;
|
||||
|
||||
@@ -13931,7 +13931,7 @@ part
|
||||
memory "eeprom"
|
||||
size = 0x0800;
|
||||
offset = 0x08c0000;
|
||||
page_size = 0x100;
|
||||
page_size = 0x20;
|
||||
readsize = 0x100;
|
||||
;
|
||||
|
||||
@@ -14028,7 +14028,7 @@ part
|
||||
memory "eeprom"
|
||||
size = 0x0800;
|
||||
offset = 0x08c0000;
|
||||
page_size = 0x100;
|
||||
page_size = 0x20;
|
||||
readsize = 0x100;
|
||||
;
|
||||
|
||||
@@ -14125,7 +14125,7 @@ part
|
||||
memory "eeprom"
|
||||
size = 0x1000;
|
||||
offset = 0x08c0000;
|
||||
page_size = 0x100;
|
||||
page_size = 0x20;
|
||||
readsize = 0x100;
|
||||
;
|
||||
|
||||
@@ -14222,7 +14222,7 @@ part
|
||||
memory "eeprom"
|
||||
size = 0x0800;
|
||||
offset = 0x08c0000;
|
||||
page_size = 0x100;
|
||||
page_size = 0x20;
|
||||
readsize = 0x100;
|
||||
;
|
||||
|
||||
@@ -14319,7 +14319,7 @@ part
|
||||
memory "eeprom"
|
||||
size = 0x0800;
|
||||
offset = 0x08c0000;
|
||||
page_size = 0x100;
|
||||
page_size = 0x20;
|
||||
readsize = 0x100;
|
||||
;
|
||||
|
||||
@@ -14416,7 +14416,7 @@ part
|
||||
memory "eeprom"
|
||||
size = 0x0800;
|
||||
offset = 0x08c0000;
|
||||
page_size = 0x100;
|
||||
page_size = 0x20;
|
||||
readsize = 0x100;
|
||||
;
|
||||
|
||||
@@ -14513,7 +14513,7 @@ part
|
||||
memory "eeprom"
|
||||
size = 0x1000;
|
||||
offset = 0x08c0000;
|
||||
page_size = 0x100;
|
||||
page_size = 0x20;
|
||||
readsize = 0x100;
|
||||
;
|
||||
|
||||
@@ -14610,7 +14610,7 @@ part
|
||||
memory "eeprom"
|
||||
size = 0x1000;
|
||||
offset = 0x08c0000;
|
||||
page_size = 0x100;
|
||||
page_size = 0x20;
|
||||
readsize = 0x100;
|
||||
;
|
||||
|
||||
@@ -14707,7 +14707,7 @@ part
|
||||
memory "eeprom"
|
||||
size = 0x0400;
|
||||
offset = 0x08c0000;
|
||||
page_size = 0x100;
|
||||
page_size = 0x20;
|
||||
readsize = 0x100;
|
||||
;
|
||||
|
||||
@@ -14804,7 +14804,7 @@ part
|
||||
memory "eeprom"
|
||||
size = 0x0400;
|
||||
offset = 0x08c0000;
|
||||
page_size = 0x100;
|
||||
page_size = 0x20;
|
||||
readsize = 0x100;
|
||||
;
|
||||
|
||||
@@ -14901,7 +14901,7 @@ part
|
||||
memory "eeprom"
|
||||
size = 0x0800;
|
||||
offset = 0x08c0000;
|
||||
page_size = 0x100;
|
||||
page_size = 0x20;
|
||||
readsize = 0x100;
|
||||
;
|
||||
|
||||
@@ -14998,7 +14998,7 @@ part
|
||||
memory "eeprom"
|
||||
size = 0x0800;
|
||||
offset = 0x08c0000;
|
||||
page_size = 0x100;
|
||||
page_size = 0x20;
|
||||
readsize = 0x100;
|
||||
;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user