#define configUSE_PORT_OPTIMISED_TASK_SELECTION 0 <-- when set to 1, configMAX_PRIORITIES can't be more than 32 which is not suitable for the new CMSIS-RTOS v2 priority range */ Thus all user configurable priorities inCMSIS RTOS2can be used, from osPriorityLow to osPriorityRealtime7. ...