FUJITSU SEMICONDUCTORCONTROLLER MANUALF2MC-16 FAMILYSOFTUNETM WorkbenchUSER'S MANUALCM41-00313-6E
vi 2.1.11.3 Searching Trace Data ... 552
86CHAPTER 2 DEPENDENCE FUNCTIONS2.2.5.6 Performance-Buffer-Full BreakIt is a function to abort the program execution when the buffer for the performa
87CHAPTER 2 DEPENDENCE FUNCTIONS2.2.5.7 Forced BreakIt is a function to abort the execution of the program compulsorily. Forced BreakIt is a functio
88CHAPTER 2 DEPENDENCE FUNCTIONS2.2.6 EventsThe emulator can monitor the MCU bus operation, and generate a trigger at a specified condition called an
89CHAPTER 2 DEPENDENCE FUNCTIONS[Example]>SET EVENT 1,func1>SET EVENT/WRITE 2,data[2],!d=h'10>SET EVENT/MODIFY 3,102An event can be set
90CHAPTER 2 DEPENDENCE FUNCTIONS2.2.6.1 Operation in Normal ModeAs shown in the figure below, the event trigger set in the normal mode performs input
91CHAPTER 2 DEPENDENCE FUNCTIONS Event-related Commands in Normal ModeSince the real-time trace function in the normal mode is actually the single t
92CHAPTER 2 DEPENDENCE FUNCTIONS2.2.6.2 Operation in Multi Trace ModeWhen the multi trace mode is selected as the event mode, the real-time trace fun
93CHAPTER 2 DEPENDENCE FUNCTIONS Event-related Commands in Multi Trace ModeTable 2.2-7 shows the event-related commands that can be used in the mult
94CHAPTER 2 DEPENDENCE FUNCTIONS2.2.6.3 Operation in Performance ModeEvent triggers set in the performance mode are used to measure performance. The
95CHAPTER 2 DEPENDENCE FUNCTIONS Event-related Commands in Performance ModeTable 2.2-8 shows the event-related commands that can be used in the perf
vii2.2.10.1 Coverage Measurement Procedures ... 1272.2.11 Executio
96CHAPTER 2 DEPENDENCE FUNCTIONS2.2.7 Control by SequencerThis emulator has a sequencer to control events. By using this sequencer, sampling of break
97CHAPTER 2 DEPENDENCE FUNCTIONS2.2.7.1 Setting SequencerThe sequencer operates in the following order:(1) The sequencer starts from level 1 simultan
98CHAPTER 2 DEPENDENCE FUNCTIONS[Setup Examples]- Terminate sequencer when event 1 occurs.>SET SEQUENCE/EVENT 1,1,J=0- Terminate sequencer when ev
99CHAPTER 2 DEPENDENCE FUNCTIONS2.2.7.2 Break by SequencerA program can suspend program execution when the sequencer terminates. This break is called
100CHAPTER 2 DEPENDENCE FUNCTIONS2.2.7.3 Trace Sampling Control by SequencerWhen the event mode is in the normal mode, real-time trace executing trac
101CHAPTER 2 DEPENDENCE FUNCTIONS[Setup Example]Suspend trace sampling when event 1 occurs, and then resume at event 2 and keep sampling data untilev
102CHAPTER 2 DEPENDENCE FUNCTIONS2.2.7.4 Time Measurement by SequencerTime can be measured using the sequencer. A time measurement timer called the e
103CHAPTER 2 DEPENDENCE FUNCTIONS2.2.7.5 Sample Flow of Time Measurement by SequencerIn the following sample, when events are executed in the order o
104CHAPTER 2 DEPENDENCE FUNCTIONS>SET SEQUENCE/EVENT 1,1,J=2>SET SEQUENCE/EVENT 2,4,J=1>SET SEQUENCE/EVENT 2,2,J=3>SET SEQUENCE/EVENT
105CHAPTER 2 DEPENDENCE FUNCTIONS2.2.8 Real-time TraceWhile execution a program, the address, data and status information, and the data sampled by an
viii 2.4.1 Setting Operating Environment ... 2032.4.1
106CHAPTER 2 DEPENDENCE FUNCTIONS2.2.8.1 Single TraceThe single trace traces all data from the start of executing a program until the program is abor
107CHAPTER 2 DEPENDENCE FUNCTIONS Frame Number and Step Number in Single TraceThe sampled trace data is numbered in frame units. This number is call
108CHAPTER 2 DEPENDENCE FUNCTIONS2.2.8.2 Setting Single TraceThe following settings (1) to (4) are required before executing single trace. Once these
109CHAPTER 2 DEPENDENCE FUNCTIONS(4) Set trace-buffer-full break.The program can be allowed to break when the trace buffer becomes full. Use the SET
110CHAPTER 2 DEPENDENCE FUNCTIONS2.2.8.3 Multi traceThe multi trace samples data where an event trigger occurs for 8 frames before and after the even
111CHAPTER 2 DEPENDENCE FUNCTIONSFigure 2.2-13 Frame Number in Multi TraceBlock number Trace buffer Frame numberGlobal number Local number Event tri
112CHAPTER 2 DEPENDENCE FUNCTIONS2.2.8.4 Setting Multi TraceBefore executing the multi trace, the following settings must be made. After these settin
113CHAPTER 2 DEPENDENCE FUNCTIONS2.2.8.5 Displaying Trace Data Storage StatusIt is possible to Displays how much trace data is stored in the trace bu
114CHAPTER 2 DEPENDENCE FUNCTIONS2.2.8.6 Specify Displaying Trace Data StartIt is possible to specify from which data in the trace buffer to display.
115CHAPTER 2 DEPENDENCE FUNCTIONS2.2.8.7 Display Format of Trace DataA display format can be chosen by specifying a command identifier with the SHOW
ix2.5.7 Measuring Performance ... 2662.5.7.
116CHAPTER 2 DEPENDENCE FUNCTIONS Displaying All Machine Cycles (Specify /CYCLE.)Detailed information at all sampled machine cycles can be displayed
117CHAPTER 2 DEPENDENCE FUNCTIONS[Example]>>SHOW TRACE/CYCLE -587frame no. address data a-status d-status Qst dfg level ext-probe-00587 :FF0106
118CHAPTER 2 DEPENDENCE FUNCTIONS(7):valid flag@:valid frame for this data(8):sequencer level(9):external probe data Display in Source Line Units (S
119CHAPTER 2 DEPENDENCE FUNCTIONS2.2.8.8 Reading Trace Data On-the-flyTrace data can be read while executing a program. However, this is not possible
120CHAPTER 2 DEPENDENCE FUNCTIONS Reading Trace Data On-the-fly in the Multi TraceUse the DISABLE MULTITRACE command to disable the trace function b
121CHAPTER 2 DEPENDENCE FUNCTIONS2.2.8.9 Saving Trace DataThis section explains how to save trace data. Saving Trace DataTrace data can be saved in
122CHAPTER 2 DEPENDENCE FUNCTIONS2.2.9 Measuring PerformanceIt is possible to measure the time and pass count between two events. Repetitive measurem
123CHAPTER 2 DEPENDENCE FUNCTIONS2.2.9.1 Performance Measurement ProceduresPerformance can be measured by the following procedure:• Setting event mod
124CHAPTER 2 DEPENDENCE FUNCTIONS Setting EventsSet events using the SET EVENT command.The starting/ending point of time measurement and points to m
125CHAPTER 2 DEPENDENCE FUNCTIONS2.2.9.2 Display Performance Measurement DataDisplay the measured time and measuring count by using the SHOW PERFORMA
126CHAPTER 2 DEPENDENCE FUNCTIONS2.2.10 Measuring CoverageThis emulator has the C0 coverage measurement function. Use this function to find what perc
127CHAPTER 2 DEPENDENCE FUNCTIONS2.2.10.1 Coverage Measurement ProceduresThe procedure for coverage measurement is as follows:• Set range for coverag
128CHAPTER 2 DEPENDENCE FUNCTIONS● Displaying coverage rate of load module (specify /MODULE for the command qualifier)● Summary (Specify /GENERAL for
129CHAPTER 2 DEPENDENCE FUNCTIONS● Displays per source line (specify /SOURCE for the command qualifier)● Displays per machine instruction (specify /I
130CHAPTER 2 DEPENDENCE FUNCTIONSNote:With MB2141 emulator, the code coverage measurement is affected by a prefetch. Note whenanalyzing.
131CHAPTER 2 DEPENDENCE FUNCTIONS2.2.11 Execution Time MeasurementThis function measures the program execution time. Measurement ItemsMeasures time
132CHAPTER 2 DEPENDENCE FUNCTIONS• Clearing by dialogClick the [Clear] button in the time measurement dialog, which can be displayed by selecting [De
133CHAPTER 2 DEPENDENCE FUNCTIONS2.2.12 Sampling by External ProbeAn external probe can be used to sample (input) data. There are two sampling types:
134CHAPTER 2 DEPENDENCE FUNCTIONS Displaying and Setting External Probe DataWhen a command that can use external probe data is executed, external pr
135CHAPTER 2 DEPENDENCE FUNCTIONS2.2.13 Checking Debugger InformationThis section explains how to check information about the MB2141 emulator debugge
1CHAPTER 1BASIC FUNCTIONSThis chapter describes the basic functions on the SOFTUNE Workbench.1.1 Workspace Management Function1.2 Project Management
136CHAPTER 2 DEPENDENCE FUNCTIONS----------------------------Language Tools- F2MC-16 Family SOFTUNE C Compiler versionFile Path: fcc907s.exe path- F2
137CHAPTER 2 DEPENDENCE FUNCTIONS2.3 Emulator Debugger (MB2147-01)This section explains the functions of the emulator debuggers for the MB2147-01. E
138CHAPTER 2 DEPENDENCE FUNCTIONS2.3.1 Setting Operating EnvironmentThis section explains the operating environment setup. Setting Operating Environ
139CHAPTER 2 DEPENDENCE FUNCTIONS2.3.1.1 Monitoring Program Automatic LoadingThe MB2147-01 emulator can automatically update the monitoring program a
140CHAPTER 2 DEPENDENCE FUNCTIONS2.3.1.2 MCU Operation ModeThere are two MCU operation modes as follows:• Debugging Mode• Native Mode Setting MCU Op
141CHAPTER 2 DEPENDENCE FUNCTIONS2.3.1.3 Debug AreaSet the intensive debugging area out of the whole memory space. The area functions are enhanced.
142CHAPTER 2 DEPENDENCE FUNCTIONS2.3.1.4 Memory Area TypesA unit in which memory is allocated is called an area. There are five different area types.
143CHAPTER 2 DEPENDENCE FUNCTIONSNote:The internal memory area, it is set a suitable area automatically by the selected MCU.- Internal ROM Image Area
144CHAPTER 2 DEPENDENCE FUNCTIONS2.3.1.5 Memory MappingMemory space can be allocated to the user memory and the emulation memory, etc., and the attri
145CHAPTER 2 DEPENDENCE FUNCTIONS Creating and Viewing Memory MapUse the following commands for memory mapping.SET MAP: Set memory map.SHOW MAP: Dis
2CHAPTER 1 BASIC FUNCTIONS1.1 Workspace Management FunctionThis section explains the workspace management function of SOFTUNE Workbench. WorkspaceSO
146CHAPTER 2 DEPENDENCE FUNCTIONS2.3.1.6 Debug FunctionThe debug function has the following two types. Only the function of the selected mode can be
147CHAPTER 2 DEPENDENCE FUNCTIONS2.3.1.7 Event ModeThere are three event modes as listed below.• Normal mode• Multi trace mode• Performance mode Eve
148CHAPTER 2 DEPENDENCE FUNCTIONS2.3.2 Notes on Commands for Executing ProgramWhen using commands to execute a program, there are several points to n
149CHAPTER 2 DEPENDENCE FUNCTIONS Notes on STEP Command- Exceptional Step ExecutionWhen executing the instructions listed in the notes on the GO com
150CHAPTER 2 DEPENDENCE FUNCTIONS2.3.3 Commands Available during Execution of User ProgramThis section explains the commands available during the exe
151CHAPTER 2 DEPENDENCE FUNCTIONS*1: For detail, refer to Section "2.3.6 Real-time Trace".*2: For detail, refer to Section "2.3.1.6
152CHAPTER 2 DEPENDENCE FUNCTIONS2.3.4 BreakIn this emulator debugger, nine types of break functions can be used. When the program execution is abort
153CHAPTER 2 DEPENDENCE FUNCTIONS2.3.4.1 Code BreakIt is a function to abort the program by observing the specified address. The break is done before
154CHAPTER 2 DEPENDENCE FUNCTIONS● Abnormal Breakpoint• Setting a breakpoint at the instruction immediately after string instructions listed below, m
155CHAPTER 2 DEPENDENCE FUNCTIONS2.3.4.2 Data BreakThe data break is a function to abort the program execution when the data access (read or write) i
3CHAPTER 1 BASIC FUNCTIONS1.2 Project Management FunctionThis section explains the project management function of SOFTUNE Workbench. Project Managem
156CHAPTER 2 DEPENDENCE FUNCTIONS2.3.4.3 Monitoring Data BreakIt is a special break function to abort execution while it is corresponding to specifie
157CHAPTER 2 DEPENDENCE FUNCTIONS2.3.4.4 Sequential BreakA sequential break is a function to abort a executing program, when the sequential condition
158CHAPTER 2 DEPENDENCE FUNCTIONS2.3.4.5 Guarded Access BreakThe guarded access break is an abortion of the program execution that happens when the v
159CHAPTER 2 DEPENDENCE FUNCTIONS2.3.4.6 Trace-Buffer-Full BreakIt is a function to abort the program execution when the trace buffer becomes full.
160CHAPTER 2 DEPENDENCE FUNCTIONS2.3.4.7 Performance-Buffer-Full BreakIt is a function to abort the program execution when the buffer for the perform
161CHAPTER 2 DEPENDENCE FUNCTIONS2.3.4.8 External Trigger BreakIt is a function to abort the execution of the program when an external signal is inpu
162CHAPTER 2 DEPENDENCE FUNCTIONS2.3.4.9 Forced BreakIt is a function to abort the execution of the program compulsorily. Forced BreakIt is a functi
163CHAPTER 2 DEPENDENCE FUNCTIONS2.3.5 Control by SequencerThis emulator has a sequencer to control events. By using this sequencer, sampling of brea
164CHAPTER 2 DEPENDENCE FUNCTIONS Setting EventsThe emulator can monitor the MCU bus operation, and generate a trigger for a sequencer at a specifie
165CHAPTER 2 DEPENDENCE FUNCTIONS2.3.5.1 Setting SequencerThe sequencer operates in the following order:1) The sequencer starts after the program exe
4CHAPTER 1 BASIC FUNCTIONSlevel of a compiler and MCU setting, can be created within one project.In the project configuration, the following informat
166CHAPTER 2 DEPENDENCE FUNCTIONSFigure 2.3-1 Operation of Sequencer Setting SequencerThe sequencer can be set by the dialog or the command.● Setti
167CHAPTER 2 DEPENDENCE FUNCTIONS2.3.6 Real-time TraceWhile execution a program, the address, data and status information, and the data sampled by an
168CHAPTER 2 DEPENDENCE FUNCTIONSFigure 2.3-2 Frame Numbering at Tracing Trace FilterTo make effective use of the limited trace buffer capacity, in
169CHAPTER 2 DEPENDENCE FUNCTIONSFigure 2.3-3 Trace Sampling Operation (Trace Trigger) Setting Data Monitoring Trace TriggerWhen the debug function
170CHAPTER 2 DEPENDENCE FUNCTIONS2.3.6.1 Setting Single TraceTo perform a single trace, follow steps 1 through 4 below. When a program is executed a
171CHAPTER 2 DEPENDENCE FUNCTIONS2.3.6.2 Multi TraceOnly when an event trigger occurred, the multi trace samples data before and after the event trig
172CHAPTER 2 DEPENDENCE FUNCTIONSFigure 2.3-5 Frame Number in Multi Trace Trace DelayThe trace data which is acquired after one event occurrence is
173CHAPTER 2 DEPENDENCE FUNCTIONSNote:The multi trace function in MB2147-01 is exclusive with the RAM Checker function. For more details,refer to Sec
174CHAPTER 2 DEPENDENCE FUNCTIONS2.3.6.3 Setting Methods of Multi TraceBefore executing the multi trace, the following settings must be made. After t
175CHAPTER 2 DEPENDENCE FUNCTIONSTable 2.3-7 shows the list of trace-related commands that can be used in multi trace mode.Table 2.3-7 Trace-related
5CHAPTER 1 BASIC FUNCTIONS1.3 Project DependenceThis section explains the project dependence of SOFTUNE Workbench. Project DependenceIf target files
176CHAPTER 2 DEPENDENCE FUNCTIONS2.3.6.4 Displaying Trace Data Storage StatusIt is possible to displays how much trace data is stored in the trace bu
177CHAPTER 2 DEPENDENCE FUNCTIONS2.3.6.5 Specify Displaying Trace Data Storage StatusThe data display start position in the trace buffer can be speci
178CHAPTER 2 DEPENDENCE FUNCTIONS2.3.6.6 Display Format of Trace DataThe trace data display format can be selected by running the SHOW TRACE command
179CHAPTER 2 DEPENDENCE FUNCTIONS Displaying All Machine Cycles (Specify /CYCLE)Detailed information at all sampled machine cycles can be displayed.
180CHAPTER 2 DEPENDENCE FUNCTIONSHow to read trace dataframe no. address data a-status d-status Qst dfg event time stamp(1) (2) (3) (4) (5) (6) (7) (
181CHAPTER 2 DEPENDENCE FUNCTIONS Display in Source Line Units (Specify /SOURCE.)Only the source line can be displayed. This mode is enabled only in
182CHAPTER 2 DEPENDENCE FUNCTIONS2.3.6.7 Reading Trace Data On-the-flyTrace data can be read while executing a program. However, this is not possible
183CHAPTER 2 DEPENDENCE FUNCTIONS2.3.6.8 Saving Trace DataThis section explains how to save trace data. Saving Trace DataTrace data can be saved in
184CHAPTER 2 DEPENDENCE FUNCTIONS2.3.7 Measuring PerformanceIt is possible to measure the time and pass count between two events. Repetitive measurem
185CHAPTER 2 DEPENDENCE FUNCTIONS2.3.7.1 Performance Measurement ProceduresPerformance can be measured by the following procedure:• Setting event mod
6CHAPTER 1 BASIC FUNCTIONS1.4 Make/Build FunctionThis section explains the make/build function of SOFTUNE Workbench. Make FunctionMake function gene
186CHAPTER 2 DEPENDENCE FUNCTIONS● Measuring CountThe specified events become performance measurement points automatically. Executing ProgramStart m
187CHAPTER 2 DEPENDENCE FUNCTIONS2.3.7.2 Display Performance Measurement DataDisplay the measured time and measuring count by using the SHOW PERFORMA
188CHAPTER 2 DEPENDENCE FUNCTIONS2.3.8 Measuring CoverageThis emulator has the C0 coverage measurement function. Use this function to find what perce
189CHAPTER 2 DEPENDENCE FUNCTIONS2.3.8.1 Coverage Measurement ProceduresThe procedure for coverage measurement is as follows:• Set range for coverage
190CHAPTER 2 DEPENDENCE FUNCTIONS● Summary (Specify /GENERAL for command qualifier)● Details (Specify /DETAIL for command qualifier.)>SHOW COVERAG
191CHAPTER 2 DEPENDENCE FUNCTIONS● Displays per source line (Specify /SOURCE for the command qualifier)● Displays per machine instruction (Specify /I
192CHAPTER 2 DEPENDENCE FUNCTIONS2.3.9 Real-time MonitoringThe real-time monitoring function is used to display the memory contents during program ex
193CHAPTER 2 DEPENDENCE FUNCTIONS2.3.10 Execution Time MeasurementThis function measures the program execution time. Measurement ItemsMeasures time
194CHAPTER 2 DEPENDENCE FUNCTIONS• Clearing by commandEnter the CLEAR TIMER command in the command window.For details, refer to Section "4.28 CL
195CHAPTER 2 DEPENDENCE FUNCTIONS2.3.11 Power-on DebuggingThis section explains power-on debugging by the emulators for the MB2147-01. Power-on Debu
7CHAPTER 1 BASIC FUNCTIONS1.4.1 Customize Build FunctionThis section describes the SOFTUNE Workbench to set the Customize Build function. Customize
196CHAPTER 2 DEPENDENCE FUNCTIONS2.3.12 RAM CheckerThis section describes the functions of the RAM Checker. OverviewThe RAM checker obtains history
197CHAPTER 2 DEPENDENCE FUNCTIONS Specifications List• SOFTUNE format- To display in the RAM Checker viewer (recommended)- Default extension is &quo
198CHAPTER 2 DEPENDENCE FUNCTIONSFor details about settings of the RAM Checker viewer, refer to Section "3.21 RAM Checker Window" of"S
199CHAPTER 2 DEPENDENCE FUNCTIONS RAM Checker ViewerThe RAM Checker Viewer is a tool for graphically displaying changes in data values with the pass
200CHAPTER 2 DEPENDENCE FUNCTIONS2.3.13 Checking Debugger InformationThis section explains how to check information about the MB2147-01 emulator debu
201CHAPTER 2 DEPENDENCE FUNCTIONS- F2MC-16 Family SOFTUNE Linker versionFile Path: flnk907s.exe path- F2MC-16 Family SOFTUNE Librarian versionFile Pa
202CHAPTER 2 DEPENDENCE FUNCTIONS2.4 Emulator Debugger (MB2147-05)This section explains the functions of the emulator debuggers for the MB2147-05. E
203CHAPTER 2 DEPENDENCE FUNCTIONS2.4.1 Setting Operating EnvironmentThis section explains the operating environment setup. Setting Operating Environ
204CHAPTER 2 DEPENDENCE FUNCTIONS2.4.1.1 Monitoring Program Automatic LoadingEmulators for MB2147-05 can automatically update the monitoring program
205CHAPTER 2 DEPENDENCE FUNCTIONS2.4.1.2 MCU Operation ModeThere are two MCU operation modes as follows:• Debugging Mode• Native Mode Setting MCU Op
8CHAPTER 1 BASIC FUNCTIONSNote:When checking [Use the Output window], note the following:• Once a tool is activated, Make/Build is suspended until th
206CHAPTER 2 DEPENDENCE FUNCTIONS2.4.1.3 Debug AreaSet the intensive debugging area out of the whole memory space. The area functions are enhanced.
207CHAPTER 2 DEPENDENCE FUNCTIONS2.4.1.4 Memory Area TypesA unit in which memory is allocated is called an area. There are five different area types.
208CHAPTER 2 DEPENDENCE FUNCTIONSNote:The internal memory area, it is set a suitable area automatically by the selected MCU.- Internal ROM Image Area
209CHAPTER 2 DEPENDENCE FUNCTIONS2.4.1.5 Memory MappingMemory space can be allocated to the user memory and the emulation memory, etc., and the attri
210CHAPTER 2 DEPENDENCE FUNCTIONS Creating and Viewing Memory MapUse the following commands for memory mapping.SET MAP: Set memory map.SHOW MAP: Dis
211CHAPTER 2 DEPENDENCE FUNCTIONS2.4.2 Notes on Commands for Executing ProgramWhen using commands to execute a program, there are several points to n
212CHAPTER 2 DEPENDENCE FUNCTIONS Notes on STEP Command● Exceptional Step ExecutionWhen executing the instructions listed in the notes on the GO com
213CHAPTER 2 DEPENDENCE FUNCTIONS2.4.3 Commands Available during Execution of User ProgramThis section explains the commands available during the exe
214CHAPTER 2 DEPENDENCE FUNCTIONS2.4.4 BreakIn this emulator debugger, five kinds of break functions can be used. When the program execution is abort
215CHAPTER 2 DEPENDENCE FUNCTIONS2.4.4.1 Code BreakIt is a function to abort the program execution by observing the specified address. The break is d
9CHAPTER 1 BASIC FUNCTIONS1.5 Include Dependencies Analysis FunctionThis section describes the function of the Include Dependencies Analysis of SOFTU
216CHAPTER 2 DEPENDENCE FUNCTIONS● Abnormal Breakpoint• Setting a breakpoint at the instruction immediately after string instructions listed below, m
217CHAPTER 2 DEPENDENCE FUNCTIONS2.4.4.2 Data BreakThe data break is a function to abort the program execution when the data access (read or write) i
218CHAPTER 2 DEPENDENCE FUNCTIONS2.4.4.3 Guarded Access BreakThe guarded access break is an abortion of the program execution that happens when the v
219CHAPTER 2 DEPENDENCE FUNCTIONS2.4.4.4 Trace-Buffer-Full BreakIt is a function to abort the program execution when the trace buffer becomes full.
220CHAPTER 2 DEPENDENCE FUNCTIONS2.4.4.5 Forced BreakIt is a function to abort the execution of the program compulsorily. Forced BreakIt is a functi
221CHAPTER 2 DEPENDENCE FUNCTIONS2.4.5 Real-time TraceWhile execution a program, the address, data and status information, and the data sampled by an
222CHAPTER 2 DEPENDENCE FUNCTIONSFigure 2.4-1 Frame Number at Tracing Trace FilterTo make effective use of the limited trace buffer capacity, in ad
223CHAPTER 2 DEPENDENCE FUNCTIONS2.4.5.1 Setting TraceTo perform a trace, follow steps (1), (2) below. When a program is executed after completion of
224CHAPTER 2 DEPENDENCE FUNCTIONS2.4.5.2 Displaying Trace Data Storage StatusIt is possible to displays how much trace data is stored in the trace bu
225CHAPTER 2 DEPENDENCE FUNCTIONS2.4.5.3 Specifying Displaying Trace Data StartThe data display start position in the trace buffer can be specified b
10CHAPTER 1 BASIC FUNCTIONS1.6 Functions of Setting Tool OptionsThis section describes the functions to set options for the language tools activated
226CHAPTER 2 DEPENDENCE FUNCTIONS2.4.5.4 Display Format of Trace DataThe trace data display format can be selected by running the SHOW TRACE command
227CHAPTER 2 DEPENDENCE FUNCTIONS Displaying All Machine CyclesDetailed information at all sampled machine cycles can be displayed.In this mode, no
228CHAPTER 2 DEPENDENCE FUNCTIONSHow to read trace dataframe no. address data a-status d-status Qst dfg(1) (2) (3) (4) (5) (6) (7)(1):frame number (
229CHAPTER 2 DEPENDENCE FUNCTIONS Display in Source Line Units (Specify /SOURCE.)Only the source line can be displayed. This mode is enabled only in
230CHAPTER 2 DEPENDENCE FUNCTIONS2.4.5.5 Reading Trace Data On-the-flyTrace data can be read while executing a program. However, this is not possible
231CHAPTER 2 DEPENDENCE FUNCTIONS2.4.5.6 Saving Trace DataThis section explains how to save trace data. Saving Trace DataTrace data can be saved in
232CHAPTER 2 DEPENDENCE FUNCTIONS2.4.6 Measuring Execution Cycle CountThis function measures the program execution cycle count. Measurement ItemsMea
233CHAPTER 2 DEPENDENCE FUNCTIONS2.5 Emulator Debugger (MB2198)This section explains the functions of the emulator debuggers for the MB2198. Emulato
234CHAPTER 2 DEPENDENCE FUNCTIONS2.5.1 Setting Operating EnvironmentThis section explains the operating environment setup. Setting Operating Environ
235CHAPTER 2 DEPENDENCE FUNCTIONS2.5.1.1 Monitoring Program Automatic LoadingThe MB2198 emulator can automatically update the monitoring program at e
11CHAPTER 1 BASIC FUNCTIONS1.7 Error Jump FunctionThis section describes the error jump function in SOFTUNE Workbench. Error Jump FunctionWhen an er
236CHAPTER 2 DEPENDENCE FUNCTIONS2.5.1.2 Boot ROM File Automatic ExecutionThe MB2198 emulator automatically loads and executes the Boot ROM file duri
237CHAPTER 2 DEPENDENCE FUNCTIONS2.5.1.3 MCU Operation ModeThere are two MCU operation modes as follows:• Full Trace Mode• Real-Time Mode Setting MC
238CHAPTER 2 DEPENDENCE FUNCTIONS2.5.1.4 Operation Frequency ControlThis section describes the operation frequency setup. Operation frequencySet the
239CHAPTER 2 DEPENDENCE FUNCTIONS2.5.2 Notes on Commands for Executing ProgramWhen using commands to execute a program, there are several points to n
240CHAPTER 2 DEPENDENCE FUNCTIONS2.5.3 Commands Available during Execution of User ProgramThis section explains the commands available during the exe
241CHAPTER 2 DEPENDENCE FUNCTIONSNotes:• The conditions which allow you to use the commands in Table 2.5-1 are limited to the followingcases when a u
242CHAPTER 2 DEPENDENCE FUNCTIONS2.5.4 BreakIn this emulator debugger, seven kinds of break functions can be used. When the program execution is abor
243CHAPTER 2 DEPENDENCE FUNCTIONS2.5.4.1 Code BreakThis function aborts a program by monitoring the specified address using hardware or software. Bre
244CHAPTER 2 DEPENDENCE FUNCTIONSNotes:• HardwareThere are the following considerations for the hardware break.- Due to combination use with the sequ
245CHAPTER 2 DEPENDENCE FUNCTIONS2.5.4.2 Data BreakIt is a function to abort the program execution when the data access (read and write) is done to a
12CHAPTER 1 BASIC FUNCTIONS[Example]*** %f(%l) %h: or, %[*] %f(%l) %h:The first four characters are "*** ", followed by the file name and
246CHAPTER 2 DEPENDENCE FUNCTIONS2.5.4.3 Guarded Access BreakThis function aborts the program execution when access has been performed using the spec
247CHAPTER 2 DEPENDENCE FUNCTIONS2.5.4.4 Sequential BreakA sequential break is a function to abort an executing program as event sequential control,
248CHAPTER 2 DEPENDENCE FUNCTIONS2.5.4.5 Trace-Buffer-Full BreakIt is a function to abort the program execution when the trace buffer becomes full.
249CHAPTER 2 DEPENDENCE FUNCTIONS2.5.4.6 Performance-Buffer-Full BreakIt is a function to abort the program execution when the buffer for the perform
250CHAPTER 2 DEPENDENCE FUNCTIONS2.5.4.7 External Trigger BreakIt is a function to abort the execution of the program when an external signal is inpu
251CHAPTER 2 DEPENDENCE FUNCTIONS2.5.4.8 Forced BreakIt is a function to abort the execution of the program compulsorily. Forced BreakIt is a functi
252CHAPTER 2 DEPENDENCE FUNCTIONS2.5.5 Control by SequencerThis emulator has a sequencer to control events. By using this sequencer, sampling of brea
253CHAPTER 2 DEPENDENCE FUNCTIONSThe sequence event is setting by the following command.• SET SEQUENCE :Sets sequence event• SHOW SEQUENCE :Displays
254CHAPTER 2 DEPENDENCE FUNCTIONS2.5.5.1 Operating of sequencerThe sequencer works in the following order.1) The sequencer starts when the program ex
255CHAPTER 2 DEPENDENCE FUNCTIONSFigure 2.5-1 Operation of SequencerSTARTLEVEL1LEVEL2LEVEL3LEVEL4LEVEL5LEVEL6ENDEVENT 1EVENT 4EVENT 2EVENT 3EVENT 6E
13CHAPTER 1 BASIC FUNCTIONS1.8 Editor FunctionsThis section describes the functions of the SOFTUNE Workbench built-in standard editor. Standard Edit
256CHAPTER 2 DEPENDENCE FUNCTIONS2.5.6 Real-time TraceWhile execution a program, the address, data and status information, and the data sampled by an
257CHAPTER 2 DEPENDENCE FUNCTIONSFigure 2.5-2 Frame Number at Tracing Trace FilterTo make effective use of the limited trace buffer capacity, in ad
258CHAPTER 2 DEPENDENCE FUNCTIONS2.5.6.1 Setting TraceTo perform a trace, follow steps (1) to (3) below. When a program is executed after completion
259CHAPTER 2 DEPENDENCE FUNCTIONSNote:In the case of the data trace trigger, word access from an odd address (in terms of bus access) isperformed usi
260CHAPTER 2 DEPENDENCE FUNCTIONS2.5.6.2 Displaying Trace Data Storage StatusIt is possible to displays how much trace data is stored in the trace bu
261CHAPTER 2 DEPENDENCE FUNCTIONS2.5.6.3 Specifying Displaying Trace Data StartThe data display start position in the trace buffer can be specified b
262CHAPTER 2 DEPENDENCE FUNCTIONS2.5.6.4 Display Format of Trace DataThe trace data display format can be selected by running the SHOW TRACE command
263CHAPTER 2 DEPENDENCE FUNCTIONSReset: Indicates that reset is detected.Loop Count "Number of times": Displays number of times which loop
264CHAPTER 2 DEPENDENCE FUNCTIONS Display in Source Line Units (Specify /SOURCE.)Only the source line can be displayed.[Example]>SHOW TRACE/SOURC
265CHAPTER 2 DEPENDENCE FUNCTIONS2.5.6.5 Saving Trace DataThis section explains how to save trace data. Saving Trace DataTrace data can be saved in
14CHAPTER 1 BASIC FUNCTIONS1.9 Storing External EditorsThis section describes the function to set an external editor to SOFTUNE Workbench. External
266CHAPTER 2 DEPENDENCE FUNCTIONS2.5.7 Measuring PerformanceIt is possible to measure the time and pass count between two events. Repetitive measurem
267CHAPTER 2 DEPENDENCE FUNCTIONS2.5.7.1 Performance Measurement ProceduresPerformance can be measured by the following procedure:1. Setting minimum
268CHAPTER 2 DEPENDENCE FUNCTIONS2.5.7.2 Display Performance Measurement DataDisplay the measured time and measuring count by using the SHOW PERFORMA
269CHAPTER 2 DEPENDENCE FUNCTIONS2.5.8 Execution Time MeasurementThis function measures the program execution time. Measurement ItemsMeasures time b
270CHAPTER 2 DEPENDENCE FUNCTIONSNote:The measured execution time is added about ten extra cycles per execution. If the execution cycle ismeasured, e
271CHAPTER 2 DEPENDENCE FUNCTIONS2.5.9 Power-On DebuggingThis section explains power-on debugging by the emulators for the MB2198. Power-on Debuggin
272CHAPTER 2 DEPENDENCE FUNCTIONS2.6 Emulator Debugger (MB2100-01)This section describes the emulator debugger functions that are available when the
273CHAPTER 2 DEPENDENCE FUNCTIONS2.6.1 Starting debuggingThis section describes the method of starting debugging by with the use the MB2100-01 emulat
274CHAPTER 2 DEPENDENCE FUNCTIONS2.6.1.1 Operating Environments of the TargetThis section describes the setting of the target operating environments
275CHAPTER 2 DEPENDENCE FUNCTIONSNotes:• When the operating environment set by the setup wizard is different from the actual operatingenvironment, th
15CHAPTER 1 BASIC FUNCTIONS Example of Optional Settings Reference SectionEditor SetupNote:Regarding execution of error jump in Hidemaru: To execut
276CHAPTER 2 DEPENDENCE FUNCTIONS2.6.1.2 SecurityThis section describes the security of the MB2100-01 emulator debugger. SecurityWhen beginning to d
277CHAPTER 2 DEPENDENCE FUNCTIONS2.6.2 Ending debuggingThis section describes the method of ending debugging being executed with the use of the MB210
278CHAPTER 2 DEPENDENCE FUNCTIONS2.6.3 Efficiently Executing DebuggingThis section describes setting for efficient debugging. Setting Operating Envi
279CHAPTER 2 DEPENDENCE FUNCTIONS2.6.3.1 Increasing Communication Speed during DebuggingThis section describes setting for increasing the communicati
280CHAPTER 2 DEPENDENCE FUNCTIONS2.6.3.2 Switching Debug FunctionThis section describes the method of switching the debug function correspondingly to
281CHAPTER 2 DEPENDENCE FUNCTIONS2.6.4 Executing ProgramThis section describes the method of executing a user program with the MB2100-01 emulator deb
282CHAPTER 2 DEPENDENCE FUNCTIONS2.6.4.1 Setting/Release of Debug FunctionsThe debug function can be set or released while executing the user program
283CHAPTER 2 DEPENDENCE FUNCTIONSNote:An error message appears if you enter a command that cannot be used during the execution of a userprogram."
284CHAPTER 2 DEPENDENCE FUNCTIONS2.6.4.2 MonitoringThis section describes the monitoring function in the MB2100-01 emulator debugger. MonitoringThe
285CHAPTER 2 DEPENDENCE FUNCTIONS2.6.4.3 Power-on DebugThis section describes power-on debug function in the MB2100-01 emulator debugger. Power-on
FUJITSU SEMICONDUCTOR LIMITEDF2MC-16 FAMILYSOFTUNETM WorkbenchUSER'S MANUAL
16CHAPTER 1 BASIC FUNCTIONS1.10 Storing External ToolsThis section describes the function to set an external tool to SOFTUNE Workbench. External Too
286CHAPTER 2 DEPENDENCE FUNCTIONSNotes:• Other debug features cannot be used while debugging power-on at all. • When security is enabled, power on de
287CHAPTER 2 DEPENDENCE FUNCTIONS2.6.4.4 Notes on Commands for Executing ProgramWhen using commands to execute a program, there are several points to
288CHAPTER 2 DEPENDENCE FUNCTIONSBecause "POP PS" (1) is an instruction as invalid breakpoint shown in "Notes on GO Command", no
289CHAPTER 2 DEPENDENCE FUNCTIONS2.6.5 To Access the Flash MemoryThis section describes the access method to the flash memory in the MB2100-01 emulat
290CHAPTER 2 DEPENDENCE FUNCTIONS- View the following dialogs.Line Assembly dialog (Disassembly window)Break setting dialog [Software]● Flash memory
291CHAPTER 2 DEPENDENCE FUNCTIONS Examples of flash memory synchronization● In the case of [Debugger -> Flash]An image in the case where the flas
292CHAPTER 2 DEPENDENCE FUNCTIONS● In the case of [Flash -> Debugger]An image in the case where the flash memory synchronization [Flash -> Debu
293CHAPTER 2 DEPENDENCE FUNCTIONS2.6.6 To Interrupt the Program Execution [Break]This section describes the method of interrupting the execution of t
294CHAPTER 2 DEPENDENCE FUNCTIONS2.6.6.1 Code Break (Hardware)This function suspends program execution by monitoring a specified address by hardware.
295CHAPTER 2 DEPENDENCE FUNCTIONS- When the break operation is generated while the instruction where the user interrupt is generated andthe next one
17CHAPTER 1 BASIC FUNCTIONS1.11 Macro Descriptions Usable in ManagerThis section explains the macro descriptions that can be used in the manager of S
296CHAPTER 2 DEPENDENCE FUNCTIONS2.6.6.2 Code Break (Software)This function suspends program execution by monitoring a specified address by software.
297CHAPTER 2 DEPENDENCE FUNCTIONS2.6.6.3 Data BreakThis function suspends program execution when data access (read/write) is made to a specified addr
298CHAPTER 2 DEPENDENCE FUNCTIONS2.6.6.4 Forced BreakThis function forcibly suspends program execution. Forced BreakThis function forcibly suspends
299CHAPTER 2 DEPENDENCE FUNCTIONS2.6.6.5 Data Watch BreakThis special break function suspends program execution when the program reaches a specified
300CHAPTER 2 DEPENDENCE FUNCTIONSNotes:• A data watch break shares points with the following functions. The maximum number variesdepending on how tho
301CHAPTER 2 DEPENDENCE FUNCTIONS2.6.6.6 SequencerA sequencer is a function to abort the program execution to the specified event condition when prog
302CHAPTER 2 DEPENDENCE FUNCTIONS Specifications of SequencerTable 2.6-2 shows the specifications of the sequencer for this emulator debugger. How
303CHAPTER 2 DEPENDENCE FUNCTIONSNotes:• When the pass count mode is a passing count break mode, this function cannot be used. For details, refer to
304CHAPTER 2 DEPENDENCE FUNCTIONS2.6.7 Measuring the Program Execution Cycle CountThis section explains the function of measuring the number of progr
305CHAPTER 2 DEPENDENCE FUNCTIONSNotes:• The number of cycles measured normally includes an error of about 10 cycles. However, it may beeven more, de
18CHAPTER 1 BASIC FUNCTIONSThe macros in (*1) are determined as follows:- Customize build1. Source file before and after executing compiler and assem
306CHAPTER 2 DEPENDENCE FUNCTIONS2.6.8 Measuring Event-to-Event Execution Cycle Count [Performance Measurement]This section explains how to measure t
307CHAPTER 2 DEPENDENCE FUNCTIONSNotes:• This function is not available when the execution time mode is set to the time measuring mode. Fordetails, r
308CHAPTER 2 DEPENDENCE FUNCTIONS2.6.8.1 Measuring PerformanceThis section explains how to measure the event-to-event execution cycle count in the MB
309CHAPTER 2 DEPENDENCE FUNCTIONS● Using Command for Measuring1. Specify performance events.- Execute the SET EVENT command.For details, refer to Sec
310CHAPTER 2 DEPENDENCE FUNCTIONS2.6.9 Viewing Program Execution History [Trace]This section describes the trace function of this emulator debugger.
311CHAPTER 2 DEPENDENCE FUNCTIONS● When break halts program executionFigure 2.6-5 Acquiring Trace DataNote:Executing the forced start will clear the
312CHAPTER 2 DEPENDENCE FUNCTIONS2.6.9.1 Displaying Trace DataThis section explains how to display trace data. Display Formats of Trace DataThe foll
313CHAPTER 2 DEPENDENCE FUNCTIONS● Using command window1. Display trace data for each display mode.RAW data: SHOW TRACEInstruction: SHOW TRACESource:
314CHAPTER 2 DEPENDENCE FUNCTIONS2.6.9.2 Trace Data Display Examples (RAW Data)This section describes trace data that is displayed in the RAW data mo
315CHAPTER 2 DEPENDENCE FUNCTIONS2.6.9.3 Trace Data Display Example (Instruction)This section describes trace data that is displayed in the instructi
19CHAPTER 1 BASIC FUNCTIONS- Tool options• Null character-Others1. File as focus is on the SRC tab of project window and valid file name is selected2
316CHAPTER 2 DEPENDENCE FUNCTIONS2.6.9.4 Trace Data Display Example (Source)This section describes trace data that is displayed in the source line mo
317CHAPTER 2 DEPENDENCE FUNCTIONS2.6.9.5 Saving Trace DataThis section explains how to save trace data. Saving Trace DataTrace data can be saved in
318CHAPTER 2 DEPENDENCE FUNCTIONS2.6.9.6 Searching for Trace DataThis section explains how to search for trace data. Searching for Trace DataThe spe
319CHAPTER 2 DEPENDENCE FUNCTIONS2.6.10 How to Display the Output Message from User Program to the DebuggerThis section explains the semihosting feat
320CHAPTER 2 DEPENDENCE FUNCTIONS Using Method of Semihosting FeatureUse the following procedure to display the content of the output request to MBR
321CHAPTER 2 DEPENDENCE FUNCTIONS2.6.11 Checking Debugger InformationThis section explains how to check information about the MB2100-01 emulator debu
322CHAPTER 2 DEPENDENCE FUNCTIONS - SOFTUNE FJ-OMF to HEX Converter version File Path: f2hs.exe path-------------------------------------------------
323CHAPTER 2 DEPENDENCE FUNCTIONS2.7 Monitor DebuggerThis section describes the functions of the monitor debugger. Monitor DebuggerThe monitor debug
324CHAPTER 2 DEPENDENCE FUNCTIONS2.7.1 Resources Used by Monitor ProgramThe monitor program of the monitor debugger uses the I/O resources listed bel
325CHAPTER 2 DEPENDENCE FUNCTIONS2.7.2 BreakIn the monitor debugger, two types of break functions can be used. When the program execution is aborted
20CHAPTER 1 BASIC FUNCTIONS[Example] Macro expansion in external toolsFocus is on Subprj project file in the SRC tab of project window.%a : C:\Subprj
326CHAPTER 2 DEPENDENCE FUNCTIONS2.7.2.1 Software BreakIt is a function to bury the instruction for the break under the memory, and to do the break b
327CHAPTER 2 DEPENDENCE FUNCTIONS2.7.2.2 Forced BreakIt is a function to abort the execution of the program compulsorily. Forced BreakIt is a functi
328CHAPTER 2 DEPENDENCE FUNCTIONS
329INDEXINDEXThe index follows on the next page.This is listed in alphabetic order.
330INDEXIndexSymbols/CYCLEDisplaying All Machine Cycles (Specify /CYCLE.)...116/INSTRUCTIONDisp
331INDEXProject Configuration ... 3ControlControl by Sequencer ... 96, 163, 252Controlli
332INDEXSetting Event Mode ...123, 185Event-related CommandsEvent-related Commands in Multi Trace Mode...
333INDEXLine NumberLine Number Information ... 27ListMacro List... 7
334INDEXMulti Trace...171Multi Trace Frame Number...110, 171Multi Trace Functio
335INDEXMonitoring Program Automatic Loading... 204, 235Program stopping conditions...
21CHAPTER 1 BASIC FUNCTIONS1.12 Setting Operating EnvironmentThis section describes the functions for setting the SOFTUNE Workbench operating environ
336INDEXSetting Method...42, 44, 46, 47, 80, 82, 83, 85, 86, 153, 155, 156, 157, 159, 160, 161, 215, 217, 219, 243, 245,
337INDEXDisplay Format of Trace Data ... 54Display without Analyzing Trace Data (Specify /RAWDATA.) ...
338INDEX
ColophonCM41-00313-6EFUJITSU SEMICONDUCTOR • CONTROLLER MANUALF2MC-16 FAMILYSOFTUNETM WorkbenchUSER’S MANUALApril 2011 the 6th editionPublished FUJITS
22CHAPTER 1 BASIC FUNCTIONS1.13 Debugger TypesThis section describes the types of SOFTUNE Workbench debuggers. Type of DebuggerSOFTUNE Workbench int
23CHAPTER 1 BASIC FUNCTIONS1.14 Memory Operation FunctionsThis section describes the memory operation functions. Functions for Memory Operations- Di
24CHAPTER 1 BASIC FUNCTIONS1.15 Register OperationsThis section describes the register operations. Register OperationsThe Register window is opened
25CHAPTER 1 BASIC FUNCTIONS1.16 Line Assembly and DisassemblyThis section describes line assembly and disassembly. Line AssemblyTo perform line-by-l
26CHAPTER 1 BASIC FUNCTIONS1.17 Symbolic DebuggingThe symbols defined in a source program can be used for command parameters (address). There are thr
27CHAPTER 1 BASIC FUNCTIONS Line Number InformationLine number information is set with the line number information table in SOFTUNE Workbench when a
28CHAPTER 1 BASIC FUNCTIONS1.17.1 Referring to Local SymbolsThis section describes referring to local symbols and Scope. ScopeWhen a local symbol is
29CHAPTER 1 BASIC FUNCTIONS1.17.2 Referring to Variable of C LanguageC language variables can be specified using the same descriptions as in the sou
30CHAPTER 1 BASIC FUNCTIONS Notes on C Language SymbolsThe C compiler outputs symbol information with "_" prefixed to global symbols. For
31CHAPTER 2DEPENDENCE FUNCTIONSThis chapter describes the functions dependent on each Debugger.2.1 Simulator Debugger2.2 Emulator Debugger (MB2141)2
32CHAPTER 2 DEPENDENCE FUNCTIONS2.1 Simulator DebuggerThis section describes the functions of the simulator debugger for the F2MC-16 Family. Simulat
33CHAPTER 2 DEPENDENCE FUNCTIONS Simulation RangeThe simulator debugger simulates the MCU operations (instruction operations, memory space, I/O port
34CHAPTER 2 DEPENDENCE FUNCTIONS2.1.1 Setting Operating EnvironmentThis section explains the operating environment setup. Setting Operating Environm
35CHAPTER 2 DEPENDENCE FUNCTIONS2.1.1.1 Boot ROM File Automatic ExecutionThe simulator debugger for F2MC-16FX automatically loads and executes the Bo
iPREFACE What is the SOFTUNE Workbench?SOFTUNE Workbench is support software for developing programs for the F2MC-16 family ofmicroprocessors / micro
36CHAPTER 2 DEPENDENCE FUNCTIONS2.1.2 Instruction SimulationThis section describes the instruction simulation executed by SOFTUNE Workbench. Instruc
37CHAPTER 2 DEPENDENCE FUNCTIONS2.1.3 Memory SimulationThis section describes the memory simulation executed by SOFTUNE Workbench. Memory Simulation
38CHAPTER 2 DEPENDENCE FUNCTIONS2.1.4 I/O Port SimulationThis section describes I/O port simulation executed by SOFTUNE Workbench. I/O Port Simulati
39CHAPTER 2 DEPENDENCE FUNCTIONS2.1.5 Interrupt SimulationThis section describes the interrupt simulation executed by SOFTUNE Workbench. Interrupt S
40CHAPTER 2 DEPENDENCE FUNCTIONS2.1.6 Reset SimulationThis section describes the reset simulation executed by SOFTUNE Workbench. Reset SimulationThe
41CHAPTER 2 DEPENDENCE FUNCTIONS2.1.7 Low-Power Consumption Mode SimulationThis section describes the low-power consumption SOFTUNE Workbench mode si
42CHAPTER 2 DEPENDENCE FUNCTIONS2.1.8 STUB FunctionThis section describes the STUB function which executes commands automatically when the breakpoint
43CHAPTER 2 DEPENDENCE FUNCTIONS2.1.9 BreakIn the simulator debugger, five types of break functions can be used. When the program execution is aborte
44CHAPTER 2 DEPENDENCE FUNCTIONS2.1.9.1 Code BreakIt is a function that the simulator debugger aborts the program execution when the code access spec
45CHAPTER 2 DEPENDENCE FUNCTIONS● Dangerous BreakPoints• Never set a breakpoint at an address other than the instruction starting address.• If a brea
ii Copyrights © 2004-2011 FUJITSU SEMICONDUCTOR LIMITED All rights reserved.• The contents of this document are subject to change without notice.Cust
46CHAPTER 2 DEPENDENCE FUNCTIONS2.1.9.2 Data BreakIt is a function that the simulator debugger aborts the program execution when the data access (rea
47CHAPTER 2 DEPENDENCE FUNCTIONS2.1.9.3 Trace-Buffer-Full BreakIt is a function to abort the program execution when the trace buffer becomes full. T
48CHAPTER 2 DEPENDENCE FUNCTIONS2.1.9.4 Guarded Access BreakIt is a function to abort the program execution when the violation to the access attribut
49CHAPTER 2 DEPENDENCE FUNCTIONS2.1.9.5 Forced BreakIt is a function to abort the execution of the program compulsorily. Forced BreakIt is a functio
50CHAPTER 2 DEPENDENCE FUNCTIONS2.1.10 Measuring Execution Cycle CountThis function measures the program execution cycle count. Measurement ItemsMea
51CHAPTER 2 DEPENDENCE FUNCTIONS Clearing Measurement ResultsEither of the following methods can be used to clear the measurement results.● Operatio
52CHAPTER 2 DEPENDENCE FUNCTIONS2.1.11 TraceThe address and status information can be sampled during program execution to record it in a trace buffer
53CHAPTER 2 DEPENDENCE FUNCTIONS2.1.11.1 Setting TraceYou must set the following two items to perform a trace. After that, trace data will be sample
54CHAPTER 2 DEPENDENCE FUNCTIONS2.1.11.2 Displaying Trace DataData recorded in the trace buffer can be displayed. Displaying Trace Data The trace wi
55CHAPTER 2 DEPENDENCE FUNCTIONS2.1.11.3 Searching Trace DataThe trace buffer can be searched to locate target data. Searching Trace Data The trace
iiiREADING THIS MANUAL Configuration of PageIn each section of this manual, the summary about the section is described certainly, so you can grasp an
56CHAPTER 2 DEPENDENCE FUNCTIONS2.1.11.4 Saving Trace DataThis section explains how to save trace data. Saving Trace DataTrace data can be saved in
57CHAPTER 2 DEPENDENCE FUNCTIONS2.1.12 Measuring CoverageIn the high-speed version simulator debugger, the C0 coverage measurement function is provid
58CHAPTER 2 DEPENDENCE FUNCTIONS2.1.12.1 Coverage Measurement ProceduresThe procedure for coverage measurement is as follows:• Set range for coverage
59CHAPTER 2 DEPENDENCE FUNCTIONS● Summary (Specify /GENERAL for command qualifier)● Details (Specify /DETAIL for command qualifier)>SHOW COVERAGE/
60CHAPTER 2 DEPENDENCE FUNCTIONS● Displays per source line (specify /SOURCE for the command qualifier)● Displays per machine instruction (specify /IN
61CHAPTER 2 DEPENDENCE FUNCTIONS2.1.13 Checking Debugger InformationThis section explains how to check information about the simulator debugger. Deb
62CHAPTER 2 DEPENDENCE FUNCTIONS----------------------------Language Tools- F2MC-16 Family SOFTUNE C Compiler versionFile Path: fcc907s.exe path- F2M
63CHAPTER 2 DEPENDENCE FUNCTIONS2.2 Emulator Debugger (MB2141)This section explains the functions of the emulator debuggers for the MB2141. Emulator
64CHAPTER 2 DEPENDENCE FUNCTIONS2.2.1 Setting Operating EnvironmentThis section explains the operating environment setup. Setting Operating Environm
65CHAPTER 2 DEPENDENCE FUNCTIONS2.2.1.1 MCU Operation ModeThere are two MCU operation modes as follows:• Debugging Mode• Native Mode Setting MCU Ope
66CHAPTER 2 DEPENDENCE FUNCTIONS MCU Operation SpeedTo support a broader range of MCU operation speeds, the emulator adjusts control of the MCU acco
67CHAPTER 2 DEPENDENCE FUNCTIONS2.2.1.2 Debug AreaSet the intensive debugging area out of the whole memory space. The area functions are enhanced. S
68CHAPTER 2 DEPENDENCE FUNCTIONS2.2.1.3 Memory Area TypesA unit in which memory is allocated is called an area. There are seven different area types.
69CHAPTER 2 DEPENDENCE FUNCTIONSNote:When the F2MC-16/16H is used, mirror area setup can be performed only in the debugging mode.- Internal ROM AreaT
70CHAPTER 2 DEPENDENCE FUNCTIONSNote:The F2MC-16/16H only allows this setup in the debugging mode.
71CHAPTER 2 DEPENDENCE FUNCTIONS2.2.1.4 Memory MappingMemory space can be allocated to the user memory, the emulation memory, etc., and the attribute
72CHAPTER 2 DEPENDENCE FUNCTIONS[Example]>SHOW MAPaddress attribute type000000 .. FFFFFF noguardThe rest of setting area numbersuser = 8 emulation
73CHAPTER 2 DEPENDENCE FUNCTIONS2.2.1.5 Timer Minimum Measurement UnitThe timer minimum measurement unit affects the sequencer, the emulation timer a
74CHAPTER 2 DEPENDENCE FUNCTIONS2.2.2 Notes on Commands for Executing ProgramWhen using commands to execute a program, there are several points to no
75CHAPTER 2 DEPENDENCE FUNCTIONS- Abnormal BreakpointSetting a breakpoint at the instruction immediately after string instructions listed below, may
vCONTENTSCHAPTER 1 BASIC FUNCTIONS ... 11.1 Workspace Management Fu
76CHAPTER 2 DEPENDENCE FUNCTIONS2.2.3 Commands Available during Execution of User ProgramThis section explains the commands available during the exec
77CHAPTER 2 DEPENDENCE FUNCTIONS2.2.4 On-the-fly Memory AccessWhile on-the-fly, the area mapped to the emulation memory is Read/Write enabled, but th
78CHAPTER 2 DEPENDENCE FUNCTIONSThe following commands access memory.- Memory operation commandsSET MEMORY, SHOW MEMORY, EXAMINE, ENTER,COMPARE, FILL
79CHAPTER 2 DEPENDENCE FUNCTIONS2.2.5 BreakIn this emulator debugger, seven types of break functions can be used. When the program execution is abort
80CHAPTER 2 DEPENDENCE FUNCTIONS2.2.5.1 Code BreakIt is a function to abort the program execution by observing the specified address. The break is do
81CHAPTER 2 DEPENDENCE FUNCTIONS● Abnormal Breakpoint• Setting a breakpoint at the instruction immediately after string instructions listed below, ma
82CHAPTER 2 DEPENDENCE FUNCTIONS2.2.5.2 Data BreakThe data break is a function to abort the program execution when the data access (read or write) is
83CHAPTER 2 DEPENDENCE FUNCTIONS2.2.5.3 Sequential BreakA sequential break is a function to abort a executing program, when the sequential condition
84CHAPTER 2 DEPENDENCE FUNCTIONS2.2.5.4 Guarded Access BreakThe guarded access break is an abortion of the program execution that happens when the vi
85CHAPTER 2 DEPENDENCE FUNCTIONS2.2.5.5 Trace-Buffer-Full BreakIt is a function to abort the program execution when the trace buffer becomes full. T
Comments to this Manuals