diff options
Diffstat (limited to 'tmk_core/avr.mk')
| -rw-r--r-- | tmk_core/avr.mk | 5 |
1 files changed, 5 insertions, 0 deletions
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 | |||
| 138 | endif | 138 | endif |
| 139 | dfu-programmer $(MCU) reset | 139 | dfu-programmer $(MCU) reset |
| 140 | 140 | ||
| 141 | # Convert hex to bin. | ||
| 142 | flashbin: $(BUILD_DIR)/$(TARGET).hex | ||
| 143 | $(OBJCOPY) -Iihex -Obinary $(BUILD_DIR)/$(TARGET).hex $(BUILD_DIR)/$(TARGET).bin | ||
| 144 | $(COPY) $(BUILD_DIR)/$(TARGET).bin $(TARGET).bin; | ||
| 145 | $(COPY) $(BUILD_DIR)/$(TARGET).bin FLASH.bin; | ||
| 141 | 146 | ||
| 142 | # Generate avr-gdb config/init file which does the following: | 147 | # Generate avr-gdb config/init file which does the following: |
| 143 | # define the reset signal, load the target file, connect to target, and set | 148 | # define the reset signal, load the target file, connect to target, and set |
