cancel
Showing results for 
Search instead for 
Did you mean: 

FreeRTOS task priority versus CMIS_RTOS v1

BVu
Associate III

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?

1 ACCEPTED SOLUTION

Accepted Solutions
BVu
Associate III

The cmsis->FreeRTOS priority map is done in cmsis_os.c, makeFreeRtosPriority().

View solution in original post

2 REPLIES 2
KnarfB
Principal III

You may check the source code to find out.

BVu
Associate III

The cmsis->FreeRTOS priority map is done in cmsis_os.c, makeFreeRtosPriority().