Official mbed Real Time Operating System based on the RTX implementation of the CMSIS-RTOS API open standard.

Dependents:   denki-yohou_b TestY201 Network-RTOS NTPClient_HelloWorld ... more

Issue: Compiler errors with Nucleo F401RE (Closed: Fixed)

I get these compiler errors:

Error: Identifier "OS_TASKCNT" is undefined in "mbed-rtos/rtx/RTX_CM_lib.h", Line: 93, Col: 32 Error: Identifier "OS_CLOCK" is undefined in "mbed-rtos/rtx/RTX_CM_lib.h", Line: 95, Col: 32 Error: Identifier "INITIAL_SP" is undefined in "mbed-rtos/rtx/RTX_CM_lib.h", Line: 241, Col: 37 Error: Identifier "OS_SCHEDULERSTKSIZE" is undefined in "mbed-rtos/rtx/RTX_CM_lib.h", Line: 241, Col: 79

3 comments:

16 Mar 2014

Hello Patrick H.,

there was a question asked reporting same errors, where I provided an answer that nucleo targets are not yet supported by mbed-rtos. There's could be more concise error message that target is not supported than it's currently there. I'll look into it.

Thx for reporting the issue.

Regards, 0xc0170

17 Mar 2014

Hi Patrick, I encountered the same issue with you for Nucleo-L152RE, then I fixed this issue by following steps: 1. open RTX_Conf_CM.c which located in \mbed-rtos\rtx 2. add new Nucleo target in 3 locations A. find: #ifndef OS_TASKCNT B. find: #ifndef OS_SCHEDULERSTKSIZE C. find: #ifndef OS_CLOCK

Here is the example of modifying mbed-rtos for adding Nucleo-L152RE: http://mbed.org/users/stanly88/code/mbed-rtos/

Have fun! Stanly

07 Jul 2014

http://mbed.org/users/prometh/code/mbed-rtos_Nucleo_F401RE/ I made fix for this issue and checked on my nucleo board