mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[usb-flasher] Recognize our flasher when running make *_flash
Change-Id: Icc5f3044b58efb7910547ca84d7780f55dbc3b4d
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user