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