2021-01-03 03:12 PM
I'm using FreeRTOS v10.2.1, CMSIS RTOS v1
main.c (generated by CubeMX) has:
...
osThreadDef(defaultTask, StartDefaultTask, osPriorityNormal, 0, 128);
...
where osPriorityNormal is zero as defined in cmsis_os.h
I spawn all other tasks using the FreeRTOS xTaskCreate call where task priority is from 0..MAX_PRIORITIES-1. How does FreeRTOS task priority maps to CMSIS task priority if it maps at all? The reason i ask is that if i keep StartDefaultTask alive, how does it get scheduled against those tasks created with xTaskCreate?
Solved! Go to Solution.
2021-01-04 11:51 AM
The cmsis->FreeRTOS priority map is done in cmsis_os.c, makeFreeRtosPriority().
2021-01-04 01:39 AM
You may check the source code to find out.
2021-01-04 11:51 AM
The cmsis->FreeRTOS priority map is done in cmsis_os.c, makeFreeRtosPriority().