Skip to main content
Senior
December 14, 2023
Question

Issue with Fatfs on SLC micro SD with wear leveling

  • December 14, 2023
  • 2 replies
  • 2342 views

Hello,

I'm using a microSD connected with SPI to a STM32F4 microcontroller. I have used MLC micro SD card with fatfs for years without any issues. Recently, I have switched to SLC NAND micro SD, Industrial grade, with Wear Leveling (for application specific reasons). However, when I try to mount the new SD card I get FR_NO_FILESYSTEM.

Do someone have an idea why it is not working as expected?

2 replies

Piranha
Principal III
December 14, 2023

If you are using the HAL/Cube code, the answer is clear - because it is a broken bloatware. The solution is obvious - replace it with up to date FatFS and a normal driver and other code, which is not developed by inc0mpetent fools.

frntAuthor
Senior
December 14, 2023

Hello @Piranha ,

yes I’m using CubeIDE with the fatfs version provided by ST. The card is formatted in Fat32, allocation unit 4K.

There is an updated version of fatfs that I can import?

Piranha
Principal III
December 15, 2023

FatFS is an open source library. Open it's home page and download it!

Tesla DeLorean
Guru
December 14, 2023

Check what content of sector zero / MBR and partition table.

Check if a supported file system, and suitably ffconf.h configuration for support.

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
frntAuthor
Senior
December 14, 2023

I have checked the ffconf.h file but I don't see any special configuration that can help. I see that the microSD is recognized as SD standard which is different from the older ones that were recognized as SDHC.