Add delay to cortexm_reset
This commit is contained in:
parent
d7e2923990
commit
02b9d5f1ac
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue