This is an automated email from Gerrit.

Attila Kinali (att...@kinali.ch) just uploaded a new patch set to Gerrit, which 
you can find at http://openocd.zylin.com/493

-- gerrit

commit 36b285dfb5af88bd8ea2fe8d1915450781f0a9c9
Author: Attila Kinali <att...@kinali.ch>
Date:   Tue Feb 28 09:44:25 2012 +0100

    SAM3S: correct flash sector sizes.
    
    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 <att...@kinali.ch>

diff --git a/src/flash/nor/at91sam3.c b/src/flash/nor/at91sam3.c
index 0fb8657..dbfda3d 100644
--- a/src/flash/nor/at91sam3.c
+++ b/src/flash/nor/at91sam3.c
@@ -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] = { */

-- 

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to