Clear target error on attaching.

Fixes possible lock-up on devices booting from blank flash.
Esse commit está contido em:
Gareth McMullin 2012-06-28 20:11:53 +12:00
commit 22993fb5bd
1 arquivos alterados com 3 adições e 0 exclusões

Ver arquivo

@ -358,6 +358,9 @@ cortexm_attach(struct target_s *target)
unsigned i;
uint32_t r;
/* Clear any pending fault condition */
target_check_error(target);
target_halt_request(target);
while(!target_halt_wait(target));