This is an automated email from Gerrit.

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

-- gerrit

commit d74d80dab6a59cb728800002560d4fd349e72cc2
Author: Uwe Bonnes <[email protected]>
Date:   Wed Mar 2 12:54:07 2016 +0100

    stlink: Change in error status when reading outside RAM.
    
    Taken from git://git.ac6.fr/openocd commit 657e3e885b9ee10.
    This fix allows CDT plugin to visualize memory.
    
    Change-Id: Id8e220961b748ef9467fd84de62b1dc84ace63f8
    Signed-off-by: Uwe Bonnes <[email protected]>

diff --git a/src/jtag/drivers/stlink_usb.c b/src/jtag/drivers/stlink_usb.c
index a4847ab..4fcb5d1 100644
--- a/src/jtag/drivers/stlink_usb.c
+++ b/src/jtag/drivers/stlink_usb.c
@@ -135,6 +135,7 @@ struct stlink_usb_handle_s {
 #define STLINK_DEBUG_ERR_OK            0x80
 #define STLINK_DEBUG_ERR_FAULT         0x81
 #define STLINK_SWD_AP_WAIT             0x10
+#define STLINK_SWD_AP_FAULT            0x11
 #define STLINK_JTAG_WRITE_ERROR        0x0c
 #define STLINK_JTAG_WRITE_VERIF_ERROR  0x0d
 #define STLINK_SWD_DP_WAIT             0x14
@@ -398,6 +399,9 @@ static int stlink_usb_error_check(void *handle)
                case STLINK_JTAG_WRITE_VERIF_ERROR:
                        LOG_DEBUG("Verify error");
                        return ERROR_FAIL;
+               case STLINK_SWD_AP_FAULT:
+                       LOG_DEBUG("STLINK_SWD_AP_FAULT");
+                       return ERROR_OK;
                default:
                        LOG_DEBUG("unknown/unexpected STLINK status code 0x%x", 
h->databuf[0]);
                        return ERROR_FAIL;

-- 

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to