X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=src%2Ftarget%2Fferoceon.c;h=1d3cc5948194e1bb668e63ffb8eed60c39deb114;hb=79d0f1345b8d68ff522f21451860c74c8f1018ca;hp=9c204f04f615f5bb8eb6a4dbf3156b5e8d12f17f;hpb=dc574aa1da291405c6778383c1ad3b252602aee7;p=openocd.git diff --git a/src/target/feroceon.c b/src/target/feroceon.c index 9c204f04f6..1d3cc59481 100644 --- a/src/target/feroceon.c +++ b/src/target/feroceon.c @@ -64,6 +64,13 @@ static int feroceon_assert_reset(struct target *target) struct arm7_9_common *arm7_9 = arm->arch_info; int ud = arm7_9->use_dbgrq; + /* TODO: apply hw reset signal in not examined state */ + if (!(target_was_examined(target))) { + LOG_WARNING("Reset is not asserted because the target is not examined."); + LOG_WARNING("Use a reset button or power cycle the target."); + return ERROR_TARGET_NOT_EXAMINED; + } + arm7_9->use_dbgrq = 0; if (target->reset_halt) arm7_9_halt(target);