Skip to content

Commit

Permalink
Document factory reset command
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanrueger committed Jan 27, 2024
1 parent bfd1456 commit 91d7c9f
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/avrdude.1
Original file line number Diff line number Diff line change
Expand Up @@ -1260,6 +1260,14 @@ can be uniquely resolved.
It is quite possible, as is with direct writing to the underlying fuses
and lock bits, to brick a part, i.e., make it unresponsive to further
programming with the chosen programmer: here be dragons.
.It Ar factory reset
Resets the connected part to factory state as far as possible;
bootloaders, for example, cannot write fuses and may not have a means to
erase EEPROM. This may change the clock frequency of the part after the
next reset when the new fuse values come into effect. As such this may
require that avrdude is called with a different bit clock rate for the
programmer next time. Note that the command factory can be abbreviated
but the required argument reset needs to be spelled out.
.It Ar regfile {<opts>}
regfile with no further argument displays the register file of a part,
i.e., all register names and their contents in
Expand Down
11 changes: 11 additions & 0 deletions src/doc/avrdude.texi
Original file line number Diff line number Diff line change
Expand Up @@ -2463,6 +2463,17 @@ It is quite possible, as is with direct writing to the underlying fuses
and lock bits, to brick a part, i.e., make it unresponsive to further
programming with the chosen programmer: here be dragons.

@item factory reset
Resets the connected part to factory state as far as possible;
bootloaders, for example, cannot write fuses and may not have a means to
erase EEPROM. This may change the clock frequency of the part after the
next reset when the new fuse values come into effect. As such this may
require that avrdude is called with a different bit clock rate for the
programmer next time. Note that the command @code{factory} can be
abbreviated but the required argument @code{reset} needs to be spelled
out.


@item regfile [@var{opts}]
@code{regfile} with no further argument displays the register file of a
part, i.e., all register names and their contents in @code{io} memory, if
Expand Down

0 comments on commit 91d7c9f

Please sign in to comment.