diff options
author | Jacek Wuwer <jacekmw8@gmail.com> | 2024-01-09 14:57:29 +0100 |
---|---|---|
committer | Antonio Borneo <borneo.antonio@gmail.com> | 2024-01-21 21:31:37 +0000 |
commit | 151b743714382120dbe0dee0e0eeb75826ef5b3a (patch) | |
tree | 6d1dd39b2608da1ce747c41e65e2bc53c40ad687 /tcl/target/vd_cortex_m.cfg | |
parent | 80b970bd29093a1e3e3b5fdeacda4958721a5afd (diff) | |
download | riscv-openocd-151b743714382120dbe0dee0e0eeb75826ef5b3a.zip riscv-openocd-151b743714382120dbe0dee0e0eeb75826ef5b3a.tar.gz riscv-openocd-151b743714382120dbe0dee0e0eeb75826ef5b3a.tar.bz2 |
jtag/vdebug: add support for DAP6
This change implements the support for the ARM Debug Interface v6.
The DAP-level interface properly selects the DP Banks and AP address.
Sample ARM configuration DAP and JTAG scripts have been updated.
Change-Id: I7df87ef764bca587697c778810443649a7f46c2b
Signed-off-by: Jacek Wuwer <jacekmw8@gmail.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/8067
Tested-by: jenkins
Reviewed-by: Ian Thompson <ianst@cadence.com>
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
Diffstat (limited to 'tcl/target/vd_cortex_m.cfg')
-rw-r--r-- | tcl/target/vd_cortex_m.cfg | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/tcl/target/vd_cortex_m.cfg b/tcl/target/vd_cortex_m.cfg index 4d7b0df..7db9d3a 100644 --- a/tcl/target/vd_cortex_m.cfg +++ b/tcl/target/vd_cortex_m.cfg @@ -2,11 +2,12 @@ # Cadence virtual debug interface # ARM Cortex M -if {![info exists _CHIPNAME]} { - set _CHIPNAME cortex_m +if {![info exists CHIPNAME]} { + set CHIPNAME cortex_m } -set _TARGETNAME $_CHIPNAME.cpu +set _TARGETNAME $CHIPNAME.cpu +set _DAPNAME $CHIPNAME.dap -dap create $_CHIPNAME.dap -chain-position $_TARGETNAME +dap create $_DAPNAME -chain-position $_TARGETNAME -target create $_TARGETNAME cortex_m -dap $_CHIPNAME.dap +target create $_TARGETNAME cortex_m -dap $_DAPNAME |