Recognize "J-Trace Cortex-M PRO V2" in hosted mode

This commit is contained in:
Emilio Lopes 2020-12-07 11:05:38 +01:00 committed by UweBonnes
parent e65ee7124b
commit 633c6a2e81
1 changed files with 3 additions and 1 deletions

View File

@ -38,6 +38,7 @@
/* Only two devices PIDS tested so long */
#define USB_VID_SEGGER_0101 0x0101
#define USB_VID_SEGGER_0105 0x0105
#define USB_VID_SEGGER_1020 0x1020
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)
continue;
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;
int res = libusb_open(dev, &jl->ul_libusb_device_handle);
if (res != LIBUSB_SUCCESS)