Skip to content

Commit d0f213a

Browse files
nmenongerekon
authored andcommitted
tcl/board: Add am62p/am62a7/j722s native swd configuration
Direct memory driver swd native configuration for am62a7, am62p and J722S SoCs. All three share common memory map for the debug address map, so there is a strong reuse. However, introduce board file specific to the board to allow users to directly get started. Change-Id: I5609925a2e9918fd4c91d9fd40fbee98de27fdbc Signed-off-by: Nishanth Menon <[email protected]> Reviewed-on: https://review.openocd.org/c/openocd/+/8283 Tested-by: jenkins Reviewed-by: Vaishnav M A <[email protected]> Reviewed-by: Antonio Borneo <[email protected]> Reviewed-by: Oleksij Rempel <[email protected]>
1 parent 0f73349 commit d0f213a

File tree

4 files changed

+77
-0
lines changed

4 files changed

+77
-0
lines changed

tcl/board/ti_am62a7_swd_native.cfg

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# SPDX-License-Identifier: GPL-2.0-or-later
2+
# Copyright (C) 2024 Texas Instruments Incorporated - http://www.ti.com/
3+
#
4+
# Texas Instruments AM62A7
5+
# Link: https://www.ti.com/product/AM62A7
6+
#
7+
# This configuration file is used as a self hosted debug configuration that
8+
# works on every AM62A7 platform based on firewall configuration permitted
9+
# in the system.
10+
#
11+
# In this system openOCD runs on one of the CPUs inside AM62A7 and provides
12+
# network ports that can then be used to debug the microcontrollers on the
13+
# SoC - either self hosted IDE OR remotely.
14+
15+
# We are using dmem, which uses dapdirect_swd transport
16+
adapter driver dmem
17+
18+
if { ![info exists SOC] } {
19+
set SOC am62a7
20+
}
21+
22+
source [find target/ti_k3.cfg]

tcl/board/ti_am62p_swd_native.cfg

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# SPDX-License-Identifier: GPL-2.0-or-later
2+
# Copyright (C) 2024 Texas Instruments Incorporated - http://www.ti.com/
3+
#
4+
# Texas Instruments am62p
5+
# Link: https://www.ti.com/product/AM62P
6+
#
7+
# This configuration file is used as a self hosted debug configuration that
8+
# works on every AM62P platform based on firewall configuration permitted
9+
# in the system.
10+
#
11+
# In this system openOCD runs on one of the CPUs inside AM62P and provides
12+
# network ports that can then be used to debug the microcontrollers on the
13+
# SoC - either self hosted IDE OR remotely.
14+
15+
# We are using dmem, which uses dapdirect_swd transport
16+
adapter driver dmem
17+
18+
if { ![info exists SOC] } {
19+
set SOC am62p
20+
}
21+
22+
source [find target/ti_k3.cfg]

tcl/board/ti_j722s_swd_native.cfg

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# SPDX-License-Identifier: GPL-2.0-or-later
2+
# Copyright (C) 2024 Texas Instruments Incorporated - http://www.ti.com/
3+
#
4+
# Texas Instruments J722S/AM67/TDA4VEN
5+
# Link: https://www.ti.com/product/AM67
6+
# Link: https://www.ti.com/product/TDA4VEN-Q1
7+
#
8+
# This configuration file is used as a self hosted debug configuration that
9+
# works on every J722S platform based on firewall configuration permitted
10+
# in the system.
11+
#
12+
# In this system openOCD runs on one of the CPUs inside J722S and provides
13+
# network ports that can then be used to debug the microcontrollers on the
14+
# SoC - either self hosted IDE OR remotely.
15+
16+
# We are using dmem, which uses dapdirect_swd transport
17+
adapter driver dmem
18+
19+
if { ![info exists SOC] } {
20+
set SOC j722s
21+
}
22+
23+
source [find target/ti_k3.cfg]

tcl/target/ti_k3.cfg

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,16 @@ switch $_soc {
209209
# Sysctrl power-ap unlock offsets
210210
set _sysctrl_ap_unlock_offsets {0xf0 0x78}
211211

212+
# Setup DMEM access descriptions
213+
# DAPBUS (Debugger) description
214+
set _dmem_base_address 0x740002000
215+
set _dmem_ap_address_offset 0x100
216+
set _dmem_max_aps 10
217+
# Emulated AP description
218+
set _dmem_emu_base_address 0x760000000
219+
set _dmem_emu_base_address_map_to 0x1d500000
220+
set _dmem_emu_ap_list 1
221+
212222
# Overrides for am62p
213223
if { "$_soc" == "am62p" } {
214224
set _K3_DAP_TAPID 0x0bb9d02f

0 commit comments

Comments
 (0)