aboutsummaryrefslogtreecommitdiff
path: root/tcl
diff options
context:
space:
mode:
authorTomas Vanek <vanekt@fbl.cz>2022-11-03 10:32:36 +0100
committerAntonio Borneo <borneo.antonio@gmail.com>2023-01-15 14:56:27 +0000
commit228fe7300c7df7aa05ba2c0bc19edde6d0156401 (patch)
treeef4c05e6f9038e62f9d6e4e1fd7c2e024c2efca2 /tcl
parent8af4d4462fb1954ab4f5d97bc0513e3082a6bb52 (diff)
downloadriscv-openocd-228fe7300c7df7aa05ba2c0bc19edde6d0156401.zip
riscv-openocd-228fe7300c7df7aa05ba2c0bc19edde6d0156401.tar.gz
riscv-openocd-228fe7300c7df7aa05ba2c0bc19edde6d0156401.tar.bz2
tcl/target: remove rp2040-core0.cfg
rp2040-core0.cfg configuration file was intended for a special adapter which selects a SWD multidrop target on its own. This means that rp2040-core0.cfg is totally unusable with a standard SWD adapter. The file was marked as deprecated in 0.12 release. The reworked rp2040.cfg can be restricted to use just one core: openocd ... -c 'set USE_CORE 0' -f target/rp2040.cfg Remove the obsoleted config. Change-Id: Id886471622bb4a8cb83f5c4c3660657407aaaf74 Signed-off-by: Tomas Vanek <vanekt@fbl.cz> Reviewed-on: https://review.openocd.org/c/openocd/+/7326 Tested-by: jenkins Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
Diffstat (limited to 'tcl')
-rw-r--r--tcl/target/rp2040-core0.cfg52
1 files changed, 0 insertions, 52 deletions
diff --git a/tcl/target/rp2040-core0.cfg b/tcl/target/rp2040-core0.cfg
deleted file mode 100644
index 8a111bc..0000000
--- a/tcl/target/rp2040-core0.cfg
+++ /dev/null
@@ -1,52 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0-or-later
-
-# RP2040 is a microcontroller with dual Cortex-M0+ core.
-# https://www.raspberrypi.com/documentation/microcontrollers/rp2040.html
-
-# The device requires multidrop SWD for debug.
-# This configuration file is intended for a special adapter
-# which selects a multidrop target on its own.
-# Cannot be used with a standard SWD adapter!
-
-echo "Warn : rp2040-core0.cfg configuration file is deprecated and will be"
-echo " removed in the next release. Use following parameters instead:"
-echo " -c 'set USE_CORE 0' -f target/rp2040.cfg"
-
-transport select swd
-
-source [find target/swj-dp.tcl]
-
-if { [info exists CHIPNAME] } {
- set _CHIPNAME $CHIPNAME
-} else {
- set _CHIPNAME rp2040
-}
-
-if { [info exists WORKAREASIZE] } {
- set _WORKAREASIZE $WORKAREASIZE
-} else {
- set _WORKAREASIZE 0x10000
-}
-
-if { [info exists CPUTAPID] } {
- set _CPUTAPID $CPUTAPID
-} else {
- set _CPUTAPID 0x01002927
-}
-
-swj_newdap $_CHIPNAME cpu -expected-id $_CPUTAPID
-dap create $_CHIPNAME.dap -chain-position $_CHIPNAME.cpu
-set _TARGETNAME $_CHIPNAME.cpu
-target create $_TARGETNAME cortex_m -dap $_CHIPNAME.dap
-
-# Backup the work area. The flash probe runs an algorithm on the target CPU.
-# The flash is probed during gdb connect if gdb_memory_map is enabled (by default).
-$_TARGETNAME configure -work-area-phys 0x20010000 -work-area-size $_WORKAREASIZE -work-area-backup 1
-
-set _FLASHNAME $_CHIPNAME.flash
-set _FLASHSIZE 0x200000
-set _FLASHBASE 0x10000000
-flash bank $_FLASHNAME rp2040_flash $_FLASHBASE $_FLASHSIZE 1 32 $_TARGETNAME
-
-# srst does not exist; use SYSRESETREQ to perform a soft reset
-cortex_m reset_config sysresetreq