#1085·esptool

Support for 32-bit addresing with external SPI flash chips (ESPTOOL-1061)

Author: RELOC-DEVCreated May 2, 2025Updated May 20, 2025
LabelsType: Feature Request

Is your feature request related to a problem?

We are trying to use the esptool to preload some data into an external SPI flash (manually configuring the SPI pins with the "--spi-connection" parameter). The operation works fine with images < 16 MB but always fails with bigger images checking the MD5.

Describe the solution you'd like

Debugging a bit with an oscilloscope I noticed that the ESP stub always uses the SPI commands for 24bit address instead of the 32bit version, de-facto limiting to 16777215 byte (16MB) the addressable size. However I suspect that this is not the only "missing-element" for the feature.

Are there any plans to support external (but even internal I suppose) flash bigger than 16 MB?

Describe alternatives you've considered

We have two options:

  1. modify the esptool to extend the support (very hard option)

  2. Create our custom solution (the only actual option)

Additional context

No response