Atmel samd: add support for SAMD21 73/1873/2
authorAndrey Yurovsky <yurovsky@gmail.com>
Mon, 23 Dec 2013 18:27:28 +0000 (10:27 -0800)
committerSpencer Oliver <spen@spen-soft.co.uk>
Wed, 15 Jan 2014 11:38:25 +0000 (11:38 +0000)
Tested with SAMD21J18A on the SAMD21 Xplained Pro board.

Change-Id: Ice9ebcd229ed038b3193baf92d910f9256d7ce91
Signed-off-by: Andrey Yurovsky <yurovsky@gmail.com>
Reviewed-on: http://openocd.zylin.com/1873
Tested-by: jenkins
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
src/flash/nor/at91samd.c
tcl/board/atmel_samd21_xplained_pro.cfg [new file with mode: 0644]

index 86acbc097c7af9ca13fc2b7da2a21ffaa4eea232..5de5a9a8ac47b112d910ba9e39e0f9f4c8fa41a5 100644 (file)
@@ -60,6 +60,7 @@
 #define SAMD_PROCESSOR_M0      0x01
 #define SAMD_FAMILY_D          0x00
 #define SAMD_SERIES_20         0x00
+#define SAMD_SERIES_21      0x01
 
 struct samd_part {
        uint8_t id;
@@ -86,6 +87,25 @@ static struct samd_part samd20_parts[] = {
        { 0xE, "SAMD20E14A", 16, 2 },
 };
 
+/* Known SAMD21 parts. */
+static struct samd_part samd21_parts[] = {
+       { 0x0, "SAMD21J18A", 256, 32 },
+       { 0x1, "SAMD21J17A", 128, 16 },
+       { 0x2, "SAMD21J16A", 64, 8 },
+       { 0x3, "SAMD21J15A", 32, 4 },
+       { 0x4, "SAMD21J14A", 16, 2 },
+       { 0x5, "SAMD21G18A", 256, 32 },
+       { 0x6, "SAMD21G17A", 128, 16 },
+       { 0x7, "SAMD21G16A", 64, 8 },
+       { 0x8, "SAMD21G15A", 32, 4 },
+       { 0x9, "SAMD21G14A", 16, 2 },
+       { 0xA, "SAMD21E18A", 256, 32 },
+       { 0xB, "SAMD21E17A", 128, 16 },
+       { 0xC, "SAMD21E16A", 64, 8 },
+       { 0xD, "SAMD21E15A", 32, 4 },
+       { 0xE, "SAMD21E14A", 16, 2 },
+};
+
 /* Each family of parts contains a parts table in the DEVSEL field of DID.  The
  * processor ID, family ID, and series ID are used to determine which exact
  * family this is and then we can use the corresponding table. */
@@ -101,6 +121,8 @@ struct samd_family {
 static struct samd_family samd_families[] = {
        { SAMD_PROCESSOR_M0, SAMD_FAMILY_D, SAMD_SERIES_20,
                samd20_parts, ARRAY_SIZE(samd20_parts) },
+       { SAMD_PROCESSOR_M0, SAMD_FAMILY_D, SAMD_SERIES_21,
+               samd21_parts, ARRAY_SIZE(samd21_parts) },
 };
 
 struct samd_info {
diff --git a/tcl/board/atmel_samd21_xplained_pro.cfg b/tcl/board/atmel_samd21_xplained_pro.cfg
new file mode 100644 (file)
index 0000000..843b0ce
--- /dev/null
@@ -0,0 +1,10 @@
+#
+# Atmel SAMD21 Xplained Pro evaluation kit.
+#
+
+source [find interface/cmsis-dap.cfg]
+
+# chip name
+set CHIPNAME at91samd21j18
+
+source [find target/at91samdXX.cfg]

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)