This is an automated email from Gerrit.

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

-- gerrit

commit 51bfc2751b898924d4c55229b0e07cdbc5f112e2
Author: Paul Fertser <[email protected]>
Date:   Sat Jan 20 21:05:46 2018 +0300

    jtag: drivers: stlink: ignore write verify error
    
    This looks like some inappropriate stlink (mis-)feature and it messes
    operations for writing to certain memory-mapped registers.
    
    Discussed at https://forum.sparkfun.com/viewtopic.php?f=18&t=44949 .
    Also known to be problematic for working with Kinetis parts.
    
    Reported by robertfoss_ on IRC.
    
    Change-Id: I8633aed13346c596000ba6c377758e1bb96db73f
    Signed-off-by: Paul Fertser <[email protected]>

diff --git a/src/jtag/drivers/stlink_usb.c b/src/jtag/drivers/stlink_usb.c
index 6f720b8..99f96b9 100644
--- a/src/jtag/drivers/stlink_usb.c
+++ b/src/jtag/drivers/stlink_usb.c
@@ -457,8 +457,8 @@ static int stlink_usb_error_check(void *handle)
                        LOG_DEBUG("Write error");
                        return ERROR_FAIL;
                case STLINK_JTAG_WRITE_VERIF_ERROR:
-                       LOG_DEBUG("Verify error");
-                       return ERROR_FAIL;
+                       LOG_DEBUG("Write verify error, ignoring");
+                       return ERROR_OK;
                case STLINK_SWD_AP_FAULT:
                        /* git://git.ac6.fr/openocd commit 657e3e885b9ee10
                         * returns ERROR_OK with the comment:

-- 

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to