From: Simon Barner Date: Fri, 16 Sep 2011 19:12:47 +0000 (+0200) Subject: arm-jtag-ew: Emit a warning if interface firmware version != 1.6 X-Git-Tag: v0.6.0-rc1~558 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b1c74747b634fab259ca1c16f298e97d274b18c5;p=openocd arm-jtag-ew: Emit a warning if interface firmware version != 1.6 --- 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; }