Skip to content

Commit

Permalink
Add download target
Browse files Browse the repository at this point in the history
  • Loading branch information
mar0x committed Mar 19, 2024
1 parent 9a95bf5 commit 6297bef
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
7 changes: 7 additions & 0 deletions firmware/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,13 @@ $(1)-$(2)-upload:
$(MAKE) -f $(MAKEFILE_PATH) BOARD=$(1) MCU=$(2) upload


.PHONY: $(1)-download $(1)-$(2)-download
$(1)-download: $(1)-$(2)-download

$(1)-$(2)-download:
$(MAKE) -f $(MAKEFILE_PATH) BOARD=$(1) MCU=$(2) download


.PHONY: $(1)-bin $(1)-$(2)-bin
$(1)-bin: $(1)-$(2)-bin

Expand Down
8 changes: 8 additions & 0 deletions firmware/Makefile.avr.in
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,11 @@ upload: bin/dfu-$(MCU)-$(BOARD).ihex bin/hw-$(BOARD).ihex $(project).hex
-U fuse2:w:0xbf:m \
-U eeprom:w:bin/hw-$(BOARD).ihex:i \
-U application:w:$(project).hex:i

.PHONY: download
download:
$(AVRDUDE) -c avrispmkII \
-U flash:r:dfu-$(MCU)-$(BOARD)-dl.ihex:i \
-U fuse2:r:fuse2-$(MCU)-$(BOARD)-dl.ihex:i \
-U eeprom:r:hw-$(BOARD)-dl.ihex:i \
-U application:r:$(project)-dl.hex:i

0 comments on commit 6297bef

Please sign in to comment.