1 if { [info exists CHIPNAME] } {
2 set _CHIPNAME $CHIPNAME
7 # CoreSight Debug Access Port
8 if { [info exists DAP_TAPID] } {
9 set _DAP_TAPID $DAP_TAPID
11 set _DAP_TAPID 0x5ba00477
14 jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x01 -irmask 0x0f \
15 -expected-id $_DAP_TAPID
20 # GDB target: Cortex-A7, using DAP, configuring only one core
21 # Base addresses of cores:
24 set _TARGETNAME $_CHIPNAME.cpu_a7
26 dap create $_CHIPNAME.dap -chain-position $_CHIPNAME.cpu
28 target create $_TARGETNAME.0 cortex_a -dap $_CHIPNAME.dap \
29 -coreid 0 -dbgbase 0x80070000
31 target create $_TARGETNAME.1 cortex_a -dap $_CHIPNAME.dap \
32 -coreid 1 -dbgbase 0x80072000 -defer-examine
36 set _TARGETNAME_2 $_CHIPNAME.cpu_m4
37 target create $_TARGETNAME_2 cortex_m -dap $_CHIPNAME.dap -ap-num 4 \
40 targets $_TARGETNAME.0