Start adding picoprobe as debug tool
This commit is contained in:
parent
77e0d3a29d
commit
c0653a3d76
@ -48,7 +48,8 @@
|
|||||||
"cmsis-dap",
|
"cmsis-dap",
|
||||||
"jlink",
|
"jlink",
|
||||||
"raspberrypi-swd",
|
"raspberrypi-swd",
|
||||||
"picotool"
|
"picotool",
|
||||||
|
"picoprobe"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"url": "https://blog.arduino.cc/2021/01/20/welcome-raspberry-pi-to-the-world-of-microcontrollers/",
|
"url": "https://blog.arduino.cc/2021/01/20/welcome-raspberry-pi-to-the-world-of-microcontrollers/",
|
||||||
|
@ -44,7 +44,8 @@
|
|||||||
"cmsis-dap",
|
"cmsis-dap",
|
||||||
"jlink",
|
"jlink",
|
||||||
"raspberrypi-swd",
|
"raspberrypi-swd",
|
||||||
"picotool"
|
"picotool",
|
||||||
|
"picoprobe"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"url": "https://www.raspberrypi.org/products/raspberry-pi-pico/",
|
"url": "https://www.raspberrypi.org/products/raspberry-pi-pico/",
|
||||||
|
@ -356,15 +356,25 @@ elif upload_protocol in debug_tools:
|
|||||||
openocd_args.extend(
|
openocd_args.extend(
|
||||||
["-c", "adapter speed %s" % env.GetProjectOption("debug_speed")]
|
["-c", "adapter speed %s" % env.GetProjectOption("debug_speed")]
|
||||||
)
|
)
|
||||||
openocd_args.extend([
|
if "uploadfs" in COMMAND_LINE_TARGETS:
|
||||||
"-c", "program {$SOURCE} %s verify reset; shutdown;" %
|
# filesystem upload. use FS_START.
|
||||||
board.get("upload.offset_address", "")
|
openocd_args.extend([
|
||||||
])
|
"-c", "program {$SOURCE} ${hex(FS_START)} verify reset; shutdown;"
|
||||||
|
])
|
||||||
|
else:
|
||||||
|
# normal firmware upload. flash starts at 0x10000000
|
||||||
|
openocd_args.extend([
|
||||||
|
"-c", "program {$SOURCE} %s verify reset; shutdown;" %
|
||||||
|
board.get("upload.offset_address", "0x10000000")
|
||||||
|
])
|
||||||
openocd_args = [
|
openocd_args = [
|
||||||
f.replace("$PACKAGE_DIR", platform.get_package_dir(
|
f.replace("$PACKAGE_DIR", platform.get_package_dir(
|
||||||
"tool-openocd-raspberrypi") or "")
|
"tool-openocd-raspberrypi") or "")
|
||||||
for f in openocd_args
|
for f in openocd_args
|
||||||
]
|
]
|
||||||
|
# use ELF file for upload, not bin (target_firm). otherwise needs
|
||||||
|
# offset 0x10000000
|
||||||
|
#upload_source = target_elf
|
||||||
env.Replace(
|
env.Replace(
|
||||||
UPLOADER="openocd",
|
UPLOADER="openocd",
|
||||||
UPLOADERFLAGS=openocd_args,
|
UPLOADERFLAGS=openocd_args,
|
||||||
|
5672
misc/svd/rp2040.svd
5672
misc/svd/rp2040.svd
File diff suppressed because it is too large
Load Diff
@ -85,7 +85,7 @@ class RaspberrypiPlatform(PlatformBase):
|
|||||||
if "tools" not in debug:
|
if "tools" not in debug:
|
||||||
debug["tools"] = {}
|
debug["tools"] = {}
|
||||||
|
|
||||||
for link in ("cmsis-dap", "jlink", "raspberrypi-swd"):
|
for link in ("cmsis-dap", "jlink", "raspberrypi-swd", "picoprobe"):
|
||||||
if link not in upload_protocols or link in debug["tools"]:
|
if link not in upload_protocols or link in debug["tools"]:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user