-
-
Notifications
You must be signed in to change notification settings - Fork 17
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
Accessing USB Pendrive and SD Card consecutively! #69
Comments
Hi @shivang705 , thanks. |
Thanks for the response! I referred the datasheet and found out that power-on / external reset is mandatory before switching to SD mode. I will try doing that! I want to use either SD Card or USB Pendrive at a time and not simultaneously. But, the provision will be there for both USB Pendrive and SD card. So I required a software solution to switch between the two! I will also try formatting the SD card with third party software and will test it again! Also, when both USB pendrive and SD card are connected, with setSource(0) at the beginning of the code, USB pendrive works fine. But, with setSource(1) at beginning of the code, SD card does not works. It always shows Attach drive first. |
You don't need to reset the module, just call |
Sorry for the late reply! Right now, I have connected both SD Card and USB pendrive. I have set setSource(1) with SD mode. But I am unable to read/write through SD Card. |
It can be a voltage instability on the VCC line.
|
Ok! Thanks for the response! Now, I have connected external power supply (SMPS) to power the IC and it is working great! |
Hello @djuseeq
Thanks for providing this insane library!
I followed up the steps provided for interfacing SD card on the module and VOILA! just setSource(1) and it works!
I have interfaced the module with ESP32 via UART. Now, I want to access both USB Pendrive and SD Card consecutively.
Chip Firmware Version - 0x42 (66)
USB Pendrive used - Sandisk 16 GB (and its works without any third party software required for formatting)
SD Card used - PNY 32GB
Here is what I did -
Outcome -
Issues I am facing for SD card -
So is it possible to use both consecutively using setSource() function or is it required to reinit the IC for SD mode and USB Host mode?
Also, when I was working only on SD Card, I found out that the files on the sd card are not visible on File Explorer in Windows 10! Is there any specific reason for this or am I doing something wrong?
Thanks in advance!
The text was updated successfully, but these errors were encountered: