This is an automated email from Gerrit.

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

-- gerrit

commit 053e4701a28cea545b01dfd34165a6b2d619b9b3
Author: Spencer Oliver <[email protected]>
Date:   Fri Nov 9 12:01:19 2012 +0000

    jtag: enable connect under reset
    
    Currently if the target supports srst_nogate we wait until target 
assert_reset
    until we get a chance to assert the srst.
    However sometimes we will not get this far if the target has already failed
    the jtag_examine_chain.
    
    This has been tested on targets that support this behaviour (STM32 and 
STR9).
    
    Change-Id: Ibcf7584b137b472f31ba6ddd5cd99d848c5508d1
    Signed-off-by: Spencer Oliver <[email protected]>

diff --git a/src/jtag/core.c b/src/jtag/core.c
index 5d5803a..7fa302b 100644
--- a/src/jtag/core.c
+++ b/src/jtag/core.c
@@ -1549,7 +1549,11 @@ int jtag_init_reset(struct command_context *cmd_ctx)
                if ((jtag_reset_config & RESET_SRST_PULLS_TRST) == 0)
                        jtag_add_reset(0, 1);
        }
-       jtag_add_reset(0, 0);
+
+       if (jtag_reset_config & RESET_SRST_NO_GATING)
+               jtag_add_reset(0, 1);
+       else
+               jtag_add_reset(0, 0);
        retval = jtag_execute_queue();
        if (retval != ERROR_OK)
                return retval;
@@ -1572,6 +1576,9 @@ int jtag_init(struct command_context *cmd_ctx)
 
        /* guard against oddball hardware: force resets to be inactive */
        jtag_add_reset(0, 0);
+
+       if (jtag_reset_config & RESET_SRST_NO_GATING)
+               jtag_add_reset(0, 1);
        retval = jtag_execute_queue();
        if (retval != ERROR_OK)
                return retval;

-- 

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_nov
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to