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




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