summaryrefslogtreecommitdiff
path: root/util/flash_ec
diff options
context:
space:
mode:
Diffstat (limited to 'util/flash_ec')
-rwxr-xr-xutil/flash_ec8
1 files changed, 4 insertions, 4 deletions
diff --git a/util/flash_ec b/util/flash_ec
index 7bb5a463f4..f1a4b17d6b 100755
--- a/util/flash_ec
+++ b/util/flash_ec
@@ -1030,13 +1030,13 @@ function flash_stm32_dfu() {
SIZE=$(wc -c ${IMG} | cut -d' ' -f1)
# Remove read protection
- sudo timeout -k 10 -s 9 "${FLAGS_timeout}" \
- $DFU_UTIL -a 0 -s ${ADDR}:${SIZE}:force:unprotect -D "${IMG}"
+ sudo timeout -k 10 -s 9 "${FLAGS_timeout}" $DFU_UTIL -a 0 -d "${DFU_DEVICE}" \
+ -s ${ADDR}:${SIZE}:force:unprotect -D "${IMG}"
# Wait for mass-erase and reboot after unprotection
sleep 1
# Actual image flashing
- sudo timeout -k 10 -s 9 "${FLAGS_timeout}" \
- $DFU_UTIL -a 0 -s ${ADDR}:${SIZE} -D "${IMG}"
+ sudo timeout -k 10 -s 9 "${FLAGS_timeout}" $DFU_UTIL -a 0 -d "${DFU_DEVICE}" \
+ -s ${ADDR}:${SIZE} -D "${IMG}"
}
# TODO(b/130165933): Implement a dut-control command to look up the correct