mirror of
git://projects.qi-hardware.com/ben-wpan.git
synced 2025-04-21 12:27:27 +03:00
atusb/fw/Makefile: lock fuse refuses 0xef; set it to 0x2f to pass verification
This commit is contained in:
@@ -122,13 +122,15 @@ upload: $(NAME).bin boot.hex
|
|||||||
# lfuse: external clock, slow start-up
|
# lfuse: external clock, slow start-up
|
||||||
# hfuse: 4 kB boot loader, reset into boot loader
|
# hfuse: 4 kB boot loader, reset into boot loader
|
||||||
# lock: allow everything but SPM to the 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:
|
prog:
|
||||||
ssh $(HOST) avrdude -F -p $(CHIP) -c nanonote_atusb -e \
|
ssh $(HOST) avrdude -F -p $(CHIP) -c nanonote_atusb -e \
|
||||||
-U flash:w:boot.hex:i \
|
-U flash:w:boot.hex:i \
|
||||||
-U lfuse:w:0x60:m \
|
-U lfuse:w:0x60:m \
|
||||||
-U hfuse:w:0xde:m \
|
-U hfuse:w:0xde:m \
|
||||||
-U lock:w:0xef:m
|
-U lock:w:0x2f:m
|
||||||
|
|
||||||
# -U flash:w:$(NAME).bin:r \
|
# -U flash:w:$(NAME).bin:r \
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user