cancel
Showing results for 
Search instead for 
Did you mean: 

SD Card SDIO not working(FR_DISK_ERR)

fs
Associate

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.

2 REPLIES 2
KDJEM.1
ST Employee

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

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

SofLit
ST Employee

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

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.