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

FreeRTOS CPU Utilization for Hardware Interrupts

Posted by sindhukrishna on November 7, 2014

I use Hercules Launchpad TMS570LS0432 kit and FreeRTOS v8.1.2. I use vTaskGetRunTimeStats() to view CPU usage. I periodically send and receive data from PC through UART. Does vTaskGetRunTimeStats() consider the CPU Usage along with this interrupt servicing? I see same % values in the console as it was before Interruptions. Kindly suggest a solution to calculate or view the Idle Time with changes made to it by any non-maskable interrupts.


FreeRTOS CPU Utilization for Hardware Interrupts

Posted by rtel on November 7, 2014

As currently implemented the run time stats are not adjusted to take into account any time consumed by processing interrupts. To do that you would have to add your own interrupt entry and exit timers into the individual handlers.

Regards.


FreeRTOS CPU Utilization for Hardware Interrupts

Posted by sindhukrishna on November 7, 2014

Thank You for the response. Will the software timers provided with FreeRTOS v8.1.2 run inside the interrupt handlers? or should I use hardware timer?

Another question is, what is the use of taskENABLEINTERRUPTS() API? I donot find any definition for this inside any source or header file. How does this API differ from the _enableIRQ() of TMS570LS0432?


FreeRTOS CPU Utilization for Hardware Interrupts

Posted by davedoors on November 10, 2014

Don't know that device but in a FreeRTOS application you should only use taskENTERCRITICAL() and taskEXITCRITICAL() to disable and then renable interrupts. That is why you wont find any definition of taskENABLE_INTERRUPTS() API, you are not supposed to use it.


[ 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