scripts: sanitylib.py: Add support for STLINK-V3 probe

Recent ST boards embed the new ST-Link probe V3.
It is advertised as "STLINK-V3", update sanitylmib to take it
into account.
In handle function, it is proposed to treat it separately as current
"STM32 STLink" as processing might differ in next future (hla_serial
deprecation).

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
This commit is contained in:
Erwan Gouriou 2020-07-07 17:15:22 +02:00 committed by Anas Nashif
commit 2339fa00f3

View file

@ -589,6 +589,10 @@ class DeviceHandler(Handler):
command.append('--')
command.append("--cmd-pre-init")
command.append("hla_serial %s" % (board_id))
elif runner == "openocd" and product == "STLINK-V3":
command.append('--')
command.append("--cmd-pre-init")
command.append("hla_serial %s" % (board_id))
elif runner == "openocd" and product == "EDBG CMSIS-DAP":
command.append('--')
command.append("--cmd-pre-init")
@ -3361,7 +3365,7 @@ class HardwareMap:
'J-Link OB'
],
'openocd': [
'STM32 STLink', '^XDS110.*'
'STM32 STLink', '^XDS110.*', 'STLINK-V3'
],
'dediprog': [
'TTL232R-3V3',