Skip to main content
SSune.1
Associate II
Jul 19, 2020 1:45 PM UTC
Question

SD Card FileSystem is not visible with STM32F466RE + SDIO + FATFS + MSC

Hi

I am trying to make SD card reader using SDIO with STM32F466RE.

I can see the SD card getting mounted in the system

But it is always asking to format the SD card, even the SD card is not getting formatted.

Test with multiple SD card. seems some problem with the code.

Can someone guide on to fix it?

I am very initial stage of learning so pardon for any silly mistakes.

This topic has been closed for replies.

2 replies

Tesla DeLorean
Guru
Jul 19, 2020 2:11 PM UTC

Can't really have FATFS and MSC working concurrently, consider MTP

Reporting formatting issues tends to revolve around read issues (ie IO routines not returning content properly), failure to report capacity properly.

Test thoroughly the IO routines. In FATFS this would be that the routines in DISKIO read/write blocks correctly, ie reads return consistent content, and matching exactly what was written, over entire media.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
SSune.1
SSune.1Author
Associate II
Jul 19, 2020 3:56 PM UTC

If I remove FATFS and make it working with SDIO the problem was same. capacity of card was getting read correctly.

Some time I had seen the sd card was loaded property like only 10% time. something in configuration is not right or the module may have the problem in case.