From b1c74747b634fab259ca1c16f298e97d274b18c5 Mon Sep 17 00:00:00 2001 From: Simon Barner Date: Fri, 16 Sep 2011 21:12:47 +0200 Subject: [PATCH] arm-jtag-ew: Emit a warning if interface firmware version != 1.6 --- src/jtag/drivers/arm-jtag-ew.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/jtag/drivers/arm-jtag-ew.c b/src/jtag/drivers/arm-jtag-ew.c index 52933651..7712a9e2 100644 --- a/src/jtag/drivers/arm-jtag-ew.c +++ b/src/jtag/drivers/arm-jtag-ew.c @@ -496,6 +496,11 @@ static int armjtagew_get_version_info(void) usb_in_buffer[1], usb_in_buffer[0], \ isgraph(usb_in_buffer[2]) ? usb_in_buffer[2] : 'X', \ sn, auxinfo); + + if (1 != usb_in_buffer[1] || 6 != usb_in_buffer[0]) + { + LOG_WARNING("ARM-JTAG-EW firmware version %d.%d is untested with this version of OpenOCD. You might experience unexpected behavior.", usb_in_buffer[1], usb_in_buffer[0]); + } return ERROR_OK; } -- 2.39.5