mirror of
git://projects.qi-hardware.com/ben-wpan.git
synced 2024-12-23 13:06:51 +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:
parent
e29046d19b
commit
f87bdce41f
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user