summaryrefslogtreecommitdiff
path: root/tmk_core/avr.mk
diff options
context:
space:
mode:
authorStephen Christie2016-09-19 18:05:58 -0400
committerStephen Christie2016-09-19 18:05:58 -0400
commit57a6828a7a73d7b7c3dd9693e04d6873e2e3d1c2 (patch)
treebdabbdbdd9fd6de500728721d1865058468871e3 /tmk_core/avr.mk
parentbf2b260429dbc015d49d005065a37441c8f15753 (diff)
parent5f9c2f63ffb2c58db73e67442134be58bfe2c129 (diff)
Merge branch 'master' of http://github.com/jackhumbert/qmk_firmware
Diffstat (limited to 'tmk_core/avr.mk')
-rw-r--r--tmk_core/avr.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/tmk_core/avr.mk b/tmk_core/avr.mk
index 6c03e1650..b48173341 100644
--- a/tmk_core/avr.mk
+++ b/tmk_core/avr.mk
@@ -138,6 +138,11 @@ else
endif
dfu-programmer $(MCU) reset
+# Convert hex to bin.
+flashbin: $(BUILD_DIR)/$(TARGET).hex
+ $(OBJCOPY) -Iihex -Obinary $(BUILD_DIR)/$(TARGET).hex $(BUILD_DIR)/$(TARGET).bin
+ $(COPY) $(BUILD_DIR)/$(TARGET).bin $(TARGET).bin;
+ $(COPY) $(BUILD_DIR)/$(TARGET).bin FLASH.bin;
# Generate avr-gdb config/init file which does the following:
# define the reset signal, load the target file, connect to target, and set