summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJack Humbert <jack.humb@gmail.com>2016-08-08 12:10:49 -0400
committerGitHub <noreply@github.com>2016-08-08 12:10:49 -0400
commit55ca218634d78a0bb3cd9b326659e353fd8140ae (patch)
tree7d112df9fc198599429b3ba14d01fec230c2fcac
parent1f4277fe6b6338984b70f64d19d3b5e511a7fe1d (diff)
parent8fab141a024fd55a28366958716f4be1a10f9c03 (diff)
downloadqmk_firmware-55ca218634d78a0bb3cd9b326659e353fd8140ae.tar.gz
qmk_firmware-55ca218634d78a0bb3cd9b326659e353fd8140ae.zip
Merge pull request #613 from di0ib/master
Convert hex to bin
-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