Remove support for the GPL incompatible FTDI D2XX library
[openocd.git] / tcl / board / mcb1700.cfg
1 # Keil MCB1700 PCB with 1768
2 #
3 # Reset init script sets it to 100MHz
4 set CCLK 100000
5
6 source [find target/lpc17xx.cfg]
7
8 global MCB1700_CCLK
9 set MCB1700_CCLK $CCLK
10
11 $_TARGETNAME configure -event reset-start {
12 # Start *real slow* as we do not know the
13 # state the boot rom left the clock in
14 adapter_khz 10
15 }
16
17 # Set up 100MHz clock to CPU
18 $_TARGETNAME configure -event reset-init {
19 # PLL0CON: Disable PLL
20 mww 0x400FC080 0x00000000
21 # PLLFEED
22 mww 0x400FC08C 0x000000AA
23 # PLLFEED
24 mww 0x400FC08C 0x00000055
25
26 # CCLK=PLL/4 (=100 MHz)
27 mww 0x400FC104 0x00000003
28 # CLKSRCSEL: Clock source = internal RC oscillator
29 mww 0x400FC10C 0x00000000
30
31 # PLL0CFG: M=50,N=1 -> PLL=400 MHz
32 mww 0x400FC084 0x00000031
33 # PLLFEED
34 mww 0x400FC08C 0x000000AA
35 # PLLFEED
36 mww 0x400FC08C 0x00000055
37
38 # PLL0CON: Enable PLL
39 mww 0x400FC080 0x00000001
40 # PLLFEED
41 mww 0x400FC08C 0x000000AA
42 # PLLFEED
43 mww 0x400FC08C 0x00000055
44
45 sleep 50
46
47 # PLL0CON: Connect PLL
48 mww 0x400FC080 0x00000003
49 # PLLFEED
50 mww 0x400FC08C 0x000000AA
51 # PLLFEED
52 mww 0x400FC08C 0x00000055
53
54 # Dividing CPU clock by 8 should be pretty conservative
55 #
56 #
57 global MCB1700_CCLK
58 adapter_khz [expr $MCB1700_CCLK / 8]
59
60 # Do not remap 0x0000-0x0020 to anything but the flash (i.e. select
61 # "User Flash Mode" where interrupt vectors are _not_ remapped,
62 # and reside in flash instead).
63 #
64 # See Table 612. Memory Mapping Control register (MEMMAP - 0x400F C040) bit description
65 # Bit Symbol Value Description Reset
66 # value
67 # 0 MAP Memory map control. 0
68 # 0 Boot mode. A portion of the Boot ROM is mapped to address 0.
69 # 1 User mode. The on-chip Flash memory is mapped to address 0.
70 # 31:1 - Reserved. The value read from a reserved bit is not defined. NA
71 #
72 # http://ics.nxp.com/support/documents/microcontrollers/?scope=LPC1768&type=user
73
74 mww 0x400FC040 0x01
75 }

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)