SD Card compatible problem.

Discussion about programs, libraries and tools that work with MicroPython. Mostly these are provided by a third party.
Target audience: All users and developers of MicroPython.
Post Reply
User avatar
water
Posts: 75
Joined: Sun Sep 24, 2017 9:16 am

SD Card compatible problem.

Post by water » Thu Oct 31, 2019 12:02 am

I try some cheap SD card on ESP8266 (Micropython) appear error below when via

Code: Select all

spi = SPI(1, sck = Pin(14), mosi = Pin(13), miso = Pin(12))
sd = sdcard.SDCard(spi, Pin(15))
uos.mount(sd, '/sd')

Code: Select all

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "sdcard.py", line 234, in readblocks
OSError: [Errno 5] EIO
Others works fine.
and all works fine on PC (Windows), included the not compatible ESP8266 (Micropython) parts.

I want to find out the differences between works fine parts and not compatible parts. and modify some code let them works.
How should I to do that ? should I modify
https://github.com/micropython/micropyt ... /sdcard.py
Line 226 ~ Line 274 ?

:)

Post Reply