cancel
Showing results for 
Search instead for 
Did you mean: 

Why does the freeRTOS CMSIS abstraction does not work properly with several tasks?

TheGuyFromTheHills
Associate

I configured my NUCLEO-H745ZI-Q board with STMcube 1.3.0 very simular to the youtube video of digikey ( https://www.youtube.com/watch?v=OPrcpbKNSjU ). But I changed the TIM6 to TIM17, because on my board the TIM6 seems to be reserved for using with the DAC.

If I try to create one or two tasks in freeRTOS within the STMCube IDE, everythin is fine. But if I change the priority of the second task (default state is normal priority both) from 'normal priority' to 'below normal priority', the system is not running anymore. It ends up in the infinite loop. For me, it makes no sense. Why does this happen?

Here is my programm code of the tasks (any other stuff wasn't touched by me):

void StartMyBlinkyTask01(void *argument)

{

 /* Infinite loop */

 for(;;)

 {

    HAL_GPIO_TogglePin(GPIOE, GPIO_PIN_1);

   osDelay(500);

 }

}

void StartMyBlinkyTask02(void *argument)

{

 /* Infinite loop */

 for(;;)

 {

   osDelay(1);

 }

}

0 REPLIES 0