diff --git a/src/platforms/pc/cl_utils.c b/src/platforms/pc/cl_utils.c index 93605853..65de1cf9 100644 --- a/src/platforms/pc/cl_utils.c +++ b/src/platforms/pc/cl_utils.c @@ -375,7 +375,7 @@ int cl_execute(BMP_CL_OPTIONS_t *opt) } else { num_targets = platform_adiv5_swdp_scan(opt->opt_targetid); if (!num_targets) { - DEBUG_INFO("Scan SWD failed, trying JTAG!\n"); + DEBUG_WARN("Scan SWD failed, trying JTAG!\n"); num_targets = platform_jtag_scan(NULL); } } diff --git a/src/target/adiv5_swdp.c b/src/target/adiv5_swdp.c index 9edb5d18..50b8f2e0 100644 --- a/src/target/adiv5_swdp.c +++ b/src/target/adiv5_swdp.c @@ -134,7 +134,7 @@ int adiv5_swdp_scan(uint32_t targetid) } if (e2.type) { DEBUG_WARN("No usable DP found\n"); - return -1; + return 0; } } if ((idcode & ADIV5_DP_VERSION_MASK) == ADIV5_DPv2) {