Skip to main content
SSune.1
Associate II
July 19, 2020
Question

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

  • July 19, 2020
  • 2 replies
  • 2189 views

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
July 19, 2020

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
July 19, 2020

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.