5 years, 10 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

5 years, 10 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!

  1. include "mbed.h"
  2. include "SDFileSystem.h"
  3. 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 Praveen S 15 Jun 2018