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] [October 2009 Threads] xNumOfOverflows meaningPosted by Michele Ingiardi on October 7, 2009 In my MPLAB project, when I debug I see xNumOfOverflows increases about once a minute. Could someone explain the meaning of this counter and if this increase is normal?
RE: xNumOfOverflows meaningPosted by Richard Damon on October 7, 2009 Sounds like you are using a 1 ms tick rate and a 16 bit tick counter. xNumOfOverflows is just a counter of how many times the tick counter has wrapped, and isn't a problem.
Within FreeRTOS time is measured in ticks, and you can specify durations up to the maximum storeable in the tick counter. It handles everything that needs to be done when the counter wraps. Sometimes programs may want to log when events happened to a longer scale than the tick counter, in this case you can use a combination of tick counter and the overflow counter to remember when something happened. But unless you need something like that, you can ignore the overflow counter.
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|