summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Sanders <nsanders@chromium.org>2018-04-03 20:01:13 -0700
committerchrome-bot <chrome-bot@chromium.org>2018-04-12 18:03:03 -0700
commit2dcd5c19c1b4fe49c7cfd82bee9df3105ddf73d0 (patch)
tree7f80443e89a94d8ccdab4020ba279420921ce533
parent92503e0f7f655223a9c01a049d519fbad6583609 (diff)
downloadchrome-ec-2dcd5c19c1b4fe49c7cfd82bee9df3105ddf73d0.tar.gz
flash_ec: add more verbose options
Print stm32mon command in verbose mode. BUG=None BRANCH=None TEST=it prints Signed-off-by: Nick Sanders <nsanders@chromium.org> Change-Id: I4b31d1212c139f64e34e92fa0def662202aa3b41 Reviewed-on: https://chromium-review.googlesource.com/1004436 Commit-Ready: Nick Sanders <nsanders@chromium.org> Tested-by: Nick Sanders <nsanders@chromium.org> Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
-rwxr-xr-xutil/flash_ec6
1 files changed, 5 insertions, 1 deletions
diff --git a/util/flash_ec b/util/flash_ec
index 3602cf641a..889852ae1a 100755
--- a/util/flash_ec
+++ b/util/flash_ec
@@ -798,8 +798,12 @@ function flash_stm32() {
ec_reset
fi
# Unprotect flash, erase, and write
+ STM32MON_COMMAND="${STM32MON} -d ${EC_UART} -U -u -e -w"
+ if [ "${FLAGS_verbose}" = ${FLAGS_TRUE} ]; then
+ echo "${STM32MON_COMMAND}" "${IMG}"
+ fi
timeout -k 10 -s 9 "${FLAGS_timeout}" \
- ${STM32MON} -d ${EC_UART} -U -u -e -w "${IMG}"
+ ${STM32MON_COMMAND} "${IMG}"
# Remove the Application processor reset
# TODO(crosbug.com/p/30738): we cannot rely on servo_VARS to restore it
if $(servo_has_warm_reset); then