pushd ${OPENOCD_DIR_PATH}
${OPENOCD_BIN_PATH}/openocd -c "${OPENOCD_ROMFS}" -f artik053.cfg -c ' \
flash_write rom ../../../../output/bin/romfs.img; \
- exit'
+ exit' || finish_download 1
popd
fi
}
flash_write sssfw ../../bin/sssfw.bin; \
flash_write wlanfw ../../bin/wlanfw.bin; \
flash_write os ../../../../output/bin/tinyara_head.bin; \
- exit'
+ exit' || finish_download 1
popd
# check romfs and download it
pushd ${OPENOCD_DIR_PATH}
${OPENOCD_BIN_PATH}/openocd -c "${OPENOCD_ROMFS}" -f artik053.cfg -c ' \
flash_erase_part user; \
- exit'
+ exit' || finish_download 1
popd
;;
# download all binaries using openocd script
pushd ${OPENOCD_DIR_PATH}
- ${OPENOCD_BIN_PATH}/openocd -f s5jt200_silicon_evt0_fusing_flash_all.cfg
+ ${OPENOCD_BIN_PATH}/openocd -f s5jt200_silicon_evt0_fusing_flash_all.cfg || exit 1
popd
;;