mirror of
https://github.com/ttrftech/NanoVNA.git
synced 2025-12-06 03:31:59 +01:00
env: insert wait after switching to dfu
This commit is contained in:
parent
ba7d358d35
commit
56b0d3ad8a
8
Makefile
8
Makefile
|
|
@ -81,6 +81,10 @@ endif
|
||||||
# Project, sources and paths
|
# Project, sources and paths
|
||||||
#
|
#
|
||||||
|
|
||||||
|
# Dvice node to flash
|
||||||
|
DEVICE = /dev/cu.usbmodem401
|
||||||
|
#DEVICE = /dev/ttyACM0
|
||||||
|
|
||||||
# Define project name here
|
# Define project name here
|
||||||
PROJECT = ch
|
PROJECT = ch
|
||||||
|
|
||||||
|
|
@ -225,6 +229,4 @@ flash: build/ch.bin
|
||||||
dfu-util -d 0483:df11 -a 0 -s 0x08000000:leave -D build/ch.bin
|
dfu-util -d 0483:df11 -a 0 -s 0x08000000:leave -D build/ch.bin
|
||||||
|
|
||||||
dfu:
|
dfu:
|
||||||
-@printf "reset dfu\r" >/dev/cu.usbmodem401
|
-printf "reset dfu\r" >$(DEVICE) && sleep 1
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue