######################################
# Target: CPU dual core
######################################

if { [info exists CHIPNAME] } {
             set _CHIPNAME $CHIPNAME
} else {
#############################
# select corresponding cpu for your target
#############################
             set _CHIPNAME arm966e
}

if { [info exists ENDIAN] } {
             set _ENDIAN $ENDIAN
} else {
             set _ENDIAN little
}

if { [info exists CPUTAPID] } {
             set _CPUTAPID $CPUTAPID
} else {
#############################
# add corresponding JTAG ID for your target
#############################
             set _CPUTAPID 0x121003d3
}
#############################
# add two CPU for each of your target
#############################
jtag newtap arm966e cpu0 -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
jtag newtap arm966e cpu1 -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
#############################
# create 2 cpu with -chain-position attribute
#############################
target create arm966e.cpu arm966e -chain-position arm966e.cpu0 -endian $_ENDIAN -variant arm966e

reset_config trst_and_srst
adapter_nsrst_delay 200
jtag_ntrst_delay 20
查看原文 >>
相关文章