diff --git a/src/avrdude.conf.in b/src/avrdude.conf.in index e4d53298..c76e80bb 100644 --- a/src/avrdude.conf.in +++ b/src/avrdude.conf.in @@ -3111,7 +3111,13 @@ part memory "lock" size = 1; read = "0010.0100--xxxx.xxxx--xxxx.xxxx--xxxo.ooxx"; - # Nonstandard lock write is available but not implemented + # Nonstandard write + # See datasheet Page 20, Note 1 https://ww1.microchip.com/downloads/en/DeviceDoc/doc2487.pdf + # Activating lock mode 0: -U lock:w:0:m + # Activating lock mode 1: -U lock:w:0:m -U lock:w:1:m + # Activating lock mode 2: -U lock:w:0:m -U lock:w:1:m -U lock:w:2:m + # Activating lock mode 3: -U lock:w:0:m -U lock:w:1:m -U lock:w:2:m -U lock:w:3:m + write = "1010.1100--1110.00ii--xxxx.xxxx--xxxx.xxxx"; ; memory "signature" diff --git a/src/libavrdude.h b/src/libavrdude.h index 09f0966d..5a5c49e9 100644 --- a/src/libavrdude.h +++ b/src/libavrdude.h @@ -176,7 +176,7 @@ enum ctl_stack_t { typedef struct cmdbit { int type; /* AVR_CMDBIT_* */ int bitno; /* which input bit to use for this command bit */ - int value; /* bit value if type == AVR_CMDBIT_VALUD */ + int value; /* bit value if type == AVR_CMDBIT_VALUE */ } CMDBIT; typedef struct opcode {