← index #7051PR #1079
Likely Duplicate · medium · value 3.779
QUERY · ISSUE

sdcard.py - OSError: timeout waiting for response

openby Leniwcowatyopened 2021-03-18updated 2024-09-08
drivers

I am using 8 GB microSD card, format FAT32. During mount code detects it as v2 card, but gives "OSError: timeout waiting for response". Tried to format as 4 GB FAT, did not work.
Raspberry Pi Pico

CANDIDATE · PULL REQUEST

sdcard: Set stop bit in SPI command frame.

mergedby c0ffee2codeopened 2026-02-14updated 2026-03-02

Hello,
first and foremost thank you for maintaining and evolving Micropython, it made my pet project possible !

I'm using 32gb class 10 sd card from Philips for my pet project and stumbled upon an compatibility issues: without stop bit card does not work with the driver :-(
If that matters, product information is here.

With stop bit set - card works like a charm with the driver, i tested it locally.
Before it failed with: OSError: timeout waiting for v2 card.

2 comments
benwynn · 2026-02-21

this is a good change, one that i've already done to my own version of sdcard.py

...you'll need to amend your commit and repush with an email address that doesn't have 'noreply' in the email for the checker to pass your PR though.

Gadgetoid · 2026-02-25

We've sourced a couple of SD cards that only work with this fix. Kingston CANVAS Select Plus 64GB and TEAMGROUP 16GB.

While I'd love to see https://github.com/micropython/micropython-lib/pull/765 merged, these smaller steps toward a more compatible driver would be useful in the meantime!

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied