sdc driver problem in sdcErase

ChibiOS public support forum for all topics not covered by a specific support forum.

Moderators: RoccoMarco, lbednarz, tfAteba

Post Reply
User avatar
alex31
Posts: 445
Joined: Fri May 25, 2012 10:23 am
Has thanked: 57 times
Been thanked: 88 times

sdc driver problem in sdcErase

Post by alex31 »

since new version of sdc.c (update 1 of march), fatfs example over sdc did not work when enabling SDC_DESTRUCTIVE_TEST.

the problem seems to be in sdc.c, function sdcErase.

i think before return in normal case, state should be put back to BLK_READY, instead of staying at BLK_BUSY

I have add

Code: Select all

sdcp->state = BLK_READY;

before

Code: Select all

return CH_SUCCESS;


and example work again.

Alexandre
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: sdc driver problem in sdcErase

Post by Giovanni »

Hi,

Thanks for finding, I added that line.

Giovanni
Post Reply