$(REMOVE) $(TARGET)eep.hex | $(REMOVE) $(TARGET)eep.hex | ||||
dfu-ee: $(TARGET).hex $(TARGET).eep | dfu-ee: $(TARGET).hex $(TARGET).eep | ||||
dfu-programmer $(MCU) eeprom-flash $(TARGET).eep | |||||
ifneq (, $(findstring 0.7, $(shell dfu-programmer --version 2>&1))) | |||||
dfu-programmer $(MCU) flash --eeprom $(TARGET).eep | |||||
else | |||||
dfu-programmer $(MCU) flash-eeprom $(TARGET).eep | |||||
endif | |||||
dfu-programmer $(MCU) reset | dfu-programmer $(MCU) reset | ||||