upload: use wait script in upload scripts
This commit is contained in:
parent
c14d265e9b
commit
9aa1235ce3
|
@ -38,3 +38,5 @@ if [ ! -x "${DFU_UTIL}" ]; then
|
|||
fi
|
||||
|
||||
"${DFU_UTIL}" -d ${usbID} -a ${altID} -D ${binfile} ${dfuse_addr} -R
|
||||
|
||||
"${DIR}/wait_for_serial" ${dummy_port_fullpath}
|
||||
|
|
|
@ -4,6 +4,9 @@ if [ `uname -m` == "x86_64" ]; then
|
|||
else
|
||||
$(dirname $0)/stlink/st-flash write "$4" 0x8000000
|
||||
fi
|
||||
|
||||
"$(dirname $0)/wait_for_serial" /dev/$1
|
||||
|
||||
exit 0
|
||||
|
||||
## Remove the lines 2 and 3 (above) if you want this script to wait until the Serial device has been enumerated and loaded before the script exits
|
||||
|
|
|
@ -38,3 +38,5 @@ if [ ! -x "${DFU_UTIL}" ]; then
|
|||
fi
|
||||
|
||||
"${DFU_UTIL}" -d ${usbID} -a ${altID} -D ${binfile} ${dfuse_addr} -R
|
||||
|
||||
"${DIR}/wait_for_serial" ${dummy_port_fullpath}
|
||||
|
|
|
@ -51,3 +51,5 @@ if [ ! -x ${DFU_UTIL} ]; then
|
|||
fi
|
||||
|
||||
${DFU_UTIL} -d ${usbID} -a ${altID} -D ${binfile} -R ${dfuse_addr} -R
|
||||
|
||||
"${DIR}/wait_for_serial" ${dummy_port_fullpath}
|
||||
|
|
|
@ -1,2 +1,4 @@
|
|||
#!/bin/bash
|
||||
$(dirname $0)/stlink/st-flash write "$4" 0x8000000
|
||||
|
||||
"$(dirname $0)/wait_for_serial" /dev/$1
|
||||
|
|
|
@ -6,3 +6,5 @@ set driverLetter=%driverLetter:~0,2%
|
|||
%driverLetter%
|
||||
cd %~dp0
|
||||
java -jar maple_loader.jar %1 %2 %3 %4 %5 %6 %7 %8 %9
|
||||
|
||||
wait_for_serial.bat %1
|
||||
|
|
|
@ -14,4 +14,6 @@ rem: ------------- use STLINK CLI
|
|||
stlink\ST-LINK_CLI.exe -c SWD -P %str% 0x8000000 -Rst -Run
|
||||
|
||||
rem: Using the open source texane-stlink instead of the proprietary STM stlink exe
|
||||
rem:texane-stlink\st-flash.exe write %str% 0x8000000
|
||||
rem:texane-stlink\st-flash.exe write %str% 0x8000000
|
||||
|
||||
wait_for_serial.bat %1
|
||||
|
|
Loading…
Reference in New Issue