Skip to content

Commit

Permalink
support for stlink v3set with alternative frmware without mass storag…
Browse files Browse the repository at this point in the history
…e (has different pid)
  • Loading branch information
pavelrevak committed Nov 29, 2019
1 parent 366f587 commit 1fc3d85
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion swd/stlink/usb.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 1fc3d85

Please sign in to comment.