[Bug 1567] New: SD card timeouts are wrong

bugzilla-daemon at rtems.org bugzilla-daemon at rtems.org
Wed Jun 16 13:15:05 UTC 2010


https://www.rtems.org/bugzilla/show_bug.cgi?id=1567

           Summary: SD card timeouts are wrong
           Product: RTEMS
           Version: 4.10
          Platform: All
        OS/Version: RTEMS
            Status: NEW
          Severity: normal
          Priority: P3
         Component: misc
        AssignedTo: joel.sherrill at oarcorp.com
        ReportedBy: arnout at mind.be
                CC: arnout at mind.be


Created an attachment (id=792)
 --> (http://www.rtems.org/bugzilla/attachment.cgi?id=792)
Fixed SD card timeouts

The timeouts in the SD card driver don't conform to the spec in
http://www.sdcard.org/developers/tech/sdcard/pls/Simplified_Physical_Layer_Spec.pdf

* The read timeout is a factor 100 too small (this caused one card to fail for
me).

* The write timeout is not implemented.  It should be 2.5 times larger than the
read timeout (although this isn't specified clearly for the SPI case).  (This
one caused my system to hang on a faulty card.)

The attached patch fixes the calculation of n_ac_max and also uses n_ac_max in
sd_card_wait().

-- 
Configure bugmail: https://www.rtems.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the bugs mailing list