diff --git a/src/target/arm7_9_common.c b/src/target/arm7_9_common.c index 547bf3c49..73ee84906 100644 --- a/src/target/arm7_9_common.c +++ b/src/target/arm7_9_common.c @@ -835,9 +835,21 @@ int arm7_9_deassert_reset(target_t *target) if ((jtag_reset_config & RESET_SRST_PULLS_TRST)!=0) { + LOG_WARNING("srst pulls trst - can not reset into halted mode. Issuing halt after reset."); /* set up embedded ice registers again */ if ((retval=target->type->examine(target))!=ERROR_OK) return retval; + + if ((retval=target_poll(target))!=ERROR_OK) + { + return retval; + } + + if ((retval=target_halt(target))!=ERROR_OK) + { + return retval; + } + } return retval; }