-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ESP32-S2 mounted SD not accessible from PC? #3477
Comments
We don't support the SD card over USB. The USB Mass Storage protocol works on the blocks below the filesystem. So, we'd need to expose the SD card as a second drive (logical unit in USB parlance). It would have the same read/write constraints as the internal flash. |
OK, let SD-over-USB be a feature request,
it's ok for me to appear as another drive.
Intuitively, I have expected this to "just work".
Now I need to first upload file from USB to internal flash,
write my own copy.py application, upload it too, then
enter python prompt and finally copy this file from flash to SD.
…On 9/28/20, Scott Shawcroft ***@***.***> wrote:
We don't support the SD card over USB. The USB Mass Storage protocol works
on the blocks below the filesystem. So, we'd need to expose the SD card as a
second drive (logical unit in USB parlance). It would have the same
read/write constraints as the internal flash.
--
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub:
#3477 (comment)
|
Can you provide some boot or commandline option |
It's not a high priority for us and it's not simple. The native sdcard support is a good start though. |
It doesn't really help that much, though the internal structure makes it a bit easier to add another MSC device. But there still has to be code behind that to make the SD card visible, and that's not easy. |
Newbie question. |
For transferring text files to and from the SD card, you can use Once I don't think this can be used for transferring binary files but someone might be able to figure out something. |
A newer comment in #2206 says:
Is implementing this the hard part? If so, could you please add the option to show the SD card instead of the usual CIRCUITPY filesystem? For example, Giving the computer easy access to the SD card (which is by far the largest storage of the device) seems kind of important. :) Thanks! |
We are working on making multiple drives available. There are some issues about making it work properly on all operating systems, which we're working through. |
That's great, thank you! Looking forward to the Windows solution 😅 |
just submit an PR for this #6555 |
Recent ESP32-S2 release can mount SD card,
after setting pinout and SPI, this works
storage.mount(vfs, "/sd")
os.listdir("/sd") lists files stored on the SD card.
['KERNEL.SYS', 'COMMAND.COM', 'INVADERS.COM', etc..
Now I want to copy a file from PC to the mounted SD card
but linux PC usb-storage interface doesn't "see" mounted
"/sd" directory
cp README.md /media/guest/CIRCUITPY/sd/
cp: cannot create regular file '/media/guest/CIRCUITPY/sd/': Not a directory
The text was updated successfully, but these errors were encountered: