Use hardware reset and connect under reset on boards with ST-LINK/V2, as
[openocd.git] / tcl / board / csb732.cfg
1 # The Cogent CSB732 board has a single i.MX35 chip
2 source [find target/imx35.cfg]
3
4 # Determined by trial and error
5 reset_config trst_and_srst combined
6 adapter_nsrst_delay 200
7 jtag_ntrst_delay 200
8
9 $_TARGETNAME configure -event gdb-attach { reset init }
10 $_TARGETNAME configure -event reset-init { csb732_init }
11
12 # Bare-bones initialization of core clocks and SDRAM
13 proc csb732_init { } {
14
15 # Disable fast writing only for init
16 memwrite burst disable
17
18 # All delay loops are omitted.
19 # We assume the interpreter latency is enough.
20
21 # Allow access to all coprocessors
22 arm mcr 15 0 15 1 0 0x2001
23
24 # Disable MMU, caches, write buffer
25 arm mcr 15 0 1 0 0 0x78
26
27 # Grant manager access to all domains
28 arm mcr 15 0 3 0 0 0xFFFFFFFF
29
30 # Set ARM clock to 532 MHz, AHB to 133 MHz
31 mww 0x53F80004 0x1000
32
33 # Set core clock to 2 * 24 MHz * (11 + 1/12) = 532 MHz
34 mww 0x53F8001C 0xB2C01
35
36 set ESDMISC 0xB8001010
37 set ESDCFG0 0xB8001004
38 set ESDCTL0 0xB8001000
39
40 # Enable DDR
41 mww $ESDMISC 0x4
42
43 # Timing
44 mww $ESDCFG0 0x007fff3f
45
46 # CS0
47 mww $ESDCTL0 0x92120080
48
49 # Precharge all dummy write
50 mww 0x80000400 0
51
52 # Enable CS) auto-refresh
53 mww $ESDCTL0 0xA2120080
54
55 # Refresh twice (dummy writes)
56 mww 0x80000000 0
57 mww 0x80000000 0
58
59 # Enable CS0 load mode register
60 mww $ESDCTL0 0xB2120080
61
62 # Dummy writes
63 mwb 0x80000033 0x01
64 mwb 0x81000000 0x01
65
66 mww $ESDCTL0 0x82226080
67 mww 0x80000000 0
68
69 # Re-enable fast writing
70 memwrite burst enable
71 }

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)