Page 1 of 1

sdc driver problem in sdcErase

Posted: Sun Mar 10, 2013 12:11 pm
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

Re: sdc driver problem in sdcErase

Posted: Sun Mar 10, 2013 12:21 pm
by Giovanni
Hi,

Thanks for finding, I added that line.

Giovanni