From 621d75921205acdeef53220897c6f815c227a3f0 Mon Sep 17 00:00:00 2001 From: Frederic Pillon Date: Tue, 14 Feb 2023 11:21:57 +0100 Subject: [PATCH] chore: unified maple upload method Requires https://github.com/stm32duino/Arduino_Tools/pull/89 Signed-off-by: Frederic Pillon --- platform.txt | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/platform.txt b/platform.txt index 0f74672761..d64b3741bf 100644 --- a/platform.txt +++ b/platform.txt @@ -199,14 +199,13 @@ tools.hid_upload.upload.params.quiet=n tools.hid_upload.upload.pattern="{path}/{cmd}" "{build.path}/{build.project_name}.bin" {serial.port.file} # Upload using Maple bootloader over DFU -tools.maple_upload.cmd=maple_upload.sh -tools.maple_upload.cmd.windows=maple_upload.bat -tools.maple_upload.path={runtime.tools.STM32Tools.path}/win -tools.maple_upload.path.macosx={runtime.tools.STM32Tools.path}/macosx -tools.maple_upload.path.linux={runtime.tools.STM32Tools.path}/linux +tools.maple_upload.script=maple_upload.sh +tools.maple_upload.busybox= +tools.maple_upload.busybox.windows={path}/win/busybox.exe +tools.maple_upload.path={runtime.tools.STM32Tools.path} tools.maple_upload.upload.params.verbose=-d tools.maple_upload.upload.params.quiet=n -tools.maple_upload.upload.pattern="{path}/{cmd}" {serial.port.file} {upload.altID} {upload.usbID} "{build.path}/{build.project_name}.bin" +tools.maple_upload.upload.pattern="{busybox}" sh "{path}/{script}" {serial.port.file} {upload.altID} {upload.usbID} "{build.path}/{build.project_name}.bin" # STM32MP1 self-contained shell script tools.remoteproc_gen.path={runtime.tools.STM32Tools.path}