This is an automated email from Gerrit.

Andreas Färber ([email protected]) just uploaded a new patch set to Gerrit, 
which you can find at http://openocd.zylin.com/3087

-- gerrit

commit 30983d3af6852e8082d3ca71cbe05b895ec469a4
Author: Andreas Färber <[email protected]>
Date:   Thu Jul 9 23:54:25 2015 +0200

    adi_v5_swd: Store DAP IDCODE on connect
    
    This resolves an issue with the lpcspifi flash driver reading
    target->tap->idcode as zero and thus not recognizing the chipset.
    
    Change-Id: I0b6ebbac18dacf941aef77ee96da005eaea86455
    Signed-off-by: Andreas Färber <[email protected]>

diff --git a/src/target/adi_v5_swd.c b/src/target/adi_v5_swd.c
index 2cb61f8..9030740 100644
--- a/src/target/adi_v5_swd.c
+++ b/src/target/adi_v5_swd.c
@@ -123,6 +123,7 @@ static int swd_connect(struct adiv5_dap *dap)
 
        if (status == ERROR_OK) {
                LOG_INFO("SWD IDCODE %#8.8" PRIx32, idcode);
+               dap->jtag_info->tap->idcode = idcode;
                dap->do_reconnect = false;
        } else
                dap->do_reconnect = true;

-- 

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

Reply via email to