Is SPIFFS limited in size?

User avatar
fly135
Posts: 606
Joined: Wed Jan 03, 2018 8:33 pm
Location: Orlando, FL

Is SPIFFS limited in size?

Postby fly135 » Wed Dec 26, 2018 7:12 pm

I have a 2MB sppiffs partition and once I get to about 1.5MB I get errno 28 (not enough space) after a write. I increased the partition to 3MB with no luck. I can write to a different partition. And I'm able to write up to about 1.5MB on this one. Don't see a size limit in the docs.

John A

User avatar
loboris
Posts: 514
Joined: Wed Dec 21, 2016 7:40 pm

Re: Is SPIFFS limited in size?

Postby loboris » Thu Dec 27, 2018 9:40 am

I've used 14 MB SPIFFS (on WROVER with 16MB Flash) without issues.

User avatar
fly135
Posts: 606
Joined: Wed Jan 03, 2018 8:33 pm
Location: Orlando, FL

Re: Is SPIFFS limited in size?

Postby fly135 » Thu Dec 27, 2018 4:13 pm

loboris wrote:
Thu Dec 27, 2018 9:40 am
I've used 14 MB SPIFFS (on WROVER with 16MB Flash) without issues.
Well darn, that leaves me with a mystery. All I did was change the file name to point to my other partition and it wrote fine. On the failing partition it writes 128 bytes (out of 80044) and fails to write with errno set to 28. But have 400K free.

John A

Ritesh
Posts: 1383
Joined: Tue Sep 06, 2016 9:37 am
Location: India
Contact:

Re: Is SPIFFS limited in size?

Postby Ritesh » Fri Dec 28, 2018 6:17 pm

fly135 wrote:
Thu Dec 27, 2018 4:13 pm
loboris wrote:
Thu Dec 27, 2018 9:40 am
I've used 14 MB SPIFFS (on WROVER with 16MB Flash) without issues.
Well darn, that leaves me with a mystery. All I did was change the file name to point to my other partition and it wrote fine. On the failing partition it writes 128 bytes (out of 80044) and fails to write with errno set to 28. But have 400K free.

John A
Hi,

Which ESP32 IDF version are you using? And are you using SPIFFS component provided into IDF or any customer third party component like loboris provided?

Because we have used more than 2 to 8 MB for SPIFFS partition into our project in which we are able to read and write files without any issue.

Please share details regarding issue with code snippet to help you quickly
Regards,
Ritesh Prajapati

Who is online

Users browsing this forum: Bing [Bot], MicroController and 130 guests