Return exit code 0 after using openocd script
authorjunmin kim <junmindd.kim@samsung.com>
Wed, 29 Mar 2017 12:13:33 +0000 (05:13 -0700)
committerjunmin kim <junmindd.kim@samsung.com>
Wed, 29 Mar 2017 12:13:33 +0000 (05:13 -0700)
Shutdown after catching halt

build/configs/sidk_s5jt200/openocd/s5jt200_silicon_evt0_fusing_flash_all.cfg

index fccbadd..baa2f4d 100644 (file)
@@ -65,7 +65,6 @@ proc jtag_init {} {
        #set scriptDir [ getScriptDirectory ]\r
        fusing_image_all\r
        reset\r
-       shutdown\r
 }\r
 \r
 proc s5j_set_ft2232_serial { arg1 } {\r
@@ -304,3 +303,11 @@ proc fusing_image_wlan {} {
        load_image $WLAN_PATH 0x60304000\r
        echo "Done"\r
 }\r
+\r
+proc s5jt200_shutdown {} {\r
+       init\r
+       catch {halt}\r
+       echo "s5jt200_shutdown"\r
+       shutdown\r
+}\r
+s5jt200_shutdown\r