Insert and remove SD-Cards without reboot #11049
WolleKette
started this conversation in
General
Replies: 2 comments 1 reply
-
yes, same problem with me, feel so sorry to our dearest host and comities... Still learning how to split out 2 directory like what u mention @WolleKette |
Beta Was this translation helpful? Give feedback.
1 reply
-
You can try the following sequence when swapping cards using machine.SDCard().
The following is the log of a test run on my REPL
Your REPL output will probably not have the debugging information as above. I am using a custom firmware with debugging. As you can see, |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
First of all: Is it possible in Micropython to insert SD-Cards, read files from it and remove the card after all?
I use a WEMOS D32 Pro which has a sd-card on board.
(But this is just for the beginning to test. Later, a separate SD card module is to be used. )
When I insert a card for the first time after power on, then I can mount the card as following:
But when I remove and reinsert the card, it's no longer possible to access the module.
No matter what I have tried, I only get error messages.
Creating an SDCard object again for example, brings an OSError: (-259, 'ESP_ERR_INVALID_STATE')
Beta Was this translation helpful? Give feedback.
All reactions