From 1b0d9bbe78ac3cd3370aff7bc891c88291aa53ff Mon Sep 17 00:00:00 2001 From: Heesub Shin Date: Wed, 12 Jul 2017 17:32:30 +0900 Subject: [PATCH] artik053/openocd: reset the target on prepare_target() prepare_target() fails sometimes when the target is in abnormal state like data abort, and we need to push the reset button. In such cases, it is not enough to give 'halt' command. 'reset halt' seems to be appropriate. Change-Id: I15e197a8e7232924cfeac8d064fb4f46a84d09cf Signed-off-by: Heesub Shin --- build/configs/artik053/tools/openocd/artik053.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/configs/artik053/tools/openocd/artik053.cfg b/build/configs/artik053/tools/openocd/artik053.cfg index ebba174..1e18d50 100644 --- a/build/configs/artik053/tools/openocd/artik053.cfg +++ b/build/configs/artik053/tools/openocd/artik053.cfg @@ -100,7 +100,7 @@ proc flash_poll {} { proc prepare_target {} { init - catch { halt } + catch { reset halt } wdt_disable cmu_init -- 2.7.4