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.
9 years, 7 months ago.
does not compile
The demo version does not compile, If you allow update to newest version :(
Question relating to:
3 Answers
8 years ago.
Still does not compile with updated USBDevice lib.
Error: Object of abstract class type "USBMSD_SD" is not allowed in "main.cpp", Line: 4, Col: 12
9 years, 4 months ago.
Hello Samuel,
I have similar situatioin with LPC1768 device.
I am trying to use it on LPC1768, mbed library=rev89, USBDevice=rev32, and USBMSD_SD=rev2. (they are latest at Oct/21st/2014.) Then i clicked by Compile button on web IDE or just Ctrl-B to build, but failed with warnings and an error.
-=-=-=-
Warning: Function "USBMSD::disk_read(std::uint8_t *, std::uint64_t, std::uint8_t)" is hidden by "USBMSD_SD::disk_read" virtual function override intended? in "USBMSD_SD/USBMSD_SD.h", Line: 57, Col: 17
Warning: Function "USBMSD::disk_write(const std::uint8_t *, std::uint64_t, std::uint8_t)" is hidden by "USBMSD_SD::disk_write" virtual function override intended? in "USBMSD_SD/USBMSD_SD.h", Line: 58, Col: 17
Warning: Function "USBMSD::disk_read(std::uint8_t *, std::uint64_t, std::uint8_t)" is hidden by "USBMSD_SD::disk_read" virtual function override intended? in "USBMSD_SD/USBMSD_SD.h", Line: 57, Col: 17
Warning: Function "USBMSD::disk_write(const std::uint8_t *, std::uint64_t, std::uint8_t)" is hidden by "USBMSD_SD::disk_write" virtual function override intended? in "USBMSD_SD/USBMSD_SD.h", Line: 58, Col: 17
Error: Object of abstract class type "USBMSD_SD" is not allowed in "main.cpp", Line: 4, Col: 11
-=-=-=-
it seems libraries are causing kind of confrict. error number is 322: https://developer.mbed.org/cookbook/Compiler-Error-322
I hope this helps.
If you switch to an older revision of the USBDevice lib it should work again. It was changed, this bug has been reported (and the change wasn't really needed probably), the bug has been acknowledged, but after that nothing has been done with it as of yet.
posted by 21 Oct 2014Hello Erik,
Thanks to your comment, I updated( = downgraded) and _compiled_. Now each revisions are mbed=60, USBDevice=8, USBMSD_SD=2(no change). What do you think about mbed library itself, I would like to use it on LPC11U35/501. Do you know which is latest "OK" revision of USBDevice?
posted by 21 Oct 20149 years, 4 months ago.
Will this be fixed soon? I do not think that downgrading usbdevice is the right solution.
PLease refer to https://github.com/mbedmicro/mbed/issues/506. Once resolved, will be closed there. Thanks
posted by 30 Oct 2014
@ceri , have you tested the demo with the newest lib ?
posted by Martin Kojtal 20 Aug 2014