Revert "adiv5_swdp_scan: If SWD scan fails, try a JTAG scan."

This reverts commit 3df692ecb2.
This commit is contained in:
dragonmux 2022-01-21 21:32:27 -05:00 committed by Piotr Esden-Tempski
parent 54f577a970
commit 361dc9c234
2 changed files with 2 additions and 2 deletions

View File

@ -378,7 +378,7 @@ int cl_execute(BMP_CL_OPTIONS_t *opt)
} else { } else {
num_targets = platform_adiv5_swdp_scan(opt->opt_targetid); num_targets = platform_adiv5_swdp_scan(opt->opt_targetid);
if (!num_targets) { if (!num_targets) {
DEBUG_WARN("Scan SWD failed, trying JTAG!\n"); DEBUG_INFO("Scan SWD failed, trying JTAG!\n");
num_targets = platform_jtag_scan(NULL); num_targets = platform_jtag_scan(NULL);
} }
} }

View File

@ -115,7 +115,7 @@ int adiv5_swdp_scan(uint32_t targetid)
} }
if (e2.type || initial_dp->fault) { if (e2.type || initial_dp->fault) {
DEBUG_WARN("No usable DP found\n"); DEBUG_WARN("No usable DP found\n");
return 0; return -1;
} }
} }
if ((idcode & ADIV5_DP_VERSION_MASK) == ADIV5_DPv2) { if ((idcode & ADIV5_DP_VERSION_MASK) == ADIV5_DPv2) {