This is an automated email from Gerrit.

"Karl Palsson <ka...@tweak.au>" just uploaded a new patch set to Gerrit, which 
you can find at https://review.openocd.org/c/openocd/+/7847

-- gerrit

commit 4c1e028e1f4d464979d764746c1babe6ee3f09c2
Author: Karl Palsson <ka...@tweak.au>
Date:   Tue Aug 1 00:02:36 2023 +0000

    tcl/target: add Realtek RTL872xD config
    
    Sufficient to probe both cores via multiple APs.
    
    Change-Id: Idf82085e7b7327fdf3d6d668e6fb59eff6e0431b
    Signed-off-by: Karl Palsson <ka...@tweak.au>

diff --git a/tcl/target/rtl872xd.cfg b/tcl/target/rtl872xd.cfg
new file mode 100644
index 0000000000..615dde15b3
--- /dev/null
+++ b/tcl/target/rtl872xd.cfg
@@ -0,0 +1,44 @@
+# SPDX-License-Identifier: GPL-2.0-or-later OR MIT
+# Realtek RTL872xD (ARM Cortex-M33 + M23, wifi+bt dualband soc)
+
+source [find target/swj-dp.tcl]
+
+if { [info exists CHIPNAME] } {
+        set _CHIPNAME $CHIPNAME
+} else {
+        set _CHIPNAME rtl872xd
+}
+
+#jtag scan chain
+if { [info exists CPUTAPID] } {
+        set _CPUTAPID $CPUTAPID
+} else {
+        if { [using_jtag] } {
+               # FIXME - never tried jtag, copy pasta alert!
+                # Corresponds to Cortex®-M33 JTAG debug port ID code
+                set _CPUTAPID 0x0ba04477
+        } {
+                # SWD IDCODE (single drop, arm)
+                #set _CPUTAPID 0x0be12477
+               set _CPUTAPID 0x6ba02477
+        }
+}
+
+
+swj_newdap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id 
$_CPUTAPID
+dap create $_CHIPNAME.dap -chain-position $_CHIPNAME.cpu
+
+if {[using_jtag]} {
+        jtag newtap $_CHIPNAME bs -irlen 5
+}
+
+set _TARGETNAME $_CHIPNAME.cpu
+target create $_TARGETNAME.km0 cortex_m -endian little -dap $_CHIPNAME.dap 
-ap-num 1
+target create $_TARGETNAME.km4 cortex_m -endian little -dap $_CHIPNAME.dap 
-ap-num 2
+
+
+if { ![using_hla] } {
+       cortex_m reset_config sysresetreq
+}
+
+adapter speed 1000

-- 

Reply via email to