Closed
Description
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.
Metadata
Metadata
Assignees
Labels
No labels
Activity
marcmerlin commentedon Aug 26, 2018
Apparently, you can change this in
arduino/hardware/espressif/esp32/tools/partitions/no_ota.csv
but I'm still thinking:
francescolavra commentedon Oct 28, 2018
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 commentedon Dec 10, 2018
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 commentedon Dec 12, 2018
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 commentedon Dec 14, 2018
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 commentedon Mar 25, 2019
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 commentedon Mar 28, 2019
@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...)
Added 2 ffat partition schemes for 4MB modules + improved descriptions.
marcmerlin commentedon Mar 30, 2019
@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
Added 2 ffat partition schemes for 4MB modules + improved description…
Added 2 ffat partition schemes for 4MB modules + improved description…