X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;ds=sidebyside;f=src%2Ftarget%2Fcortex_m.c;h=ed9397aef0f6e0ff714d168fb91036f3b3411f5c;hb=1f1558e74bd14ba633c49916ac1d0e1867cad4f1;hp=9aaa5bb8763a19885e7700066b5ac4fffeb567f8;hpb=bc94ca241a5d9b1bbd0b0e79f577a27dab58ecd0;p=openocd.git diff --git a/src/target/cortex_m.c b/src/target/cortex_m.c index 9aaa5bb876..ed9397aef0 100644 --- a/src/target/cortex_m.c +++ b/src/target/cortex_m.c @@ -2107,7 +2107,7 @@ int cortex_m_examine(struct target *target) if (!armv7m->stlink) { if (cortex_m->apsel == DP_APSEL_INVALID) { /* Search for the MEM-AP */ - retval = dap_find_ap(swjdp, AP_TYPE_AHB_AP, &armv7m->debug_ap); + retval = dap_find_ap(swjdp, AP_TYPE_AHB3_AP, &armv7m->debug_ap); if (retval != ERROR_OK) { LOG_ERROR("Could not find MEM-AP to control the core"); return retval;