I'm trying to set the lock bits on my ATMega328p-pu, using an Arduino UNO as an ISP.
this is what happens:
>avrdude -c arduino -p m328p -P COM4 -b 19200 -U lock:w:0xFC:m
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.03s
avrdude: Device signature = 0x1e950f (probably m328p)
avrdude: reading input file "0xFC"
avrdude: writing lock (1 bytes):
Writing | | 0% 0.00s ***failed;
Writing | ################################################## | 100% 0.16s
avrdude: 1 bytes of lock written
avrdude: verifying lock memory against 0xFC:
avrdude: load data lock data from input file 0xFC:
avrdude: input file 0xFC contains 1 bytes
avrdude: reading on-chip lock data:
Reading | ################################################## | 100% 0.01s
avrdude: verifying ...
avrdude: verification error, first mismatch at byte 0x0000
0x0c != 0xfc
avrdude: verification error; content mismatch
avrdude: safemode: Fuses OK (E:FD, H:DA, L:FF)
avrdude done. Thank you.
I'm very new to using avrdude and have no clue how to proceed with debugging this issue.
EDIT: I've tried using another chip, but exactly the same response.