HI All,
SDHC 8gb card is interfaced to MSP430F5329 mcu using SPI communication. communication speed is 400kHz.
using slaa281 for my reference, initialization is Done properly sd card enter in to SPI mode.
After sending ACMD41 command always getting 0x01 not getting 0x00 response.
unsigned char response = 0x01,cc=0; CLEAR_CS_SDCARD; SD_sendcmd(GO_IDLE_STATE,0,0x95); // software reset and Ideal cmd //Now wait for READY RESPONSE if(mmcGetResponse()!=0x01) return MMC_INIT_ERROR; if(response==0x01) { CLEAR_CS_SDCARD; spiB1Tx(DUMYBYTE); SD_sendcmd(APP_CMD,0x00,0xFF); // using old SD card // if new SD card want to use CMD8,arg:0x1AA,CRC:0x87 response=mmcGetResponse(); SET_CS_SDCARD; spiB1Tx(DUMYBYTE); CLEAR_CS_SDCARD; SD_sendcmd(0x69,0x00,0xFF); // ACMD41 response=mmcGetResponse(); CLEAR_CS_SDCARD; } SET_CS_SDCARD; spiB1Tx(DUMYBYTE); return (response); }
not understanding where am doing wrong. voltage levels also fine, tested with different SPI speeds in between 100 to 400khz's also not getting proper response.
using "SDHC 8gb card,it is not version 2".kindly help me to solve the issue.