Skip to content

MPY: Can't mount to SD Card #15820

Sep 9, 2024 · 2 comments · 17 replies
Discussion options

You must be logged in to vote

@robert-hh I was able to get it to mount by executing the following:

MicroPython v1.22.2 on 2024-02-22; PYBv1.1 with STM32F405RG
Type "help()" for more information.
>>> import os
>>> sd = pyb.SDCard()
>>> os.VfsFat.mkfs(sd)
>>> os.mount(sd,'/sd')
>>> os.listdir('/')
['flash', 'sd']

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.

Replies: 2 comments 17 replies

Comment options

You must be logged in to vote
17 replies
@robert-hh
Comment options

@jkaminski9
Comment options

@robert-hh
Comment options

@jkaminski9
Comment options

Answer selected by jkaminski9
@robert-hh
Comment options

@jkaminski9
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants