cancel
Showing results for 
Search instead for 
Did you mean: 

SDIO CMD53 gets into unexpected state

CMoul.1
Associate

Hi Support Forum,

I am using STM32H743ZI part with SDIO configured as Master and connected to SDIO slave which is a Wi-Fi module.

In this case high speed bidirectional data transfer happening  Tx -20Mbps while Rx with 1024bytes/sec.

As soon as data transfer starts within in few minutes programs crashes after debugging looks like code gets stuck in SDIO_CMD53() or SDIO_CMD53Poll().

I do see that even after setting the sdio DMA control register looks like the value is not set in the SDIO_CMD53() as below.

hsd->Instance->IDMACTRL = SDMMC_ENABLE_IDMA_SINGLE_BUFF;

I tried setting this value in loop for few iterations still issue is seen

Is the data length in below API should be always multiple of 32 bytes ,how to deal with padding and extraction.is this below API causing any issue over here.

#ifdef CORE_CM7       

SCB_CleanDCache_by_Addr((uint32_t*)pIoData, config.DataLength);

#endif

Any one facing similar kind of issue, I am attaching efc_sdio.c file which contains SDIO CMS APIS, Can any one help me out.

Thanks

Chandra

0 REPLIES 0