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] [June 2008 Threads] Erratic Task SchedulingPosted by Engin AYDOGAN on June 25, 2008 Hello,
I'm running a task that blinks a LED on the board periodically. But the LED blinks very erratically, without a consistent interval. From what I have noticed that it only blinks when there's some communication within ethernet port. Any ideas ?
Kind regards,
Engin
RE: Erratic Task SchedulingPosted by Richard on June 25, 2008 There is very little information here on which a judgement can be made.
If you Ethernet port is causing interrupts from which a context switch is performed, then maybe the tick interrupt is not working and you are only getting scheduling when the Ethernet interrupt fires.
Alternatively, maybe the LED is being used by the Ethernet hardware and/or software to indicate traffic on the network.
Regards.
RE: Erratic Task SchedulingPosted by Engin AYDOGAN on June 25, 2008 Hi Richard,
I have also suspected what you said about interrupts but it turned out to be something else.
The data register I'm using to toggle the LED is also used by the ethernet controllers LEDs so it was altering the higher bits of the value unexpectedly. I've corrected the code and it works quite stable right now.
Thanks for FreeRTOS and your time :)
Kind regards,
Engin
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|