Skip to main content
Visitor II
September 3, 2020
Question

FatFs with SD 4Bit Bus & RTOS is not working (f_open) in LFN Mode

  • September 3, 2020
  • 0 replies
  • 549 views

Hi

I've configured FatFs for SD 4Bit Bus. I'm using FreeRTOS.

When USE_LFN = 0 then all works well. Writing and reading to/from the SD card is working as it should.

As soon as I enable USE_LFN = 3 (in CubeMX) f_open returns FR_NO_FILESYSTEM (13).

check_fs in f_open return 2 (Valid BS but not FAT).

That's strange because I've formatted the SD card with f_mkfs as FAT and FAT32. I've formatted it on my PC as FAT and FAT32 as well. I always get this behaviour.

Can anyone help me with this issue?

Regards

Dejan

    This topic has been closed for replies.