Quality RTOS & Embedded Software

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


Loading

Run Time Statistics

Posted by Sarun Chattunyakit on May 8, 2010
How can i use vTaskGetRunTimeStats()
I've already set as same as manual.
But I got a false result.
Thank You


RE: Run Time Statistics

Posted by Dave on May 8, 2010
Like so many posts here, there is not enough information given to allow people to provide a useful answer. For example, which cpu are you using?

RE: Run Time Statistics

Posted by Sarun Chattunyakit on May 9, 2010
I use FreeRTOS with LPC2148

at first pic i don't use vTaskGetRunTimeStats() the result is OK


but after i use vTaskGetRunTimeStats() it like that


How can i fix it?
How can i get the same result like the example?

Thank you

RE: Run Time Statistics

Posted by Dave on May 9, 2010
So this is what I am guessing: You have two tasks that are writing out to a terminal. At first they write their text out in turn and the text is output correctly. At some point you call vTaskGetRunTimeStats() and this generates a table that also looks correct, but from that point on the text that is output to the terminal is corrupt. So:

1) Is my guess correct?
2) Have you checked that you are not overflowing the task stacks?
3) Why can I not see your two tasks in the table of tasks you have pasted into your post?
4) How are you taking care of mutual exclusion when writing to the terminal?


[ Back to the top ]    [ About FreeRTOS ]    [ Sitemap ]    [ ]




Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.

Latest News

FreeRTOS kernel V10.0.1 is available for immediate download. Now MIT licensed.

Video: Watch James Gosling & Richard Barry at re:Invent, Las Vegas 2017.

New FAQ page about the FreeRTOS kernel and Amazon FreeRTOS.


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

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