From 1fc3d8510d9c830db2585c34a6aee8322a2e163b Mon Sep 17 00:00:00 2001 From: Pavel Revak Date: Fri, 29 Nov 2019 19:38:48 +0100 Subject: [PATCH] support for stlink v3set with alternative frmware without mass storage (has different pid) --- swd/stlink/usb.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/swd/stlink/usb.py b/swd/stlink/usb.py index a0417dd..76a2cd6 100644 --- a/swd/stlink/usb.py +++ b/swd/stlink/usb.py @@ -121,7 +121,7 @@ class StlinkUsbV21M(StlinkUsbBase): class StlinkUsbV21(StlinkUsbBase): - """ST-Link/V2-1 USB communication""" + """ST-Link/V2-1 USB communication without mass storage""" ID_VENDOR = 0x0483 ID_PRODUCT = 0x3752 PIPE_OUT = 0x01 @@ -147,6 +147,15 @@ class StlinkUsbV3(StlinkUsbBase): DEV_NAME = "V3" +class StlinkUsbV3(StlinkUsbBase): + """ST-Link/V3 USB communication without mass storage""" + ID_VENDOR = 0x0483 + ID_PRODUCT = 0x3753 + PIPE_OUT = 0x01 + PIPE_IN = 0x81 + DEV_NAME = "V3" + + class StlinkUsb: """ST-Link communication class""" STLINK_MAXIMUM_TRANSFER_SIZE = 6144