From: Spencer Oliver Date: Mon, 10 Sep 2012 10:16:20 +0000 (+0100) Subject: flash: add stm32f3 rev 2 flash support X-Git-Tag: v0.7.0-rc1~228 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=0b98ca361090c9a407394da0b31938e46e1c4bf0;p=openocd flash: add stm32f3 rev 2 flash support Change-Id: Ibab5112f5f70a609136d01ebc50530a334640d03 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/809 Tested-by: jenkins Reviewed-by: Freddie Chopin --- diff --git a/src/flash/nor/stm32f1x.c b/src/flash/nor/stm32f1x.c index f077fe54..f6eb21b6 100644 --- a/src/flash/nor/stm32f1x.c +++ b/src/flash/nor/stm32f1x.c @@ -1142,6 +1142,10 @@ static int get_stm32x_info(struct flash_bank *bank, char *buf, int buf_size) snprintf(buf, buf_size, "1.0"); break; + case 0x2000: + snprintf(buf, buf_size, "2.0"); + break; + default: snprintf(buf, buf_size, "unknown"); break; @@ -1188,6 +1192,10 @@ static int get_stm32x_info(struct flash_bank *bank, char *buf, int buf_size) snprintf(buf, buf_size, "1.0"); break; + case 0x2000: + snprintf(buf, buf_size, "2.0"); + break; + default: snprintf(buf, buf_size, "unknown"); break;