AnsweredAssumed Answered

SDIO clock doesn't seem to enable

Question asked by Wapers on Nov 22, 2013
Latest reply on Nov 24, 2013 by Wapers
Hello community,

I am trying to communicate a STM32F207 uC with a uSD card via the SDIO interface, what I am trying to do is to get the CID of the inserted uSD using CMD commands, and verify that both parts are communicating with each other.

In order to initialize the interface I use the procedure described in stm32f2xx_sdio.c of the latest Standard Peripheral Library, I configure the SDIO interface with less than 400KHz (for initialization, as mentioned in the manual reference) and 1-bit wide, I plan to use 4-bit in the future though. I have also correctly set up the clocks (SDIO 48MHz enabled) using the configuration tool provided by ST.

I follow the procedure described in the reference manual to identify the card and get the CID, however, when I send commands using the SendCommand function I get no response on the RESPx registers, no matter the command I send, nor the GetCommandResponse function returns the index of the command I sent. I suspect that the clock is not initializing properly as the 'clken' bit of the SDIO clock register never sets.

I would appreciate any help or directions, thanks in advance.