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://review.openocd.org/gitweb?p=openocd.git;a=commitdiff_plain;h=14c112e992c405442a751342bb6bca4adb0ae90a;ds=sidebyside 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 8c1aacad26..f0ab332fbd 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 */