Page MenuHomeFreeBSD
Paste P114

(An Untitled Masterwork)
ActivePublic

Authored by kan on Nov 17 2016, 6:11 PM.
Tags
None
Referenced Files
F717134:
Nov 17 2016, 6:11 PM
Subscribers
None
source [ find interface/ftdi/flyswatter2.cfg ]
adapter_khz 6000
if { [info exists CHIPNAME] } {
set _CHIPNAME $CHIPNAME
} else {
set _CHIPNAME armada390
}
if { [info exists CPUTAPID] } {
set _CPUTAPID $CPUTAPID
} else {
set _CPUTAPID 0x4ba00477
}
jtag newtap $_CHIPNAME dap -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
proc armada390_dbginit {target} {
cortex_a dbginit
}
if { [info exists DAP_DBG1] } {
set _DAP_DBG1 $DAP_DBG1 } else {
set _DAP_DBG1 0x801A8000
}
if { [info exists DAP_DBG2] } {
set _DAP_DBG2 $DAP_DBG2
} else {
set _DAP_DBG2 0x801A8000
}
set _TARGETNAME_1 cpu1
set _TARGETNAME_2 cpu2
target create $_TARGETNAME_1 cortex_a -chain-position $_CHIPNAME.dap \
-coreid 0
target create $_TARGETNAME_2 cortex_a -chain-position $_CHIPNAME.dap \
-coreid 1
target smp cpu1 cpu2
$_TARGETNAME_1 configure -event reset-assert-post "armada390_dbginit $_TARGETNAME_1"
$_TARGETNAME_2 configure -event reset-assert-post "armada390_dbginit $_TARGETNAME_2"
# We need to init now, so we can run the apsel command.
init
dap apsel 1

Event Timeline

kan created this object in space S1 Global.