From: Øyvind Harboe Date: Wed, 5 May 2010 14:18:50 +0000 (+0200) Subject: cfi: fix GDB keep alive bug X-Git-Tag: v0.5.0-rc1~653 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=14c112e992c405442a751342bb6bca4adb0ae90a;p=openocd cfi: fix GDB keep alive bug Long running CFI writes could cause GDB timeout. Signed-off-by: Øyvind Harboe --- diff --git a/src/flash/nor/cfi.c b/src/flash/nor/cfi.c index 8c1aacad..f0ab332f 100644 --- a/src/flash/nor/cfi.c +++ b/src/flash/nor/cfi.c @@ -1232,6 +1232,8 @@ static int cfi_intel_write_block(struct flash_bank *bank, uint8_t *buffer, uint3 buffer += thisrun_count; address += thisrun_count; count -= thisrun_count; + + keep_alive(); } /* free up resources */