Cortexm: With connect under reset, keep the device halted until attach.
This commit is contained in:
parent
d6440d716c
commit
d594b42976
|
@ -834,9 +834,15 @@ void adiv5_dp_init(ADIv5_DP_t *dp)
|
|||
adiv5_ap_unref(ap);
|
||||
}
|
||||
/* We halted at least CortexM for Romtable scan.
|
||||
* Release the devices now. Attach() will halt them again.*/
|
||||
for (target *t = target_list; t; t = t->next)
|
||||
target_halt_resume(t, false);
|
||||
* With connect under reset, keep the devices halted.
|
||||
* Otherwise, release the devices now.
|
||||
* Attach() will halt them again.
|
||||
*/
|
||||
for (target *t = target_list; t; t = t->next) {
|
||||
if (!connect_assert_srst) {
|
||||
target_halt_resume(t, false);
|
||||
}
|
||||
}
|
||||
adiv5_dp_unref(dp);
|
||||
}
|
||||
|
||||
|
|
|
@ -471,8 +471,6 @@ bool cortexm_probe(ADIv5_AP_t *ap)
|
|||
PROBE(lpc17xx_probe);
|
||||
}
|
||||
#undef PROBE
|
||||
/* Restart the CortexM we stopped for Romtable scan. Allow pure debug.*/
|
||||
target_halt_resume(t, 0);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue