9be198dc15ad28935a1f77a78fb196cb0b8b31f7
[openocd.git] / tcl / target / xilinx_ultrascale.cfg
1 #
2 # target configuration for
3 # Xilinx UltraScale+
4 #
5 if { [info exists CHIPNAME] } {
6 set _CHIPNAME $CHIPNAME
7 } else {
8 set _CHIPNAME uscale
9 }
10
11 #
12 # DAP tap
13 #
14 if { [info exists DAP_TAPID] } {
15 set _DAP_TAPID $DAP_TAPID
16 } else {
17 set _DAP_TAPID 0x5ba00477
18 }
19
20 jtag newtap $_CHIPNAME dap -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_DAP_TAPID
21
22 #
23 # PS tap
24 #
25 if { [info exists PS_TAPID] } {
26 set _PS_TAPID $PS_TAPID
27 } else {
28 set _PS_TAPID 0x04710093
29 }
30
31 set jtag_configured 0
32
33 jtag newtap $_CHIPNAME ps -irlen 12 -ircapture 0x1 -irmask 0x03 -expected-id $_PS_TAPID
34
35 jtag configure $_CHIPNAME.ps -event setup {
36 global _CHIPNAME
37 global jtag_configured
38
39 if { $jtag_configured == 0 } {
40 # add the DAP tap to the chain
41 # See https://forums.xilinx.com/t5/UltraScale-Architecture/JTAG-Chain-Configuration-for-Zynq-UltraScale-MPSoC/td-p/758924
42 irscan $_CHIPNAME.ps 0x824
43 drscan $_CHIPNAME.ps 32 0x00000003
44 runtest 100
45
46 # setup event will be re-entered through jtag arp_init
47 # break the recursion
48 set jtag_configured 1
49 # re-initialized the jtag chain
50 jtag arp_init
51 }
52 }
53
54 set _TARGETNAME $_CHIPNAME.a53
55 set _CTINAME $_CHIPNAME.cti
56
57 set DBGBASE {0x80410000 0x80510000 0x80610000 0x80710000}
58 set CTIBASE {0x80420000 0x80520000 0x80620000 0x80720000}
59 set _cores 4
60
61 for { set _core 0 } { $_core < $_cores } { incr _core } {
62
63 cti create $_CTINAME.$_core -chain-position $_CHIPNAME.dap -ap-num 1 \
64 -ctibase [lindex $CTIBASE $_core]
65
66 set _command "target create $_TARGETNAME.$_core aarch64 -chain-position $_CHIPNAME.dap \
67 -dbgbase [lindex $DBGBASE $_core] -cti $_CTINAME.$_core"
68
69 if { $_core != 0 } {
70 # non-boot core examination may fail
71 set _command "$_command -defer-examine"
72 set _smp_command "$_smp_command $_TARGETNAME.$_core"
73 } else {
74 # uncomment when "hawt" rtos is merged
75 #set _command "$_command -rtos hawt"
76 set _smp_command "target smp $_TARGETNAME.$_core"
77 }
78
79 eval $_command
80 }
81
82 eval $_smp_command
83 targets $_TARGETNAME.0
84
85 proc core_up { args } {
86 global _TARGETNAME
87 foreach { core } [set args] {
88 $_TARGETNAME.$core arp_examine
89 }
90 }

Linking to existing account procedure

If you already have an account and want to add another login method you MUST first sign in with your existing account and then change URL to read https://review.openocd.org/login/?link to get to this page again but this time it'll work for linking. Thank you.

SSH host keys fingerprints

1024 SHA256:YKx8b7u5ZWdcbp7/4AeXNaqElP49m6QrwfXaqQGJAOk gerrit-code-review@openocd.zylin.com (DSA)
384 SHA256:jHIbSQa4REvwCFG4cq5LBlBLxmxSqelQPem/EXIrxjk gerrit-code-review@openocd.org (ECDSA)
521 SHA256:UAOPYkU9Fjtcao0Ul/Rrlnj/OsQvt+pgdYSZ4jOYdgs gerrit-code-review@openocd.org (ECDSA)
256 SHA256:A13M5QlnozFOvTllybRZH6vm7iSt0XLxbA48yfc2yfY gerrit-code-review@openocd.org (ECDSA)
256 SHA256:spYMBqEYoAOtK7yZBrcwE8ZpYt6b68Cfh9yEVetvbXg gerrit-code-review@openocd.org (ED25519)
+--[ED25519 256]--+
|=..              |
|+o..   .         |
|*.o   . .        |
|+B . . .         |
|Bo. = o S        |
|Oo.+ + =         |
|oB=.* = . o      |
| =+=.+   + E     |
|. .=o   . o      |
+----[SHA256]-----+
2048 SHA256:0Onrb7/PHjpo6iVZ7xQX2riKN83FJ3KGU0TvI0TaFG4 gerrit-code-review@openocd.zylin.com (RSA)