cancel
Showing results for 
Search instead for 
Did you mean: 

How to set priorities to the different task in FreeRTOS in STM32F767ZI

Chintan Sharma
Associate
Posted on December 08, 2017 at 12:11

osThreadDef(Task1, StartTask1, osPriorityHigh, 0, 128);

Task1Handle = osThreadCreate(osThread(Task1), NULL);

/* definition and creation of Task2 */

osThreadDef(Task2, StartTask2, osPriorityNormal, 0, 128);

Task2Handle = osThreadCreate(osThread(Task2), NULL);

I am using FreeRTOS in STM32F767ZI and trying to set the different priorities to two different tasks but it does not affect the output. So, can anyone help me out? 

2 REPLIES 2
Imen.D
ST Employee
Posted on December 08, 2017 at 16:26

Hello,

Have a look to the

http://www.st.com/content/ccc/resource/technical/document/user_manual/2d/60/ff/15/8c/c9/43/77/DM00105262.pdf/files/DM00105262.pdf/jcr:content/translations/en.DM00105262.pdf

User manual Developing Applications on STM32Cube with RTOS, it will help you on how to set priorities in FreeRTOS.

You may have a look to the FreeRTOS example within STM32CubeF7.

Best Regards

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
Posted on December 11, 2017 at 04:57

Thanks for your response. But still, it won't help me out. So, can you help

me out?

On Fri, Dec 8, 2017 at 8:57 PM, Imen D <st-microelectronics@jiveon.com>