diff options
author | Jun Wako <wakojun@gmail.com> | 2015-03-26 15:09:28 +0900 |
---|---|---|
committer | Jun Wako <wakojun@gmail.com> | 2015-03-26 15:09:28 +0900 |
commit | 2b7d217ebb44934dd8554f3505ab656106649a11 (patch) | |
tree | c1fd227e3880ab9e2dfb9661ffc0e32222b5eb96 | |
parent | 0d222db31f599e90e5e281f80d21ce3c6af0fef8 (diff) |
Fix for dfu-programmer 0.7 #182
-rw-r--r-- | rules.mk | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -419,6 +419,11 @@ flip: $(TARGET).hex batchisp -hardware usb -device $(MCU) -operation start reset 0 dfu: $(TARGET).hex +ifneq (, $(findstring 0.7, $(shell dfu-programmer --version 2>&1))) + dfu-programmer $(MCU) erase --force +else + dfu-programmer $(MCU) erase +endif dfu-programmer $(MCU) erase dfu-programmer $(MCU) flash $(TARGET).hex dfu-programmer $(MCU) reset |