2021-11-17 12:16 AM
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.
2021-11-17 12:25 AM
What do you mean by "I do something in the Task"?
Which task? How do you register/set the task?
2021-11-17 12:38 AM
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);
}
}