Skip to content

Commit 0484ef7

Browse files
authored
Fix Java PATH problem on Windows (Fix Issue #813)
Merge pull request #814 from dadul96/Fix_Java_PATH_problem_Windows
2 parents 6b4fc02 + c9ab50d commit 0484ef7

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

STM32F1/platform.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ tools.maple_upload.path.linux={runtime.hardware.path}/tools/linux
118118
tools.maple_upload.path.linux64={runtime.hardware.path}/tools/linux64
119119
tools.maple_upload.upload.params.verbose=-d
120120
tools.maple_upload.upload.params.quiet=
121-
tools.maple_upload.upload.pattern="{path}/{cmd}" {serial.port.file} {upload.altID} {upload.usbID} "{build.path}/{build.project_name}.bin"
121+
tools.maple_upload.upload.pattern="{path}/{cmd}" {serial.port.file} {upload.altID} {upload.usbID} "{build.path}/{build.project_name}.bin" "{runtime.ide.path}"
122122

123123
#Added tool for generic STM32 upload via serial to Serial Port 1 (pins PA9 and PA10) - note. Boot0 line needs to high on board reset to enable upload via serial
124124
# at the end up the upload the program is automatically run, without the board being reset

tools/win/maple_upload.bat

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ set driverLetter=%~dp0
55
set driverLetter=%driverLetter:~0,2%
66
%driverLetter%
77
cd %~dp0
8-
java -jar maple_loader.jar %1 %2 %3 %4 %5 %6 %7 %8 %9
8+
set PATH=%5\java\bin;%PATH%
9+
java -jar maple_loader.jar %1 %2 %3 %4
910

1011
for /l %%x in (1, 1, 40) do (
1112
ping -w 50 -n 1 192.0.2.1 > nul

0 commit comments

Comments
 (0)