From 2b90372b79a2ded27491bc35899cbd9c4bceca9a Mon Sep 17 00:00:00 2001 From: kc8apf Date: Wed, 22 Apr 2009 07:34:47 +0000 Subject: [PATCH] Shrink JLink buffer sizes to specified 2KB courtesy of Jeff Williams and Zach Welch git-svn-id: svn://svn.berlios.de/openocd/trunk@1504 b42882b7-edfa-0310-969c-e2dbd0fdcd60 --- src/jtag/jlink.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/jtag/jlink.c b/src/jtag/jlink.c index 022afe5f..9886c3b3 100644 --- a/src/jtag/jlink.c +++ b/src/jtag/jlink.c @@ -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 */ -- 2.39.5