diff --git a/atusb/fw/Makefile b/atusb/fw/Makefile index 3db92ef..32947af 100644 --- a/atusb/fw/Makefile +++ b/atusb/fw/Makefile @@ -126,6 +126,11 @@ upload: $(NAME).bin boot.hex # Note: when trying to program 0xef, we get back 0x2f, failing # verification. So we just program 0x2f. +prog-app: + ssh $(HOST) avrdude -F -p $(CHIP) -c nanonote_atusb -e \ + -U flash:w:atusb.bin:r \ + -U lfuse:w:0x60:m + prog: ssh $(HOST) avrdude -F -p $(CHIP) -c nanonote_atusb -e \ -U flash:w:boot.hex:i \ @@ -133,6 +138,10 @@ prog: -U hfuse:w:0xd8:m \ -U lock:w:0x2f:m +prog-read: + ssh $(HOST) avrdude -F -p $(CHIP) -c nanonote_atusb \ + -U flash:r:mcu.bin:r + on: ssh $(HOST) poke 0x10010318 4