stlink: Add another STLINK-V3 ID.
This commit is contained in:
parent
7307f086c6
commit
f28f05952f
|
@ -232,6 +232,7 @@ int find_debuggers(BMP_CL_OPTIONS_t *cl_opts,bmp_info_t *info)
|
||||||
if ((desc.idProduct == PRODUCT_ID_STLINKV2) ||
|
if ((desc.idProduct == PRODUCT_ID_STLINKV2) ||
|
||||||
(desc.idProduct == PRODUCT_ID_STLINKV21) ||
|
(desc.idProduct == PRODUCT_ID_STLINKV21) ||
|
||||||
(desc.idProduct == PRODUCT_ID_STLINKV21_MSD) ||
|
(desc.idProduct == PRODUCT_ID_STLINKV21_MSD) ||
|
||||||
|
(desc.idProduct == PRODUCT_ID_STLINKV3_NO_MSD) ||
|
||||||
(desc.idProduct == PRODUCT_ID_STLINKV3_BL) ||
|
(desc.idProduct == PRODUCT_ID_STLINKV3_BL) ||
|
||||||
(desc.idProduct == PRODUCT_ID_STLINKV3) ||
|
(desc.idProduct == PRODUCT_ID_STLINKV3) ||
|
||||||
(desc.idProduct == PRODUCT_ID_STLINKV3E)) {
|
(desc.idProduct == PRODUCT_ID_STLINKV3E)) {
|
||||||
|
|
|
@ -23,6 +23,7 @@ void platform_buffer_flush(void);
|
||||||
#define PRODUCT_ID_STLINKV2 0x3748
|
#define PRODUCT_ID_STLINKV2 0x3748
|
||||||
#define PRODUCT_ID_STLINKV21 0x374b
|
#define PRODUCT_ID_STLINKV21 0x374b
|
||||||
#define PRODUCT_ID_STLINKV21_MSD 0x3752
|
#define PRODUCT_ID_STLINKV21_MSD 0x3752
|
||||||
|
#define PRODUCT_ID_STLINKV3_NO_MSD 0x3754
|
||||||
#define PRODUCT_ID_STLINKV3_BL 0x374d
|
#define PRODUCT_ID_STLINKV3_BL 0x374d
|
||||||
#define PRODUCT_ID_STLINKV3 0x374f
|
#define PRODUCT_ID_STLINKV3 0x374f
|
||||||
#define PRODUCT_ID_STLINKV3E 0x374e
|
#define PRODUCT_ID_STLINKV3E 0x374e
|
||||||
|
|
|
@ -553,6 +553,7 @@ int stlink_init(bmp_info_t *info)
|
||||||
case PRODUCT_ID_STLINKV3_BL:
|
case PRODUCT_ID_STLINKV3_BL:
|
||||||
case PRODUCT_ID_STLINKV3:
|
case PRODUCT_ID_STLINKV3:
|
||||||
case PRODUCT_ID_STLINKV3E:
|
case PRODUCT_ID_STLINKV3E:
|
||||||
|
case PRODUCT_ID_STLINKV3_NO_MSD:
|
||||||
Stlink.ver_hw = 30;
|
Stlink.ver_hw = 30;
|
||||||
info->usb_link->ep_tx = 1;
|
info->usb_link->ep_tx = 1;
|
||||||
Stlink.ep_tx = 1;
|
Stlink.ep_tx = 1;
|
||||||
|
|
Loading…
Reference in New Issue