cancel
Showing results for 
Search instead for 
Did you mean: 

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

Durmil Makwana
Associate II
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
19 REPLIES 19
Imen.D
ST Employee
Posted on June 26, 2018 at 15:12

Hello

durmil

,

I recommend you to follow these documents:

https://community.st.com/0D50X00009bMM7JSAW

https://community.st.com/0D50X00009bMM8bSAG

With Regards,

Imen.

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
Durmil Makwana
Associate II
Posted on June 26, 2018 at 15:32

Dear Imen,

   Thank you for the prompted response.

   We also need the USB feature so the USB + (SDIO + DMA) are conflicting to each other. so, Can it possible this without DMA.

   We have configured with 4bit SDIO + FatFs R0.12.

   While the cubeMx generated code showing some errors so the _FFCONF is changed with 32020.

Regards,

Durmil Makwana

Posted on June 26, 2018 at 16:17

Dear

durmil

,

Getting the “FR_NOT_READY�? error means that the SD_initialize() call failed for some reason.

It is done in the ‘sd_diskio.c’ file.

How is you doing the test?, As far as I know, the STM32411-Disco board doesn’t have any uSD port.

C

an you please attache your ioc file, I

will check your issue and come back to you.

With Regards,

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
203675CGIL2
Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..
Durmil Makwana
Associate II
Posted on June 27, 2018 at 07:27

Hello

‌,

Please find the attachment for .ioc file of my project.

Because of USB module we don't want to use DMA in my code so we have configured the project without DMA.

my basic requirementis256MB SD Card using 4bit SDIO.

0690X0000060PH9QAM.jpg

Regards,

Durmil Makwana

________________

Attachments :

CubeMxSDIOInterface.ioc.zip : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HxTM&d=%2Fa%2F0X0000000ayU%2FrYjglQX91MYCtnE1NRKbrrFNoZojDFz7cwO4BWWdC5I&asPdf=false
Durmil Makwana
Associate II
Posted on June 30, 2018 at 12:34

Hello, 

We Found a problem with SD Card Socket there is all data pins are shorted in the module. now we can read write in 4GB and 16GB card with DMA and Without DMA using 4bit and 1bit modes. 4GB(SDHC class-4) Card is working at 2MHz frequecy and the 16GB(class-10) Card is working at 500KHz.

In the Hardware we have pulled up the lines with the 47K resistors.

But still the problem is same that the 256MB Card is not working at any frequencies - (from 300KHz to 8MHz).

Is there any changes required specific for 256MB Memory Card.

0690X0000060LVDQA2.png

We are using this memory card to store the data.

204196CGIL2
Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..
204198CGIL2
Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..
Posted on June 30, 2018 at 18:26

https://www.ebay.com/itm/Original-Kodak-256MB-SD-Card-High-Speed-SD-Card-non-HC-for-Old-Cameras/321969303832

 
Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..