summaryrefslogtreecommitdiff
path: root/tmk_core
diff options
context:
space:
mode:
authorcbbrowne <cbbrowne@cbbrowne.tor.int-afilias.info>2016-08-08 13:50:01 -0400
committercbbrowne <cbbrowne@cbbrowne.tor.int-afilias.info>2016-08-08 13:50:01 -0400
commit6ce0195e24bde8ce83976ba7fd2a701e7a1f13d7 (patch)
tree7dd612aad050f9a899911987f4eee563a1a326af /tmk_core
parent64e051652b5a8dac3ab0a2d31fb061ee50ecb0e5 (diff)
parent55ca218634d78a0bb3cd9b326659e353fd8140ae (diff)
downloadqmk_firmware-6ce0195e24bde8ce83976ba7fd2a701e7a1f13d7.tar.gz
qmk_firmware-6ce0195e24bde8ce83976ba7fd2a701e7a1f13d7.zip
Merge branch 'master' of https://github.com/jackhumbert/qmk_firmware
Diffstat (limited to 'tmk_core')
-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 6c03e1650e..b48173341a 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