1
0
mirror of git://projects.qi-hardware.com/ben-wpan.git synced 2024-11-04 23:49:42 +02:00

atusb/fw/Makefile: added auxiliary Flash programming target (for development)

- Makefile (prog-app): flash the application, without the boot loader
- Makefile (prog-read): retrieve the Flash content
This commit is contained in:
Werner Almesberger 2011-03-11 16:24:49 -03:00
parent e29046d19b
commit f87bdce41f

View File

@ -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