esp-rs / espflash

Serial flasher utility for Espressif SoCs and modules based on esptool.py
Apache License 2.0
471 stars 115 forks source link

limit default partition size #398

Closed MabezDev closed 1 year ago

MabezDev commented 1 year ago

Some chips can have more than 16MB of flash, mine has 32MB. Historically espflash failed to detect this flash size (and defaulted to 4MB) but now it can. Without this change, the board will boot loop because the esp idf bootloader max size is only 16MB.

Closes #393

maxwase commented 1 year ago

Tested this on my ESP32-S3 32MB flash, works fine I had a bootloop only when I explicitly set >16MB partition, maybe we should add a warning for it? In 2 paces: flash and partition-table sub-commands