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

-- gerrit

commit 2577b96cc3b5c8e0f33044187201fc1651c64640
Author: Paul Fertser <[email protected]>
Date:   Sun May 10 13:12:14 2015 +0300

    jtag/drivers/stlink: fix SRST issue with stlink-v1
    
    Even though the latest firmware version for stlink-v1 supports "v2"
    JTAG API, the hardware SRST handling is still broken; amend the check
    accordingly.
    
    Change-Id: I62c662cd7aa209d2d6e9fe260f5c0be81d0ce672
    Signed-off-by: Paul Fertser <[email protected]>

diff --git a/src/jtag/drivers/stlink_usb.c b/src/jtag/drivers/stlink_usb.c
index 18498dd..e129e80 100644
--- a/src/jtag/drivers/stlink_usb.c
+++ b/src/jtag/drivers/stlink_usb.c
@@ -974,7 +974,7 @@ static int stlink_usb_assert_srst(void *handle, int srst)
 
        assert(handle != NULL);
 
-       if (h->jtag_api == STLINK_JTAG_API_V1)
+       if (h->version.stlink == 1)
                return ERROR_COMMAND_NOTFOUND;
 
        stlink_usb_init_buffer(handle, h->rx_ep, 2);

-- 

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to