Page 1 of 1

ESP32-S2 - USB mass storage

Posted: Fri Aug 13, 2021 9:50 am
by AlfiQue
Hello,

I need some help for a development

I have a code that runs on arduino that allows to create a mass storage from a SD card.

I have a simple file of about 10kb to create, and I would like to use the internal memory to emulate this mass storage.

Is it possible?
Is there any example?

Thanks for your support ;)

Re: ESP32-S2 - USB mass storage

Posted: Fri Aug 13, 2021 12:23 pm
by lbernstone
An example is included in current arduino-esp32 master, and will be part of 2.0.0 release.
https://github.com/espressif/arduino-es ... USBMSC.ino

Re: ESP32-S2 - USB mass storage

Posted: Mon Aug 16, 2021 9:06 am
by AlfiQue
Thank you for your answer

I have updated to version 2.0.0-rc1 and I tested the codeUSBMSC.ino

But how to create a new file, my other constraint is that this file must have a name with 12 characters

Thanks