diff options
author | Edward Fewell <efewell@ti.com> | 2020-05-14 15:49:15 -0500 |
---|---|---|
committer | Antonio Borneo <borneo.antonio@gmail.com> | 2020-05-24 21:26:26 +0100 |
commit | 763f2549ad4f9d3d59c472f79b4f9b37abb276ae (patch) | |
tree | 8716e324f96e690a9c3c63589226e30046d88187 /src | |
parent | 9a5af06f821e2c61adbf2b5cac720ba8d608a014 (diff) | |
download | riscv-openocd-763f2549ad4f9d3d59c472f79b4f9b37abb276ae.zip riscv-openocd-763f2549ad4f9d3d59c472f79b4f9b37abb276ae.tar.gz riscv-openocd-763f2549ad4f9d3d59c472f79b4f9b37abb276ae.tar.bz2 |
nor/flash: Add keep_alive() during flash write handler
Added keep_alive() call inside main flash write loop. Large
files where causing a gdb timeout warning.
Change-Id: I525dad2d644e248dd9ecf678e4d8e33c22eefdf2
Signed-off-by: Edward Fewell <efewell@ti.com>
Reviewed-on: http://openocd.zylin.com/5682
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
Tested-by: jenkins
Reviewed-by: Tarek BOCHKATI <tarek.bouchkati@gmail.com>
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
Diffstat (limited to 'src')
-rw-r--r-- | src/flash/nor/cc3220sf.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/flash/nor/cc3220sf.c b/src/flash/nor/cc3220sf.c index afdb7f4..c8de7d0 100644 --- a/src/flash/nor/cc3220sf.c +++ b/src/flash/nor/cc3220sf.c @@ -363,6 +363,8 @@ static int cc3220sf_write(struct flash_bank *bank, const uint8_t *buffer, LOG_ERROR("cc3220sf: Flash operation failed"); break; } + + keep_alive(); } /* Do one word write for any final bytes less than a full word */ |