~ruther/qmk_firmware

8fab141a024fd55a28366958716f4be1a10f9c03 — di0ib 9 years ago a36b2a0
Convert hex to bin

For flashing via alternative methods like LUFA MassStorage bootloader.
1 files changed, 5 insertions(+), 0 deletions(-)

M tmk_core/avr.mk
M tmk_core/avr.mk => tmk_core/avr.mk +5 -0
@@ 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