From 006a1084949208f2f83aecf7f5467ea76f89f52a Mon Sep 17 00:00:00 2001 From: Peter Horn Date: Mon, 8 Oct 2012 20:55:01 +0200 Subject: [PATCH] rlink: Fix DTC command timeout With the current timeout setting i = 10 in drtc_run_timeout() I get "Error: too many retries waiting for DTC status" when loading a program into the FLASH of an STM32F1. By experimentation a value of i = 22 was found to be the minimum on my system. Therefore the value has been increased to i = 50. Change-Id: Ib67fc648ccaad305871b81c2c39e49de53c330a0 Signed-off-by: Peter Horn Reviewed-on: http://openocd.zylin.com/863 Tested-by: jenkins Reviewed-by: Spencer Oliver --- src/jtag/drivers/rlink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jtag/drivers/rlink.c b/src/jtag/drivers/rlink.c index 8a8c8c1f0..0bfe8beaa 100644 --- a/src/jtag/drivers/rlink.c +++ b/src/jtag/drivers/rlink.c @@ -482,7 +482,7 @@ static int dtc_run_download( /* Wait for DTC to finish running command buffer */ - for (i = 10;; ) { + for (i = 50;; ) { usb_err = ep1_generic_commandl( pHDev_param, 4, -- 2.11.4.GIT