Commit Graph

4506 Commits

Author SHA1 Message Date
Stefan Rueger
a33d6b9523 Update usbasp programmer info 2023-06-21 14:54:36 +01:00
Stefan Rueger
bdca9cec21 Update URLs for the ttl232r programmer 2023-06-21 14:41:45 +01:00
Stefan Rueger
aaeae9ca3a Remove outdated web URLs for O-Link 2023-06-21 14:26:29 +01:00
Stefan Rueger
0c3ec68f57 Update ft2232h programmer info and URLs 2023-06-21 14:02:35 +01:00
Stefan Rueger
8b317371bc Update URLs for 89isp programmer 2023-06-21 13:47:29 +01:00
Stefan Rueger
6dab2a5d68 Update alf programmer info and URL 2023-06-21 13:06:31 +01:00
Stefan Rueger
b6174dc81a Update reference to AT90S4433 datasheet 2023-06-21 12:10:06 +01:00
Stefan Rueger
3a5933299d Restore serial_recv_timeout on failure 2023-06-21 09:15:02 +01:00
Stefan Rueger
7f360a42d9 Increase timeout for emulated butterfly chip erase depending on part 2023-06-21 09:05:18 +01:00
Stefan Rueger
73b9570da7 Add min/max_write_delay to usersig memories of ATmega*[0-9]RF* parts 2023-06-20 15:52:42 +01:00
Stefan Rueger
d13c5e34fb Put empty line above memory comment before memory for -p*/s 2023-06-20 15:46:29 +01:00
Stefan Rueger
6d5264d81a Update comments before memory sections 2023-06-20 15:43:34 +01:00
Stefan Rueger
c7ed33c7fa Update wd_erase (chip_erase_delay) for some parts 2023-06-20 14:14:41 +01:00
Stefan Rueger
ba490ddea2 Update wd_flash, wd_eeprom and wd_fuse for several parts 2023-06-20 14:09:22 +01:00
Stefan Rueger
478acd8376 Parent ATmega256RFR2 off ATmega128RFA1 2023-06-20 13:58:48 +01:00
stefanrueger
abaca0de94 Define usersig memory for ATmega*RF[AR]* parts
#####
    # Three separate flash pages
    #   - Offset 0x100 in signature row
    #   - Only programmable with JTAG or HVPP
    #   - Readable from an application
    #   - Cannot be read using ISP
    #   - Not erased by chip erase
    #
    memory "usersig"
        paged              = yes;
        size               = 768;
        page_size          = 256;
        num_pages          = 3;
        offset             = 0x100;
        mode               = 0x41;
        delay              = 50;
        blocksize          = 256;
        readsize           = 256;
    ;
2023-06-16 00:40:11 +01:00
stefanrueger
1459002d6b Update NEWS 2023-06-16 00:08:11 +01:00
Stefan Rueger
07c5348ab4 Merge pull request #1405 from stefanrueger/pre-checks
Relax checks before executing the -T/-U operations
2023-06-16 00:06:01 +01:00
Stefan Rueger
58f1ba9eec Merge pull request #1404 from stefanrueger/usersig
Implement bytewise cache for usersig
2023-06-16 00:04:19 +01:00
Stefan Rueger
886c511e12 Merge pull request #1403 from MCUdude/usb-warning
Mute missing USB device warning for lower verbosity levels
2023-06-16 00:04:01 +01:00
Stefan Rueger
763028feca Merge pull request #1402 from stefanrueger/multiple-terminals
Run -t interactive terminals when it is their turn wrt -t/-T/-U options
2023-06-16 00:03:41 +01:00
Stefan Rueger
0228304a15 Merge pull request #1401 from stefanrueger/avrcache
Fix memory leak in avrcache.c
2023-06-16 00:03:15 +01:00
Stefan Rueger
d8b67f2b82 Merge pull request #1400 from stefanrueger/doc-author-list
Expand authorship of documentation
2023-06-16 00:03:01 +01:00
Stefan Rueger
9e92c3c297 Merge pull request #1399 from stefanrueger/document-terminal-comments
Document terminal comments
2023-06-16 00:02:47 +01:00
Stefan Rueger
e8e5bee18f Merge pull request #1386 from stefanrueger/stk500v2
Fix stk500v2.c's write_byte() for old parts
2023-06-16 00:02:17 +01:00
MCUdude
10cc234e15 Use pmsg_notice2 instead of pmsg_warning 2023-06-15 19:44:32 +02:00
stefanrueger
38d1cf20b7 Fix interactive terminal naming 2023-06-15 16:47:02 +01:00
stefanrueger
14aba8ad65 Relax checks before executing the -T/-U operations
Now that terminal commands can create files, some of the checks before
executing the -T/-U operations need to be relaxed to avoid false errors.
The command below is perfectly fine, because the file to be read from in
the -U step will be created earlier.

$ rm -f /tmp/load.eep
$ avrdude -qq -cdryrun -pm328p \
  -T 'w ee 0 "avrdude"; save ee 0 8 /tmp/load.eep:h' \
  -U eeprom:w:/tmp/load.eep
2023-06-15 00:44:31 +01:00
stefanrueger
214ced7ce5 Document usersig cache 2023-06-14 23:27:10 +01:00
stefanrueger
96b6ff0c33 Implement bytewise cache for usersig needed in terminal 2023-06-14 23:12:28 +01:00
MCUdude
5078f35c9b Mute missing USB device warning for lower verbosity levels 2023-06-14 20:20:12 +02:00
Hans
106bb57a09 Fix typos
And clarify that it is the jtag2updi programmer that now supports -U EEPROM writes
2023-06-14 19:54:48 +02:00
Stefan Rueger
7d8f100878 Allow multiple -t interactive terminals on the command line
Think breakpoints for a series of memory operations. In this example

$ avrdude -t -U eeprom:r:dopp.eep:i -t -U eeprom:w:dopp.eep

the first -U makes a backup of the EEPROM that the second terminal can
then arbitrarily change because the second -U restores the EEPROM content.
2023-06-13 23:46:22 +01:00
Stefan Rueger
6861dd8067 Fix memory leak in avrcache.c 2023-06-13 22:39:30 +01:00
Stefan Rueger
486400d8af Use full name for HEB and make author list alphabetical 2023-06-13 22:36:43 +01:00
Stefan Rueger
c2b9b95174 Expand authorship of documentation 2023-06-13 20:02:59 +01:00
Stefan Rueger
298c0e3154 Document terminal comments 2023-06-13 19:48:16 +01:00
Stefan Rueger
9a52cfb3d5 Parent AT90S4434 off from AT90S8535
Both share the same datasheet but the AT90S4434 has had no XML data-sheet,
so the programming paramters are likely correct.
2023-06-13 19:17:53 +01:00
Stefan Rueger
b296c82185 Update NEWS 2023-06-13 18:43:41 +01:00
Stefan Rueger
5c1bb41266 Merge pull request #1397 from stefanrueger/sub-shell
Provide subshell command `!` in the terminal
2023-06-13 18:36:39 +01:00
Stefan Rueger
8986145cbb Merge pull request #1396 from stefanrueger/save
Provide terminal save command
2023-06-13 18:35:39 +01:00
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
2bd5fb8fe4 Clarify location of config files for Windows in documentation 2023-06-13 14:26:38 +01:00
Stefan Rueger
910e30061c Clarify location of avrdude.rc in Windows 2023-06-13 14:24:17 +01:00
Stefan Rueger
b298d9e103 Return when save detects missing length for a memory segement 2023-06-13 12:13:16 +01:00
Stefan Rueger
6eb366574d Update terminal subshell documentation 2023-06-13 10:43:23 +01:00
Stefan Rueger
db414259cf Allow subshell commands to be remainder of terminal line
Now a subshell command can follow a terminal command on the same line:

avrdude> dump eeprom; !ls

Subshell commands still take up the remainder of the line

avrdude> !ls; dump eeprom

Will execute dump in the shell (not the terminal).
2023-06-13 10:36:25 +01:00
Stefan Rueger
27f49f64f2 Document terminal subshell command !<line> 2023-06-13 00:15:11 +01:00
Stefan Rueger
3d71c4c66b Fix size setting on file read 2023-06-12 18:28:05 +01:00