esp-idf: occasionally storage overflow when using FatFs (IDFGH-11358)

Answers checklist.

  • I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
  • I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
  • I have searched the issue tracker for a similar issue and not found a similar issue.

IDF version.

v5.1.1

Espressif SoC revision.

ESP32

Operating System used.

Windows

How did you build your project?

VS Code IDE

If you are using Windows, please specify command line type.

None

Development Kit.

ESP32-WROOM-32E

Power Supply used.

External 3.3V

What is the expected behavior?

Read and write on FatFs filesystem without any problem.

What is the actual behavior?

Suddenly sometimes the storage overflows and there is no more space in that. Also, there are sometimes some corrupted files written in it with format XXXXXXX.XXX which X is 0xff in binary. Plus, esp_vfs_fat_info fuction returns the out_free_bytes 0 byte.

Steps to reproduce.

It’s suddenly and does not have clear behavior, but it happens when operation on filesystem is much more than usual, such as removing and recreating a file.

Debug Logs.

No response

More Information.

Tried on ESP32 and ESP32-S3 but I got the same error.

About this issue

  • Original URL
  • State: open
  • Created 8 months ago
  • Reactions: 1
  • Comments: 15 (1 by maintainers)

Most upvoted comments

@ermacv Not yet! But I saw exactly what you saw. Actually, I postponed fixing this problem for now. Please notice us if you found anything.