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.
11 years, 7 months ago.
Should I add define KL25Z for RTOS header?
I'm exporting a RTOS program to uVision, but it wont compile the library.
mbed-rtos/rtx/rt_CMSIS.c(46): error: #35: #error directive: "Missing CORTEX_Mx definition"
#if defined (__CORTEX_M4) || defined (__CORTEX_M4F) #include "core_cm4.h" #elif defined (__CORTEX_M3) #include "core_cm3.h" #elif defined (__CORTEX_M0) #include "core_cm0.h" #elif defined (__CORTEX_M0PLUS) #include "core_cm0plus.h" #else #error "Missing __CORTEX_Mx definition" #endif
Should I add my `TARGET_KL25Z` tag to the list? if so, which one should I duplicate?
2 Answers
11 years, 7 months ago.
Hi,
I saw same error.
then I set below symbols
"TARGET_KL25Z" "TOOLCHAIN_uARM" "CORTEX_M0PLUS"
to C/C++ tabs on Project Options, and works fine.