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.
3 years, 1 month ago.
STM32_DISCO-F746NG; Using SD card to create filesystem and have it available through USB to PC
I am trying to combine these two libraries
to enable the SD card filesystem and make it available through USB to PC.
Both of them compile just fine stand-alone but when put together the compile produces this error:
Error: Return type is not identical to nor covariant with return type "std::uint32_t" of overridden virtual function "FATFileSystem::disk_sectors" in "DISCO-F746NG_USB_Host/USBHost_DISCO-F746NG/USBHostMSD/USBHostMSD.h", Line: 65, Col: 23
I have tracked this down to differences with the FATFileSystem.h virtual definitions
In DISCO-F746NG_USB_Host the function is defined as
virtual uint64_t disk_sectors() = 0;
and in DISCO-F746NG_SDFileSystem
virtual uint32_t disk_sectors() = 0;
How should I re-concile between the libraries to make them co-exist? In my app, I would write to SD card using DISCO-F746NG_SDFileSystem and make the files available for reading through USB using DISCO-F746NG_USB_Host.
Is this possible to achieve?