ESP32-PICO-KIT SPIFFS problems?

brianpdx
Posts: 10
Joined: Fri Jan 29, 2021 6:07 am

ESP32-PICO-KIT SPIFFS problems?

Postby brianpdx » Fri Jan 29, 2021 6:26 am

Hello,

I've created a 192KB SPIFFS partition on an ESP32-PICO-KIT. After formatting,

Code: Select all

esp_spiffs_info()
says the filesystem size is 173,441 bytes. I then create 74 roughly 2KB files and the filesystem shows the used space as 154,365 bytes, or 89% full.

At this point attempting to create more files fails,

Code: Select all

open(path, O_APPEND|O_CREAT|O_WRONLY)
returns

Code: Select all

ENOENT
.

I don't understand why this is happening. There is approximately 19KB free so it should be able to create a new file.

Are the SPIFFS filesystem limits published somewhere? Is there a limit to the number of files the SPIFFS filesystem can contain?

Does anyone have other ideas as to what might be the cause?

Thank you,

Brian

ESP_Minatel
Posts: 364
Joined: Mon Jan 04, 2021 2:06 pm

Re: ESP32-PICO-KIT SPIFFS problems?

Postby ESP_Minatel » Fri Jan 29, 2021 2:52 pm

Hi Brian,

Take a look at this thread viewtopic.php?t=12166

Who is online

Users browsing this forum: Baidu [Spider] and 215 guests