Prechádzať zdrojové kódy

Merge pull request #613 from di0ib/master

Convert hex to bin
Jack Humbert 9 rokov pred
rodič
commit
55ca218634
1 zmenil súbory, kde vykonal 5 pridanie a 0 odobranie
  1. 5 0
      tmk_core/avr.mk

+ 5 - 0
tmk_core/avr.mk

@@ -138,6 +138,11 @@ else
 endif
 endif
 	dfu-programmer $(MCU) reset
 	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:
 # Generate avr-gdb config/init file which does the following:
 #     define the reset signal, load the target file, connect to target, and set
 #     define the reset signal, load the target file, connect to target, and set