This is an automated email from Gerrit.

Uwe Bonnes (b...@elektron.ikp.physik.tu-darmstadt.de) just uploaded a new patch 
set to Gerrit, which you can find at http://openocd.zylin.com/2456

-- gerrit

commit cd3ed5ec647d0840ed8e047f35a8a2a7cbc31538
Author: Uwe Bonnes <b...@elektron.ikp.physik.tu-darmstadt.de>
Date:   Fri Jan 9 11:16:04 2015 +0100

    stm32f09x: Print info in get_stm32x_info.
    
    Change-Id: I5f9b765fe04906e124e2c95ff6bf7193be9d4ce2
    Signed-off-by: Uwe Bonnes <b...@elektron.ikp.physik.tu-darmstadt.de>

diff --git a/src/flash/nor/stm32f1x.c b/src/flash/nor/stm32f1x.c
index a2bd2a2..6b5aafc 100644
--- a/src/flash/nor/stm32f1x.c
+++ b/src/flash/nor/stm32f1x.c
@@ -1273,6 +1273,20 @@ static int get_stm32x_info(struct flash_bank *bank, char 
*buf, int buf_size)
                }
                break;
 
+       case 0x442:
+               device_str = "STM32F09x";
+
+               switch (rev_id) {
+               case 0x1000:
+                       rev_str = "1.0";
+                       break;
+
+               case 0x2000:
+                       rev_str = "2.0";
+                       break;
+               }
+               break;
+
        default:
                snprintf(buf, buf_size, "Cannot identify target as a 
STM32F0/1/3\n");
                return ERROR_FAIL;

-- 

------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to