[usb-flasher] Recognize our flasher when running make *_flash

Change-Id: Icc5f3044b58efb7910547ca84d7780f55dbc3b4d
This commit is contained in:
Léa Saviot
2018-03-28 17:44:01 +02:00
parent fc2c975623
commit d0c7f94dba

View File

@@ -36,9 +36,9 @@ products += $(patsubst %.$(EXE),%.map,$(filter %.$(EXE),$(products)))
@echo "DFU $@"
@echo "INFO About to flash your device. Please plug your device to your computer"
@echo " using an USB cable and press the RESET button the back of your device."
@until dfu-util -l | grep "Internal Flash" > /dev/null 2>&1; do sleep 1;done
@until dfu-util -l | grep "Flash" > /dev/null 2>&1; do sleep 1;done
@echo "DFU $@"
@dfu-util -i 0 -a 0 -s 0x08000000:leave -D $<
$(Q) dfu-util -i 0 -a 0 -s 0x08000000:leave -D $<
.PHONY: openocd
openocd: