cancel
Showing results for 
Search instead for 
Did you mean: 

Micro SD Card problem

QUANG Nguyen
Associate
Posted on May 31, 2017 at 18:31

Hello guys,

I would like to discuss with you about the problem of uSD card.

Normally, it's working well if the application executes from internal Flash, but when it runs on SDRAM, the uSD can not initializes with FR_DISK_ERR. The reason is the function HAL_SD_ReadBlocks() not returns SD_OK.

I have reduced SDIO clock but not help.

SysClk = 168Mhz, SDRAM Clock  = 84Mhz and SDIO Clk = 24Mhz.

Any advice and suggestions will be greatly appreciated.

1 REPLY 1
AvaTar
Lead
Posted on June 01, 2017 at 10:54

I guess your code (Cube code ?) relies on some implicit timings.

SDRAM is supposedly 16-bit access, and AFAIK not ART-accelerated, and thus slower.

 ... the function HAL_SD_ReadBlocks() not returns SD_OK.

I don't speak Cube, sorry.

SysClk = 168Mhz,...

I assume a F4xx MCU, then.