diff --git a/keyboard/gnap/FLASH.bin b/keyboard/gnap/FLASH.bin index c6b1d2d1..04c58d69 100644 Binary files a/keyboard/gnap/FLASH.bin and b/keyboard/gnap/FLASH.bin differ diff --git a/tmk_core/rules.mk b/tmk_core/rules.mk index 66b4cbd8..b6312dd5 100644 --- a/tmk_core/rules.mk +++ b/tmk_core/rules.mk @@ -506,7 +506,10 @@ extcoff: $(TARGET).elf @echo $(MSG_EXTENDED_COFF) $(TARGET).cof $(COFFCONVERT) -O coff-ext-avr $< $(TARGET).cof - +# Convert hex to bin. +flashbin: $(TARGET).hex + $(OBJCOPY) -Iihex -Obinary $(TARGET).hex $(TARGET).bin + $(COPY) $(TARGET).bin FLASH.bin; # Create final output files (.hex, .eep) from ELF output file. %.hex: %.elf @@ -603,6 +606,7 @@ clean_list : $(REMOVE) $(TARGET).map $(REMOVE) $(TARGET).sym $(REMOVE) $(TARGET).lss + $(REMOVE) $(TARGET).bin $(REMOVE) $(OBJ) $(REMOVE) $(LST) $(REMOVE) $(OBJ:.o=.s)