Everything

debugger.Trace.Get


This function dumps the trace data.

Remark

This function provides the same function as debugger.XTrace.Dump.

[Specification format]

debugger.Trace.Get(frameCount, fileName = "", append = False)

[Argument(s)]

Argument

Description

frameCount

Specify the number of dumps.

fileName

Specify the name of the file to dump to (default: not specified).

append

Specify whether to append trace data to the file.

True: Append trace data to the file.

False: Do not append trace data to the file (default).

[Return value]

List of trace information (see the TraceInfo property for detail)

[Detailed description]

-

This function dumps trace data for the number of frames specified by frameCount.

-

If fileName is specified, then the trace data is written to the file.

-

If append is set to "True", then the trace data is appended to the file.

-

This function displays the trace data in the following format. Information which is not included in the trace data is displayed as blank space.

 

For a single-core microcontroller

-

Execution of instructions

number-of-frames timestamp fetch-address mnemonic

-

Read access

number-of-frames timestamp read-address R read-data

-

Write access

number-of-frames timestamp write-address W write-data

-

Vector-read access

number-of-frames timestamp vector-read-address V vector-read-data

-

DMA

number-of-frames timestamp DMA

 

 

For a multi-core microcontroller

-

Execution of instructions

number-of-frames PE-number timestamp fetch-address mnemonic

-

Read access

number-of-frames timestamp read-address R read-data

-

Write access

number-of-frames timestamp write-address W write-data

-

Vector-read access

number-of-frames timestamp vector-read-address V vector-read-data

-

DMA

number-of-frames timestamp DMA

[Example of use]

>>>debugger.Trace.Get(3)
    1851  00h00min00s003ms696μs000ns  0x000003be  cmp r11, r14
    1852  00h00min00s003ms700μs000ns  0x000003c0  blt _func_static3+0x2c
    1853  00h00min00s003ms702μs000ns  0x000003c2  jarl _errfunc, lp
>>>debugger.XTrace.Dump(10, "C:/test/TestTrace.txt")
>>>