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] [May 2015 Threads]
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.
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.
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.