Open ifoxbr opened 1 year ago
Calls to readdir()
are redirected to esp_vfs_readdir()
which will redirect the call to readdir implementation of the driver. It decides which driver to use, i.e. fatfs if the directory is in fatfs.
You can find more information about this topic on this site: https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/storage/vfs.html
The callback for littlefs is registered here: https://github.com/joltwallet/esp_littlefs/blob/master/src/esp_littlefs.c#L255
Thank you Dobairoland
I get this breakpoint when debugging (Esp-IDF/ VsCode), and when running without debug the program crashes, I Iassume it's the same callback. I´m using Littlefs and instantiate as
esp_vfs_littlefs_conf_t conf =
{
.base_path = "/littlefs",
.partition_label = "littlefs", // este nome é o Name do arquivo "partition.csv"
.format_if_mount_failed = true,
.dont_mount = false,
};
Regards
Answers checklist.
General issue report
Can someone explain to me what this routine does? When debugging my program, the debug always stops at this routine. I use littlefs, does anyone know what I'm doing wrong and how to avoid this error?