Код: Выделить всё
adapter driver jlink
set _CHIPNAME xxx
set _DAP_TAPID 0x4BA00477
adapter speed 10000
transport select jtag
bindto 0.0.0.0
reset_config trst_and_srst
telnet port 4444
gdb port 2331
# create tap
jtag newtap auto0 tap -irlen 4 -expected-id $_DAP_TAPID
# create dap
dap create auto0.dap -chain-position auto0.tap
set DBGBASE {0x80410000 0x80510000 0x80610000 0x80710000}
set CTIBASE {0x80420000 0x80520000 0x80620000 0x80720000}
#set DBGBASE {0x80810000 0x80910000 0x80a10000 0x80b10000}
#set CTIBASE {0x80820000 0x80920000 0x80a20000 0x80b20000}
#set DBGBASE {0x80810000 0x80910000 0x80a10000 0x80b10000}
#set CTIBASE {0x80820000 0x80920000 0x80a20000 0x80b20000}
set _cores 1
set _TARGETNAME $_CHIPNAME.a53
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]
target create ${_TARGETNAME}.$_core aarch64 \
-dap auto0.dap -dbgbase [lindex $DBGBASE $_core] \
-coreid $_core -cti $_CTINAME.$_core
$_TARGETNAME.$_core configure -event gdb-attach { halt }
}
Подробнее здесь: https://stackoverflow.com/questions/794 ... -next-line