aboutsummaryrefslogtreecommitdiff
path: root/tcl/board
diff options
context:
space:
mode:
authorPeter Lawrence <majbthrd@gmail.com>2021-03-02 15:21:28 -0600
committerTomas Vanek <vanekt@fbl.cz>2021-05-02 22:40:24 +0100
commitb60d06ae325c00979e9ff17bb35e868879e6047f (patch)
tree9996340823faa2b1443e889eca0bbc95f697b6be /tcl/board
parent64a3e7ba4f47c5340543d9a5cadd41bc45d93c93 (diff)
downloadriscv-openocd-b60d06ae325c00979e9ff17bb35e868879e6047f.zip
riscv-openocd-b60d06ae325c00979e9ff17bb35e868879e6047f.tar.gz
riscv-openocd-b60d06ae325c00979e9ff17bb35e868879e6047f.tar.bz2
tcl/board: add pico-debug support
pico-debug is not a board; it is a virtual CMSIS-DAP adapter that runs on the same RP2040 also being debugged. This is possible due to pico-debug running on the normally-dormant second Cortex-M0+ core (Core1), providing debugging of the first core (Core0). As such, it could be used on a variety of RP2040-based boards. Since a flash driver is useful (if not essential), a flash driver is included. This driver code originated on RPi's bespoke OpenOCD fork; lipstick was added to this particular pig to make it more presentable on OpenOCD proper. no new Clang analyzer warnings Change-Id: I31f98b5ea1664f0adfbc184b57efba963acfb958 Signed-off-by: Peter Lawrence <majbthrd@gmail.com> Reviewed-on: http://openocd.zylin.com/6075 Tested-by: jenkins Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
Diffstat (limited to 'tcl/board')
-rw-r--r--tcl/board/pico-debug.cfg11
1 files changed, 11 insertions, 0 deletions
diff --git a/tcl/board/pico-debug.cfg b/tcl/board/pico-debug.cfg
new file mode 100644
index 0000000..c2fe7d3
--- /dev/null
+++ b/tcl/board/pico-debug.cfg
@@ -0,0 +1,11 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+# pico-debug is a virtual CMSIS-DAP debug adapter
+# it runs on the very same RP2040 target being debugged without additional hardware
+# https://github.com/majbthrd/pico-debug
+
+source [find interface/cmsis-dap.cfg]
+adapter speed 4000
+
+set CHIPNAME rp2040
+source [find target/rp2040-core0.cfg]
+