7 years, 8 months ago.

MBUINO not building

Based on my project failing to build, I just tried to create a brand new blinky test program for MBUINO. I added the main.cpp and a ref to MBED lib. I get the following error which implies I have multiple MBED libs defined:

Error: Library name 'platform' is not unique (defined in '/extras/mbed_093f2bd7b9eb/TARGET_OC_MBUINO/mbed_lib.json' and '/extras/mbed_093f2bd7b9eb/TARGET_LPC11U24/mbed_lib.json')

Here's the rub: I don't. I have one MBED lib in the project. This seemed to start after the 3/14/17 build of the library. Since I am using the pre-built version of the lib, I don't have access to the internals of the lib so I couldn't have put something in there.

It looks to me like something went wrong in the last release of the lib. Can anybody confirm or offer any explanation?

ARM? Anybody? I'm running out of hair......

In the online compiler if you right click on the library and select revisions you can then pick an old version and click the switch button. That allows you to go back to a non-broken version of the old library if you prefer to stick with that.

posted by Andy A 30 Mar 2017

You can also just use another LPC11U24-Board to compile, e.g. https://developer.mbed.org/platforms/mbed-LPC11U24/ works fine for me :). mbed-os needs more space for me (27kb compared to 13kb of the 'bare-mbed').

posted by Theo Bestenlehner 03 Apr 2017

2 Answers

7 years, 7 months ago.

I also can't compile for my mBuino-board anymore :(...

You can also just use another LPC11U24-Board to compile, e.g. https://developer.mbed.org/platforms/mbed-LPC11U24/ works fine for me :). mbed-os needs more space for me (27kb compared to 13kb of the 'bare-mbed').

7 years, 7 months ago.

Can you remove the pre-built version of mbed, and add mbed-os?

(via online compiler -> import library -> from URL -> https://github.com/armmbed/mbed-os, or via mbed CLI: mbed add mbed-os).

I've just built blinky for the MBUINO against mbed OS 5.4.2 and that compiles fine.

Hm, with that mbed-os-library it works fine (the Compiler just doesn't tell me how much flash and RAM the prgram uses), with the default mbed-library it just causes the build-error..

posted by Theo Bestenlehner 30 Mar 2017

I can't use mbed-os with my xadow m0. How can I fix this error?

posted by Chris Combs 16 Sep 2017