Recognize "J-Trace Cortex-M PRO V2" in hosted mode
This commit is contained in:
parent
e65ee7124b
commit
633c6a2e81
|
@ -38,6 +38,7 @@
|
||||||
/* Only two devices PIDS tested so long */
|
/* Only two devices PIDS tested so long */
|
||||||
#define USB_VID_SEGGER_0101 0x0101
|
#define USB_VID_SEGGER_0101 0x0101
|
||||||
#define USB_VID_SEGGER_0105 0x0105
|
#define USB_VID_SEGGER_0105 0x0105
|
||||||
|
#define USB_VID_SEGGER_1020 0x1020
|
||||||
|
|
||||||
static void jlink_print_caps(bmp_info_t *info)
|
static void jlink_print_caps(bmp_info_t *info)
|
||||||
{
|
{
|
||||||
|
@ -175,7 +176,8 @@ int jlink_init(bmp_info_t *info)
|
||||||
if (desc.idVendor != USB_PID_SEGGER)
|
if (desc.idVendor != USB_PID_SEGGER)
|
||||||
continue;
|
continue;
|
||||||
if ((desc.idProduct != USB_VID_SEGGER_0101) &&
|
if ((desc.idProduct != USB_VID_SEGGER_0101) &&
|
||||||
(desc.idProduct != USB_VID_SEGGER_0105))
|
(desc.idProduct != USB_VID_SEGGER_0105) &&
|
||||||
|
(desc.idProduct != USB_VID_SEGGER_1020))
|
||||||
continue;
|
continue;
|
||||||
int res = libusb_open(dev, &jl->ul_libusb_device_handle);
|
int res = libusb_open(dev, &jl->ul_libusb_device_handle);
|
||||||
if (res != LIBUSB_SUCCESS)
|
if (res != LIBUSB_SUCCESS)
|
||||||
|
|
Loading…
Reference in New Issue