Search found 23 matches

by pacucha42
Mon May 20, 2024 7:43 am
Forum: ESP-IDF
Topic: f_getfree fails on assertion if no volume is mounted
Replies: 2
Views: 794

Re: f_getfree fails on assertion if no volume is mounted

Hi @maierkomor, I assume your code looks similar to the FatFS example on the elm-chan.org site: FATFS *fs; DWORD fre_clust, fre_sect, tot_sect; /* Get volume information and free clusters of drive 1 */ res = f_getfree("1:", &fre_clust, &fs); if (res) die(res); /* Get total sectors and free sectors *...
by pacucha42
Mon May 20, 2024 7:29 am
Forum: General Discussion
Topic: SPIFFS Preferences and a file open simultaneously?
Replies: 3
Views: 1343

Re: SPIFFS Preferences and a file open simultaneously?

Hi @thomasx, I assume you are referring to the Preferences library for Arduino (https://docs.espressif.com/projects/arduino-esp32/en/latest/tutorials/preferences.html). If so, there should be no interference between SPIFFS partitions and the Preferences, as the latter runs over the NVS (https://docs...
by pacucha42
Tue Jan 23, 2024 4:51 pm
Forum: ESP-IDF
Topic: vsCode IDFexstesion error compile littlefs exsample
Replies: 2
Views: 1032

Re: vsCode IDFexstesion error compile littlefs exsample

Hi @corso_shiba,
for pure LittleFS usage, please check https://github.com/espressif/esp-idf/tr ... e/littlefs (though I understand this is not exactly what you are looking for).
Generally, the best option for file-system choice would be probably FatFS.
Hope this helps.
by pacucha42
Tue Jan 23, 2024 4:31 pm
Forum: ESP-IDF
Topic: Accessing NVS/FAT from task where stack is in external RAM
Replies: 6
Views: 2082

Re: Accessing NVS/FAT from task where stack is in external RAM

Hi @johboh,
that sounds weird - accessing file-systems should be independent on specific task. Could you share your code, please? The critical parts would be sufficient, if you cannot share whole application (or if it's too big). I'll take a look asap

Thank you for the report!
by pacucha42
Wed Nov 22, 2023 2:19 pm
Forum: ESP-IDF
Topic: Esp32S3 : Virtual FileSystem Max FileName
Replies: 5
Views: 5922

Re: Esp32S3 : Virtual FileSystem Max FileName

Hi @ThomasESP32, IDF Virtual FileSystem (VFS) has no limit on filename length, only on the FS path prefix (the part which identifies specific file-system or device with FS-like interface, eg UART. The limit is hardcoded as 15 chars, see https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api...
by pacucha42
Wed Nov 22, 2023 1:46 pm
Forum: General Discussion
Topic: About spi_flash_emulation
Replies: 1
Views: 2858

Re: About spi_flash_emulation

Hi @nekomiya, there is no (actively used) SPI flash emulation in ESP IDF now, the only emulated component for storage needs is esp_partition (ie it compiles on Linux and emulates the SPI flash memory by mmaped file. For instance see https://github.com/espressif/esp-idf/tree/master/components/esp_par...
by pacucha42
Mon Nov 20, 2023 11:36 am
Forum: General Discussion
Topic: FatFS vs SPIFFS vs NVS
Replies: 5
Views: 4183

Re: FatFS vs SPIFFS vs NVS

Hi @Piramma,
please, use FatFS for storing large files. The theoretical file size maximum would be 4GB (see http://elm-chan.org/fsw/ff/doc/appnote.html, section Limits), ie you can use whole partition space for one file.
FatFS also works over encrypted partitions
by pacucha42
Thu Nov 16, 2023 6:34 am
Forum: General Discussion
Topic: ESP32: Slow OTA on encrypted flash
Replies: 3
Views: 1889

Re: ESP32: Slow OTA on encrypted flash

Hi @boborjan,
thank you for the report, your findings are correct. Our teams is already taking a look into it, you can watch the progress in your https://github.com/espressif/esp-idf/issues/12505 issue.
by pacucha42
Mon Oct 30, 2023 10:59 am
Forum: ESP-IDF
Topic: Recommended Filesystem Type?
Replies: 5
Views: 2537

Re: Recommended Filesystem Type?

Hi @dmglogowski, NVS is designed for storing configuration values in a form of key:value pairs, and it introduces extra overhead and limitations needed for internal handling of the data. It is not suitable as a common file-system - just to confirm your findings. Details available at https://docs.esp...