2017-05-31 09:31 AM
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.
2017-06-01 01:54 AM
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.