Browse Source

flash: add missing stm32l medium+ device id

The device was correctly used in stm32lx_probe but missing from stm32lx_get_info.

Change-Id: If288b8df3210a945e727e4e27cfbdb948db32fc7
Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk>
Reviewed-on: http://openocd.zylin.com/1491
Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
Tested-by: jenkins
tags/v0.8.0-rc1
Spencer Oliver 10 years ago
parent
commit
9c298cd278
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      src/flash/nor/stm32lx.c

+ 2
- 1
src/flash/nor/stm32lx.c View File

@@ -739,7 +739,8 @@ static int stm32lx_get_info(struct flash_bank *bank, char *buf, int buf_size)
snprintf(buf, buf_size, "unknown");
break;
}
} else if ((device_id & 0xfff) == 0x436) {
} else if (((device_id & 0xfff) == 0x436) ||
((device_id & 0xfff) == 0x427)) {
printed = snprintf(buf, buf_size, "stm32lx (HD) - Rev: ");
buf += printed;
buf_size -= printed;


Loading…
Cancel
Save