cfg: allow stm32discovery parameter override
[openocd.git] / tcl / target / pxa255.cfg
1 # PXA255 chip ... originally from Intel, PXA line was sold to Marvell.
2 # This chip is now at end-of-life. Final orders have been taken.
3
4 if { [info exists CHIPNAME] } {
5 set _CHIPNAME $CHIPNAME
6 } else {
7 set _CHIPNAME pxa255
8 }
9
10 if { [info exists ENDIAN] } {
11 set _ENDIAN $ENDIAN
12 } else {
13 set _ENDIAN little
14 }
15
16 if { [info exists CPUTAPID] } {
17 set _CPUTAPID $CPUTAPID
18 } else {
19 set _CPUTAPID 0x69264013
20 }
21
22 jtag newtap $_CHIPNAME cpu -irlen 5 -expected-id $_CPUTAPID
23
24 set _TARGETNAME $_CHIPNAME.cpu
25 target create $_TARGETNAME xscale -endian $_ENDIAN \
26 -chain-position $_CHIPNAME.cpu
27
28 # PXA255 comes out of reset using 3.6864 MHz oscillator.
29 # Until the PLL kicks in, keep the JTAG clock slow enough
30 # that we get no errors.
31 adapter_khz 300
32 $_TARGETNAME configure -event "reset-start" { adapter_khz 300 }
33
34 # both TRST and SRST are *required* for debug
35 # DCSR is often accessed with SRST active
36 reset_config trst_and_srst separate srst_nogate
37
38 # reset processing that works with PXA
39 proc init_reset {mode} {
40 # assert both resets; equivalent to power-on reset
41 jtag_reset 1 1
42
43 # drop TRST after at least 32 cycles
44 sleep 1
45 jtag_reset 0 1
46
47 # minimum 32 TCK cycles to wake up the controller
48 runtest 50
49
50 # now the TAP will be responsive; validate scanchain
51 jtag arp_init
52
53 # ... and take it out of reset
54 jtag_reset 0 0
55 }
56
57 proc jtag_init {} {
58 init_reset startup
59 }

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)