This is an automated email from Gerrit.

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

-- gerrit

commit 070d2d4e78c7b4137a50dbec782ccc45a3bfc9b3
Author: Jonas Norling <[email protected]>
Date:   Wed Oct 25 10:38:49 2017 +0200

    adi_v5_swd: Add error message when SWD fails to connect
    
    Error message instead of failing silently.
    
    Change-Id: Ie54a5bf68459d3c0e96cc38080ffad8de0a4b5ce
    Signed-off-by: Jonas Norling <[email protected]>

diff --git a/src/target/adi_v5_swd.c b/src/target/adi_v5_swd.c
index 41ddbd7..9ac399c 100644
--- a/src/target/adi_v5_swd.c
+++ b/src/target/adi_v5_swd.c
@@ -136,8 +136,10 @@ static int swd_connect(struct adiv5_dap *dap)
        if (status == ERROR_OK) {
                LOG_INFO("SWD DPIDR %#8.8" PRIx32, dpidr);
                dap->do_reconnect = false;
-       } else
+       } else {
+               LOG_ERROR("SWD connect failed");
                dap->do_reconnect = true;
+       }
 
        return status;
 }

-- 

------------------------------------------------------------------------------
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