Skip to main content
QUANG Nguyen
Visitor II
May 31, 2017
Question

Micro SD Card problem

  • May 31, 2017
  • 1 reply
  • 460 views
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.

    This topic has been closed for replies.

    1 reply

    AvaTar
    Senior III
    June 1, 2017
    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.