From 47763a994873e1dc4e1000ac104a26565a82e2b5 Mon Sep 17 00:00:00 2001 From: maxgerhardt Date: Sun, 9 Apr 2023 17:37:30 +0200 Subject: [PATCH] Enable debugging with BMP --- platform.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/platform.py b/platform.py index 608fe06..642ef77 100644 --- a/platform.py +++ b/platform.py @@ -89,8 +89,12 @@ class RaspberrypiPlatform(PlatformBase): for link in ("blackmagic", "cmsis-dap", "jlink", "raspberrypi-swd", "picoprobe"): if link not in upload_protocols or link in debug["tools"]: continue - - if link == "jlink": + if link == "blackmagic": + debug["tools"]["blackmagic"] = { + "hwids": [["0x1d50", "0x6018"]], + "require_debug_port": True + } + elif link == "jlink": assert debug.get("jlink_device"), ( "Missed J-Link Device ID for %s" % board.id) debug["tools"][link] = {