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

RTOS Trace utilities

Posted by Sachin Bhujbal on November 20, 2009
Dear All,
I am using FreeRTOS Trace Facility with STR9.
I used StartTrace & EndTrace function by passing buffer to it. then I passed that buffer to HyperTerminal & captured file in it. Then I copied the HyperTerminal Data to another text file & saved it as "trace.bin".
Then I run "tracecon_little_endian.exe" which given trace.txt. I copied that txt file data to excel which given me below results

14548735.0000005

65568.0000005

65568.00000032

14483488.00000032

14483488.0000005

2097184.0000005

2097184.00000032

13762592.00000032

13762592.0000007

65568.0000007

65568.00000032

13762592.00000032

13762592.0000007

2097184.0000007

2097184.00000032

13041696.00000032

13041696.0000009

65568.0000009

65568.00000032

13041696.00000032

13041696.0000009

2097184.0000009

2097184.00000032

12320800.00000032

12320800.00000011

65568.00000011

65568.00000032

12320800.00000032

12320800.00000011

2097184.00000011

2097184.00000032

11599904.00000032

11599904.00000013

65568.00000013

65568.00000032

11599904.00000032

11599904.00000013

2097184.00000013

2097184.00000032

10879008.00000032

10879008.00000015

65568.00000015

65568.00000032

10879008.00000032

10879008.00000015

2097184.00000015

2097184.00000032

540672032.00000032

540672032.00000017

65568.00000017

65568.00000032

540672032.00000032

540672032.00000017

2097184.00000017

2097184.00000032

9437216.00000032

9437216.00000019

65568.00000019

65568.00000032

9437216.00000032

9437216.00000019

2097184.00000019

2097184.00000032

539361312.00000032

539361312.00000021

65568.00000021

65568.00000032

and so on.....
but log shows that more than 8 tasks are running but I have only 8 tasks which are running and In time scale it is showing 65568.000000
at most of the places, which I feel its error in reading.
TaskList function gives following output

TaskCANHandler R 4 60 3

TaskKeypadLCD R 4 154 6

TaskEMT R 4 74 5

TaskPulser R 4 74 4

TaskInit R 4 370 0

TaskMemory R 4 74 7

IDLE R 0 152 2

,ðŸå,ðŸå,ðŸå,ðŸ B 4 70 1


If we see last line it is got corrupted. I saw same output of both function for many times.
Please verify whether it is correct or not & please guide me for correct tracing.
Thanks & Regards
Sachin D. Bhujbal



RE: RTOS Trace utilities

Posted by Dave on November 20, 2009
Are you checking that the buffer is not being overflowed, and that the task stacks are not overflowing? Corruption like you are seeing in the task list is often caused by stack overflow.

http://www.freertos.org/Stacks-and-stack-overflow-checking.html


[ 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