File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -159,12 +159,12 @@ tools.stlink_upload.upload.pattern="{path}/{cmd}" {serial.port.file} {upload.alt
159159
160160# blackmagic probe upload
161161tools.bmp_upload.cmd=arm-none-eabi-gdb
162- tools.bmp_upload.cmd.windows=bmp_upload.bat
162+ # tools.bmp_upload.cmd.windows=bmp_upload.bat
163163tools.bmp_upload.path={runtime.tools.arm-none-eabi-gcc.path}/bin/
164- tools.bmp_upload.path.windows={runtime.hardware.path}/tools/win
164+ # tools.bmp_upload.path.windows={runtime.hardware.path}/tools/win
165165
166166tools.bmp_upload.upload.speed=230400
167167tools.bmp_upload.upload.params.verbose=
168168tools.bmp_upload.upload.params.quiet=-q --batch-silent
169- tools.bmp_upload.upload.pattern="{path}{cmd}" -b {upload.speed} {upload.verbose} -ex "set debug remote 0" -ex "set target-async off" -ex "set remotetimeout 60" -ex "set confirm off" -ex "set height 0" -ex "target extended-remote {serial.port}" -ex "monitor swdp_scan" -ex "attach 1" -ex "x/wx 0x8000004" -ex "monitor erase_mass" -ex "echo 0x8000004 expect 0xffffffff after erase\n" -ex "x/wx 0x8000004" -ex "file {build.path}/{build. project_name}.elf" -ex "load" -ex "x/i *0x8000004 " -ex "kill" -ex " tbreak main" -ex "run" -ex "detach" -ex " echo \n\n\n{build.project_name}.elf uploaded!\n " -ex "quit"
170- tools.bmp_upload.upload.pattern.windows="{path}/{cmd}" {runtime.tools.arm-none-eabi-gcc.path}/bin/ {upload.speed} {upload.verbose} "target extended-remote {serial.port}" "{build.path}/{build.project_name}.elf"
169+ tools.bmp_upload.upload.pattern="{path}{cmd}" -cd "{build.path}" - b {upload.speed} {upload.verbose} -ex "set debug remote 0" -ex "set target-async off" -ex "set remotetimeout 60" -ex "set mem inaccessible-by-default off" -ex "set confirm off" -ex "set height 0" -ex "target extended-remote {serial.port}" -ex "monitor swdp_scan" -ex "attach 1" -ex "x/wx 0x8000004" -ex "monitor erase_mass" -ex "echo 0x8000004 expect 0xffffffff after erase\n" -ex "x/wx 0x8000004" -ex "file {build.project_name}.elf" -ex "load" -ex "x/wx 0x08000004 " -ex "tbreak main" -ex "run" -ex "echo \n\n\nUpload finished! " -ex "quit"
170+ # tools.bmp_upload.upload.pattern.windows="{path}/{cmd}" {runtime.tools.arm-none-eabi-gcc.path}/bin/ {upload.speed} {upload.verbose} "target extended-remote {serial.port}" "{build.path}/{build.project_name}.elf"
You can’t perform that action at this time.
0 commit comments