RTOS Trace utilities

sachindbhujbal wrote on Friday, 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.000000 5

65568.000000 5

65568.000000 32

14483488.000000 32

14483488.000000 5

2097184.000000 5

2097184.000000 32

13762592.000000 32

13762592.000000 7

65568.000000 7

65568.000000 32

13762592.000000 32

13762592.000000 7

2097184.000000 7

2097184.000000 32

13041696.000000 32

13041696.000000 9

65568.000000 9

65568.000000 32

13041696.000000 32

13041696.000000 9

2097184.000000 9

2097184.000000 32

12320800.000000 32

12320800.000000 11

65568.000000 11

65568.000000 32

12320800.000000 32

12320800.000000 11

2097184.000000 11

2097184.000000 32

11599904.000000 32

11599904.000000 13

65568.000000 13

65568.000000 32

11599904.000000 32

11599904.000000 13

2097184.000000 13

2097184.000000 32

10879008.000000 32

10879008.000000 15

65568.000000 15

65568.000000 32

10879008.000000 32

10879008.000000 15

2097184.000000 15

2097184.000000 32

540672032.000000 32

540672032.000000 17

65568.000000 17

65568.000000 32

540672032.000000 32

540672032.000000 17

2097184.000000 17

2097184.000000 32

9437216.000000 32

9437216.000000 19

65568.000000 19

65568.000000 32

9437216.000000 32

9437216.000000 19

2097184.000000 19

2097184.000000 32

539361312.000000 32

539361312.000000 21

65568.000000 21

65568.000000 32

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   
   

davedoors wrote on Friday, 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