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, 10 months ago.
RTOS not compiling
Hi, I try in import the most basic program from the top of this page:
http://developer.mbed.org/handbook/RTOS
Which is:
RTOS BASIC
#include "mbed.h" #include "rtos.h" DigitalOut led1(LED1); DigitalOut led2(LED2); void led2_thread(void const *args) { while (true) { led2 = !led2; Thread::wait(1000); } } int main() { Thread thread(led2_thread); while (true) { led1 = !led1; Thread::wait(500); } }
But still it is not compiling, I am getting the error: "Error: Cannot open source input file "cmsis_os.h": No such file or directory in "mbed-rtos/rtos/Mutex.h", Line: 26, Col: 22"
Even though the "mbed-rtos" library is included in that folder.
I am targeting LPC11U24. Could someone try this out themselves for me to see if you are getting the same problem? Any ideas what is going wrong? Thanks for any help...
1 Answer
9 years, 10 months ago.
Hi,
thanks for reporting. The issue is tracked on github mbed SDK https://github.com/mbedmicro/mbed/issues/674. I'll look at it soon.
Regards,
0xc0170