]> git.sur5r.net Git - openocd/commitdiff
jlink: Add variant "J-Link Lite-XMC4200"
authorAndreas Färber <afaerber@suse.de>
Sat, 28 Feb 2015 00:23:34 +0000 (01:23 +0100)
committerPaul Fertser <fercerpav@gmail.com>
Mon, 9 Mar 2015 08:46:26 +0000 (08:46 +0000)
Avoids "J-Link hw type unknown 0x11" on various Infineon boards.

Change-Id: If20b9e21110d2acc02be57f5faf28c5e6a39e2c9
Signed-off-by: Andreas Färber <afaerber@suse.de>
Reviewed-on: http://openocd.zylin.com/2565
Tested-by: jenkins
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
src/jtag/drivers/jlink.c

index 40665c3e788e3d47c7d6963fafece1a7330dfb38..76592e2bf647c2ee29f95536df06f5e7f73530f7 100644 (file)
@@ -195,6 +195,7 @@ static const char * const jlink_cap_str[] = {
 #define JLINK_HW_TYPE_FLASHER                  2
 #define JLINK_HW_TYPE_JLINK_PRO                        3
 #define JLINK_HW_TYPE_JLINK_LITE_ADI   5
+#define JLINK_HW_TYPE_JLINK_LITE_XMC4200       17
 #define JLINK_HW_TYPE_LPCLINK2                 18
 
 /* Interface selection */
@@ -974,6 +975,9 @@ static int jlink_get_version_info(void)
                        case JLINK_HW_TYPE_JLINK_LITE_ADI:
                                LOG_INFO("J-Link hw type J-Link Lite-ADI");
                                break;
+                       case JLINK_HW_TYPE_JLINK_LITE_XMC4200:
+                               LOG_INFO("J-Link hw type J-Link Lite-XMC4200");
+                               break;
                        case JLINK_HW_TYPE_LPCLINK2:
                                LOG_INFO("J-Link hw type J-Link on LPC-Link2");
                                break;