stm32f09x: Print info in get_stm32x_info.
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>
This commit is contained in:
parent
0d9ecc42d1
commit
5420ff3638
|
@ -1273,6 +1273,20 @@ static int get_stm32x_info(struct flash_bank *bank, char *buf, int buf_size)
|
||||||
}
|
}
|
||||||
break;
|
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:
|
default:
|
||||||
snprintf(buf, buf_size, "Cannot identify target as a STM32F0/1/3\n");
|
snprintf(buf, buf_size, "Cannot identify target as a STM32F0/1/3\n");
|
||||||
return ERROR_FAIL;
|
return ERROR_FAIL;
|
||||||
|
|
Loading…
Reference in New Issue