forked from auracaster/openocd
cfi: fix GDB keep alive bug
Long running CFI writes could cause GDB timeout. Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
This commit is contained in:
@@ -1232,6 +1232,8 @@ static int cfi_intel_write_block(struct flash_bank *bank, uint8_t *buffer, uint3
|
|||||||
buffer += thisrun_count;
|
buffer += thisrun_count;
|
||||||
address += thisrun_count;
|
address += thisrun_count;
|
||||||
count -= thisrun_count;
|
count -= thisrun_count;
|
||||||
|
|
||||||
|
keep_alive();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* free up resources */
|
/* free up resources */
|
||||||
|
|||||||
Reference in New Issue
Block a user