|
From: openocd-gerrit <ope...@us...> - 2025-11-02 13:41:38
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Main OpenOCD repository".
The branch, master has been updated
via f5478eb112ce47768e44b88d6bbfcad469ed1701 (commit)
via c1cca2155bd8a60165145314d229603a6bc7f26d (commit)
from 914b8557802bf4e59b2a437fd8b6a015e9c0d773 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit f5478eb112ce47768e44b88d6bbfcad469ed1701
Author: Joao Lima <joa...@hb...>
Date: Tue Sep 30 12:13:30 2025 +0000
tcl/target/ti_k3.cfg: Add support for direct memory access via SWD
Adds support for direct memory access via SWD emulation for AM64x and
J784s4 boards, configuring addresses and parameters required for
direct memory operations.
Change-Id: Iebc16612b3990b2ef19ddc4143b66ab1bcbfe0f3
Signed-off-by: Joao Lima <joa...@hb...>
Reviewed-on: https://review.openocd.org/c/openocd/+/9021
Reviewed-by: Nishanth Menon <nm...@ti...>
Tested-by: jenkins
Reviewed-by: Antonio Borneo <bor...@gm...>
diff --git a/tcl/target/ti_k3.cfg b/tcl/target/ti_k3.cfg
index 0dee74e5e..6b0ac2e52 100644
--- a/tcl/target/ti_k3.cfg
+++ b/tcl/target/ti_k3.cfg
@@ -176,6 +176,16 @@ switch $_soc {
# Uses the same JTAG ID
set _armv8_cores 0
}
+
+ # Setup DMEM access descriptions
+ # DAPBUS (Debugger) description
+ set _dmem_base_address 0x740002000
+ set _dmem_ap_address_offset 0x100
+ set _dmem_max_aps 10
+ # Emulated AP description
+ set _dmem_emu_base_address 0x760000000
+ set _dmem_emu_base_address_map_to 0x1d500000
+ set _dmem_emu_ap_list 1
}
am625 {
set _K3_DAP_TAPID 0x0bb7e02f
@@ -333,7 +343,7 @@ switch $_soc {
set ARMV8_CTIBASE {0x90420000 0x90520000 0x90620000 0x90720000
0x90820000 0x90920000 0x90a20000 0x90b20000}
- # J721s2 has 4 clusters of 2 R5 cores each.
+ # J784s4 has 4 clusters of 2 R5 cores each.
set _r5_cores 8
set R5_DBGBASE {0x9d010000 0x9d012000
0x9d410000 0x9d412000
@@ -348,6 +358,16 @@ switch $_soc {
main1_r5.0 main1_r5.1
main2_r5.0 main2_r5.1}
+ # Setup DMEM access descriptions
+ # DAPBUS (Debugger) description
+ set _dmem_base_address 0x4c40002000
+ set _dmem_ap_address_offset 0x100
+ set _dmem_max_aps 8
+ # Emulated AP description
+ set _dmem_emu_base_address 0x4c60000000
+ set _dmem_emu_base_address_map_to 0x1d600000
+ set _dmem_emu_ap_list 1
+
# sysctrl CTI base
set CM3_CTIBASE {0x20001000}
# Sysctrl power-ap unlock offsets
commit c1cca2155bd8a60165145314d229603a6bc7f26d
Author: Joao Lima <joa...@hb...>
Date: Tue Sep 30 12:13:04 2025 +0000
tcl/board/ti_*_swd_native.cfg: Add support for direct memory access via SW
Add support for SWD emulation as a transport method for
direct memory operations of boards TI AM64x and TI J784s4
Change-Id: I17fe9b2bef5c58886625bfdb88d92645ba4d7da7
Signed-off-by: Joao Lima <joa...@hb...>
Reviewed-on: https://review.openocd.org/c/openocd/+/9020
Reviewed-by: Antonio Borneo <bor...@gm...>
Tested-by: jenkins
Reviewed-by: Nishanth Menon <nm...@ti...>
diff --git a/tcl/board/ti_am64xx_swd_native.cfg b/tcl/board/ti_am64xx_swd_native.cfg
new file mode 100644
index 000000000..d3727149e
--- /dev/null
+++ b/tcl/board/ti_am64xx_swd_native.cfg
@@ -0,0 +1,23 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+# Copyright (C) 2022-2023 Texas Instruments Incorporated - http://www.ti.com/
+#
+# Texas Instruments am642
+# Link: https://www.ti.com/product/AM642
+#
+# This configuration file is used as a self hosted debug configuration that
+# works on every AM642 platform based on firewall configuration permitted
+# in the system.
+#
+# In this system openOCD runs on one of the CPUs inside AM625 and provides
+# network ports that can then be used to debug the microcontrollers on the
+# SoC - either self hosted IDE OR remotely.
+
+# We are using dmem, which uses dapdirect_swd transport
+adapter driver dmem
+transport select swd
+
+if { ![info exists SOC] } {
+ set SOC am642
+}
+
+source [find target/ti_k3.cfg]
diff --git a/tcl/board/ti_j784s4_swd_native.cfg b/tcl/board/ti_j784s4_swd_native.cfg
new file mode 100644
index 000000000..13b2ac3b8
--- /dev/null
+++ b/tcl/board/ti_j784s4_swd_native.cfg
@@ -0,0 +1,22 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+# Copyright (C) 2022-2023 Texas Instruments Incorporated - http://www.ti.com/
+#
+# Texas Instruments TDA4VM/J721E
+# Link: https://www.ti.com/product/TDA4VM
+#
+# This configuration file is used as a self hosted debug configuration that
+# works on every TDA4VM platform based on firewall configuration permitted
+# in the system.
+#
+# In this system openOCD runs on one of the CPUs inside TDA4VM and provides
+# network ports that can then be used to debug the microcontrollers on the
+# SoC - either self hosted IDE OR remotely.
+
+# We are using dmem, which uses dapdirect_swd transport
+adapter driver dmem
+transport select swd
+
+if { ![info exists SOC] } {
+ set SOC j784s4
+}
+source [find target/ti_k3.cfg]
-----------------------------------------------------------------------
Summary of changes:
...625_swd_native.cfg => ti_am64xx_swd_native.cfg} | 8 ++++----
...21e_swd_native.cfg => ti_j784s4_swd_native.cfg} | 2 +-
tcl/target/ti_k3.cfg | 22 +++++++++++++++++++++-
3 files changed, 26 insertions(+), 6 deletions(-)
copy tcl/board/{ti_am625_swd_native.cfg => ti_am64xx_swd_native.cfg} (80%)
copy tcl/board/{ti_j721e_swd_native.cfg => ti_j784s4_swd_native.cfg} (96%)
hooks/post-receive
--
Main OpenOCD repository
|