ESP32-S3 Mass storage device

I want to use ESP32 S3 as USB Mass storage device and i want to access files for listing or deleting for selected file with esp code. Is that possible with Arduino ide framework.

Im beginner and Tried many codes but its failed so far

You need to use the TinyUSB library. You also need SPIFFS or LittleFS for file management.

I moved your topic to an appropriate forum category @mkurnaz19781.

In the future, please take some time to pick the forum category that best suits the subject of your topic. There is an "About the _____ category" topic at the top of each category that explains its purpose.

This is an important part of responsible forum usage, as explained in the "How to get the best out of this forum" guide. The guide contains a lot of other useful information. Please read it.

Thanks in advance for your cooperation.

Is there any example code. I tried many codes but cant get work that

that is contradictionary.

A USB-mas-storage advice is a device that you plug in into a computer and it behaves like a USB-stick or external USB-diskdrive.

is a completely different behaviour.
You would need a display to show the files.

You should really describe your project what you want to do in the end.
Then good suited solutions can be made.
What is the final purpose of the files stored, listed, deleted on your ESP32-C3-microcontroller?

I want to use my ESP32S3 as USB flash disk. i want to control the files copied to the Esp while still connected to PC. When a file copied to the Esp över the PC that i dont want: delete the file with code on esp side

This would mean act as a classical USB-drive.
You would use the standard file-explorer on your computer to interact with the USB-drive. The code on the ESP32-S3 would be a pure USBdrive firmware.

Still you haven't described what the final purpose of all this is.

store, list delete files on what ever storage-medium is not a self-purpose.
What is the content of the files?

As the ESP32-S3 is a WiFi-cabable device you can use a different approach:
the ESP32-S3 is creating it's own WiFi and you can connect any WiFi-device with any kind of browser to upload / delete files stored on the ESP32-S3

Why? You can use a real USB flash stick that has more storage that will be far less trouble (and likely less expensive).

There is a LittleFS example in the Arduino IDE , did you try that. If you tried that and got errors then post the errors so we can see them

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.