MicroSD card module and mounting error
Posted: Sun Sep 26, 2021 8:01 pm
Hello,
recently I bought MicroSD card module but I have issue to make it work.
At the beginning I've connected it according to the manual using "slot 3" but I get en error:
MicroPython v1.16 on 2021-06-23; ESP32 module with ESP32
Type "help()" for more information.
>>>
>>> import os, machine
>>> sd=machine.SDCard(slot=3)
>>> os.mount(sd, "/sd")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
OSError: 16
>>>
Then I've changed connections to different pins:
sd=machine.SDCard(miso=12, mosi=13, sck=14, cs=15)
but with no luck.
I also changed frequency to lower than default one (e.g. 2Mhz, 1Mhz, 500KHz or 100KHz) but I get the same error.
Card is 2GB Kingston, formatted to FAT32, having 1 partition - mounted on computer it works.
Do you have any idea what could be root cause of this error ?
recently I bought MicroSD card module but I have issue to make it work.
At the beginning I've connected it according to the manual using "slot 3" but I get en error:
MicroPython v1.16 on 2021-06-23; ESP32 module with ESP32
Type "help()" for more information.
>>>
>>> import os, machine
>>> sd=machine.SDCard(slot=3)
>>> os.mount(sd, "/sd")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
OSError: 16
>>>
Then I've changed connections to different pins:
sd=machine.SDCard(miso=12, mosi=13, sck=14, cs=15)
but with no luck.
I also changed frequency to lower than default one (e.g. 2Mhz, 1Mhz, 500KHz or 100KHz) but I get the same error.
Card is 2GB Kingston, formatted to FAT32, having 1 partition - mounted on computer it works.
Do you have any idea what could be root cause of this error ?