Stefan Rueger
3c84f7328f
Invalidate cache in stk500v2_paged_write()
...
Bytewise access uses a cache, but paged access doesn't so must invalidate
the cache when writing a page - otherwise mixing bytewise and paged access
is bound to fail.
2023-06-13 18:19:31 +01:00
Stefan Rueger
4722417fe0
Set page size to 2 for STK500v2 programming of old parts
...
These (ATtiny15 et al) have bytewise-only flash access, but the STK500v2
protocol enforces word flash addresses, so need to r/w flash in pairs.
2023-06-13 18:16:37 +01:00
Stefan Rueger
9cb93da3cf
Also set read_byte() to avr_read_byte_default() for old parts
2023-06-11 19:23:47 +01:00
Stefan Rueger
4d0914c872
Set stk500v2.c's ISP write_byte() to avr_write_byte_default() for old parts
2023-06-06 14:42:54 +01:00
Stefan Rueger
b4a4f7df5b
Update NEWS
2023-06-04 22:10:42 +01:00
Stefan Rueger
8c2b326c00
Merge pull request #1378 from stefanrueger/config
...
Write fuse only when terminal config needs value to change
2023-06-04 22:06:33 +01:00
Stefan Rueger
8947683dbf
Merge pull request #1376 from stefanrueger/page_erase
...
Remove pgm->page_erase() function when unable to erase page
2023-06-04 22:06:21 +01:00
Stefan Rueger
536c84ca2e
Merge pull request #1375 from stefanrueger/cache
...
Prevent terminal write error in r/o region when memory unchanged
2023-06-04 22:06:04 +01:00
Stefan Rueger
19b4029eea
Merge pull request #1373 from stefanrueger/terminal
...
Implement -T cmd to mix terminal commands with -U commands
2023-06-04 22:05:48 +01:00
Stefan Rueger
f3d7c01a1e
Write fuse only when terminal config needs value to change
2023-06-03 16:51:26 +01:00
Stefan Rueger
a694217603
Print all -U/-T arguments as headline when processing them
2023-06-02 21:23:25 +01:00
Stefan Rueger
f1e014fc1e
Unset pgm->page_erase() if part/programmer cannot erase a page
2023-06-01 22:11:27 +01:00
Stefan Rueger
f4da6de064
Unset pgm->page_erase() if part/programmer cannot erase a page
2023-06-01 22:05:53 +01:00
Stefan Rueger
5f99110d4a
Set page_erase() to NULL when a programmer cannot erase page
2023-06-01 21:46:26 +01:00
Stefan Rueger
24f845cdd8
Guard pgm->page_erase() from being called when unset
2023-06-01 21:46:09 +01:00
Stefan Rueger
161eb064ae
Move cache flush/reset from -T/U parsing to -U/T execution
...
What happens is the same, just the code is crisper and clearer.
2023-06-01 21:24:52 +01:00
Stefan Rueger
784c83d23a
Prevent terminal write error in r/o region when memory unchanged
2023-06-01 21:18:55 +01:00
Stefan Rueger
b41d14a8c9
Move terminal_...() functions into libavrdude.h
2023-06-01 01:07:43 +01:00
Stefan Rueger
eee5aca79f
Provide an example for intermixing -T and -U options
2023-06-01 01:04:54 +01:00
Stefan Rueger
fa9370d570
Insert a paragraph for each -T/-U option in AVRDUDE's output
2023-06-01 01:03:21 +01:00
Stefan Rueger
e0e7bd7ff5
Document -T cmd option
2023-06-01 00:20:33 +01:00
Stefan Rueger
4a7d140b08
Move update_...() printing convenience functions to strutil.c and rename to str_...()
2023-05-31 22:50:27 +01:00
Stefan Rueger
bdbe13e1f6
Make arguments of update.c functions const if possible
2023-05-31 22:40:34 +01:00
Stefan Rueger
1126ff1621
Implement -T cmdline to mix terminal commands with -U commands
2023-05-31 22:23:23 +01:00
Stefan Rueger
98c460268e
Provide terminal_line() to process a single terminal command line
2023-05-31 18:16:34 +01:00
Stefan Rueger
3db6863cd3
Move fill mode enum from term.h to term.c
2023-05-31 18:08:43 +01:00
Stefan Rueger
a53b2eef19
Make local functions static
2023-05-31 17:52:30 +01:00
Stefan Rueger
ffaefbf6ec
Make AVRMEM * variables const
2023-05-31 17:42:11 +01:00
Stefan Rueger
334315270f
Make PROGRAMMER * and AVRPART * arguments const
2023-05-31 17:40:08 +01:00
Stefan Rueger
3ea05c4d33
Update NEWS
2023-05-31 17:03:00 +01:00
Stefan Rueger
dd8aefec85
Merge pull request #1372 from stefanrueger/bitmask
...
Initialise unused bits of classic-part fuses with factory defaults
2023-05-31 16:51:21 +01:00
Stefan Rueger
6defcb450d
Shrink avrdude.conf using memory inheritance for initval and bitmask
...
Also ensures initval and bitmask remains unset for
- AT43USB320, AT43USB355
- AT76C711
- AT86RF401
- AT89S51, AT89S52
- AT90C8534
- AT94K
- ATtiny3214
- ATxmega128A4, ATxmega192A1, ATxmega256A1, ATxmega64A4
- AVR8EA28, AVR8EA32
- LGT8F168P, LGT8F328P, LGT8F88P
- M3000
2023-05-31 16:38:24 +01:00
Stefan Rueger
5ae2f3ff05
Perform wildcard match for avrdude.conf parameter injection
2023-05-31 16:36:30 +01:00
Stefan Rueger
26239ead25
Initialise unused bits when writing XMEGA fuses/lock bits
2023-05-31 10:56:25 +01:00
Stefan Rueger
7fadbbdd63
Initialise unused bits of classic part fuses/lock bits with factory defaults
2023-05-29 16:51:54 +01:00
Stefan Rueger
9441af8b90
Test for verbose > 0 instead of !!verbose
2023-05-29 16:41:14 +01:00
Stefan Rueger
19d1e03bec
Read-modify-write classic part fuses/lock bits with unused bits in dryrun.c
2023-05-29 16:32:19 +01:00
Stefan Rueger
30ac1826bc
Use bitmasks for terminal write verification
2023-05-29 14:33:00 +01:00
Stefan Rueger
f311a04d47
Extend -U verification with bitmasks to TPI, PDI and UPDI parts
2023-05-29 14:32:39 +01:00
Stefan Rueger
918e71de90
Make bitmask 0xff default (shortening avrdude.conf)
2023-05-29 14:24:04 +01:00
Stefan Rueger
ff5a178ca2
Document default value of bitmask
2023-05-29 14:00:06 +01:00
Stefan Rueger
8f1eb4aef6
Update avr.c to use str_eq() and str_starts() functions
2023-05-29 13:48:07 +01:00
Stefan Rueger
bbe2f51f58
Fix ATmega161's sut, spien and bootrst bit masks
2023-05-28 18:12:49 +01:00
Stefan Rueger
0f1f526f53
Fix several SPI fuse/lock read/write commands
...
- AT90S2323 fuse read
- AT90S2323 lock read
- AT90S2343 fuse read
- AT90S2343 lock read
- AT90S4434 fuse read
- AT90S4434 fuse write
- AT90S4434 lock read
- AT90S8535 fuse read
- AT90S8535 lock read
- ATmega161 fuse write
- ATmega162 efuse write
- ATmega324PB efuse write
- ATtiny22 fuse read
- ATtiny22 lock read
- ATtiny828 efuse write
- ATtiny828R efuse write
2023-05-28 17:59:05 +01:00
Stefan Rueger
50e96aea5b
Initialise bitmask in avrdude.conf from .atdf files
2023-05-27 19:37:45 +01:00
Stefan Rueger
0406159694
Add bitmask for fuses and lock bits to memory description/grammar
2023-05-27 19:36:33 +01:00
Stefan Rueger
3423309449
Update NEWS
2023-05-27 17:15:19 +01:00
Stefan Rueger
8f98731fc9
Update variants for AVR...EA parts
2023-05-27 17:07:51 +01:00
Stefan Rueger
7be7b23352
Merge pull request #1365 from stefanrueger/config
...
Provide terminal config command to set fuses and lock bits
2023-05-27 16:40:59 +01:00
Stefan Rueger
45e94de70f
Consolidate shell examples in documentation
2023-05-27 16:36:09 +01:00