Download CM41-00313-8E
Transcript
CHAPTER 2 DEPENDENCE FUNCTIONS 2.6 Emulator Debugger (MB2100-01) Software 2.6.8 Support Ma nual Viewing Program Execution History [Trace] This section describes the trace function. ■ What is Trace The function that records the program execution history is called "trace". Trace data contains address information before and after branch, which is available for the analysis of the program execution history. ■ Trace Functions This emulator debugger has the following trace functions. • Forced start: Forcibly starts acquiring trace data without stopping the execution of a user program while forced stop is executed and trace data acquisition is stopped. • Forced stop: Forcibly ends acquiring trace data without stopping the execution of a user program during acquisition of trace data. ■ Acquiring Trace Data The followings show the timing of the start/end of trace data acquisition. ● The acquisition is started when: - a user program has been executed; or - the [Start] menu has been selected when a user program has been executed. ● The acquisition is ended when: - a user program has been stopped; or - the [Abort] menu has been selected during trace data acquisition. ■ Clearing Trace Data The following shows the timing for clearing trace data. ● Clear • When a user program is executed • When the [Forced start] menu is selected while a user program is executed • When the chip reset is input while a user program is executed • When the [Clear] menu is selected ■ Trace Buffer A place to store recorded data is called a "trace buffer". Each unit of data stored in the trace buffer is called a "frame". The trace buffer can contain up to 42 frames. The trace buffer has a ring-like structure. If the trace buffer becomes full, it is automatically overwritten from the beginning. July 1, 2014, CM41-00313-8E 309