Closed
Description
Description
- Type: Bug
- Priority: Blocker
- Reported: https://developer.mbed.org/questions/77498/mbed-local-file-system-not-working/
Bug
Target
LPC1768 (and possibly LPC11U24)
Toolchain:
ARM (online IDE)
Toolchain version:
5.06
meed-os sha:
f4864dc
Expected behavior
LocalFileSystem API should work.
Actual behavior
LocalFileSystem API does not seem to work with mbed_lib_rev138.
If I rollback to mbed_lib_rev137, it works fine.
Steps to reproduce
Create new problem as code below with mbed_lib_rev138.
#include "mbed.h"
#if !defined(TARGET_LPC1768) && !defined(TARGET_LPC11U24)
#error This target does not support LocalFileSystem.
#endif
LocalFileSystem local("local"); // Create the local filesystem under the name "local"
int main() {
FILE *fp = fopen("/local/out.txt", "w"); // Open "out.txt" on the local file system for writing
fprintf(fp, "Hello World!");
fclose(fp);
}