From c2cfeee471bd4a1b77ab1c30329200bb5fd37af4 Mon Sep 17 00:00:00 2001 From: Peter Lawrence Date: Thu, 28 Aug 2025 17:18:03 -0500 Subject: [PATCH] add tcl/board/pico2-debug.cfg; update tcl/board/pico-debug.cfg pico-debug and pico2-debug are virtual CMSIS-DAP adapters that run on the otherwise dormant second core of the RP2040 and RP2350 respectively. Change-Id: Ifd7dcbbabeb86c738cc58854add0e897633197de Signed-off-by: Peter Lawrence Reviewed-on: https://review.openocd.org/c/openocd/+/9099 Reviewed-by: Tomas Vanek Tested-by: jenkins --- tcl/board/pico-debug.cfg | 4 ++-- tcl/board/pico2-debug.cfg | 10 ++++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 tcl/board/pico2-debug.cfg diff --git a/tcl/board/pico-debug.cfg b/tcl/board/pico-debug.cfg index ba59f860a..8139663f2 100644 --- a/tcl/board/pico-debug.cfg +++ b/tcl/board/pico-debug.cfg @@ -6,5 +6,5 @@ source [find interface/cmsis-dap.cfg] adapter speed 4000 -set CHIPNAME rp2040 -source [find target/rp2040-core0.cfg] +set USE_CORE 0 +source [find target/rp2040.cfg] diff --git a/tcl/board/pico2-debug.cfg b/tcl/board/pico2-debug.cfg new file mode 100644 index 000000000..d0a4c6af5 --- /dev/null +++ b/tcl/board/pico2-debug.cfg @@ -0,0 +1,10 @@ +# SPDX-License-Identifier: GPL-2.0-or-later +# pico2-debug is a virtual CMSIS-DAP debug adapter +# it runs on the very same RP2350 target being debugged without additional hardware +# https://github.com/majbthrd/pico2-debug + +source [find interface/cmsis-dap.cfg] +adapter speed 4000 + +set USE_CORE 0 +source [find target/rp2350.cfg]