ESP32-S3 Posix FILE SYSTEM APIs crashing regardless LIBC implementation #97734
Unanswered
alespitfire
asked this question in
Q&A
Replies: 1 comment
-
@alespitfire will check. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I am trying without any success to have POSIX library working with file system API.
In particular I need fopen, fread, fwrite and fstat.
I am working with the ESP32-S3 as mcu connected to an SD card.
I have no constraints about Zephyr version. I have no constraints about file system (but a preference for FATFS).
I have tried to readjust the fs_sample to use the posix functions to read from files but I fail, the system crashes.
(look at the attached file main.c function void test_posix(const char *path) L.125)
fs_sample.zip
I suspect the issue is in the libc or posix implementation as the fs_sample based on Zephyr File System works flawlessly.
In addition without expliciting which libc the compiler should use, the system does not crash; instead by adding
CONFIG_NEWLIB_LIBC=y
orCONFIG_PICOLIBC_USE_MODULE=y
the system crashes.Can you help me to figure this out?
Thank you
Beta Was this translation helpful? Give feedback.
All reactions