Question
FatFS SD wont initialize
Posted on January 02, 2014 at 06:01
Hi All,
I'm having problems with getting my 2Gb Micro SD card to initialize. From deubgging, I have found the problem occurs in the FindSCR(RCA, scr) function called within SDEnWideBus(FunctionalState NewState). Specifically the errorstatus returns 'SD_CMD_RSP_TIMEOUT' when the following code is run /*!< Send CMD55 APP_CMD with argument as card's RCA */ SDIO_CmdInitStructure.SDIO_Argument = (uint32_t) RCA << 16; SDIO_CmdInitStructure.SDIO_CmdIndex = SD_CMD_APP_CMD; SDIO_CmdInitStructure.SDIO_Response = SDIO_Response_Short; SDIO_CmdInitStructure.SDIO_Wait = SDIO_Wait_No; SDIO_CmdInitStructure.SDIO_CPSM = SDIO_CPSM_Enable; SDIO_SendCommand(&SDIO_CmdInitStructure); errorstatus = CmdResp1Error(SD_CMD_APP_CMD); Any thoughts on why this would be so? Thanks for your help in advance! Stive