This is an automated email from Gerrit.

Philipp Wagner ([email protected]) just uploaded a new patch set to 
Gerrit, which you can find at http://openocd.zylin.com/2837

-- gerrit

commit b84fde0a365a39c523af663e8ecf7a4bd04fe8f1
Author: Philipp Wagner <[email protected]>
Date:   Tue Jun 23 16:49:22 2015 +0200

    tcl_server: Increase line buffer to 4M
    
    Currently, the maximum size of a command sent to the TCL server is
    4k. This patch increases this limit to 4M.
    
    Reasoning:
    To get high-speed JTAG data transfers, I'm using a very long shift
    register. This reduces the overhead of the state changes, as well as the
    latency due to the common USB adapter transfers considerably. In order
    to submit those long DRSCAN commands to OpenOCD over the TCL/TCL
    interface, long TCL command lines are required. This is enabled by this
    patch.
    
    Obviously the patch increases the memory footprint of OpenOCD by 4M-4k
    bytes. I would assume that is reasonable on a standard desktop machine.
    
    Change-Id: Iecaef6a56ed5e18e9de4d912a514031ea78fa3bd
    Signed-off-by: Philipp Wagner <[email protected]>

diff --git a/src/server/tcl_server.c b/src/server/tcl_server.c
index 65f71cc..eff4698 100644
--- a/src/server/tcl_server.c
+++ b/src/server/tcl_server.c
@@ -26,7 +26,7 @@
 #include <target/target.h>
 
 #define TCL_SERVER_VERSION             "TCL Server 0.1"
-#define TCL_MAX_LINE                   (4096)
+#define TCL_MAX_LINE                   (4*1024*1024)
 
 struct tcl_connection {
        int tc_linedrop;

-- 

------------------------------------------------------------------------------
Monitor 25 network devices or servers for free with OpManager!
OpManager is web-based network management software that monitors 
network devices and physical & virtual servers, alerts via email & sms 
for fault. Monitor 25 devices for free with no restriction. Download now
http://ad.doubleclick.net/ddm/clk/292181274;119417398;o
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to