|
|
|
@ -162,6 +162,11 @@ avrdude: $(BUILD_DIR)/$(TARGET).hex
|
|
|
|
|
avrdude -p $(MCU) -c avr109 -P $$USB -U flash:w:$(BUILD_DIR)/$(TARGET).hex; \
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
# Convert hex to bin.
|
|
|
|
|
bin: $(BUILD_DIR)/$(TARGET).hex
|
|
|
|
|
$(OBJCOPY) -Iihex -Obinary $(BUILD_DIR)/$(TARGET).hex $(BUILD_DIR)/$(TARGET).bin
|
|
|
|
|
$(COPY) $(BUILD_DIR)/$(TARGET).bin $(TARGET).bin;
|
|
|
|
|
|
|
|
|
|
# Convert hex to bin.
|
|
|
|
|
flashbin: $(BUILD_DIR)/$(TARGET).hex
|
|
|
|
|
$(OBJCOPY) -Iihex -Obinary $(BUILD_DIR)/$(TARGET).hex $(BUILD_DIR)/$(TARGET).bin
|
|
|
|
|