You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MassStorageCopy updated to manage several node names.
Depending of the board revision, mount point name could be different.
Ex for: STM32F030R8 with a rev 1 node name is : "NUCLEO"
while it is "NODE_F030R8" for rev c
Ex: in boards.txt we could have:
Nucleo_64.menu.Nucleo_64_board.NUCLEO_F030R8.node="NODE_F030R8,NUCLEO"
Fix#6
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
echo Upload complete ) else ( echo%TARGET% not found. Please ensure the device is correctly connected)
1
+
@ECHOoff
2
+
3
+
REM Exit codes for xcopy
4
+
REM code | Description
5
+
REM 0 | Files were copied without error.
6
+
REM 1 | No files were found to copy.
7
+
REM 2 | The user pressed CTRL+C to terminate xcopy.
8
+
REM 4 | Initialization error occurred. There is not enough memory or disk space, or you entered an invalid drive name or invalid syntax on the command line.
9
+
REM 5 | Disk write error occurred.
10
+
11
+
SETSOURCE=%2
12
+
SETSRC_PARSE=%SOURCE:/=\%
13
+
SETTARGET=%4
14
+
SETTARGET=%TARGET:\=%
15
+
16
+
call :parse%TARGET%
17
+
echo%TARGET% not found. Please ensure the device is correctly connected.
18
+
exit7
19
+
20
+
:parse
21
+
setlist=%1
22
+
setlist=%list:"=%
23
+
24
+
for /f "tokens=1* delims=,"%%ain ("%list%") DO (
25
+
ifnot"%%a"==""call :sub%%a
26
+
ifnot"%%b"==""call :parse"%%b"
27
+
)
28
+
goto :eof
29
+
30
+
31
+
:sub
32
+
setlocalenabledelayedexpansion
33
+
for /F "skip=1 tokens=*"%%ain ('WMIC LOGICALDISK where"volumename like '%~1'" get deviceid 2^>NUL') doifnotdefined id setid=%%a
34
+
callSet"deviceid=%%id: =%%"
35
+
ifnot"%deviceid%"=="" (
36
+
XCOPY%SRC_PARSE%%deviceid% /Y /Q
37
+
if!errorlevel!==0 (echo Upload complete on %1^(%deviceid%^))
0 commit comments