Clear target error on attaching.
Fixes possible lock-up on devices booting from blank flash.
This commit is contained in:
parent
466bb66424
commit
22993fb5bd
|
@ -358,6 +358,9 @@ cortexm_attach(struct target_s *target)
|
||||||
unsigned i;
|
unsigned i;
|
||||||
uint32_t r;
|
uint32_t r;
|
||||||
|
|
||||||
|
/* Clear any pending fault condition */
|
||||||
|
target_check_error(target);
|
||||||
|
|
||||||
target_halt_request(target);
|
target_halt_request(target);
|
||||||
while(!target_halt_wait(target));
|
while(!target_halt_wait(target));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue