cancel
Showing results for 
Search instead for 
Did you mean: 

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

SSune.1
Associate II

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.

2 REPLIES 2

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
Up vote any posts that you find helpful, it shows what's working..
SSune.1
Associate II

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.