summaryrefslogtreecommitdiff
path: root/src/flash/nor
diff options
context:
space:
mode:
authorØyvind Harboe <oyvind.harboe@zylin.com>2010-05-05 16:18:50 +0200
committerØyvind Harboe <oyvind.harboe@zylin.com>2010-06-08 10:48:46 +0200
commit14c112e992c405442a751342bb6bca4adb0ae90a (patch)
tree677381c3dbf820675c1907de3b83ab913ec2681d /src/flash/nor
parent31bbb3cf0c9cffb98dbda1a357356bbf519a456f (diff)
downloadopenocd_libswd-14c112e992c405442a751342bb6bca4adb0ae90a.tar.gz
openocd_libswd-14c112e992c405442a751342bb6bca4adb0ae90a.tar.bz2
openocd_libswd-14c112e992c405442a751342bb6bca4adb0ae90a.tar.xz
openocd_libswd-14c112e992c405442a751342bb6bca4adb0ae90a.zip
cfi: fix GDB keep alive bug
Long running CFI writes could cause GDB timeout. Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
Diffstat (limited to 'src/flash/nor')
-rw-r--r--src/flash/nor/cfi.c2
1 files changed, 2 insertions, 0 deletions
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 */