Alan Carvalho de Assis <acassis@gmail.com> - testcase
[openocd.git] / testing / examples / ledtest-imx31pdk / gdbinit-imx31pdk
1 echo Setting up for the FreeScale iMX31 Board.\n
2 # SETUP GDB :
3 #
4 # Common gdb setup for ARM CPUs
5 set complaints 1
6 set output-radix 10
7 set input-radix 10
8 set prompt (arm-gdb)
9 set endian little
10 dir .
11
12 # Tell GDB to use 1024 bytes packes when downloading, this
13 # reduces load image download times
14 set remote memory-write-packet-size 1024
15 set remote memory-write-packet-size fixed
16
17
18
19 # DEFINE MACROS :
20 #
21 # Create a "refresh" macro to update gdb's screens after the cpu
22 # has been stopped by the other CPU or following an "monitor allstop"
23 define refresh
24 monitor set hbreak
25 cont
26 monitor clear hbreak
27 end
28
29
30 # CONNECT TO TARGET :
31 target remote 127.0.0.1:3333
32 monitor reset run
33 monitor reset halt
34
35 # iMX31 PDK board initialization commands:
36
37 #// init_ccm
38
39 monitor mww 0x53FC0000 0x040
40 monitor mww 0x53F80000 0x074B0B7D
41
42 #//532-133-66.5
43 #//monitor mww 0x53F80004 0xFF871D58
44 #//monitor mww 0x53F80010 0x0033280C
45
46 #// 399MHz - 26MHz input, PD=1,MFI=7, MFN=27, MFD=40
47 monitor mww 0x53F80004 0xFF871D50
48 monitor mww 0x53F80010 0x00271C1B
49
50 #// 208-104-52
51 #//monitor mww 0x53F80004 0xFF871D48
52 #//monitor mww 0x53F80010 0x04002000
53
54
55 #// Configure CPLD on CS5
56 monitor mww 0xb8002050 0x0000DCF6
57 monitor mww 0xb8002054 0x444A4541
58 monitor mww 0xb8002058 0x44443302
59
60 #// Disable maximum drive strength for SDRAM/DDR lines by clearing DSE1 bits
61 #// in SW_PAD_CTL registers
62
63 #// SDCLK
64 monitor mww 0x43FAC26C 0
65
66 #// CAS
67 monitor mww 0x43FAC270 0
68
69 #// RAS
70 monitor mww 0x43FAC274 0
71
72 #// CS2 (CSD0)
73 monitor mww 0x43FAC27C 0x1000
74
75 #// DQM3
76 monitor mww 0x43FAC284 0
77
78 #// DQM2, DQM1, DQM0, SD31-SD0, A25-A0, MA10 (0x288..0x2DC)
79 monitor mww 0x43FAC288 0
80 monitor mww 0x43FAC28C 0
81 monitor mww 0x43FAC290 0
82 monitor mww 0x43FAC294 0
83 monitor mww 0x43FAC298 0
84 monitor mww 0x43FAC29C 0
85 monitor mww 0x43FAC2A0 0
86 monitor mww 0x43FAC2A4 0
87 monitor mww 0x43FAC2A8 0
88 monitor mww 0x43FAC2AC 0
89 monitor mww 0x43FAC2B0 0
90 monitor mww 0x43FAC2B4 0
91 monitor mww 0x43FAC2B8 0
92 monitor mww 0x43FAC2BC 0
93 monitor mww 0x43FAC2C0 0
94 monitor mww 0x43FAC2C4 0
95 monitor mww 0x43FAC2C8 0
96 monitor mww 0x43FAC2CC 0
97 monitor mww 0x43FAC2D0 0
98 monitor mww 0x43FAC2D4 0
99 monitor mww 0x43FAC2D8 0
100 monitor mww 0x43FAC2DC 0
101
102 #// Initialization script for 32 bit DDR on MX31 PDK
103 monitor mww 0xB8001010 0x00000004
104 monitor mww 0xB8001004 0x006ac73a
105 monitor mww 0xB8001000 0x92100000
106 monitor mww 0x80000f00 0x12344321
107 monitor mww 0xB8001000 0xa2100000
108 monitor mww 0x80000000 0x12344321
109 monitor mww 0x80000000 0x12344321
110 monitor mww 0xB8001000 0xb2100000
111 #monitor char 0x80000033 0xda
112 monitor mwb 0x80000033 0xda
113 #monitor char 0x81000000 0xff
114 monitor mwb 0x81000000 0xff
115 monitor mww 0xB8001000 0x82226080
116 monitor mww 0x80000000 0xDEADBEEF
117 monitor mww 0xB8001010 0x0000000c
118
119 # LOAD IMAGE :
120 #
121
122 # Load the program executable called "u-boot"
123 load test.elf
124
125 # Load the symbols for the program.
126 symbol-file test.elf
127
128 # RUN TO MAIN :
129 #
130 # Set a breakpoint at main().
131 #b reset
132 b main
133
134 # Run to the breakpoint.
135 c
136

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)