chegewara / EspTinyUSB

ESP32S2 native USB library. Implemented few common classes, like MIDI, CDC, HID or DFU (update).
MIT License
490 stars 70 forks source link

How to expose on-board external Flash as USB Mass Storage? #19

Closed HelloDB closed 2 years ago

HelloDB commented 3 years ago

Thank you for your library, how to expose the onboard external flash memory as USB Mass Storage?

chegewara commented 3 years ago

There is no API for that, and all depends what partition would you like to expose. I think the easiest would be to expose FFat, but anyway you need to add some functions or try to use esp-idf. In this repository is very simple and not production ready implementation to expose OTA partiton, which allows to update with drag n drop: https://github.com/chegewara/esp32s2-msc-ota

chegewara commented 3 years ago

https://github.com/chegewara/EspTinyUSB/issues/50