kiwih / cubeide-sd-card

CubeIDE/CubeMX compatible MMC/SD memory card FatFs driver
Other
97 stars 56 forks source link

xmit_datablock does not wait for result #12

Open sx107 opened 1 year ago

sx107 commented 1 year ago

user_discio_spi.c, line 249: resp = xchg_spi(0xFF); /* Receive data resp */

My SD card does not respond with 0x05 response immediately, only after one 0xFF. This function should wait with a timeout for NOT 0xFF and only then check the result.