Skip to content
Snippets Groups Projects
Commit fa4eaca4 authored by Michael DM Dryden's avatar Michael DM Dryden
Browse files

Fixed makefile flashing.

parent 244f1032
Branches
Tags
1 merge request!3Develop
Pipeline #65 passed with stage
in 11 seconds
......@@ -487,13 +487,12 @@ rebuilddoc: cleandoc doc
program: all flash
# Flash µC - Writes bootloader, application, disables JTAG, and enables boot to bootloader
AVRDUDE_FLAGS = -p $(AVRDUDE_DEV) -c $(AVRDUDE_PROG) -P $(AVRDUDE_PORT) -U flash:w:atxmega256a3u_104.hex:i -U application:w:$(TARGET):e -U fuse4:w:0xff:m -U fuse2:w:0xbf:m
program: AVRDUDE_FLAGS = -p $(AVRDUDE_DEV) -c $(AVRDUDE_PROG) -P $(AVRDUDE_PORT) -U flash:w:atxmega256a3u_104.hex:i -U application:w:$(TARGET):e -U fuse4:w:0xff:m -U fuse2:w:0xbf:m
# program over USB
.PHONY: dfu
dfu: all flash
AVRDUDE_FLAGS = -p $(AVRDUDE_DEV) -c flip2 -U application:w:$(TARGET):e
dfu: AVRDUDE_FLAGS = -p $(AVRDUDE_DEV) -c flip2 -U application:w:$(TARGET):e
flash: $(TARGET)
avrdude $(AVRDUDE_FLAGS)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment