my esp8266 cannot recognize my sdcard

All ESP8266 boards running MicroPython.
Official boards are the Adafruit Huzzah and Feather boards.
Target audience: MicroPython users with an ESP8266 board.
Post Reply
User avatar
blockers.xyz
Posts: 2
Joined: Fri Mar 20, 2020 10:13 am

my esp8266 cannot recognize my sdcard

Post by blockers.xyz » Fri Mar 20, 2020 10:21 am

i downloaded the latest master and sdcard driver from the official website,but it cannot recognize my sdcard.What should I do?
It's like this:

Code: Select all

>>> import os
>>> from machine import SPI,Pin
>>> import sdcard
>>> sd = sdcard.SDCard(SPI(1),Pin(15))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "sdcard.py", line 32, in __init__
  File "sdcard.py", line 60, in init_card
OSError: no SD card

User avatar
Roberthh
Posts: 3667
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: my esp8266 cannot recognize my sdcard

Post by Roberthh » Fri Mar 20, 2020 10:30 am

Which board and SD card adapter ate you using? It is also common that not every type of card works. Try a different card with a size <32 GB.
Edit: the card must have a single FAT partition only.

User avatar
blockers.xyz
Posts: 2
Joined: Fri Mar 20, 2020 10:13 am

Re: my esp8266 cannot recognize my sdcard

Post by blockers.xyz » Mon Mar 23, 2020 10:00 am

Roberthh wrote:
Fri Mar 20, 2020 10:30 am
Which board and SD card adapter ate you using? It is also common that not every type of card works. Try a different card with a size <32 GB.
Edit: the card must have a single FAT partition only.
Thanks,I chaged the sdcard and the new card works fine. :)

Post Reply