Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The driver cannot compile with Mbed OS 5.11.2 and above. #1

Closed
screamerbg opened this issue Jan 28, 2019 · 3 comments
Closed

The driver cannot compile with Mbed OS 5.11.2 and above. #1

screamerbg opened this issue Jan 28, 2019 · 3 comments

Comments

@screamerbg
Copy link

Due to the following change ARMmbed/mbed-os#9135, I get the following compiler error while compiling Pelion example with Mbed OS 5.11.2:

[DEBUG] Output: ".\drivers\storage\MySystemStorage.cpp", line 110: Error:  #322: object of abstract class type "NuSDBlockDevice" is not allowed:
[DEBUG] Output:             pure virtual function "mbed::BlockDevice::get_type"  has no overrider

CC @cyliangtw @samchuarm

@cyliangtw
Copy link
Contributor

@screamerbg , about this new virtual function of blockdevice classes, we will implement to fulfill OS 5.12, we will also need to modify the combination of mbed-os.lib and COMPONENT_NUSD.lib in pelion-example-common.

CC @samchuarm

@dannybenor
Copy link

Please add this simple function that returns the name of the BD. It is much simpler than revert the changes in 5.11.2.

@cyliangtw
Copy link
Contributor

@dannybenor , it's OK to finish the test by tomorrow.
Next time, it's better to provide one default implementation instead of pure virtual function for backward compatible, for ex return "unknown".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants