MPY: Can't mount to SD Card #15820
-
Good Afternoon, I have a genuine PyBoard v1.1 running MP v1.22.2. I am unable to mount a Micro SD Card to this board. I receive the following error: I am using a SanDisk Ultra 32GB MicroSD card. I have also tried with a 64GB MicroSD card and recieved the same issue. Been searching through the forums, and so far none of the solutions have been able to fix this problem. Any help would be appreciated. Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 17 replies
-
I have never seen such a message on a Pyboard. Have you checked that your SD cards have a normal filesystem when viewed from a PC? |
Beta Was this translation helpful? Give feedback.
-
I am still puzzled by this. On a Pyoard 1.1 with no MicroPython v1.23.0 on 2024-06-02; PYBv1.1 with STM32F405RG
Type "help()" for more information.
>>>
>>> import os
>>> os.listdir('/')
['flash', 'sd']
>>> I have never found it necessary to have explicit mounting code on a Pyboard. |
Beta Was this translation helpful? Give feedback.
@robert-hh I was able to get it to mount by executing the following:
Thank you to @robert-hh and @peterhinch for your patience and your help with this. I am just going to move this code into my boot.py file from now on.