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, 10 months ago.
Requesting help with SDFileSystem and Mbed version 5.7.2 for Freedom KL46Z
I teach a class which uses the Freedom KL46Z. The new semester is starting and I am reviewing my sample code. I have attempted to compile several programs which use the SDFileSystem library available from the Cookbook (https://os.mbed.com/cookbook/SD-Card-File-System). Since the update to version 5.7.2 of Mbed, I am unable to get any program using this library to compile. I am appending the error list below. Any ideas on how I can fix this would be greatly appreciated.
Warning: Overloaded function "mbed::FileSystemHandle::open" is hidden by "FATFileSystem::open" virtual function override intended? in "SDFileSystem/FATFileSystem/FATFileSystem.h", Line: 48, Col: 26
Warning: Overloaded function "mbed::FileSystemHandle::open" is hidden by "FATFileSystem::open" virtual function override intended? in "SDFileSystem/FATFileSystem/FATFileSystem.h", Line: 48, Col: 26
Error: Object of abstract class type "FATFileHandle" is not allowed in "SDFileSystem/FATFileSystem/FATFileSystem.cpp", Line: 100, Col: 17
Error: Object of abstract class type "FATDirHandle" is not allowed in "SDFileSystem/FATFileSystem/FATFileSystem.cpp", Line: 136, Col: 17
Info: Unable to download. Fix the reported errors...
1 Answer
6 years, 10 months ago.
SDFileSystem has been replaced in Mbed OS 5 by FATFileSystem, which you can mount against sd-driver library.
Example code is here; https://os.mbed.com/teams/mbed-os-examples/code/mbed-os-example-filesystem/