Content originally posted in LPCWare by schisanoa on Fri May 23 15:18:24 MST 2014
I'm using LpcXpresso 7.1.1, with the RedProbe+, and the Embedded Artists LPC4088 Dev kit, and the following SD card:
1 512MB Kingstone
1 1GB KingStone
1 4GB SDHC Sandisk
1 2GB MicroSD with adapter
I never reach to pass this function: Chip_SDMMC_Acquire
It always return 0, and this happen with "app_sdmmc_meas" example code and "periph_sdmmc" example code.
Inside the Chip_SDMMC_Acquire, when the system arrive at
STATIC int32_t getCID(LPC_SDC_T *pSDC, uint32_t *pCID)
{
int32_t Ret = SDC_RET_FAILED;
SDC_RESP_T Response;
uint32_t RetryCnt = 20;
while (RetryCnt > 0) {
Ret = executeCmd(pSDC, SD_CMD2_ALL_SEND_CID, 0, &Response);
if (Ret == SDC_RET_OK) {
pCID[3] = Response.Data[0];
pCID[2] = Response.Data[1];
pCID[1] = Response.Data[2];
pCID[0] = Response.Data[3];
return SDC_RET_OK;
}
RetryCnt--;
}
the "executeCmd(pSDC, SD_CMD2_ALL_SEND_CID, 0, &Response);" never return SDC_RET_OK.
And I don't know how to fix it.
thank you
Alessio
PS: By looking the code of LPCOpen for LPC4088, and merging it with the LPCOpen for LPC43xx, the version of LPC4088 may be incomplete with lot of missing parts such as GPDMA config, and other function. I may misunderstanding, correct me if I am.