From b5fd6e3132f15eadcdf692f7cf9b46f572f3c81b Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Wed, 9 Mar 2011 03:11:15 -0300 Subject: [PATCH] atusb/fw/Makefile: lock fuse refuses 0xef; set it to 0x2f to pass verification --- atusb/fw/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/atusb/fw/Makefile b/atusb/fw/Makefile index 54e394f..7ef86cb 100644 --- a/atusb/fw/Makefile +++ b/atusb/fw/Makefile @@ -122,13 +122,15 @@ upload: $(NAME).bin boot.hex # lfuse: external clock, slow start-up # hfuse: 4 kB boot loader, reset into boot loader # lock: allow everything but SPM to the boot loader +# Note: when trying to program 0xef, we get back 0x2f, failing +# verification. So we just program 0x2f. prog: ssh $(HOST) avrdude -F -p $(CHIP) -c nanonote_atusb -e \ -U flash:w:boot.hex:i \ -U lfuse:w:0x60:m \ -U hfuse:w:0xde:m \ - -U lock:w:0xef:m + -U lock:w:0x2f:m # -U flash:w:$(NAME).bin:r \