mirror of
git://git.code.sf.net/p/openocd/code
synced 2025-07-19 08:38:14 +10:00
Extend HLA interface to allow multiple VID/PID pairs and use it to autodetect the connected stlink version. Change-Id: I35cd895b2260e23cf0e8fcb1fc11a78c2b99c69b Signed-off-by: Paul Fertser <fercerpav@gmail.com> Signed-off-by: Tomas Vanek <vanekt@fbl.cz> Reviewed-on: http://openocd.zylin.com/3961 Tested-by: jenkins Reviewed-by: Karl Palsson <karlp@tweak.net.au> Reviewed-by: Andreas Bolsch <hyphen0break@gmail.com> Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
18 lines
537 B
INI
18 lines
537 B
INI
#
|
|
# STMicroelectronics ST-LINK/V1, ST-LINK/V2, ST-LINK/V2-1 in-circuit
|
|
# debugger/programmer
|
|
#
|
|
|
|
interface hla
|
|
hla_layout stlink
|
|
hla_device_desc "ST-LINK"
|
|
hla_vid_pid 0x0483 0x3744 0x0483 0x3748 0x0483 0x374b
|
|
|
|
# Optionally specify the serial number of ST-LINK/V2 usb device. ST-LINK/V2
|
|
# devices seem to have serial numbers with unreadable characters. ST-LINK/V2
|
|
# firmware version >= V2.J21.S4 recommended to avoid issues with adapter serial
|
|
# number reset issues.
|
|
# eg.
|
|
#hla_serial "\xaa\xbc\x6e\x06\x50\x75\xff\x55\x17\x42\x19\x3f"
|
|
|