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.
10 years, 11 months ago.
SDFileSystem library doesnt work with KL25Z?
Hi all,
I have received my KL2Z board from Farnell just yesterday.. As a first project, I am trying to convert one of my old LPC1768 mbed project to KL25Z.. My old project was using SD card file system so it was working with SDFileSystem library.. However at my first attempt to migrate that project to KL25Z I have faced a lot of error messages that;
"return type is not identical to nor covariant with return type "int" of overridden virtual function "mbed::FATFileSystem::disk_sectors"" in file "SDFileSystemSDFileSystem.h", Line: 60, Col: 21
"function "mbed::FATFileSystem::disk_read(char *, int)" is hidden by "SDFileSystem::disk_read" virtual function override intended?" in file "SDFileSystemSDFileSystem.h", Line: 57, Col: 16
"function "mbed::FATFileSystem::disk_write(const char *, int)" is hidden by "SDFileSystem::disk_write" virtual function override intended?" in file "SDFileSystemSDFileSystem.h", Line: 58, Col: 16
"object of abstract class type "SDFileSystem" is not allowed:" in file "/main.cpp", Line: 5, Col: 81
"return type is not identical to nor covariant with return type "int" of overridden virtual function "mbed::FATFileSystem::disk_sectors"" in file "SDFileSystemSDFileSystem.h", Line: 60, Col: 21
etc....
My source was;
- include "mbed.h"
- include "TextLCD.h"
- include "SDFileSystem.h"
SDFileSystem sd(PTD2, PTD3, PTD1, PTA4, "sd"); ; the pinout on the mbed Cool Components workshop board
.........
May you give a help pls?
1 Answer
10 years, 11 months ago.
Are you using the latest version of every library? If you compile exactly the same program, with only different pin definitions, for the lpc1768, does it work then?