7 years, 1 month ago.

Error: Cannot open source input file "platform/mbed_error.h"

in the rtos library downloaded using the import wizard I get the following error Error: Cannot open source input file "platform/mbed_error.h": No such file or directory in "mbed-rtos/rtos/Mutex.cpp", Line: 25, Col: 34

Any help will be greatly appreciated

2 Answers

7 years, 1 month ago.

If you're going to use mbed RTOS, we recommend using the new mbed library - mbed OS, which combines the features of the traditional mbed library with mbed RTOS. Please see all documentation here - https://os.mbed.com/docs/v5.6.

Thank you for the reply

Currently I am still experementig with other examples thus do not know wat to change unfortunately

posted by Movation Movation 12 Oct 2017

Here is a good jumping off point to get you started using Mbed OS - https://os.mbed.com/docs/v5.6/tutorials/blinky-on-the-arm-mbed-online-compiler.html.

posted by Sarah Marsh 12 Oct 2017
7 years, 1 month ago.

Hello Movation,

Because the "platform/mbed_error.h" file is located in the "mbed-dev" library try to import it into your project. Then, in order to keep only one of them, remove the "mbed" library from the project.

Thank you for the response, when I try ed this it caused an error stating that i need mbed library version 121 and i have the latest library loaded.

posted by Movation Movation 12 Oct 2017