Skip to main content
Durmil Makwana
Associate
Jun 14, 2018 7:48 AM UTC
Question

Issue of mounting 256MB SD Card in STM32F411 Discovery kit using SDIO interface

Posted on June 14, 2018 at 09:48

I am using stm32F411RE discovery kit. i generate a code with the cubeMX4.25, the 4GB SDHC card is working fine but when i tried with the 256MB SD Card it was not working. I am getting error 'FR_NOT_READY' in f_mount function.

Other SD Cards (4GB and 16GB) are successfully mounted and file can be written/read.

#fatfs-sdio #sd-card #fr_not_ready #f_mount-sdcard #sdio-fatfs #stm32f4-sdio #stm32f411e-disco #f_mount
This topic has been closed for replies.

19 replies

P D Chauhan
Visitor II
Aug 13, 2018 4:38 AM UTC

Thanks Clive.

Here are Details of CID, CSD for all three 256 MB SD Cards:

Working SD Card

CSD: [0] 0x005ED032, [1] 0x5F5983CF, [2] 0xEDB6FF87, [3] 0x9640003E

CID: [0] 0x1B534D53, [1] 0x4D492020, [2] 0x1002B866, [3] 0xCF0079C8

SD Card with NO_FILESYSTEM Error:

CSD: [0] 0x00260032, [1] 0x5F5983C4, [2] EDDACFFF, [3] 0x92404060

CID: [0] 0x03534453 [1] 0x55323536, [2] 0x800008B6, [3] 0x12007CB0

SD Card with DISK_ERR:

CSD: [0] 0x00260032, [1] 0x5F5981E1, [2] 0xB6DB7F81, [3] 0x964000FA

CID: [0] 0x18494E32, [1] 0x35364D42, [2] 0x2540CC85, [3] 0x05006B94

We could not find SCR, but will try and let you know.

P D Chauhan
Visitor II
Aug 27, 2018 9:17 AM UTC

Hi @Community member​ ​ 

I have implemented SD Card activity using EXTI interrupt. I get interrupt when I insert or remove the SD Card. But in my case, when I remove and again insert the SD Card, f_mount fails. It returns DISK_ERR. First time it mounts perfectly and read data correctly. But mounting second time and onward, it creates problem.

I cannot figure it out the reason.