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

-- gerrit

commit ef20b009756aa638ad5d8f2d14436fb15a7f4fca
Author: Matthias Welwarsky <[email protected]>
Date:   Mon Oct 1 14:03:19 2018 +0200

    target: initialize DAPs after reset
    
    Initialize DAPs not only on first connect but also whenever the target
    is reset through SRST.
    
    Change-Id: I1e3ff33de3bba824f174b077ed3a360efd76f32d
    Signed-off-by: Matthias Welwarsky <[email protected]>

diff --git a/src/target/startup.tcl b/src/target/startup.tcl
index d9d2241..d29f8b5 100644
--- a/src/target/startup.tcl
+++ b/src/target/startup.tcl
@@ -81,6 +81,9 @@ proc ocd_process_reset_inner { MODE } {
                # TAP reset events get reported; they might enable some taps.
                init_reset $MODE
 
+               # after resetting the JTAG chain, re-initialize all existing 
DAPs
+               dap init
+
                # Examine all targets on enabled taps.
                arp_examine_all
        }
@@ -109,6 +112,7 @@ proc ocd_process_reset_inner { MODE } {
        reset_deassert_initial $MODE
        if { !$early_reset_init } {
                if [using_jtag] { jtag arp_init }
+               dap init
                arp_examine_all
        }
        foreach t $targets {

-- 


_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to