[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openocd-development
Subject:    [OpenOCD-devel] [PATCH]: 070d2d4 adi_v5_swd: Add error message when SWD fails to connect
From:       gerrit () openocd ! org (gerrit)
Date:       2017-10-25 10:39:41
Message-ID: 20171025103941.401972522D52 () mail ! openocd ! org
[Download RAW message or body]

This is an automated email from Gerrit.

Jonas Norling (jonas.norling@cyanconnode.com) just uploaded a new patch set to \
Gerrit, which you can find at http://openocd.zylin.com/4269

-- gerrit

commit 070d2d4e78c7b4137a50dbec782ccc45a3bfc9b3
Author: Jonas Norling <jonas.norling@cyanconnode.com>
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 <jonas.norling@cyanconnode.com>

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
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic