Replies: 1 comment 4 replies
-
I don’t know about the menu and user selection part, but for USB MSC, you only need to redirect the read10/write10 to the selected partition. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I am using tinyusb with an ESP32-S2. I mounted 2 FAT partitions in flash. Both partitions are displayed on the PC as a USB disk if I connect the ESP32-S2 to the PC (in the file manager under windows) via USB. I can move/copy files in both directions etc.
It works really well.
Now my question:
Can i dynamically choose which of the two mounted partitions is displayed on the PC?
I want the following scenarios:
USB connection to PC is only used to charge the battery, the user must activate the data connection to the PC on the ESP32-S2 via the menu and can end the data connection to the PC again.
The user can select which partition is visible on the PC as a USB disk (always only 1 partition at a time).
Do you have any advice on how I can do that?
Thanks for your support.
Beta Was this translation helpful? Give feedback.
All reactions