Adafruit MicroSD card - P254

I’m having trouble with MicroSD card breakout board. It keeps reporting
Traceback (most recent call last):

OSError: no SD card

I’ve tried 3 different, high quality cards, formatted correctly but it always dies here:

import time
import adafruit_sdcard
import board
import busio
import digitalio
import microcontroller
import storage

Use any pin that is not taken by SPI

SD_CS = board.D10
led = digitalio.DigitalInOut(board.D13)
led.direction = digitalio.Direction.OUTPUT

Connect to the card and mount the filesystem.

spi = busio.SPI(board.SCK, board.MOSI, board.MISO)
cs = digitalio.DigitalInOut(SD_CS)
sdcard = adafruit_sdcard.SDCard(spi, cs)

I’m using and Itsybitsy M4 with CP4.0beta5 and the latest library.

I’m beginning to suspect the board. The red LED stays on all the time.


Tony Goodhew