← index #7051PR #5287
Related · high · value 1.774
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

drivers/sdcard: raise exception instead of infinite loop on read failure

closedby jeremyherbertopened 2019-11-04updated 2019-11-06

In the SPI SD card driver, the code can get stuck in an infinite loop if the SD card fails to respond to a read. This patch changes it to a timeout+exception instead.

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