This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

SD card initialization commands.

I need some information (commands ) for a SD initialization through SPI.

I don't think that I am using the right commands.

These are the commands that I use:

- set clock to 400 kHz

- set CS=0

- delay 74 clocks

- set CS=1

- delay 16 clocks

- CMD0

- While (IDLE_STATE != 0)

{

- CMD41

- CMD55

}

- CMD58