esptool write_flash --erase-all option corrupting flash #10174
git-n-pissed
started this conversation in
General
Replies: 1 comment 2 replies
-
@git-n-pissed It seems unlikely that if this was working for you before and all that changed was esptool that this would be a MicroPython issue. Maybe better follow up with esptool -- https://github.com/espressif/esptool Have you tried some other versions between 2.6 and 4.4 ? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Not sure if this is a regression caused by changes to esptool or MP, but back on esptool v2.6, the
write_flash --erase-all
option worked as expected, erasing the flash before writing, all in one command. I just upgraded to esptool v4.4 and this option now causes the flash to be corrupted on write without any indication of failure until you REPL in. What's worse, if you also use the--verify
option, you are told the--verify
option is deprecated and that flash contents are always read back after flashing, but verification goes ahead anyway, and eventually fails. I'm seeing the same behavior on ESP8266, ESP32-WROOM32, and ESP32-S3-WROOM32 all using a stock downloaded build of MP (v1.19.1).Beta Was this translation helpful? Give feedback.
All reactions