cancel
Showing results for 
Search instead for 
Did you mean: 

STM32WB55 FREERTOS Example:

chinmaydixit
Associate II

I am using STM32WB55 HeartRate FREERTOS Example. But when I do something in the Task, it runs only once though it has a while 1 Loop. Can anyone guide me with that?

Thanks in Advance.

2 REPLIES 2
Remi QUINTIN
ST Employee

What do you mean by "I do something in the Task"?

Which task? How do you register/set the task?

chinmaydixit
Associate II

Thanks for the reply. Here it is what I have done:

main:

{

  APPE_Init();

  xTaskCreate(StartDefaultTask, "Def_task", 100, NULL, 1, NULL);

  vTaskStartScheduler();

}

/* Task definations */

void StartDefaultTask(void *argument)

{

 for(;;)

 {

HAL_GPIO_TogglePin(GREEN_LED_PIN_GPIO_Port, GREEN_LED_PIN_Pin);

  osDelay(1000);

 }

}