#9 Incorrect use of sd_Resp8b in efsl-0.2

closed-fixed
None
5
2006-09-12
2006-05-26
No

In file efsl-0.2/src/interfaces/sd.c, function
sd_getDriveSize, the CSD response of an SD card is read
using sd_Resp8b. As I understand it, function sd_Resp8b
is used to find the start of the card response (by
finding the first byte != 0xFF). Reading the actual
response using sd_Resp8b means that any 0xFF byte in
the response is skipped, resulting in an invalid CSD.

Proposed fix: change iob[i] = sd_Resp8b(iface); in the
for-loop to iob[i] = if_spiSend(iface,0xff);

Discussion

  • Michael De Nil

    Michael De Nil - 2006-09-12
    • assigned_to: nobody --> flecxie
    • status: open --> closed-fixed
     
  • Michael De Nil

    Michael De Nil - 2006-09-12

    Logged In: YES
    user_id=235907

    fixed, thanks bertrik! (should be in release 0.2.9)

     

Log in to post a comment.