Hello,
I am trying to create a task to blink a LED. As follow:
// In main.c
xTaskCreate( LedRedTask, ( signed char * )”LedRedTask”, 500, NULL, 5, NULL );
In another .c file:
void LedRedTask( void * pvParameters )
{
for(;;)
{
led_red_on();
vTaskDelay(500);
led_off();
vTaskDelay(1000);
}
}
I thoght that LedRedTask should’ve called periodically. But it doesn’t happen. The led blinks once and the task isn’t called anymore.
What I forget to do?
I’ve already included all header files necessary and the functions led_off() and led_red_on() are OK, cuz even if I comment is the same.
Best regards
Problem using vTaskDelay();
Problem using vTaskDelay();
By the way. I’m using MCF51CN128, a Freescale v1 Coldfire. freeRTOS 5.3.0 and LwIP 1.3.0.
I downloaded the source code from Freescale website. (AN3906)
Problem using vTaskDelay();
Can you verify that the tick interrupt is running and that you have not simply crashed due to something like a stack overflow.
Problem using vTaskDelay();
Problem solved!
I downloaded the code again e add my task. It worked.
Probably I changed any configuration. Thanks
Probably I changed any configuration. Thanks