Skip to main content
chinmaydixit
Associate III
November 17, 2021
Question

STM32WB55 FREERTOS Example:

  • November 17, 2021
  • 2 replies
  • 1127 views

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.

This topic has been closed for replies.

2 replies

Remi QUINTIN
ST Technical Moderator
November 17, 2021

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

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

chinmaydixit
Associate III
November 17, 2021

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);

 }

}