Arduino_Tools/win/maple_upload.bat
Frederic Pillon ac06dd9dad Update scripts to be aligned with Arduino_STM32 tools
Serial_upload: speed change to 115200
https://github.com/LightningStalker/Arduino_STM32/pull/1
Maple rules:
ed82be4c6e
Maple_upload:
437834a91f (diff-a0a50ec8cd3ccc8618dcd0dbf108becc)
9b03f0841d

Signed-off-by: Frederic.Pillon <frederic.pillon@st.com>
2018-01-31 22:41:38 +01:00

18 lines
432 B
Batchfile

@echo off
rem: Note %~dp0 get path of this batch file
rem: Need to change drive if My Documents is on a drive other than C:
set driverLetter=%~dp0
set driverLetter=%driverLetter:~0,2%
%driverLetter%
cd %~dp0
java -jar maple_loader.jar %1 %2 %3 %4 %5 %6 %7 %8 %9
for /l %%x in (1, 1, 40) do (
ping -w 50 -n 1 192.0.2.1 > nul
mode %1 > nul
if ERRORLEVEL 0 goto comPortFound
)
echo timeout waiting for %1 serial
:comPortFound