Skip to content
This repository has been archived by the owner on Jan 29, 2023. It is now read-only.

fopen fails, but why? #4

Answered by khoih-prog
Laserjones asked this question in Q&A
Discussion options

You must be logged in to vote

The best way to learn is from the working example, such as LittleFS_Test. If your code fails to run, retest the example and compare what are the differences.

Then, you will see just a small change, by adding the MBED_LITTLEFS_FILE_PREFIX, will fix the issue.

char fileName1[] = MBED_LITTLEFS_FILE_PREFIX "/hello1.txt";
char fileName2[] = MBED_LITTLEFS_FILE_PREFIX "/hello2.txt";

I've intentionally delayed to respond to see if you can fix the issue yourself, without surrendering so early. Persistence is always the most demanding and best virtue in programming, which requiring probl…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@Laserjones
Comment options

Answer selected by Laserjones
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants