diff options
author | Andrea Grandi <agrandi@google.com> | 2022-08-10 20:27:34 -0700 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-08-26 21:51:43 +0000 |
commit | ef7c48bcb4dbd1438e7e00a427d2e780334a0d28 (patch) | |
tree | 2102248997fe1e11e479a4fd7380afdc78fca7c1 /util | |
parent | b0cd101d9591953f4b44aa5fa8872e7646bcc792 (diff) | |
download | chrome-ec-ef7c48bcb4dbd1438e7e00a427d2e780334a0d28.tar.gz |
flash_ec: Add workaround for dartmonkey + servo_micro
An outstanding issue prevents flashing dartmonkey with a servo_micro.
The exact root cause is still unknown, but it's been observed that
repeating the FPMCU reset sequence twice makes the operation succeed.
BUG=b:177331210
TEST=util/flash_ec --board=dartmonkey --verbose
BRANCH=none
Signed-off-by: Andrea Grandi <agrandi@google.com>
Change-Id: Ic4e69728b62245d814569db0944e3134452807f0
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3825659
Reviewed-by: Patryk Duda <patrykd@google.com>
Reviewed-by: Tom Hughes <tomhughes@chromium.org>
Diffstat (limited to 'util')
-rwxr-xr-x | util/flash_ec | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/util/flash_ec b/util/flash_ec index 15ec7d03f6..8314660b42 100755 --- a/util/flash_ec +++ b/util/flash_ec @@ -467,6 +467,15 @@ servo_usbpd_hard_reset() { servo_fpmcu_hard_reset() { dut_control fpmcu_reset:on sleep:0.5 fpmcu_reset:off + + # b/177331210: Workaround for an outstanding issue that prevents + # flashing dartmonkey with a servo_micro. The exact root cause is still + # unknown, but it's been observed that repeating the FPMCU reset + # sequence twice makes the operation succeed. + if [[ "${BOARD}" =~ "dartmonkey" ]] ; then + warn "Workaround for dartmonkey + servo_micro: repeat FPMCU reset sequence" + dut_control fpmcu_reset:on sleep:0.5 fpmcu_reset:off + fi } servo_sh_hard_reset() { |