Skip to main content
Visitor II
January 18, 2024
Question

SD Card SDIO not working(FR_DISK_ERR)

  • January 18, 2024
  • 2 replies
  • 817 views

I have a custom board and I have to run an SD card on it using SDIO protocol however on f_mount() function it takes a long time to come out with error FR_DISK_ERR but when I call "HAL_SD_GetCardInfo(&hsd, &sdCardSpace)" then I am getting all the data. I have tried with both 1-bit and 4-bit SDIO and DMA but none is working. I need help to figure out if its hardware error or software error or what the error is.

    This topic has been closed for replies.

    2 replies

    Technical Moderator
    January 29, 2024

    Hello @fs and welcome to the Community :),

    Could you please precise, which STM32 device are you using?

    Do you use the STM32CubeMX for code generation?

    Thank you.

    Kaouthar

    Technical Moderator
    January 29, 2024

    Also, try to check the SDcard on another device PC/laptop or others .. It could be an issue on the SDcard you are using!