Reply by FreeRTOS Info April 12, 20142014-04-12
> I didnt know that I should not ask freeRTOS related questions here. sorry.

There are no rules to say you can't, its just that I prefer to keep a
central repository of FreeRTOS knowledge, rather than scattering it
around the thousands (probably literally) of forums where people ask
questions on the topic.

If you have a FreeRTOS question you are much more likely to get a faster
and more knowledgeable reply if you ask on a forum that specialises in
answering FreeRTOS questions - plus when other people are looking for
help they are more likely to find the answer without having to ask the
same questions again if all the previous answers are in the same place.

Occasionally people ask LPC specific questions on the FreeRTOS forum,
which is equally illogical if they want to have an LPC expert answer
their question, so I request they repost their questions here (or on the
newer forums hosted by NXP themselves).

Regards,
Richard.

+ http://www.FreeRTOS.org
Designed for microcontrollers. More than 107000 downloads in 2013.

+ http://www.FreeRTOS.org/plus
IoT, Trace, Certification, FAT FS, TCP/IP, Training, and more...



An Engineer's Guide to the LPC2100 Series

Reply by subh...@gmail.com April 12, 20142014-04-12
I didnt know that I should not ask freeRTOS related questions here. sorry.
Reply by FreeRTOS Info April 12, 20142014-04-12
> I have a sensor sampling task which runs periodically with delay
> implemented using xTaskDelayUntil function. I have another UART read
> task. A delay value is send through UART and the currently running
> sensor sampling task is deleted and a new task with new delay is
> created. [using xTaskDelete and xTaskCreate]. However the task is
> not seemed to start again. I am passing the delay value as parameter
> to the task. I am able to create the task id the delay is kept
> constant. Could you please help me resolve this issue?
>

In addition to my previous reply - one further question - why are you
asking this here rather than on the FreeRTOS support forum?
Regards,
Richard.

+ http://www.FreeRTOS.org
Designed for microcontrollers. More than 107000 downloads in 2013.

+ http://www.FreeRTOS.org/plus
IoT, Trace, Certification, FAT FS, TCP/IP, Training, and more...



Reply by FreeRTOS Info April 12, 20142014-04-12
> I have a sensor sampling task which runs periodically with delay
> implemented using xTaskDelayUntil function. I have another UART read
> task. A delay value is send through UART and the currently running
> sensor sampling task is deleted and a new task with new delay is
> created. [using xTaskDelete and xTaskCreate]. However the task is
> not seemed to start again. I am passing the delay value as parameter
> to the task. I am able to create the task id the delay is kept
> constant. Could you please help me resolve this issue?

Have you read the FAQ item "my application does not run, what could be
wrong?"

Are you running a recent version of FreeRTOS with configASSERT defined?
(newer versions have additional asserts to assist debugging common errors).

Are you checking the return value of the xTaskCreate() function?

Which heap implementation are you using?

Why delete the task then recreate it, rather than just hold the delay
time in a variable and update the variable when a new delay time is
received?
Regards,
Richard.

+ http://www.FreeRTOS.org
Designed for microcontrollers. More than 107000 downloads in 2013.

+ http://www.FreeRTOS.org/plus
IoT, Trace, Certification, FAT FS, TCP/IP, Training, and more...



Reply by subh...@gmail.com April 12, 20142014-04-12
Hi,

I have a sensor sampling task which runs periodically with delay implemented using xTaskDelayUntil function. I have another UART read task. A delay value is send through UART and the currently running sensor sampling task is deleted and a new task with new delay is created. [using xTaskDelete and xTaskCreate]. However the task is not seemed to start again. I am passing the delay value as parameter to the task. I am able to create the task id the delay is kept constant. Could you please help me resolve this issue?