Skip to content

Commit fc48ab0

Browse files
committed
feat: use hid-flash wrapper
Signed-off-by: Frederic Pillon <[email protected]>
1 parent b0847d3 commit fc48ab0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

platform.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -222,11 +222,11 @@ tools.bmp_upload.upload.pattern="{path}/{cmd}" -nx -b {upload.speed} {upload.ver
222222
tools.bmp_upload.upload.pattern.windows="{path}/{cmd}" -nx -b {upload.speed} {upload.verbose} -ex "set confirm off" -ex "target extended-remote \\.\{serial.port}" -ex "monitor swdp_scan" -ex "attach 1" -ex "load" -ex "compare-sections" -ex "kill" "{build.path}/{build.project_name}.elf"
223223

224224
# HID flash 2.2 (HID bootloader v2.2 for STM32F1 and STM32F4 series)
225-
tools.hid_upload.cmd=hid-flash
226-
tools.hid_upload.cmd.windows=hid-flash.exe
225+
tools.hid_upload.script=hid-flash.sh
226+
tools.hid_upload.path={runtime.tools.STM32Tools.path}
227227
tools.hid_upload.upload.params.verbose=-d
228228
tools.hid_upload.upload.params.quiet=n
229-
tools.hid_upload.upload.pattern="{tools_bin_path}/{cmd}" "{build.path}/{build.project_name}.bin" {serial.port.file}
229+
tools.hid_upload.upload.pattern="{busybox}" sh "{path}/{script}" "{build.path}/{build.project_name}.bin" {serial.port.file}
230230

231231
# Upload using Maple bootloader over DFU
232232
tools.maple_upload.script=maple_upload.sh

0 commit comments

Comments
 (0)