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:
parent
157f6f65d9
commit
2339fa00f3
1 changed files with 5 additions and 1 deletions
|
@ -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',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue