Add delay to cortexm_reset

This commit is contained in:
Josh Robson Chase 2018-11-15 17:17:25 -05:00 committed by Gareth McMullin
parent d7e2923990
commit 02b9d5f1ac
1 changed files with 6 additions and 0 deletions

View File

@ -31,6 +31,7 @@
#include "target.h"
#include "target_internal.h"
#include "cortexm.h"
#include "platform.h"
#include <unistd.h>
@ -533,6 +534,11 @@ static void cortexm_reset(target *t)
/* Reset DFSR flags */
target_mem_write32(t, CORTEXM_DFSR, CORTEXM_DFSR_RESETALL);
/* 1ms delay to ensure that things such as the stm32f1 HSI clock have started
* up fully.
*/
platform_delay(1);
}
static void cortexm_halt_request(target *t)