From d0c7f94dbae7cd2ea2699c3eed322f37ce3ba46c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9a=20Saviot?= Date: Wed, 28 Mar 2018 17:44:01 +0200 Subject: [PATCH] [usb-flasher] Recognize our flasher when running make *_flash Change-Id: Icc5f3044b58efb7910547ca84d7780f55dbc3b4d --- build/targets.device.mak | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/targets.device.mak b/build/targets.device.mak index e743b80d6..9190e1f6d 100644 --- a/build/targets.device.mak +++ b/build/targets.device.mak @@ -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: