diff options
Diffstat (limited to 'src/target')
-rw-r--r-- | src/target/arm_adi_v5.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/target/arm_adi_v5.c b/src/target/arm_adi_v5.c index 88a5d3b8..b6c66b85 100644 --- a/src/target/arm_adi_v5.c +++ b/src/target/arm_adi_v5.c @@ -1150,9 +1150,12 @@ int ahbap_debugport_init(struct adiv5_dap *dap) alive_sleep(10); } - //TC: Here CDBGPWRUPACK|CSYSPWRUPACK still may not be set! - //TODO: Should we proceed anyway? - if (cnt>=10) LOG_ERROR("CDBGPWRUPACK|CSYSPWRUPACK FLAGS NOT SET IN RESPONSE!"); + //TC: At this point CDBGPWRUPACK|CSYSPWRUPACK still may not be set! + // We should not proceed, it may indicate target failure... + if (cnt>=10) { + LOG_ERROR("CDBGPWRUPACK|CSYSPWRUPACK FLAGS NOT SET IN RESPONSE!"); + return(ERROR_FAIL); + } retval = dap_queue_dp_read(dap, DP_CTRL_STAT, NULL); if (retval != ERROR_OK) |