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