From 27c35f69aac5fdc4a95e684064762cf5e723603d Mon Sep 17 00:00:00 2001 From: Kevin Hester Date: Sun, 14 Mar 2021 12:41:31 +0800 Subject: [PATCH] Fix flash flippy-flop error after commandline update (thanks @Stephen304) --- bin/device-update.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/device-update.sh b/bin/device-update.sh index 4125ade6..89423036 100755 --- a/bin/device-update.sh +++ b/bin/device-update.sh @@ -35,6 +35,8 @@ shift "$((OPTIND-1))" if [ -f "${FILENAME}" ]; then echo "Trying to flash update ${FILENAME}." esptool.py --baud 921600 write_flash 0x10000 ${FILENAME} + echo "Erasing the otadata partition, which will turn off flash flippy-flop and force the first image to be used" + esptool.py --baud 921600 erase_region 0xe000 0x2000 else echo "Invalid file: ${FILENAME}" show_help