adafruit / Adafruit_CircuitPython_SD

SD card drivers for Adafruit CircuitPython
MIT License
37 stars 17 forks source link

Working with FT232H and spi-sd breakout board? #39

Closed Gerd1986 closed 3 years ago

Gerd1986 commented 3 years ago

Hi guys,

i have the adafruit ft232h breakout board and one of the 5 dollars amazon sd via spi breakout boards. it is not even doing the initialization and failing with "no sd card". Did you test the sd library with the ft232h breakout board?

Kind regards,

Gerd

jepler commented 3 years ago

We've also reproduced this with the Adafruit FT232H breakout & Adafruit MicroSD card breakout. At this time, I don't have a resolution to the problem. @caternuson has also reproduced the problem.

In my case I tested on a Debian Linux x86_64 system. What I observed is that the serial input data is always 0xff.

Some notes from my investigation:

makermelissa commented 3 years ago

Maybe try some various brands of SD cards. I've had different results across brands before.

jepler commented 3 years ago

We've identified that it's an incomplete implementation of busio.SPI in Adafruit_Blinka for the FT232H chip. Other Blinka implementations of busio.SPI may have the same limitation. You can follow the above-linked bug for more information.

jepler commented 3 years ago

This should be fixed by a blinka update

Gerd1986 commented 3 years ago

Its working now! Great work!