← index #7051Issue #9064
Related · high · value 3.732
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 · ISSUE

Is it possible to mount 2 SD cards and write each of simultaneously?

openby MATTYGILOopened 2022-08-17updated 2022-08-17
enhancement

Hi I am using an esp32 with non blocking recording. So I create a thread which is the non blocking recording code. I mount 2 sd cards, sd0 and sd1. I am able to read from sd0. However, when I try to write to sd1 I get a timeout error:

OSError: timeout waiting for response

    if state == RECORD:
        time.sleep_ms(1)
        num_bytes_written = wav.write(mic_samples_mv[:num_read]) <--- Error occurs here
        num_sample_bytes_written_to_wav += num_bytes_written
        # read samples from the I2S device.  This callback function
        # will be called after 'mic_samples_mv' has been completely filled
        # with audio samples
        num_read = audio_in.readinto(mic_samples_mv)

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