Page 3 of 3
Re: SDC on F0.
Posted: Sun May 22, 2016 1:15 pm
by Giovanni
The clock pulses with CS high are expected, it is the procedure for enabling SPI mode on the SD card. What follow are initialization commands.
Giovanni
Re: SDC on F0.
Posted: Sun May 22, 2016 2:15 pm
by rew
So, what I'm missing is the data of those initialization commands: my MOSI line is always high....
Update: Ah, The every ms is:
Code: Select all
#if MMC_NICE_WAITING == TRUE
/* Trying to be nice with the other threads.*/
osalThreadSleepMilliseconds(1);
#endif
Update2: Reading the init code... I would suggest adding:
http://prive.bitwizard.nl/mmc_spi.patchThis adds an unselect to the initialization where you said this must happen with CS disabled. In my code this is already the case, but you never know how stuff ends up. After starting to post this, I thought: Maybe it's in the initialization of SPI, but I couldnot find it there.