Skip to content

Commit a6b0029

Browse files
committed
refactor: unified stm32CubeProg shell script
Required STM32Tools v2.1.0 Signed-off-by: Frederic Pillon <[email protected]>
1 parent 064cd36 commit a6b0029

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

platform.txt

+4-5
Original file line numberDiff line numberDiff line change
@@ -166,14 +166,13 @@ tools.massStorageCopy.upload.params.quiet=
166166
tools.massStorageCopy.upload.pattern="{path}/{cmd}" {upload.verbose} -I "{build.path}/{build.project_name}.bin" -O "{node}"
167167

168168
# STM32CubeProgrammer upload
169+
tools.stm32CubeProg.path={runtime.tools.STM32Tools.path}
170+
tools.stm32CubeProg.busybox=
171+
tools.stm32CubeProg.busybox.windows={path}/win/busybox.exe
169172
tools.stm32CubeProg.cmd=stm32CubeProg.sh
170-
tools.stm32CubeProg.cmd.windows=stm32CubeProg.bat
171-
tools.stm32CubeProg.path.linux={runtime.tools.STM32Tools.path}/linux
172-
tools.stm32CubeProg.path.macosx={runtime.tools.STM32Tools.path}/macosx
173-
tools.stm32CubeProg.path.windows={runtime.tools.STM32Tools.path}/win
174173
tools.stm32CubeProg.upload.params.verbose=
175174
tools.stm32CubeProg.upload.params.quiet=
176-
tools.stm32CubeProg.upload.pattern="{path}/{cmd}" {upload.protocol} "{build.path}/{build.project_name}.bin" {upload.options}
175+
tools.stm32CubeProg.upload.pattern="{busybox}" sh "{path}/{cmd}" {upload.protocol} "{build.path}/{build.project_name}.bin" {upload.options}
177176

178177
# blackmagic upload for generic STM32
179178
tools.bmp_upload.cmd=arm-none-eabi-gdb

0 commit comments

Comments
 (0)