tcl: Add support for NDS V5 target and xc7/Corvette-F1 38/5338/5
authorHellosun Wu <wujiheng.tw@gmail.com>
Tue, 29 Oct 2019 05:36:31 +0000 (13:36 +0800)
committerAntonio Borneo <borneo.antonio@gmail.com>
Sun, 16 Aug 2020 10:48:53 +0000 (11:48 +0100)
The "Corvette-F1" is an Arduino-compatible evaluation platform,
which fully supports AndesCore. The board has FTDI FT2232 to
connected to FPGA's JTAG interface.

The "ADP-XC7KFF676" is a development and prototyping board that
provides capacity for evaluation of AndesCore processors.
It works with AICE in-circuit debugging tools.

This patch also include target/nds32v5.cfg to support AndesCore
N22/N25F and AndeShape Platform AE250.

Change-Id: I144d5063d5086d00ec44634a5028b5ea5d2eba33
Signed-off-by: Hellosun Wu <wujiheng.tw@gmail.com>
Reviewed-on: http://openocd.zylin.com/5338
Tested-by: jenkins
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
tcl/board/nds32_corvettef1.cfg [new file with mode: 0644]
tcl/board/nds32_xc7.cfg [new file with mode: 0644]
tcl/target/nds32v5.cfg [new file with mode: 0644]

diff --git a/tcl/board/nds32_corvettef1.cfg b/tcl/board/nds32_corvettef1.cfg
new file mode 100644 (file)
index 0000000..1a3782c
--- /dev/null
@@ -0,0 +1,18 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+# ADP-Corvette-F1 R1.0
+# http://www.andestech.com/en/products-solutions/andeshape-platforms/corvette-f1-r1/
+# ADP-Corvette-F1 R2.0
+# http://www.andestech.com/en/products-solutions/andeshape-platforms/corvette-f1-r2/
+
+adapter_khz     10000
+
+adapter driver ftdi
+ftdi_device_desc "Dual RS232-HS"
+ftdi_vid_pid 0x0403 0x6010
+
+ftdi_layout_init 0x0c08 0x0f1b
+ftdi_layout_signal nTRST -data 0x0100 -noe 0x0400
+ftdi_layout_signal nSRST -data 0x0200 -noe 0x0800
+reset_config srst_only
+
+source [find target/nds32v5.cfg]
diff --git a/tcl/board/nds32_xc7.cfg b/tcl/board/nds32_xc7.cfg
new file mode 100644 (file)
index 0000000..82c00ac
--- /dev/null
@@ -0,0 +1,5 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+# ADP-XC7K160/410
+# http://www.andestech.com/en/products-solutions/andeshape-platforms/adp-xc7k160-410/
+
+source [find target/nds32v5.cfg]
diff --git a/tcl/target/nds32v5.cfg b/tcl/target/nds32v5.cfg
new file mode 100644 (file)
index 0000000..56b5fed
--- /dev/null
@@ -0,0 +1,12 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+#
+# Andes Core
+#
+# http://www.andestech.com
+#
+
+set _CHIPNAME nds
+jtag newtap $_CHIPNAME cpu -irlen 5 -expected-id 0x1000563D
+
+set _TARGETNAME $_CHIPNAME.cpu
+target create $_TARGETNAME riscv -chain-position $_TARGETNAME

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)