This is an automated email from Gerrit.

Spencer Oliver ([email protected]) just uploaded a new patch set to Gerrit, 
which you can find at http://openocd.zylin.com/353

-- gerrit

commit 55089f8ea055faca460082e9e3cc60994203767d
Author: Spencer Oliver <[email protected]>
Date:   Mon Jan 9 12:44:48 2012 +0000

    flash: stm32f2x incorrectly using 512 as max family size
    
    Change-Id: I2bac348c6d0baabd3d88335c5aa0a318ef66653a
    Signed-off-by: Spencer Oliver <[email protected]>

diff --git a/src/flash/nor/stm32f2x.c b/src/flash/nor/stm32f2x.c
index 3a9438e..03b13a6 100644
--- a/src/flash/nor/stm32f2x.c
+++ b/src/flash/nor/stm32f2x.c
@@ -602,15 +602,15 @@ static int stm32x_probe(struct flash_bank *bank)
                /* check for early silicon */
                if (flash_size_in_kb == 0xffff) {
                        /* number of sectors may be incorrrect on early silicon 
*/
-                       LOG_WARNING("STM32 flash size failed, probe inaccurate 
- assuming 512k flash");
-                       flash_size_in_kb = 512;
+                       LOG_WARNING("STM32 flash size failed, probe inaccurate 
- assuming 1024k flash");
+                       flash_size_in_kb = 1024;
                }
        } else if ((device_id & DEV_ID_MASK) == 0x413) {
                /* check for early silicon */
                if (flash_size_in_kb == 0xffff) {
                        /* number of sectors may be incorrrect on early silicon 
*/
-                       LOG_WARNING("STM32 flash size failed, probe inaccurate 
- assuming 512k flash");
-                       flash_size_in_kb = 512;
+                       LOG_WARNING("STM32 flash size failed, probe inaccurate 
- assuming 1024k flash");
+                       flash_size_in_kb = 1024;
                }
        } else {
                LOG_WARNING("Cannot identify target as a STM32 family.");
@@ -710,6 +710,10 @@ static int get_stm32x_info(struct flash_bank *bank, char 
*buf, int buf_size)
                                snprintf(buf, buf_size, "A");
                                break;
 
+                       case 0x1001:
+                               snprintf(buf, buf_size, "Z");
+                               break;
+
                        default:
                                snprintf(buf, buf_size, "unknown");
                                break;

-- 

------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to