# Problem with task

**URL:** <https://forums.freertos.org/t/problem-with-task/12676>\
**Category:** Microchip\
**Created:** [May 25, 2021, 12:32pm UTC](https://forums.freertos.org/t/problem-with-task/12676 "2021-05-25T12:32:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![PierreBoss](https://avatars.discourse-cdn.com/v4/letter/p/f0a364/32.png) [@PierreBoss](https://forums.freertos.org/u/PierreBoss)\
**Post date:** [May 25, 2021, 12:32pm UTC](https://forums.freertos.org/t/problem-with-task/12676/1 "2021-05-25T12:32:31Z")

</div>

Hello,

I am a beginner about FreeRTOS. I train myself with the soft of Arduino but now I try to use FreeRTOS with Atmel Studio.

I just creat one task with the only job is to print something :

void TFT\_task\_coil(void \*param)  
{   
while(1)  
{   
printf(“Tache coil \r\n”);  
vTaskDelay(10);  
} //End of while  
vTaskDelete( NULL );  
}

and it is the only I task I create and launch with the scheduler but when I look at Putty, the print is just make 1 time :

![image](https://d2v6vdsk2p900z.cloudfront.net/original/2X/0/090b290585cc42a68534f249eafbff779f163908.png)

Why my task only run once and not every 10ms ?

---

<div class="post-metadata">

**Author:** ![PierreBoss](https://avatars.discourse-cdn.com/v4/letter/p/f0a364/32.png) [@PierreBoss](https://forums.freertos.org/u/PierreBoss)\
**Post date:** [May 25, 2021, 12:34pm UTC](https://forums.freertos.org/t/problem-with-task/12676/2 "2021-05-25T12:34:32Z")

</div>

This is my main.c :

xTaskCreate(TFT\_task\_coil, “Coils\_task”, 128, NULL, 2, NULL);  
printf(“toutes les taches sont crees \r\n”);

vTaskStartScheduler();

---

<div class="post-metadata">

**Author:** ![RAc](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/rac/32/1389_2.png) [@RAc](https://forums.freertos.org/u/RAc)\
**Post date:** [May 25, 2021, 12:56pm UTC](https://forums.freertos.org/t/problem-with-task/12676/3 "2021-05-25T12:56:47Z")

</div>

Looks like your scheduler is not working. What happens if you set a break point on sysTickHandler()? Does it get called?

---

<div class="post-metadata">

**Author:** ![PierreBoss](https://avatars.discourse-cdn.com/v4/letter/p/f0a364/32.png) [@PierreBoss](https://forums.freertos.org/u/PierreBoss)\
**Post date:** [May 25, 2021, 1:06pm UTC](https://forums.freertos.org/t/problem-with-task/12676/4 "2021-05-25T13:06:06Z")

</div>

Hi,

I had comment something on the file FreeRTOSConfig.h to correct a warning (it was #define xPortSysTickHandler SysTick\_Handler)… I just forgot this comment. That work now without the comment !

Thank you
