Build started: Project: WFC*** Using Compiler 'V5.06 update 6 (build 750)', folder: 'C:\Keil_v5\ARM\ARMCC\Bin'Build target 'WFC 3_5_16bit'Before Build - User command #2: SubWCRev.exe "../" "template.h" "version.h"SubWCRev: 'C:\Users\FAl-Obaidi\Desktop\WFC\'Last committed at revision 0Updated to revision 0Unversioned items foundcompiling RTX_Conf_CM.c...C:\Keil_v5\ARM\PACK\ARM\CMSIS\5.6.0\CMSIS\RTOS\RTX\INC\RTX_CM_lib.h(300): error: #29: expected an expression if (nr_mutex >= OS_MUTEXCNT) {RTE\CMSIS\RTX_Conf_CM.c: 0 warnings, 1 errorcompiling dex_accounting.c...compiling service_mode_menu.c...compiling inter_controller_comm_thread.c...compiling wfc_dbc.cpp...".\Output\WFC.axf" - 1 Error(s), 0 Warning(s).Target not created.Build Time Elapsed: 00:00:15
code at line 300 from RTX_CM_lib.h:
This is likely because OS_MUTEXCNT is defined, but it does not evaluate to a number.
#define OS_MUTEXCNT (8) // This is good
#define OS_MUTEXCNT // This will give you an error
Some how you need to make sure the OS_MUTEXCNT is defined and is a valid expression.
Usually if it is not defined externally, it is defined in RTX_Conf_CM.c (This is your file to modify) and this is includes the file RTX_CM_lib.h (Which in general is not something that is yours to modify)