There was a bug in the ft2232 driver where it did not
return an error in the khz==0 (RCLK) case, but rather
caused a division by 0 fault.

I've just committed a fix.

Index: C:/workspace/openocd/src/jtag/ft2232.c
===================================================================
--- C:/workspace/openocd/src/jtag/ft2232.c      (revision 963)
+++ C:/workspace/openocd/src/jtag/ft2232.c      (working copy)
@@ -273,6 +273,11 @@

 int ft2232_khz(int khz, int *jtag_speed)
 {
+       if (khz==0)
+       {
+               LOG_ERROR("RCLK not supported");
+               return ERROR_FAIL;
+       }
        /* Take a look in the FT2232 manual,
         * AN2232C-01 Command Processor for
         * MPSSE and MCU Host Bus. Chapter 3.8

-- 
Øyvind Harboe
http://www.zylin.com/zy1000.html
ARM7 ARM9 XScale Cortex
JTAG debugger and flash programmer
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to