Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
6 years, 8 months ago.
Getting Compiler Error 135: "FATFileSystem" has no member "_ffs", while compiling with "mbed-os".
Getting Compiler Error 135: ==="Class FATFileSystem" has no member "_ffs"=== - while compiling with "mbed-os" library. Code is working fine without using "mbed-os". Could anyone suggest the possibility for solving this issue.
1 Answer
6 years, 8 months ago.
Hi Praveen,
Can you please provide us with a code sample? Are you using the FATFileSystem present within Mbed OS (for example: https://os.mbed.com/docs/v5.9/reference/fatfilesystem.html)?
Thank you!
- Jenny, team Mbed
Hi Jenny,
I'm using the FATFileSystem present within SDFileSystem of mbed. Getting the error in diskip.cpp
Please find the code below.
Thanks!
- include "mbed.h"
- include "SDFileSystem.h"
- include <string>
string c; char buffer[128];
SDFileSystem sd(PB_5, PB_4, PB_3, PB_15, "sd"); the pinout on the mbed Cool Components workshop board
int main() { printf("Hello World!\n");
mkdir("/sd/mydir", 0777);
FILE *fp = fopen("/sd/mydir/sdtest.txt", "r"); if(fp == NULL) { error("Could not open file for write\n"); } fprintf(fp, "Hello fun SD Card World!"); c= fgets(fp); while(fgets(buffer, 128, fp)) { printf("Line: %s\n", buffer); wait(1); } printf("Nucleo Read: %s\n",c); fclose(fp);
printf("Goodbye World!\n"); }
posted by 15 Jun 2018