From fa1ab7f1d2ede9a83d1f2d06a46b4988bbc470e4 Mon Sep 17 00:00:00 2001 From: junmin kim Date: Wed, 29 Mar 2017 05:13:33 -0700 Subject: [PATCH] Return exit code 0 after using openocd script Shutdown after catching halt --- .../openocd/s5jt200_silicon_evt0_fusing_flash_all.cfg | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/build/configs/sidk_s5jt200/openocd/s5jt200_silicon_evt0_fusing_flash_all.cfg b/build/configs/sidk_s5jt200/openocd/s5jt200_silicon_evt0_fusing_flash_all.cfg index fccbadd..baa2f4d 100644 --- a/build/configs/sidk_s5jt200/openocd/s5jt200_silicon_evt0_fusing_flash_all.cfg +++ b/build/configs/sidk_s5jt200/openocd/s5jt200_silicon_evt0_fusing_flash_all.cfg @@ -65,7 +65,6 @@ proc jtag_init {} { #set scriptDir [ getScriptDirectory ] fusing_image_all reset - shutdown } proc s5j_set_ft2232_serial { arg1 } { @@ -304,3 +303,11 @@ proc fusing_image_wlan {} { load_image $WLAN_PATH 0x60304000 echo "Done" } + +proc s5jt200_shutdown {} { + init + catch {halt} + echo "s5jt200_shutdown" + shutdown +} +s5jt200_shutdown -- 2.7.4