This is an automated email from Gerrit.

Kevin Gillespie ([email protected]) just uploaded a new patch set to Gerrit, 
which you can find at http://openocd.zylin.com/4686

-- gerrit

commit 5132f2c3ebd5ab5b52852d009cad96760ab01e54
Author: Kevin Gillespie <[email protected]>
Date:   Thu Oct 4 10:34:29 2018 -0500

    target/target.c: adding keep_alive() to while loop.
    
    Adding the call to keep_alive() to suppress warnings when
    running the async flash algorithm. Issue observed when
    loading large pieces of code on slower debuggers.
    
    Change-Id: I7660fa05f68ebd7be07b2ca0a55b0f3b6ae718f3
    Signed-off-by: Kevin Gillespie <[email protected]>

diff --git a/src/target/target.c b/src/target/target.c
index 478c39d..5996810 100644
--- a/src/target/target.c
+++ b/src/target/target.c
@@ -1045,6 +1045,9 @@ int target_run_flash_async_algorithm(struct target 
*target,
                retval = target_write_u32(target, wp_addr, wp);
                if (retval != ERROR_OK)
                        break;
+
+               /* Avoid GDB timeouts */
+               keep_alive();
        }
 
        if (retval != ERROR_OK) {

-- 


_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to