Skip to content

Commit 06d6dde

Browse files
committed
chore: unified maple upload method
Requires stm32duino/Arduino_Tools#89 Signed-off-by: Frederic Pillon <[email protected]>
1 parent 2e03c80 commit 06d6dde

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

platform.txt

+5-6
Original file line numberDiff line numberDiff line change
@@ -199,14 +199,13 @@ tools.hid_upload.upload.params.quiet=n
199199
tools.hid_upload.upload.pattern="{path}/{cmd}" "{build.path}/{build.project_name}.bin" {serial.port.file}
200200

201201
# Upload using Maple bootloader over DFU
202-
tools.maple_upload.cmd=maple_upload.sh
203-
tools.maple_upload.cmd.windows=maple_upload.bat
204-
tools.maple_upload.path={runtime.tools.STM32Tools.path}/win
205-
tools.maple_upload.path.macosx={runtime.tools.STM32Tools.path}/macosx
206-
tools.maple_upload.path.linux={runtime.tools.STM32Tools.path}/linux
202+
tools.maple_upload.script=maple_upload.sh
203+
tools.maple_upload.busybox=
204+
tools.maple_upload.busybox.windows={path}/win/busybox.exe
205+
tools.maple_upload.path={runtime.tools.STM32Tools.path}
207206
tools.maple_upload.upload.params.verbose=-d
208207
tools.maple_upload.upload.params.quiet=n
209-
tools.maple_upload.upload.pattern="{path}/{cmd}" {serial.port.file} {upload.altID} {upload.usbID} "{build.path}/{build.project_name}.bin"
208+
tools.maple_upload.upload.pattern="{busybox}" sh "{path}/{script}" {serial.port.file} {upload.altID} {upload.usbID} "{build.path}/{build.project_name}.bin"
210209

211210
# STM32MP1 self-contained shell script
212211
tools.remoteproc_gen.path={runtime.tools.STM32Tools.path}

0 commit comments

Comments
 (0)