6 years, 8 months ago.

does not compile

The demo version does not compile, If you allow update to newest version :(

Question relating to:

USBMSD SD card Hello World for Mbed platforms

@ceri , have you tested the demo with the newest lib ?

posted by Martin Kojtal 20 Aug 2014

3 Answers

5 years, 1 month 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

6 years, 6 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 Erik - 21 Oct 2014

Hello 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 Kazuki Yamamoto 21 Oct 2014

Hello,

I found 28 is ok and 29+ are NG.

Thanks anyway.

posted by Kazuki Yamamoto 21 Oct 2014

@Erik, if you are aware of a bug, and it's not on github, please add it there so we can track it. Thanks

posted by Martin Kojtal 21 Oct 2014

Late reaction, but @Martin, it is already there for quite some time ;)

posted by Erik - 27 Oct 2014
6 years, 5 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 Martin Kojtal 30 Oct 2014