cancel
Showing results for 
Search instead for 
Did you mean: 

sdio initialization

torturecell
Associate II
Posted on May 19, 2012 at 18:45

Hello,

I am trying to use the SD card which is connected via SDIO interface. I am using STM3221G-EVAL evaluation board.

Problem is response of ACMD41 comes with a crc error. I have seen in errata that crc will be detected by SDIO host but even the response command and response1 registers holds weird values. Also if i ignore it and give command 2, i get the same response 

RESPCMD = 0x3f,   RESP1 = 0xff8000, 

order of initialization

pll

nvic,

lcd,

i2c

ethernet,

sdio

i get correct response of command 0 and command 55

Please help, I am stuck on it for quite some time now.

thanks
3 REPLIES 3
Andrew Neil
Evangelist
Posted on May 19, 2012 at 22:57

/352bebf8

torturecell
Associate II
Posted on May 20, 2012 at 17:57

hello neil,

thats what exactly i am facing

unfortunately there is no response to that query either

so any suggestions??

torturecell
Associate II
Posted on May 21, 2012 at 10:46

Hello,

found the issue, had defined one define wrong

i defined

#define SDIO_CMD_WAITRESP_SHORTRSP          ((u16)0x60)

instead of

#define SDIO_CMD_WAITRESP_SHORTRSP          ((u16)0x40)

It made any command which had its msb 1, return ok and failing others

a stupid mistake

thanks