Add pico-debug openocd call
This commit is contained in:
parent
bade1b3dfb
commit
92f7dcb581
15
platform.py
15
platform.py
@ -15,7 +15,7 @@
|
|||||||
import platform
|
import platform
|
||||||
|
|
||||||
from platformio.public import PlatformBase
|
from platformio.public import PlatformBase
|
||||||
|
import sys
|
||||||
|
|
||||||
class RaspberrypiPlatform(PlatformBase):
|
class RaspberrypiPlatform(PlatformBase):
|
||||||
|
|
||||||
@ -86,7 +86,7 @@ class RaspberrypiPlatform(PlatformBase):
|
|||||||
if "tools" not in debug:
|
if "tools" not in debug:
|
||||||
debug["tools"] = {}
|
debug["tools"] = {}
|
||||||
|
|
||||||
for link in ("blackmagic", "cmsis-dap", "jlink", "raspberrypi-swd", "picoprobe"):
|
for link in ("blackmagic", "cmsis-dap", "jlink", "raspberrypi-swd", "picoprobe", "pico-debug"):
|
||||||
if link not in upload_protocols or link in debug["tools"]:
|
if link not in upload_protocols or link in debug["tools"]:
|
||||||
continue
|
continue
|
||||||
if link == "blackmagic":
|
if link == "blackmagic":
|
||||||
@ -113,6 +113,17 @@ class RaspberrypiPlatform(PlatformBase):
|
|||||||
},
|
},
|
||||||
"onboard": link in debug.get("onboard_tools", [])
|
"onboard": link in debug.get("onboard_tools", [])
|
||||||
}
|
}
|
||||||
|
elif link == "pico-debug":
|
||||||
|
debug["tools"][link] = {
|
||||||
|
"server": {
|
||||||
|
"executable": "bin/openocd",
|
||||||
|
"package": "tool-openocd-rp2040-earlephilhower",
|
||||||
|
"arguments": [
|
||||||
|
"-s", "$PACKAGE_DIR/share/openocd/scripts",
|
||||||
|
"-f", "board/%s.cfg" % link,
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
else:
|
else:
|
||||||
openocd_target = debug.get("openocd_target")
|
openocd_target = debug.get("openocd_target")
|
||||||
assert openocd_target, ("Missing target configuration for %s" %
|
assert openocd_target, ("Missing target configuration for %s" %
|
||||||
|
Loading…
x
Reference in New Issue
Block a user