]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
Convert hex to bin
authordi0ib <di0ib@users.noreply.github.com>
Mon, 8 Aug 2016 06:58:59 +0000 (20:58 -1000)
committerGitHub <noreply@github.com>
Mon, 8 Aug 2016 06:58:59 +0000 (20:58 -1000)
For flashing via alternative methods like LUFA MassStorage bootloader.

tmk_core/avr.mk

index 6c03e1650e80e6e747f0f8755830092d982a0f54..b48173341a4b9930d9fbfc1910e670da0df797bf 100644 (file)
@@ -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