Commit Graph

3025 Commits

Author SHA1 Message Date
Joerg Wunsch
cb9e7e49e6 Prepare for version 7.2
* finalize NEWS for that version
* bump version info for autotools and CMake
v7.2
2023-07-19 22:30:19 +02:00
Stefan Rueger
5e715e2851 Update NEWS 2023-07-15 00:31:35 +01:00
Stefan Rueger
bc4a164200 Merge pull request #1466 from stefanrueger/usersig-offset
Consider classic part usersig memory offset for jtag3
2023-07-15 00:26:55 +01:00
Stefan Rueger
824860cc8a Merge pull request #1465 from stefanrueger/fix-n-warning
Fix -n warning for first interactive terminal
2023-07-15 00:26:23 +01:00
Stefan Rueger
d746afbf60 Merge pull request #1461 from stefanrueger/invalid-compiler-warning
Suppress invalid compiler warning
2023-07-15 00:23:43 +01:00
Stefan Rueger
1bb6afea67 Fix typo 2023-07-14 23:32:00 +01:00
Stefan Rueger
0359f0ff90 Remove reference to ATmega128RFA1 wrt usersig documentation 2023-07-14 23:24:15 +01:00
Stefan Rueger
cc9ece1f4c Remove usersig from ATmega128RFA1 description
In order to keep avrdude.conf short, the parenting of the ATmega*RFR2
parts changed a little, but the net effect of this commit is to remove the
usersig memory from the ATmega128RFA1 description.

Verify this by executing before the commit
$ avrdude -p*/S >/tmp/P

and after the commit
$ avrdude -p*/S | diff - /tmp/P
2023-07-14 23:16:44 +01:00
Jörg Wunsch
9580472c58 Merge pull request #1463 from stefanrueger/flag-f
Bail out on failed initialisation unless -F was given
2023-07-14 23:41:38 +02:00
Stefan Rueger
edac02ff6a Extend documentation of classic-part usersig memory 2023-07-14 14:38:13 +01:00
Stefan Rueger
532bd01f66 Document classic part usersig programming 2023-07-14 01:03:23 +01:00
Stefan Rueger
e5927c70de Unset pgm->page_erase if part has no memory that can be page erased 2023-07-14 00:53:35 +01:00
Stefan Rueger
4e2f704c62 Try jtag page erase for classic part usersig memory 2023-07-13 21:14:28 +01:00
Stefan Rueger
7967c2f808 Consider classic part usersig memory offset for jtag3 2023-07-13 01:04:07 +01:00
Stefan Rueger
af6dc59582 Fix -n warning for first interactive terminal 2023-07-11 23:14:44 +01:00
Stefan Rueger
943efdf57c Bail out on failed initialisation unless -F was given 2023-07-11 22:02:19 +01:00
Stefan Rueger
8f77524e47 Suppress invalid compiler warning
A warning when building under NetBSD 9.3 (gcc 7.5.0) complains about
a comparison of the form lmax <= lmin+MAX_PAD, which is mistaken to
be of the type (X + c) >= X despite lmin and lmax not necessarily
having the same value.

This PR tries to suppress this warning about potential signed overflow by
making lmin, lmax and llen unsigned (size_t).
2023-07-01 15:55:01 +01:00
Stefan Rueger
f722b572f8 Update NEWS 2023-07-01 15:48:25 +01:00
Stefan Rueger
e8a22cde56 Merge pull request #1454 from stefanrueger/unary-minus
Suppress overzealous compiler warnings
2023-07-01 15:46:44 +01:00
Stefan Rueger
2b83310095 Suppress overzealous compiler warnings
Some compilers are overzealous when the unary minus operates on an
unsigned number, and issue a warning. In fact, -u is a perfectly valid
unsigned for any unsigned u, and always has been from K&R C to C++20.
-u is the same as ~u + 1. Unsigned numbers form a modulo group, where -u
is the unique unsigned number that when added to u results in 0.

It is true that neither u nor -u can be negative (because no unsigned
number is) but that should not get a compiler to issue a warning about
the completely legitimate use of -u.
2023-07-01 14:53:56 +01:00
Stefan Rueger
11e8376dfe Update NEWS 2023-06-28 17:24:19 +01:00
Stefan Rueger
65024b5efa Add Stefan Rueger to copyright info 2023-06-28 17:23:22 +01:00
Stefan Rueger
82f949dcaa Remove comma in copyright note 2023-06-28 17:22:59 +01:00
Stefan Rueger
013e9cc8db Merge pull request #1425 from MCUdude/jtag2updi-rts-dtr
Add jtag2updi -xrtsdtr extended parameter
2023-06-28 17:09:29 +01:00
Stefan Rueger
ef67811f4c Merge pull request #1450 from stefanrueger/bsdhome
Update info on bsd programmer
2023-06-28 17:08:42 +01:00
Stefan Rueger
9fbc3d7a61 Update Brian Dean's email address 2023-06-27 21:31:07 +01:00
Stefan Rueger
bff4eed585 Provide a copy of the schematic for the very first AVRDUDE programmer 2023-06-27 21:27:11 +01:00
Stefan Rueger
ee64c0c280 Fix typo 2023-06-27 21:14:36 +01:00
Stefan Rueger
20d6f7d2b7 Update the bsd programmer info 2023-06-27 15:10:38 +01:00
MCUdude
c89e9b39ef Merge branch 'main' into jtag2updi-rts-dtr 2023-06-26 22:21:00 +02:00
Stefan Rueger
77c1bfbf02 Update documentation 2023-06-26 00:51:41 +01:00
Stefan Rueger
0727658616 Update NEWS 2023-06-25 17:01:06 +01:00
Stefan Rueger
d84d1611ad Merge pull request #1439 from stefanrueger/include
Provide terminal include command
2023-06-25 16:57:48 +01:00
Stefan Rueger
d94229a549 Merge pull request #1438 from stefanrueger/empty-flash
Write empty flash memory to file in correct format
2023-06-25 16:57:30 +01:00
Stefan Rueger
27ebb12800 Merge pull request #1430 from stefanrueger/alias-pgms
Use pgm->id list for different names of the same AVR programmer
2023-06-25 16:56:42 +01:00
Stefan Rueger
c12e3f0e0e Merge pull request #1429 from stefanrueger/scratchmonkey
Add scratchmonkey programmers
2023-06-25 16:56:29 +01:00
Stefan Rueger
ed355d591c Add S5 record count even when it is zero 2023-06-25 13:58:37 +01:00
Stefan Rueger
e2a45df092 Provide terminal include command
Example
-------

Initialise a config file for ATmega328P with factory settings and edit it:
  $ avrdude -qqTconfig -c dryrun -p m328p >config-m328p.txt
  $ vi config-m328p.txt

The new include command allows this file to be applied before opening a terminal:
  $ avrdude -qq -T"include config-m328p.txt" -t -c dryrun -p m328p
  avrdude> quit

The include option -e prints the lines as comments before processing them:
  $ avrdude -qq -T"include -e config-m328p.txt" -c dryrun -p m328p
  # config sut_cksel=intrcosc_8mhz_6ck_14ck_65ms # 34
  # config ckout=co_disabled # 1
  # config ckdiv8=by_8 # 0
  # config bootrst=application # 1
  # config bootsz=bs_2048w # 0
  # config eesave=ee_erased # 1
  # config wdton=wdt_programmable # 1
  # config spien=isp_enabled # 0
  # config dwen=dw_off # 1
  # config rstdisbl=external_reset # 1
  # config bodlevel=bod_disabled # 7
  # config lb=no_lock # 3
  # config blb0=no_lock_in_app # 3
  # config blb1=no_lock_in_boot # 3

On non-zero verbosity level the include option -e also prints line numbers:
  $ avrdude -vqqq -T"include -e config-m328p.txt" -c dryrun -p m328p
  # 1: config sut_cksel=intrcosc_8mhz_6ck_14ck_65ms # 34
  # 2: config ckout=co_disabled # 1
  # 3: config ckdiv8=by_8 # 0
  # 4: config bootrst=application # 1
  # 5: config bootsz=bs_2048w # 0
  # 6: config eesave=ee_erased # 1
  # 7: config wdton=wdt_programmable # 1
  # 8: config spien=isp_enabled # 0
  # 9: config dwen=dw_off # 1
  # 10: config rstdisbl=external_reset # 1
  # 11: config bodlevel=bod_disabled # 7
  # 12: config lb=no_lock # 3
  # 13: config blb0=no_lock_in_app # 3
  # 14: config blb1=no_lock_in_boot # 3
2023-06-24 14:38:04 +01:00
Stefan Rueger
1816e637d0 Fix out of range warning 2023-06-24 13:57:08 +01:00
Stefan Rueger
e42063488c Write empty flash memory to file in correct format
-U flash:r:<file>:<fmt> produces an empty file if flash memory is empty
unless `-A` has switched off the trailing 0xff removal. However,
an empty file is not a correct Intel Hex file as it misses the EOF marker:

$ avrdude -qq -c dryrun -p m328p -U flash:r:empty-flash.hex:i
$ avrdude -qq -c dryrun -p m328p -U flash:w:empty-flash.hex:i
avrdude error: no valid record found in Intel Hex file empty-flash.hex
avrdude error: read from file empty-flash.hex failed
srueger@medlar avrdude-main 2005$ (main 5U) ls -l empty-flash.hex
-rw------- 1 srueger srueger 0 Jun 24 12:58 empty-flash.hex

This commit creates empty files with the correct format
 - Intel Hex (EOF record)
 - Motorola S-Record (Start record, EOF record)
 - Number lists (one empty line, ie, one character '\n')
 - Raw binary (empty file, ie, zero characters)
2023-06-24 12:48:46 +01:00
Stefan Rueger
67a417b7dc Fix typos in comments for usbasp definition 2023-06-24 11:50:10 +01:00
Stefan Rueger
2d59b1c913 Use pgm->id list for different names of the same AVR programmer 2023-06-23 16:40:52 +01:00
Stefan Rueger
7ecce8588d Add scratchmonkey programmers 2023-06-23 16:18:55 +01:00
Stefan Rueger
114d48c3da Update NEWS 2023-06-23 16:04:33 +01:00
Stefan Rueger
5a8aff0918 Merge pull request #1424 from stefanrueger/pgmid
Enable -c programmers to access -c string
2023-06-23 15:56:39 +01:00
Stefan Rueger
412a828182 Merge pull request #1423 from stefanrueger/arduino-ft232r
Remove comment and URL for arduino-ft232r programmer
2023-06-23 15:56:14 +01:00
Stefan Rueger
226f6dba7a Merge pull request #1422 from stefanrueger/usbasp
Update usbasp programmer info
2023-06-23 15:55:41 +01:00
Stefan Rueger
85099ab294 Merge pull request #1421 from stefanrueger/ttl232r
Update URLs for the ttl232r programmer
2023-06-23 15:55:18 +01:00
Stefan Rueger
a7ee086f0a Merge pull request #1420 from stefanrueger/o-link
Remove outdated web URLs for O-Link
2023-06-23 15:54:49 +01:00
Stefan Rueger
00b01bc34a Merge pull request #1419 from stefanrueger/microcopter
Update butterfly_mk info
2023-06-23 15:54:20 +01:00