ESP32S3 : Virtual FileSystem Component

ThomasESP32
Posts: 229
Joined: Thu Jul 14, 2022 5:15 am

ESP32S3 : Virtual FileSystem Component

Postby ThomasESP32 » Fri Feb 03, 2023 9:50 am

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

MicroController
Posts: 1710
Joined: Mon Oct 17, 2022 7:38 pm
Location: Europe, Germany

Re: ESP32S3 : Virtual FileSystem Component

Postby MicroController » Thu Feb 16, 2023 8:34 pm

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".

Who is online

Users browsing this forum: No registered users and 64 guests