diff options
-rwxr-xr-x | util/flash_ec | 6 |
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 |