AnsweredAssumed Answered

IMXRT1052 SDCard Detect Fail

Question asked by Omer Kaan Basakinci on Jun 22, 2020
Latest reply on Jun 28, 2020 by jeremyzhou

Hello ı am using Mcuxpresso 11.1.1  and MIMXRT 1052 on custom board. I tried to use my sd card but can not detect sd card. Tried to modify "evkbimxrt1050_sdcard_polling" example. First ı link application to ram and change the SD_CD_SW connection. 

Example use gpio_io,28 (GPIO_B1_12), we want to use gpio_io,24 (GPIO_B1_08). I used default settings.

 

Some of our schematics:

 

 

 

My Pins:

 

   

 

 

 

 "evkbimxrt1050_sdcard_polling" examples pins :

 

 

 

Code stuck at this function :

 

status_t SDMMCHOST_WaitCardDetectStatus(SDMMCHOST_TYPE *base, const sdmmchost_detect_card_t *cd, bool waitCardStatus)
{
sdmmchost_detect_card_type_t cdType = kSDMMCHOST_DetectCardByGpioCD;

if (cd != NULL)
{
cdType = cd->cdType;
}

if (waitCardStatus != s_sdInsertedFlag)
{
/* Wait card inserted. */
do
{
if (cdType != kSDMMCHOST_DetectCardByGpioCD)
{
if (SDMMCHOST_CARD_DETECT_INSERT_STATUS(base))
{
s_sdInsertedFlag = true;
}
}
else
{
if (SDMMCHOST_CARD_DETECT_INSERT_STATUS(base))
{
s_sdInsertedFlag = true;
}
}
} while (waitCardStatus != s_sdInsertedFlag);
}

return kStatus_Success;
}

 

Outcomes