Hi all,

This is another easy to extract portion of patch Jeff Williams' patch.
It reduces the buffers to the 2KB specified in the specification.

I have not tested it, but I verified that the specification says 2KB.
It does, so this seems like it has the potential to have an impact.

Cheers,

Zach
--- src/jtag/jlink.c	(revision 1433)
+++ src/jtag/jlink.c	(working copy)
@@ -42,8 +42,9 @@
 
 #define JLINK_USB_TIMEOUT		1000
 
-#define JLINK_IN_BUFFER_SIZE			8192
-#define JLINK_OUT_BUFFER_SIZE			8192
+// See Section 1.3.2 of the Segger JLink USB protocol manual
+#define JLINK_IN_BUFFER_SIZE			2048
+#define JLINK_OUT_BUFFER_SIZE			2048
 #define JLINK_EMU_RESULT_BUFFER_SIZE	64
 
 /* Global USB buffers */
_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to