2020-07-19 06:45 AM
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.
2020-07-19 07:11 AM
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.
2020-07-19 08:56 AM
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.