SAM3S: correct flash sector sizes.
authorAttila Kinali <attila@kinali.ch>
Tue, 28 Feb 2012 08:44:25 +0000 (09:44 +0100)
committerSpencer Oliver <spen@spen-soft.co.uk>
Tue, 6 Mar 2012 13:30:22 +0000 (13:30 +0000)
Lock region count and sector sizes did not match datasheet.
(see 6500C-ATARM-8FE11 "SAM3S Series Datasheet", Table 7-1)

Change-Id: Ic511802f96ed03856467a24a6736349205a0576a
Signed-off-by: Attila Kinali <attila@kinali.ch>
Reviewed-on: http://openocd.zylin.com/493
Tested-by: jenkins
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
src/flash/nor/at91sam3.c

index 0fb8657fce575d9eb83a37a523528d0f793d3627..dbfda3de2d150e36f405b23d76eaa9bc5ace5e49 100644 (file)
@@ -576,8 +576,8 @@ static const struct sam3_chip_details all_sam3_details[] = {
                                .flash_wait_states = 6, /* workaround silicon bug */
                                .present = 1,
                                .size_bytes = 256 * 1024,
-                               .nsectors   = 32,
-                               .sector_size = 8192,
+                               .nsectors   = 16,
+                               .sector_size = 16384,
                                .page_size   = 256,
                        },
 /*             .bank[1] = { */
@@ -609,8 +609,8 @@ static const struct sam3_chip_details all_sam3_details[] = {
                                .flash_wait_states = 6, /* workaround silicon bug */
                                .present = 1,
                                .size_bytes = 256 * 1024,
-                               .nsectors   = 32,
-                               .sector_size = 8192,
+                               .nsectors   = 16,
+                               .sector_size = 16384,
                                .page_size   = 256,
                        },
 /*             .bank[1] = { */
@@ -641,8 +641,8 @@ static const struct sam3_chip_details all_sam3_details[] = {
                                .flash_wait_states = 6, /* workaround silicon bug */
                                .present = 1,
                                .size_bytes = 256 * 1024,
-                               .nsectors   = 32,
-                               .sector_size = 8192,
+                               .nsectors   = 16,
+                               .sector_size = 16384,
                                .page_size   = 256,
                        },
 /*             .bank[1] = { */
@@ -673,8 +673,8 @@ static const struct sam3_chip_details all_sam3_details[] = {
                                .flash_wait_states = 6, /* workaround silicon bug */
                                .present = 1,
                                .size_bytes = 128 * 1024,
-                               .nsectors   = 16,
-                               .sector_size = 8192,
+                               .nsectors   = 8,
+                               .sector_size = 16384,
                                .page_size   = 256,
                        },
 /*             .bank[1] = { */
@@ -705,8 +705,8 @@ static const struct sam3_chip_details all_sam3_details[] = {
                                .flash_wait_states = 6, /* workaround silicon bug */
                                .present = 1,
                                .size_bytes = 128 * 1024,
-                               .nsectors   = 16,
-                               .sector_size = 8192,
+                               .nsectors   = 8,
+                               .sector_size = 16384,
                                .page_size   = 256,
                        },
 /*             .bank[1] = { */
@@ -737,8 +737,8 @@ static const struct sam3_chip_details all_sam3_details[] = {
                                .flash_wait_states = 6, /* workaround silicon bug */
                                .present = 1,
                                .size_bytes = 128 * 1024,
-                               .nsectors   = 16,
-                               .sector_size = 8192,
+                               .nsectors   = 8,
+                               .sector_size = 16384,
                                .page_size   = 256,
                        },
 /*             .bank[1] = { */
@@ -769,8 +769,8 @@ static const struct sam3_chip_details all_sam3_details[] = {
                                .flash_wait_states = 6, /* workaround silicon bug */
                                .present = 1,
                                .size_bytes = 64 * 1024,
-                               .nsectors   = 8,
-                               .sector_size = 8192,
+                               .nsectors   = 4,
+                               .sector_size = 16384,
                                .page_size   = 256,
                        },
 /*             .bank[1] = { */
@@ -801,8 +801,8 @@ static const struct sam3_chip_details all_sam3_details[] = {
                                .flash_wait_states = 6, /* workaround silicon bug */
                                .present = 1,
                                .size_bytes = 64 * 1024,
-                               .nsectors   = 8,
-                               .sector_size = 8192,
+                               .nsectors   = 4,
+                               .sector_size = 16384,
                                .page_size   = 256,
                        },
 /*             .bank[1] = { */
@@ -833,8 +833,8 @@ static const struct sam3_chip_details all_sam3_details[] = {
                                .flash_wait_states = 6, /* workaround silicon bug */
                                .present = 1,
                                .size_bytes = 64 * 1024,
-                               .nsectors   = 8,
-                               .sector_size = 8192,
+                               .nsectors   = 4,
+                               .sector_size = 16384,
                                .page_size   = 256,
                        },
 /*             .bank[1] = { */

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)