The offending code is called from this function:
static int ft2232_init_ftd2xx(uint16_t vid, uint16_t pid, int more, int*
try_more)

And the actual function call is here:
status = FT_OpenEx(openex_string, openex_flags, &ftdih);

ftd2xx is a closed source library. However, openocd should not rely on
any libraries to properly reset a chip since these libraries do not know
what is a 'proper reset.' Openocd knows how it should reset the chip
from *.tcl scripts. So I propose to add a reset after ft2232_init (or
any other generic libs such as libftdi*) and before the first JTAG scan
to properly reset devices on the scan chain.


On Tue, 2009-09-22 at 07:51 +0200, Øyvind Harboe wrote:
> Have you tried firing up openocd in the debugger?
> 
> CFLAGS="-O0 -g" configure ...
> 
> insight --args openocd args
> 
> Hook up scope and set a breakpoint in main(), start debugging...
> 
> 
> 

_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to