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

-- gerrit

commit 021bddade361674058b505c99ac6e1d26e10544e
Author: Paul Fertser <[email protected]>
Date:   Sat May 11 15:55:20 2013 +0400

    cortex_m: do not try asserting SRST if it's not present
    
    Change-Id: Ib1c6f68feed0b8057d55afd5f260bb22ab332ced
    Signed-off-by: Paul Fertser <[email protected]>

diff --git a/src/target/cortex_m.c b/src/target/cortex_m.c
index 6fba925..9521085 100644
--- a/src/target/cortex_m.c
+++ b/src/target/cortex_m.c
@@ -989,7 +989,8 @@ static int cortex_m3_assert_reset(struct target *target)
 
        bool srst_asserted = false;
 
-       if (jtag_reset_config & RESET_SRST_NO_GATING) {
+       if ((jtag_reset_config & RESET_HAS_SRST) &&
+           (jtag_reset_config & RESET_SRST_NO_GATING)) {
                adapter_assert_reset();
                srst_asserted = true;
        }

-- 

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and 
their applications. This 200-page book is written by three acclaimed 
leaders in the field. The early access version is available now. 
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to