1
0
Fork 0

Add dfu-util command for programming

Also add .bin generation, which is needed for dfu-util.
This commit is contained in:
Fred Sundvik 2016-07-05 19:28:17 +03:00
parent b4cd0cfd15
commit f9a6e34c28
3 changed files with 12 additions and 1 deletions

View file

@ -113,6 +113,7 @@ AR = arm-none-eabi-ar
NM = arm-none-eabi-nm
HEX = $(OBJCOPY) -O $(FORMAT)
EEP =
BIN = $(OBJCOPY) -O binary
THUMBFLAGS = -DTHUMB_PRESENT -mno-thumb-interwork -DTHUMB_NO_INTERWORKING -mthumb -DTHUMB
@ -151,4 +152,7 @@ else ifneq ("$(wildcard $(KEYBOARD_PATH)/boards/$(BOARD)/bootloader_defs.h)","")
endif
# List any extra directories to look for libraries here.
EXTRALIBDIRS = $(RULESPATH)/ld
EXTRALIBDIRS = $(RULESPATH)/ld
dfu-util: $(BUILD_DIR)/$(TARGET).bin sizeafter
dfu-util -D $(BUILD_DIR)/$(TARGET).bin