From: Spencer Oliver Date: Thu, 12 Jul 2012 11:15:26 +0000 (+0100) Subject: flash: add stm32l Revision X support X-Git-Tag: v0.6.0-rc1~23 X-Git-Url: https://review.openocd.org/gitweb?a=commitdiff_plain;ds=sidebyside;h=fe583e78c264156544e1797979afb63f2962d109;p=openocd.git flash: add stm32l Revision X support Revision X is not mentioned in the latest RM0038 rev5, however it has been confirmed correct by ST using ST-LINK Utilty. Change-Id: I65210e512ea25818a1d0d3b223502ebd7535b29d Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/742 Tested-by: jenkins Reviewed-by: Andreas Fritiofson Reviewed-by: Freddie Chopin --- diff --git a/src/flash/nor/stm32lx.c b/src/flash/nor/stm32lx.c index 3bc6eed970..716517b14c 100644 --- a/src/flash/nor/stm32lx.c +++ b/src/flash/nor/stm32lx.c @@ -618,6 +618,10 @@ static int stm32lx_get_info(struct flash_bank *bank, char *buf, int buf_size) snprintf(buf, buf_size, "Y"); break; + case 0x1018: + snprintf(buf, buf_size, "X"); + break; + case 0x1038: snprintf(buf, buf_size, "W"); break;