You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importboardimportsdcardiobus=board.SPI()
# Run this, but do not connect the SD card's powersd=sdcardio.SDCard(bus, board.SD_CS)
Behavior
No output, just stuck, for around 3 minutes
Description
No output, just stuck, for around 3 minutes. I think I found the cause, read more below. But I don't know how to improve it.
Additional information
In init_card_v2, the maximum potential timeout is given by CMD_TIMEOUT * (50ms + 3 cmd with wait), which is 200 * (50ms + 3 * 300ms) = 190 seconds. That's more than 3 minutes.
CircuitPython version
Code/REPL
Behavior
No output, just stuck, for around 3 minutes
Description
No output, just stuck, for around 3 minutes. I think I found the cause, read more below. But I don't know how to improve it.
Additional information
In
init_card_v2
, the maximum potential timeout is given byCMD_TIMEOUT * (50ms + 3 cmd with wait)
, which is200 * (50ms + 3 * 300ms) = 190 seconds
. That's more than 3 minutes.circuitpython/shared-module/sdcardio/SDCard.c
Lines 213 to 228 in 5836f11
The text was updated successfully, but these errors were encountered: