X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2Fflash%2Fnor%2Fstm32lx.c;h=181c3118b47a82790c6ca429325c28661a6aa657;hp=b907ff224651c8f0e8c2c81dbac3f2f74f47ea73;hb=de353010c314130d9d45b080142c0a9a4ad0d447;hpb=0ce2ca748b502d09acf878c338fe23776cf6d8e2 diff --git a/src/flash/nor/stm32lx.c b/src/flash/nor/stm32lx.c index b907ff2246..181c3118b4 100644 --- a/src/flash/nor/stm32lx.c +++ b/src/flash/nor/stm32lx.c @@ -709,7 +709,7 @@ static int stm32lx_get_info(struct flash_bank *bank, char *buf, int buf_size) switch (device_id) { case 0x416: - device_str = "stm32lx"; + device_str = "STM32L1xx (Low/Medium Density)"; switch (rev_id) { case 0x1000: @@ -734,9 +734,18 @@ static int stm32lx_get_info(struct flash_bank *bank, char *buf, int buf_size) } break; - case 0x436: case 0x427: - device_str = "stm32lx (HD)"; + device_str = "STM32L1xx (Medium+ Density)"; + + switch (rev_id) { + case 0x1018: + rev_str = "A"; + break; + } + break; + + case 0x436: + device_str = "STM32L1xx (Medium+/High Density)"; switch (rev_id) { case 0x1000: @@ -754,7 +763,7 @@ static int stm32lx_get_info(struct flash_bank *bank, char *buf, int buf_size) break; default: - snprintf(buf, buf_size, "Cannot identify target as a stm32lx"); + snprintf(buf, buf_size, "Cannot identify target as a STM32L1"); return ERROR_FAIL; }