Quality RTOS & Embedded Software

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


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 ]    [ Privacy ]    [ Sitemap ]    [ ]


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

Latest News

NXP tweet showing LPC5500 (ARMv8-M Cortex-M33) running FreeRTOS.

Meet Richard Barry and learn about running FreeRTOS on RISC-V at FOSDEM 2019

Version 10.1.1 of the FreeRTOS kernel is available for immediate download. MIT licensed.

View a recording of the "OTA Update Security and Reliability" webinar, presented by TI and AWS.


Careers

FreeRTOS and other embedded software careers at AWS.



FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Espressif ESP32

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Renesas

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

Xilinx Microblaze and Zynq partner