I prefer this:
Code: Select all
esptool.py -p COMX --erase-all ....
Code: Select all
esptool.py -p COMX erase_flash && esptool.py -p COMX ...
It's not completely clear to me from the documentation https://docs.espressif.com/projects/esp ... mands.html