From 32ec716895b6c91bd8fef6168fb1bfbd17fd9a77 Mon Sep 17 00:00:00 2001 From: stefanrueger Date: Tue, 28 Jul 2026 03:07:01 +0200 Subject: [PATCH] Document modify configuration syntax --- src/doc/avrdude.texi | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/src/doc/avrdude.texi b/src/doc/avrdude.texi index 9a9cce8b..27dc87fc 100644 --- a/src/doc/avrdude.texi +++ b/src/doc/avrdude.texi @@ -3822,6 +3822,25 @@ programmer If a parent is specified, all settings of it (except its ids) are used for the new programmer. These values can be changed by new setting them for the new programmer. +@noindent +Programmer definitions can be modified using the following syntax +@smallexample +modify programmer + # Any property as above, for example + baudrate = ; # baudrate for the programmer + usbsn = ; # USB Serial Number +; +@end smallexample + +@noindent +The @code{modify} keyword makes most sense in the per-user configuration +file, where users may want to add specific properties of their programmer +such as its USB serial number. This technique should not be used for the +main @code{avrdude.conf} file, as the developer option @code{-c +/S} that prints the programmer definition as AVRDUDE +understands it will only consider the final definition; it will not print +@code{modify} statements. + @noindent @strong{Notes} @@ -4092,6 +4111,23 @@ exception of pin numbers and where they are separated by space, e.g., in signature and readback) can also be given as simple expressions involving arithemtic and bitwise operators. +@noindent +Part definitions can be modified using the following syntax +@smallexample +modify part + # Any part property as above, for example + chip_erase_delay = ; # microseconds +; +@end smallexample + +@noindent +The @code{modify} keyword makes most sense in the per-user configuration +file, where users may want to modify specific properties of a part for +debugging. This technique should not be used within the main +@code{avrdude.conf} file, as the developer option @code{-p /S} that +prints the part definition as AVRDUDE understands it will only consider +the final definition; it will not print @code{modify} statements. + @menu * Parent Part:: * Instruction Format::