Quality RTOS & Embedded Software

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


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

Posted by pixt on November 23, 2016


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) 2004-2010 Richard Barry. Copyright (C) 2010-2016 Real Time Engineers Ltd.
Any and all data, files, source code, html content and documentation included in the FreeRTOSTM distribution or available on this site are the exclusive property of Real Time Engineers Ltd.. See the files license.txt (included in the distribution) and this copyright notice for more information. FreeRTOSTM and FreeRTOS.orgTM are trade marks of Real Time Engineers Ltd.

Latest News:

FreeRTOS V9.0.0 is now available for download.

Free TCP/IP and file system demos for the RTOS

Sponsored Links

⇓ Now With No Code Size Limit! ⇓
⇑ Free Download Without Registering ⇑

FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Renesas Electronics Gold Alliance RTOS Partner.jpg

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Atmel RTOS partner supporting ARM Cortex-M3 and AVR32 microcontrollers

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

Xilinx Microblaze and Zynq partner

Silicon Labs low power RTOS partner

Altera RTOS partner for Nios II and Cortex-A9 SoC

Freescale Alliance RTOS Member supporting ARM and ColdFire microcontrollers

Infineon ARM Cortex-M microcontrollers

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

Cypress RTOS partner supporting ARM Cortex-M3

Fujitsu RTOS partner supporting ARM Cortex-M3 and FM3

Microsemi (previously Actel) RTOS partner supporting ARM Cortex-M3

Atollic Partner

IAR Partner

Keil ARM Partner

Embedded Artists