Page 1 of 1

ESP32S3 : Virtual FileSystem Component

Posted: Fri Feb 03, 2023 9:50 am
by ThomasESP32
Good morning,

I am using a ESP32S3 chip located in a ESP32-S3-WROOM1 module => Including a 8Mo SPI FLASH.

I would like to use FileSystem tools in order to Open/Read/Write files that could be located :
1) On the internal 8Mo SPI FLASH.
2) On an external Micro SD SPI FLASH.

I have seen the "Virtual FileSystem Component".
Using this component, do you think I can :
1) Register a FS Driver that can deal with files located on the internal 8Mo SPI FLASH.
2) Register a FS Driver that can deal with files located on the external Micro SD SPI Flash.
??

Do you think that I can use the two memories at the same time and read/write files that can be located on the two memories ?

thank you for your answer,
Best regards,
Thomas TRUILHE

Re: ESP32S3 : Virtual FileSystem Component

Posted: Thu Feb 16, 2023 8:34 pm
by MicroController
That should totally be possible.

For flash, you could use SPIFFS (see https://docs.espressif.com/projects/esp ... ffs_conf_t), and for an SD card you'd use e.g. esp_vfs_fat_sdspi_mount(...), see https://github.com/espressif/esp-idf/bl ... ple_main.c

Multiple VFSs can be "mounted" at the same time, each accessible via its own path prefix ("mount point") which you define, like "/flash" or "/sdcard".