Skip to content

ESP8266 allows flash split to have 3MB of SPIFFS, ESP32 only allows up to 1.5MB of SPIFFS in the arduino GUI #1799

Closed
@marcmerlin

Description

@marcmerlin

Can you change the hardware configuration for ESP32 in arduino so that the compile menu options also allow splitting the flash so that more than 1.5MB out of 4MB is usable for SPIFFS? (default is 1MB, 'No OTA" boost this to only 1.5MB)
This is true as of today with arduino-esp32 from git, and arduino 1.8.6 pre release.

Activity

marcmerlin

marcmerlin commented on Aug 26, 2018

@marcmerlin
ContributorAuthor

Apparently, you can change this in
arduino/hardware/espressif/esp32/tools/partitions/no_ota.csv
but I'm still thinking:

  1. I'm sure it's possible to change this file in broken ways that are going to blow up in potentially non obvious ways later. It would be nice to have a few obvious pre-sets, at least 2 or 3 (like 1/3 2/2 and 3/1)
  2. generally it would be nice to have at least the same 1/3 and 3/1 presets than are offered on ESP8266, for consistency at least, and maybe add 2/2. It kind of looks bad that by default the options easily available offer 2x less SPIFFS storage on ESP32 than available for ESP8266, even if it's just a config option
francescolavra

francescolavra commented on Oct 28, 2018

@francescolavra

You can change your csv partition file without blowing up things as long as you don't touch the nvs and otadata partitions and as long as the app0 partition starts at address 0x10000.

marcmerlin

marcmerlin commented on Dec 10, 2018

@marcmerlin
ContributorAuthor

Thanks, it would however be nicer if the GUI allowed more splits or at least allowed a split as big as the lesser ESP8266 chip.

me-no-dev

me-no-dev commented on Dec 12, 2018

@me-no-dev
Member

Awww... it's been a while @marcmerlin :) feel free to come up with better partition schemes and make a PR :P Surely we can have as many partition schemes as we want. Just someone with need needs to pus some time. Reason is that unless we hit a particuylar limitation that can not be handled by one of the existing ones, nobody knows what to create.

marcmerlin

marcmerlin commented on Dec 14, 2018

@marcmerlin
ContributorAuthor

Hi @me-no-dev yes, I work a lot on something for a while, and then disappear for a year or so as I move to one of my too many other hobbies ;) I'll see if I can make a proposal for this but someone else is welcome to beat me to it.

marcmerlin

marcmerlin commented on Mar 25, 2019

@marcmerlin
ContributorAuthor

With the latest git, "large app, no OTA" gives 2MB of spiffs, which is not bad. The only problem is how non obvious how much or little spiffs you get from each of the options.
Now, I have confirmed that reading animated gifs from that spiffs causes too many hangs for my use, so I need to switch to fatfs and hope that works better.

marcmerlin

marcmerlin commented on Mar 28, 2019

@marcmerlin
ContributorAuthor

@me-no-dev would it be possible to simply show the amount of program flash vs spiffs room for each compile option (like minimal: 1M/1M, No OTA 2M/2M, Huge App: 3M/1M, etc...)

marcmerlin

marcmerlin commented on Mar 30, 2019

@marcmerlin
ContributorAuthor

@me-no-dev @lbernstone better late than never I guess, this PR addresses this issue (and then some) as well as adds some ffat options to esp32-dev:
#2623

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      ESP8266 allows flash split to have 3MB of SPIFFS, ESP32 only allows up to 1.5MB of SPIFFS in the arduino GUI · Issue #1799 · espressif/arduino-esp32