platformio / platform-espressif8266

Espressif 8266: development platform for PlatformIO
https://registry.platformio.org/platforms/platformio/espressif8266
Apache License 2.0
330 stars 219 forks source link

no target for erase flash #276

Closed atsju closed 1 year ago

atsju commented 2 years ago

In some cases it's needed to have a full flash erase target. Could you update the platform to have erase target like there is for ESP32

Question has been raised in #210 but closed immediately and I do not come to same conclusion concerning erase at upload. Fir me the flash is not fully erased at upload, but only the sections being programmed after.

valeros commented 1 year ago

Hi @atsju, the "erase" target has been available since v2.0, you can use it via pio run -t erase .