flash card and SPI

Discussion created by xavier12358 on Apr 28, 2010
Latest reply on May 1, 2010 by xavier12358


I program a MC9S08DZ60 in order to read informations from  SD card. I send it CMD0 and CMD1 commands to reset and init it, the card answers proprely. But for example when I send it a CMD17 command in order to read a single block, first the answer is correct 0x00 and then the card send me the data. But the probleme is that the start block is 0xfc whereas it should be 0xfe and then there is the data from the card. I don't know if the probleme could come from the class of my SD card?


Can someone who has already work on a SD card help me?

Thank you in advance.