NabuCasa / esp-web-flasher

A web serial package for updating your ESP bootloader via the browser.
https://nabucasa.github.io/esp-web-flasher/
MIT License
43 stars 16 forks source link

Increased timeout to 16MB spiffs flash problem #127

Closed robdobsn closed 2 years ago

robdobsn commented 2 years ago

When flashing an ESP32 with 16MB flash chip, during flash of spiffs partition (~13MB) there is a long delay when the first block is written. This causes a time-out and results in the flash failing. Increasing the DEFAULT_TIMEOUT value from 3000 to 40000 fixes this problem. I found that the actual delay is around 25 seconds so a timeout of 40 seconds seems reasonable and probably doesn't make the user experience too much worse in cases where communication really does break down.

TD-er commented 2 years ago

Why not making this timeout depending on the binary size?

balloob commented 2 years ago

Released in ESP Web Flasher 5.1.4