Problems with SD card

Hi folks!

I’m trying to run FatFs, but I’m getting weird stuff. When I’m sending CMD0 to SD card, I get some trash in 8 byte slots. To get response 0x01 I have to do something like while(send(CMD0)!=0x01); to get SD card to idle state …

Now the question: what could be the problem ? My hardware seems to be ok … did anyone had the same bug ? Tomorrow I’ll buy second SD slot to check if it isn’t hardware problem … you have any schematic on how to connect all the stuff ? I’ve seen only some with simple pin connect, 3V3 voltage and pull-up …

Help please ;] !

Cheers,

Tom

How to init and use a SPI-port of different MCUs to connect MMC, SD- and SDHC-cards in SPI-mode - here a small sample-project.

see: http://www.embedded-os.de/index.html?pcfat_port.htm