Files
avrdude/src
Stefan Rueger ff8f519a34 Fix PICKit2 ATmega2560 flash paged flash read
The paged read in pickit2.c has two errors:
  - It drops load extended address commands unless a paged read happens at a
    64k byte boundary; this is invalid when reading files with holes
  - It wrongly assumed that flash memory is byte addressed

The fix is to carry out a load extended address command, if needed, at the
beginning of each paged flash read with the correct word address. Although the
pickit2_paged_load() has independent parameters page_size, addr and n_bytes,
AVRDUDE only ever calls paged read/write functions with page_size and n_bytes
both set to mem->page_size and addr aligned with a page boundary. Therefore, it
is sufficient to set the load extended address at the beginning of each page
read.
2022-07-10 23:41:44 +01:00
..
2022-04-26 23:19:20 +02:00
2021-12-17 09:17:42 +01:00
2021-12-17 09:17:42 +01:00
2022-05-08 20:35:32 +05:30
2021-12-17 09:17:42 +01:00
2022-01-07 17:57:02 +01:00
2021-12-17 09:17:42 +01:00
2021-12-19 00:35:52 +01:00
2021-12-17 09:17:42 +01:00
2021-12-17 09:17:42 +01:00
2022-01-07 17:57:02 +01:00
2022-02-10 20:39:19 +01:00
2022-02-10 20:39:19 +01:00
2022-05-07 22:57:49 +02:00
2022-01-10 15:12:33 +01:00
2021-12-17 09:17:42 +01:00
2021-12-17 09:17:42 +01:00
2021-12-17 09:17:42 +01:00
2022-01-07 17:54:36 +01:00
2022-01-07 17:57:02 +01:00
2021-12-17 09:17:42 +01:00
2021-12-17 09:17:42 +01:00
2021-12-17 09:17:42 +01:00
2021-12-17 09:17:42 +01:00
2021-12-17 09:17:42 +01:00
2022-07-04 12:30:37 +01:00
2021-12-17 09:17:42 +01:00
2022-02-10 20:39:19 +01:00
2021-12-17 09:17:42 +01:00
2021-12-17 09:17:42 +01:00
2021-12-17 09:17:42 +01:00
2021-12-17 09:17:42 +01:00
2022-01-31 20:44:32 +01:00
2021-12-17 09:17:42 +01:00
2021-12-17 09:17:42 +01:00
2022-01-06 23:39:17 +01:00
2021-12-17 09:17:42 +01:00
2021-12-17 09:17:42 +01:00
2022-01-07 17:57:02 +01:00
2021-12-17 09:17:42 +01:00
2022-01-07 17:57:02 +01:00
2022-01-07 17:57:02 +01:00
2022-01-07 17:57:02 +01:00
2022-01-07 17:57:02 +01:00
2021-12-17 09:17:42 +01:00
2022-01-13 10:01:01 +01:00
2022-01-29 20:08:43 +01:00
2021-12-17 09:17:42 +01:00
2021-12-17 09:17:42 +01:00
2022-01-06 23:39:17 +01:00
2022-01-06 23:39:17 +01:00
2022-04-09 20:08:44 +02:00
2022-02-20 19:08:30 +01:00
2021-12-17 09:17:42 +01:00
2022-02-19 21:18:03 +01:00
2022-01-07 11:31:16 +01:00
2022-01-07 17:57:02 +01:00
2021-12-17 09:17:42 +01:00
2021-12-17 09:17:42 +01:00
2022-01-09 10:57:22 +01:00
2021-12-17 09:17:42 +01:00
2021-12-17 09:17:42 +01:00
2021-12-17 09:17:42 +01:00