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


CPU usage ?

Posted by Nobody/Anonymous on January 3, 2006

have freertos cpuusage for
1.max cpuusage
2. each rack cpuusage ?
3. stack address of each task to check normally
stack usage in run-time

and also i see freertos use write one const value in stack before use it
is nice
better if add function to chk change if this const value in run-time and report it
i agree is get some CPU usage but in optional run
and then report in debug time

RE: CPU usage ?

Posted by Richard on January 3, 2006
1) Depends on port, CPU MHz, compiler and tick frequency.

2) ?

3) Take a look at the function usTaskCheckFreeStackSpace() defined in task.c.


RE: CPU usage ?

Posted by Nobody/Anonymous on January 3, 2006
seems i dont true speak about my qustion ...

1)some os have one function see what present od cpu usage (max , avrage)

have you plan add to it to freertos ?

RE: CPU usage ?

Posted by Nobody/Anonymous on January 4, 2006
If you see UCOS II rtos source or ebook,It uses idle task hook function to calculate CPU usage for all tacks,
The method is:
In every one second ,calculate the time that you are in idle task ,so you can calculate persentage of idle time in each second and obtain cpu usage by subtacting it from 100%.

CPU Usage = ((1000msec - (idle time in msec))/1000)*100)

[ 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