aboutsummaryrefslogtreecommitdiff
path: root/src/cortexm.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cortexm.c')
-rw-r--r--src/cortexm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cortexm.c b/src/cortexm.c
index 0cab4cf..e6f2a99 100644
--- a/src/cortexm.c
+++ b/src/cortexm.c
@@ -526,6 +526,8 @@ cortexm_reset(struct target_s *target)
while(adiv5_ap_mem_read(ap, CORTEXM_AIRCR) &
(CORTEXM_AIRCR_VECTRESET | CORTEXM_AIRCR_SYSRESETREQ));
+ platform_delay(2);
+
/* Reset DFSR flags */
adiv5_ap_mem_write(ap, CORTEXM_DFSR, CORTEXM_DFSR_RESETALL);
}