]> git.sur5r.net Git - openocd/commitdiff
stm32f09x: Print info in get_stm32x_info.
authorUwe Bonnes <bon@elektron.ikp.physik.tu-darmstadt.de>
Fri, 9 Jan 2015 10:16:04 +0000 (11:16 +0100)
committerSpencer Oliver <spen@spen-soft.co.uk>
Mon, 26 Jan 2015 20:55:17 +0000 (20:55 +0000)
Change-Id: I5f9b765fe04906e124e2c95ff6bf7193be9d4ce2
Signed-off-by: Uwe Bonnes <bon@elektron.ikp.physik.tu-darmstadt.de>
Reviewed-on: http://openocd.zylin.com/2456
Tested-by: jenkins
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
src/flash/nor/stm32f1x.c

index a2bd2a2b08624cefb507d9965a990c40c9f78f6e..6b5aafc1edebeb11d178451d32a03b9be4cdceac 100644 (file)
@@ -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;