This is an automated email from Gerrit.

Jānis Skujenieks (janis.skujeni...@gmail.com) just uploaded a new patch set to 
Gerrit, which you can find at http://openocd.zylin.com/4822

-- gerrit

commit b35163a98ff86a5ee5547197b1376e245b1a76f6
Author: Jānis Skujenieks <janis.skujeni...@gmail.com>
Date:   Wed Dec 26 15:09:10 2018 +0200

    flash/nor/nrf5: set correct timeout for nvmc operations
    
    Longest erase all FLASH for nRF5 series is 295.3 ms for nRF52832.
    Timeout period now is set to 340 ms (295.3 + 15%)
    
    Change-Id: Iae00ed7b634f111b9798db11e35e4e066d4aaa95
    Signed-off-by: Jānis Skujenieks <janis.skujeni...@gmail.com>

diff --git a/src/flash/nor/nrf5.c b/src/flash/nor/nrf5.c
index de5c230..ba84c71 100644
--- a/src/flash/nor/nrf5.c
+++ b/src/flash/nor/nrf5.c
@@ -248,7 +248,7 @@ static int nrf5_wait_for_nvmc(struct nrf5_info *chip)
 {
        uint32_t ready;
        int res;
-       int timeout_ms = 200;
+       int timeout_ms = 340;
        int64_t ts_start = timeval_ms();
 
        do {

-- 


_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to