I’m using FreeRTOS v10.2.1, and CMSIS_RTOS v1, on STM32 MCU. main.c, as generated by CubeMX, has:
osThreadDef(defaultTask, StartDefaultTask, osPriorityNormal, 0, 128);
where osPriorityNormal is zero as defined in cmsis_os.h
There is another task, lwip, that is also created with osPriorityNormal priority.
I spawn all my tasks using the FreeRTOS xTaskCreate() call where task priority is from 0…MAX_PRIORITIES-1. How does FreeRTOS task priority map to CMSIS task priority if it maps at all? How do the tasks with osPriorityNormal get scheduled against those tasks created with xTaskCreate?