upload: use wait script in upload scripts

This commit is contained in:
Daniel Fekete 2017-05-23 20:27:45 +02:00
parent c14d265e9b
commit 9aa1235ce3
7 changed files with 16 additions and 1 deletions

View File

@ -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}

View File

@ -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

View File

@ -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}

View File

@ -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}

View File

@ -1,2 +1,4 @@
#!/bin/bash
$(dirname $0)/stlink/st-flash write "$4" 0x8000000
"$(dirname $0)/wait_for_serial" /dev/$1

View File

@ -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

View File

@ -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