aboutsummaryrefslogtreecommitdiff
path: root/src/target/nds32.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/target/nds32.c')
-rw-r--r--src/target/nds32.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/target/nds32.c b/src/target/nds32.c
index b6c5f61..afdafef 100644
--- a/src/target/nds32.c
+++ b/src/target/nds32.c
@@ -2199,6 +2199,13 @@ int nds32_assert_reset(struct target *target)
struct aice_port_s *aice = target_to_aice(target);
struct nds32_cpu_version *cpu_version = &(nds32->cpu_version);
+ /* 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;
+ }
+
if (target->reset_halt) {
if ((nds32->soft_reset_halt)
|| (nds32->edm.version < 0x51)