Skip to content

Commit 85cee9f

Browse files
evarkfpistm
authored andcommitted
Add Blackmagic (BMP) support for Generic F103
Based and closes stm32duino#238 Signed-off-by: EvArk <[email protected]>
1 parent 84dacf5 commit 85cee9f

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

boards.txt

+4
Original file line numberDiff line numberDiff line change
@@ -418,6 +418,10 @@ GenF103.menu.upload_method.serialMethod=Serial
418418
GenF103.menu.upload_method.serialMethod.upload.protocol=maple_serial
419419
GenF103.menu.upload_method.serialMethod.upload.tool=serial_upload
420420

421+
GenF103.menu.upload_method.bmpMethod=BMP (Black Magic Probe)
422+
GenF103.menu.upload_method.bmpMethod.upload.protocol=gdb_bmp
423+
GenF103.menu.upload_method.bmpMethod.upload.tool=bmp_upload
424+
421425
###############################
422426
# Maple
423427
Maple.name=Maple series

platform.txt

+8
Original file line numberDiff line numberDiff line change
@@ -172,3 +172,11 @@ tools.serial_upload.path.linux64={runtime.hardware.path}/tools/linux64
172172
tools.serial_upload.upload.params.verbose=-d
173173
tools.serial_upload.upload.params.quiet=n
174174
tools.serial_upload.upload.pattern="{path}/{cmd}" {serial.port.file} {upload.altID} {upload.usbID} "{build.path}/{build.project_name}.bin"
175+
176+
# blackmagic upload for generic STM32
177+
tools.bmp_upload.cmd=arm-none-eabi-gdb
178+
tools.bmp_upload.path={runtime.tools.arm-none-eabi-gcc.path}/bin/
179+
tools.bmp_upload.upload.speed=230400
180+
tools.bmp_upload.upload.params.verbose=-batch
181+
tools.bmp_upload.upload.params.quiet=--batch-silent
182+
tools.bmp_upload.upload.pattern="{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"

0 commit comments

Comments
 (0)