Skip to main content
Dejan Nedeljkovic
Associate III
September 4, 2020
Question

FatFs in LFN Mode: I get always FR_NOT_ENOUGH_CORE on f_open()

  • September 4, 2020
  • 1 reply
  • 1955 views

Hi

I've configured FatFs for SD 4Bit Bus and using FreeRTOS. I've set USE_LFN = 3 (dynamic working buffer on the HEAP)

When I call f_open() it always returns FR_NOT_ENOUGH_CORE.

The SD card calls are made in a seperate Task.

When USE_LFN = 0 then all works well.

Did I forget to set something?

Regards

Dejan

This topic has been closed for replies.

1 reply

Tesla DeLorean
Guru
September 4, 2020

Check heap size, especially Keil.

Still failing, track malloc() usage.​

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
Dejan Nedeljkovic
Associate III
September 4, 2020

Hi @Community member​ 

Heap size looks ok. I have 22 kBytes left.

Regards

Dejan

Tesla DeLorean
Guru
September 4, 2020

Probably want the breakpoint code if ff.c throwing the error, or instrument malloc/free calls.​

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