[riot-notifications] [RIOT-OS/RIOT] SD card initialization issues (#11388)

danpetry notifications at github.com
Fri Apr 12 17:53:31 CEST 2019

#### Description

Some of the timeouts in the SD card SPI driver are specified by countdowns:


These are effectively blocking: I found a rate of about 300 counts per second for the "wait for not busy" action. For the case where an SD card isn't connected, the firmware just blocks at this point rather than failing initialization and continuing.

Suggest  specifying timeouts using timers rather than countdown variables, and setting them to reasonable times based on typical datasheet values plus some margin.

### Steps to recreate the issue

Run tests/pkg_fatfs_vfs for samr21-xpro without an SD card connected.

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190412/1fc777c2/attachment.html>

More information about the notifications mailing list