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;

  1. include "mbed.h"
  2. include "TextLCD.h"
  3. 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?

Accepted Answer

Thanks a lot.. I can compile it now.. I hope it works on the circuit..

posted by Özgür Kolay 02 Jun 2013

Build時は[.axf]ファイルができるので、ファイルを右クリックすると出るメニューから、 [Binary Utilities]-[Create binary]で、[.bin]ファイルが作成される。 そのbinファイルをmbedにコピーしてリセットで実行。

posted by Yasuhiko YAMAMOTO 02 Jun 2013