This is an automated email from Gerrit. Jun Chen ([email protected]) just uploaded a new patch set to Gerrit, which you can find at http://openocd.zylin.com/6370
-- gerrit commit 69a5b69821c97035fa8915004964db630e0c4f04 Author: Jun Chen <[email protected]> Date: Sat Jul 17 09:19:51 2021 -0700 tcl target raspi4b Signed-off-by: Jun Chen <[email protected]> Change-Id: If711089b229ef15d219ec5ff66e0657b766f6098 diff --git a/tcl/target/raspi4b.cfg b/tcl/target/raspi4b.cfg new file mode 100644 index 0000000..57fdc0c --- /dev/null +++ b/tcl/target/raspi4b.cfg @@ -0,0 +1,43 @@ +# Broadcom Bcm2711 Target +set _CHIPNAME bcm2711 +set _DAP_TAPID 0x4ba00477 + +adapter speed 1000 + +transport select jtag +reset_config trst_and_srst + +telnet_port 4444 + +# create tap +jtag newtap auto0 tap -irlen 4 -expected-id $_DAP_TAPID + +# create dap +dap create auto0.dap -chain-position auto0.tap + +set CTIBASE {0x80420000 0x80520000 0x80620000 0x80720000} +set DBGBASE {0x80410000 0x80510000 0x80610000 0x80710000} + +set _cores 4 + +set _TARGETNAME $_CHIPNAME.a72 +set _CTINAME $_CHIPNAME.cti +set _smp_command "" + +for {set _core 0} {$_core < $_cores} { incr _core} { + cti create $_CTINAME.$_core -dap auto0.dap -ap-num 0 -baseaddr [lindex $CTIBASE $_core] + + set _command "target create ${_TARGETNAME}.$_core aarch64 \ + -dap auto0.dap -dbgbase [lindex $DBGBASE $_core] \ + -coreid $_core -cti $_CTINAME.$_core" + if {$_core != 0} { + set _smp_command "$_smp_command $_TARGETNAME.$_core" + } else { + set _smp_command "target smp $_TARGETNAME.$_core" + } + + eval $_command +} + +eval $_smp_command +targets $_TARGETNAME.0 --
