Skip to content

Commit 1fc3d85

Browse files
committed
support for stlink v3set with alternative frmware without mass storage (has different pid)
1 parent 366f587 commit 1fc3d85

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

swd/stlink/usb.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ class StlinkUsbV21M(StlinkUsbBase):
121121

122122

123123
class StlinkUsbV21(StlinkUsbBase):
124-
"""ST-Link/V2-1 USB communication"""
124+
"""ST-Link/V2-1 USB communication without mass storage"""
125125
ID_VENDOR = 0x0483
126126
ID_PRODUCT = 0x3752
127127
PIPE_OUT = 0x01
@@ -147,6 +147,15 @@ class StlinkUsbV3(StlinkUsbBase):
147147
DEV_NAME = "V3"
148148

149149

150+
class StlinkUsbV3(StlinkUsbBase):
151+
"""ST-Link/V3 USB communication without mass storage"""
152+
ID_VENDOR = 0x0483
153+
ID_PRODUCT = 0x3753
154+
PIPE_OUT = 0x01
155+
PIPE_IN = 0x81
156+
DEV_NAME = "V3"
157+
158+
150159
class StlinkUsb:
151160
"""ST-Link communication class"""
152161
STLINK_MAXIMUM_TRANSFER_SIZE = 6144

0 commit comments

Comments
 (0)