tcl/target: add SPDX tag
[openocd.git] / tcl / target / arm_corelink_sse200.cfg
1 # SPDX-License-Identifier: GPL-2.0-or-later
2
3 #
4 # Configuration script for Arm CoreLink SSE-200 Subsystem based IoT SoCs.
5 #
6
7 global TARGET
8 set TARGET $_CHIPNAME
9
10 swj_newdap $_CHIPNAME cpu -irlen 4 -expected-id $_CPUTAPID
11 dap create $_CHIPNAME.dap -chain-position $_CHIPNAME.cpu
12
13 #
14 # SRAM on ARM CoreLink SSE-200 can be 4 banks of 8/16/32/64 KB
15 # We will configure work area assuming 8-KB bank size in SRAM bank 1.
16 # Also SRAM start addresses defaults to secure mode alias.
17 # These values can be overridden as per board configuration
18 #
19
20 global _WORKAREASIZE_CPU0
21 if { [info exists WORKAREASIZE_CPU0] } {
22 set _WORKAREASIZE_CPU0 $WORKAREASIZE_CPU0
23 } else {
24 set _WORKAREASIZE_CPU0 0x1000
25 }
26
27 global _WORKAREAADDR_CPU0
28 if { [info exists WORKAREAADDR_CPU0] } {
29 set _WORKAREAADDR_CPU0 $WORKAREAADDR_CPU0
30 } else {
31 set _WORKAREAADDR_CPU0 0x30008000
32 }
33
34 #
35 # Target configuration for Cortex M33 Core 0 on ARM CoreLink SSE-200
36 # Core 0 is the boot core and will always be configured.
37 #
38
39 target create ${TARGET}.CPU0 cortex_m -dap $_CHIPNAME.dap -ap-num 1 -coreid 0
40
41 ${TARGET}.CPU0 configure -work-area-phys $_WORKAREAADDR_CPU0 -work-area-size $_WORKAREASIZE_CPU0 -work-area-backup 0
42
43 ${TARGET}.CPU0 cortex_m reset_config sysresetreq
44
45 #
46 # Target configuration for Cortex M33 Core 1 on ARM CoreLink SSE-200
47 # Core 1 is optional and locked at boot until core 0 unlocks it.
48 #
49
50 if { $_ENABLE_CPU1 } {
51 global _WORKAREASIZE_CPU1
52 if { [info exists WORKAREASIZE_CPU1] } {
53 set _WORKAREASIZE_CPU1 $WORKAREASIZE_CPU1
54 } else {
55 set _WORKAREASIZE_CPU1 0x1000
56 }
57
58 global _WORKAREAADDR_CPU1
59 if { [info exists WORKAREAADDR_CPU1] } {
60 set _WORKAREAADDR_CPU1 $WORKAREAADDR_CPU1
61 } else {
62 set _WORKAREAADDR_CPU1 0x30009000
63 }
64
65 target create ${TARGET}.CPU1 cortex_m -dap $_CHIPNAME.dap -ap-num 2 -coreid 1
66
67 ${TARGET}.CPU1 configure -work-area-phys $_WORKAREAADDR_CPU1 -work-area-size $_WORKAREASIZE_CPU1 -work-area-backup 0
68
69 ${TARGET}.CPU1 cortex_m reset_config vectreset
70 }
71
72 # Make sure the default target is the boot core
73 targets ${TARGET}.CPU0

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)