Skip to content

Commit

Permalink
Convert hex to bin
Browse files Browse the repository at this point in the history
For flashing via alternative methods like LUFA MassStorage bootloader.
  • Loading branch information
di0ib authored Aug 8, 2016
1 parent a36b2a0 commit 8fab141
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tmk_core/avr.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8fab141

Please sign in to comment.