diff --git a/src/target/hla_target.c b/src/target/hla_target.c index 567a61dc3..4bf7bdc4d 100644 --- a/src/target/hla_target.c +++ b/src/target/hla_target.c @@ -470,6 +470,9 @@ static int adapter_poll(struct target *target) if (prev_target_state == state) return ERROR_OK; + if (prev_target_state == TARGET_DEBUG_RUNNING && state == TARGET_RUNNING) + return ERROR_OK; + target->state = state; if (state == TARGET_HALTED) {