Quality RTOS & Embedded Software

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


Loading

Run-time stats and interrupts

Posted by Matthew Kendall on January 30, 2012
I am using FreeRTOS on an NXP LPC1769. I have enabled run-time stats as detailed in the manual. I can successfully get stats for all my tasks.

It seems to me that time spent in interrupts is counted towards the task that happens to be interrupted. Is there a straightforward way to get time spent in interrupts listed separately in the stats? I would like to confirm that my interrupt-driven I/O (buffered serial ports) is not consuming excessive CPU time.

RE: Run-time stats and interrupts

Posted by Richard Damon on January 30, 2012
The limitation is that, in general, FreeRTOS doesn't know when an interrupt occurs. If there is one interrupt in particular that you are interested in, you can add code at the beginning of it to read the high speed timer, and then read it again at the end, take the difference and accumulate it. Note that the end point may need to be just before the interrupt routine reactivates the new task if that operation doesn't return to the ISR. (I am not familiar with this port and how it handles this operation).

This won't affect the stats from the run-time stats, but will give you a measure of those interrupts so instrumented.


[ 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