Add .hex rule
This commit is contained in:
@@ -25,6 +25,11 @@ all: @[email protected]
|
||||
$(SIZE) $@
|
||||
|
||||
|
||||
# Create hex file for programming from executable file.
|
||||
@[email protected]: @PROJECT@.out
|
||||
$(OBJCOPY) -O ihex @[email protected] @[email protected]
|
||||
|
||||
|
||||
# Target: clean project.
|
||||
.PHONY: clean
|
||||
clean:
|
||||
@@ -33,7 +38,6 @@ clean:
|
||||
|
||||
# Target: program project.
|
||||
.PHONY: program
|
||||
program: @PROJECT@.out
|
||||
$(OBJCOPY) -O ihex @[email protected] @[email protected]
|
||||
program: @PROJECT@.hex
|
||||
dfu-programmer atmega32u2 erase; dfu-programmer atmega32u2 flash @[email protected]; dfu-programmer atmega32u2 start
|
||||
|
||||
|
||||
Reference in New Issue
Block a user