Re: [Openocd-development] [PATCH] keep FTDI bitbang status at shutdown

2009-05-20 Thread Rick Altherr


On Feb 23, 2009, at 2:46 AM, Holger Schurig wrote:


When I connected to my target and issue the "shutdown" command
via telnet, my target immediately freezes. However, I'd like to
use my target device, no matter if openOCD is debugging it or
not.

Ctrl-C doesn't send the target to nirvana, thought.


I tracked this down to a ftdi_disable_bitbang() call that is only
there in the BUILD_FT2232_LIBFTDI patch.



BTW: urjtag is even worse :-)
--- openocd.orig/src/jtag/ft2232.c
+++ openocd/src/jtag/ft2232.c
@@ -2328,8 +2328,6 @@

status = FT_Close(ftdih);
#elif BUILD_FT2232_LIBFTDI == 1
-   ftdi_disable_bitbang(&ftdic);
-
ftdi_usb_close(&ftdic);

ftdi_deinit(&ftdic);
___
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development



Committed revision 1869.

--
Rick Altherr
kc8...@kc8apf.net

"He said he hadn't had a byte in three days. I had a short, so I split  
it with him."

 -- Unsigned





smime.p7s
Description: S/MIME cryptographic signature
___
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development


[Openocd-development] [PATCH] keep FTDI bitbang status at shutdown

2009-02-23 Thread Holger Schurig
When I connected to my target and issue the "shutdown" command 
via telnet, my target immediately freezes. However, I'd like to 
use my target device, no matter if openOCD is debugging it or 
not.

Ctrl-C doesn't send the target to nirvana, thought.


I tracked this down to a ftdi_disable_bitbang() call that is only 
there in the BUILD_FT2232_LIBFTDI patch.



BTW: urjtag is even worse :-)
--- openocd.orig/src/jtag/ft2232.c
+++ openocd/src/jtag/ft2232.c
@@ -2328,8 +2328,6 @@
 
status = FT_Close(ftdih);
 #elif BUILD_FT2232_LIBFTDI == 1
-   ftdi_disable_bitbang(&ftdic);
-
ftdi_usb_close(&ftdic);
 
ftdi_deinit(&ftdic);
___
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development