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.
6 years, 5 months ago.
mbed library import missing classes
I can't figure out how to import the mbed library correctly. On a whole bunch of my older programs the mbed library has a plus sign next to it with lots of classes underneath, and they work. With any program I've created today after importing the mbed library there is only "documentation" listed under the mbed library (which says it isn't ready yet) but the project still compiles and builds. However when I program the device I get a hard fault error from the serial terminal. What am I doing wrong? I've stripped the code back to absolute basics and I still can't get around this.
1 Answer
6 years, 5 months ago.
Hi there,
the problem with "missing classes" probably not corespond with your problem with the hard fault in the terminal. MbedOS2 has a problem with documentation for now and this is reason why "Documetation is not ready".
You can import library from here https://os.mbed.com/code/ but result will be same only when you will select MbedOS5 the documentation will be OK.
When you not use Mbed lib for long time, the problem can be with your code because the code is old and not corespond with changes in Mbed lib.
Best regards J.
I fixed this by deleting the existing library, copying an old library (with classes), and pasting it into the new project. I'd appreciate if someone could still describe the correct way to import the mbed library with all the associated classes. Thanks.
posted by Josh Grimes 12 Apr 2019