FreeRTOS Support Archive
The FreeRTOS support forum is used to obtain active support directly from Real
Time Engineers Ltd. In return for using our top quality software and services for
free, we request you play fair and do your bit to help others too! Sign up
to receive notifications of new support topics then help where you can.
This is a read only archive of threads posted to the FreeRTOS support forum.
The archive is updated every week, so will not always contain the very latest posts.
Use these archive pages to search previous posts. Use the Live FreeRTOS Forum
link to reply to a post, or start a new support thread.
[FreeRTOS Home] [Live FreeRTOS Forum] [FAQ] [Archive Top] [September 2007 Threads] Ticktimer overflow issuePosted by olibats on September 28, 2007 Hello,
I am running freeRTOS in preemptive mode. Assuming my system will run a very long time without a restart I have come to the conclusion that xTickCount could overflow. I tried to provoke this by using 16 bit tick counter and see what happens to my RTOS and tasks.
For what I have seen everything looks good. No fault times where no task is executed or else.
Nevertheless I am asking you, if somebody knows if there is any other issue concerning long time runs.
Also I am asking about the configTOTAL_HEAP_SIZE, which seems to have absolutely no influence on the system. (Which might be because I am using the heap_3.c??).
Thanks, Olibats
RE: Ticktimer overflow issuePosted by Richard on September 28, 2007 First - you are right - configTOTAL_HEAP_SIZE has no influence when using heap_3.
Regarding the tick count overflow - everything internal to FreeRTOS.org is designed to cope with the tick count overflowing so you have no worries there. This was checked out very thoroughly during the SafeRTOS testing process, and actually resulted in a minor change to the FreeRTOS.org code to fix a glitch that could have occurred once in a billion billion years (i.e. extremely unlikely).
Naturally if your application code itself (as opposed to the kernel code) makes use of the tick count value then it has to be aware of overflows just as if it used any other timer. There is actually an undocumented feature that can assist with this - take a look at how the queue code uses the vTaskSetTimeOutState() and xTaskCheckForTimeOut() functions.
Regards.
RE: Ticktimer overflow issuePosted by olibats on October 1, 2007 Hi,
Tanks for your comment. I put my mind at rest on this issue.
Thanks for the Hint with those methods. Since I have to work with the TickCount I am almost sure I will need them.
Thanks again, Olibats
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|