Quality RTOS & Embedded Software

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


Loading

Is 23us from Queue Writing to Queue Reading normal?

Posted by shalongbasi on May 6, 2015

I just modified a demo program in which one task writing to the Queue and another task reading the Queue to evaluate the performance of freertos. I make the program toggling two different IO pins when writing and reading are finished. It takes about 22us from writing task to reading task. Is this normal for Freertos? feels like it should go faster than this with a 80MHz/105MDMIPS microcontroller.


Is 23us from Queue Writing to Queue Reading normal?

Posted by rtel on May 7, 2015

If I understand correctly you are measuring the time between one task writing data to a queue, a task being unblocked, the scheduler selecting the task as the highest priority task, switching to the task, then the task reading from a queue - 23us might be reasonable, or at least, not unreasonable.

Are you calling portYIELDFROMISR() (or maybe portENDSWITCHINGISR(), I forget which is implemented on the PIC32, maybe both) at the end of the interrupt? Do you have compiler optimisation on?

Regards.


[ 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