arm-jtag-ew: Emit a warning if interface firmware version != 1.6
authorSimon Barner <barner@gmx.de>
Fri, 16 Sep 2011 19:12:47 +0000 (21:12 +0200)
committerAndreas Fritiofson <andreas.fritiofson@gmail.com>
Sat, 8 Oct 2011 21:09:30 +0000 (23:09 +0200)
src/jtag/drivers/arm-jtag-ew.c

index 52933651fc72fb53f0a17853080ed120c74a4278..7712a9e2009e31795c3d15b034fa5432a72ccabe 100644 (file)
@@ -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;
 }