From: di0ib Date: Mon, 8 Aug 2016 06:58:59 +0000 (-1000) Subject: Convert hex to bin X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=8fab141a024fd55a28366958716f4be1a10f9c03;p=qmk_firmware.git Convert hex to bin For flashing via alternative methods like LUFA MassStorage bootloader. --- 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