Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem TCP & FAT




Loading

FreeRTOS Plus TCP impact on vTaskDelayUntil() and periodic function jitter

Posted by pixt on November 23, 2016

Hello,

I am using FreeRTOS+TCP from FreeRTOS Lab Version 160919 on the Zedboard with a ZYNQ SOC. I have 2 Tasks running. The first task has the highest priority and calls a calculation function periodically using vTaskDelayUntil(). The tick rate is 10000Hz and the calculation function is called every 10 microseconds. The second task just idles in a forever loop doing nothing and has low priority. I get a jitter of the second function call in the range of 30ns.

Now to my problem: When I activate the IP stack using FreeRTOS_IPInit I get a jitter which is way higher than before and in the range of 7┬Ás.

The task priorities are: Task1: 5, Task2: 1, IP-Task: 2, Tmr Svc:6

Can you explain this behaviour? Is there any way to reduce the jitter introduced by the IP-Task? Thank you for your help.

Best regards, pixt


FreeRTOS Plus TCP impact on vTaskDelayUntil() and periodic function jitter

Posted by rtel on November 23, 2016

I suspect the difference is caused by the interrupts generated by the IP traffic. Interrupts will always take precedence over tasks.

Most applications will use a tick frequency of about 100Hz, and we would normally recommend not going over 1KHz. You are using 10KHz. Can you reduce the tick frequency and perform your high frequency calculation in a high priority timer interrupt?


FreeRTOS Plus TCP impact on vTaskDelayUntil() and periodic function jitter

Posted by pixt on November 23, 2016

Yes, I will give it a try. Thank you for the help.


[ Back to the top ]    [ About FreeRTOS ]    [ Sitemap ]    [ ]




Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.

Latest News

FreeRTOS kernel V10 is available for immediate download. Now MIT licensed.


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

OpenRTOS and SafeRTOS