AnsweredAssumed Answered

sdmmc hangs on SD_Init()

Question asked by JohnU on Jul 3, 2017
Latest reply on May 10, 2018 by Ben Evans

Hi,

 

I test FSL sdmmc on OM13092 LPCXpresso54608 using sdcard_polling example (SDK 2.2.0).

I have found it hangs with an old Toshiba SDHC card (SD-F04G 0742 TL8159V).

Backtrace:

SD_Init()

SD_SetDriverStrength()

SD_SelectFunction()

SD_SwitchFunction()

SDIF_TransferFunction()

SDIF_TransferBlocking()

SDIF_TransferDataBlocking()

dmaStatus = 0xA000 and does not change.

 

Previous command SD_SetBlockSize(64bytes) is successful. It hangs after kSD_Switch command sent (R1 response[0]=0x900). It can't handle DMA data transfer finish correctly (SDIF_TransferDataBlocking()).

 

Card data:

RawCid Details:{469793351, 833741708, 1144009799, 39079251}

RawCsd Details:{171966589, 503283584, 1532559360, 1074659378}

RawScr Details:{45416448, 402739458}

ocr 0xc0ff8000

 

Is it known problem?

 

best regards

J.

Outcomes