This is an automated email from Gerrit.

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

-- gerrit

commit 86be5b56b6c1f11ce9000d5ee0805d84630539b6
Author: Andreas Fritiofson <[email protected]>
Date:   Sun Dec 6 01:19:19 2015 +0100

    cortex_a: Call ahbap_debugport_init on the discovered AP and not 0
    
    Change-Id: I76bb9bd800697776a375ab803402780c3c7bea35
    Signed-off-by: Andreas Fritiofson <[email protected]>

diff --git a/src/target/cortex_a.c b/src/target/cortex_a.c
index 7da57b4..a65cabf 100644
--- a/src/target/cortex_a.c
+++ b/src/target/cortex_a.c
@@ -2935,19 +2935,20 @@ static int cortex_a_examine_first(struct target *target)
        int retval = ERROR_OK;
        uint32_t didr, ctypr, ttypr, cpuid, dbg_osreg;
 
-       /* We do one extra read to ensure DAP is configured,
-        * we call ahbap_debugport_init(swjdp) instead
-        */
-       retval = ahbap_debugport_init(swjdp, 0);
-       if (retval != ERROR_OK)
-               return retval;
-
        /* Search for the APB-AB - it is needed for access to debug registers */
        retval = dap_find_ap(swjdp, AP_TYPE_APB_AP, &armv7a->debug_ap);
        if (retval != ERROR_OK) {
                LOG_ERROR("Could not find APB-AP for debug access");
                return retval;
        }
+
+       /* We do one extra read to ensure DAP is configured,
+        * we call ahbap_debugport_init(swjdp) instead
+        */
+       retval = ahbap_debugport_init(swjdp, armv7a->debug_ap);
+       if (retval != ERROR_OK)
+               return retval;
+
        /* Search for the AHB-AB */
        retval = dap_find_ap(swjdp, AP_TYPE_AHB_AP, &armv7a->memory_ap);
        if (retval != ERROR_OK) {

-- 

------------------------------------------------------------------------------
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to