This is an automated email from Gerrit.

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

-- gerrit

commit 434ecea7138f55201c3767823b4cea5ed1bdce04
Author: Matthias Welwarsky <[email protected]>
Date:   Tue Feb 9 14:49:20 2016 +0100

    cortex_a: fix cortex_a_assert_reset() if srst_gates_jtag
    
    The cortex_a specific assert_reset function must only apply nSRST if
    the reset configuration states that JTAG can be used while nSRST is
    asserted.
    
    Change-Id: If604a65fdea5bcb46ec723ada547a4e8d6fa8c59
    Signed-off-by: Matthias Welwarsky <[email protected]>

diff --git a/src/target/cortex_a.c b/src/target/cortex_a.c
index 76c608e..881641f 100644
--- a/src/target/cortex_a.c
+++ b/src/target/cortex_a.c
@@ -1910,7 +1910,9 @@ static int cortex_a_assert_reset(struct target *target)
                /* REVISIT handle "pulls" cases, if there's
                 * hardware that needs them to work.
                 */
-               jtag_add_reset(0, 1);
+               if (target->reset_halt)
+                       if (jtag_get_reset_config() & RESET_SRST_NO_GATING)
+                               jtag_add_reset(0, 1);
        } else {
                LOG_ERROR("%s: how to reset?", target_name(target));
                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