Fujitsu F2 User Manual

Browse online or download User Manual for Software Fujitsu F2. Fujitsu F2 User's Manual

  • Download
  • Add to my manuals
  • Print
  • Page
    / 354
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews

Summary of Contents

Page 1 - USER'S MANUAL

FUJITSU SEMICONDUCTORCONTROLLER MANUALF2MC-16 FAMILYSOFTUNETM WorkbenchUSER'S MANUALCM41-00313-6E

Page 2

vi 2.1.11.3 Searching Trace Data ... 552

Page 3

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

Page 4

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

Page 5 - ■ Organization of This Manual

88CHAPTER 2 DEPENDENCE FUNCTIONS2.2.6 EventsThe emulator can monitor the MCU bus operation, and generate a trigger at a specified condition called an

Page 6

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

Page 7 - READING THIS MANUAL

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

Page 8

91CHAPTER 2 DEPENDENCE FUNCTIONS Event-related Commands in Normal ModeSince the real-time trace function in the normal mode is actually the single t

Page 9 - CONTENTS

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

Page 10

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

Page 11

94CHAPTER 2 DEPENDENCE FUNCTIONS2.2.6.3 Operation in Performance ModeEvent triggers set in the performance mode are used to measure performance. The

Page 12

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

Page 13

vii2.2.10.1 Coverage Measurement Procedures ... 1272.2.11 Executio

Page 14

96CHAPTER 2 DEPENDENCE FUNCTIONS2.2.7 Control by SequencerThis emulator has a sequencer to control events. By using this sequencer, sampling of break

Page 15 - BASIC FUNCTIONS

97CHAPTER 2 DEPENDENCE FUNCTIONS2.2.7.1 Setting SequencerThe sequencer operates in the following order:(1) The sequencer starts from level 1 simultan

Page 16

98CHAPTER 2 DEPENDENCE FUNCTIONS[Setup Examples]- Terminate sequencer when event 1 occurs.>SET SEQUENCE/EVENT 1,1,J=0- Terminate sequencer when ev

Page 17 - ■ Project Configuration

99CHAPTER 2 DEPENDENCE FUNCTIONS2.2.7.2 Break by SequencerA program can suspend program execution when the sequencer terminates. This break is called

Page 18

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

Page 19 - 1.3 Project Dependence

101CHAPTER 2 DEPENDENCE FUNCTIONS[Setup Example]Suspend trace sampling when event 1 occurs, and then resume at event 2 and keep sampling data untilev

Page 20 - 1.4 Make/Build Function

102CHAPTER 2 DEPENDENCE FUNCTIONS2.2.7.4 Time Measurement by SequencerTime can be measured using the sequencer. A time measurement timer called the e

Page 21 - ■ Macro List

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

Page 22

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

Page 23 - Workbench

105CHAPTER 2 DEPENDENCE FUNCTIONS2.2.8 Real-time TraceWhile execution a program, the address, data and status information, and the data sampled by an

Page 24 - ■ Tool Options

viii 2.4.1 Setting Operating Environment ... 2032.4.1

Page 25 - 1.7 Error Jump Function

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

Page 26 - ■ Reference Section

107CHAPTER 2 DEPENDENCE FUNCTIONS Frame Number and Step Number in Single TraceThe sampled trace data is numbered in frame units. This number is call

Page 27 - 1.8 Editor Functions

108CHAPTER 2 DEPENDENCE FUNCTIONS2.2.8.2 Setting Single TraceThe following settings (1) to (4) are required before executing single trace. Once these

Page 28 - 1.9 Storing External Editors

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

Page 29

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

Page 30 - 1.10 Storing External Tools

111CHAPTER 2 DEPENDENCE FUNCTIONSFigure 2.2-13 Frame Number in Multi TraceBlock number Trace buffer Frame numberGlobal number Local number Event tri

Page 31 - ■ Macros

112CHAPTER 2 DEPENDENCE FUNCTIONS2.2.8.4 Setting Multi TraceBefore executing the multi trace, the following settings must be made. After these settin

Page 32

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

Page 33 - ■ Examples of Macro Expansion

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.

Page 34

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

Page 35 - ■ Operating Environment

ix2.5.7 Measuring Performance ... 2662.5.7.

Page 36 - 1.13 Debugger Types

116CHAPTER 2 DEPENDENCE FUNCTIONS Displaying All Machine Cycles (Specify /CYCLE.)Detailed information at all sampled machine cycles can be displayed

Page 37

117CHAPTER 2 DEPENDENCE FUNCTIONS[Example]>>SHOW TRACE/CYCLE -587frame no. address data a-status d-status Qst dfg level ext-probe-00587 :FF0106

Page 38 - 1.15 Register Operations

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

Page 39 - ■ Disassembly

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

Page 40 - 1.17 Symbolic Debugging

120CHAPTER 2 DEPENDENCE FUNCTIONS Reading Trace Data On-the-fly in the Multi TraceUse the DISABLE MULTITRACE command to disable the trace function b

Page 41 - ■ Line Number Information

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

Page 42 - ■ Moving Scope

122CHAPTER 2 DEPENDENCE FUNCTIONS2.2.9 Measuring PerformanceIt is possible to measure the time and pass count between two events. Repetitive measurem

Page 43

123CHAPTER 2 DEPENDENCE FUNCTIONS2.2.9.1 Performance Measurement ProceduresPerformance can be measured by the following procedure:• Setting event mod

Page 44 - ■ Notes on C Language Symbols

124CHAPTER 2 DEPENDENCE FUNCTIONS Setting EventsSet events using the SET EVENT command.The starting/ending point of time measurement and points to m

Page 45 - DEPENDENCE FUNCTIONS

125CHAPTER 2 DEPENDENCE FUNCTIONS2.2.9.2 Display Performance Measurement DataDisplay the measured time and measuring count by using the SHOW PERFORMA

Page 47 - ■ Simulation Range

126CHAPTER 2 DEPENDENCE FUNCTIONS2.2.10 Measuring CoverageThis emulator has the C0 coverage measurement function. Use this function to find what perc

Page 48

127CHAPTER 2 DEPENDENCE FUNCTIONS2.2.10.1 Coverage Measurement ProceduresThe procedure for coverage measurement is as follows:• Set range for coverag

Page 49 - The simulator debugger for F

128CHAPTER 2 DEPENDENCE FUNCTIONS● Displaying coverage rate of load module (specify /MODULE for the command qualifier)● Summary (Specify /GENERAL for

Page 50 - 2.1.2 Instruction Simulation

129CHAPTER 2 DEPENDENCE FUNCTIONS● Displays per source line (specify /SOURCE for the command qualifier)● Displays per machine instruction (specify /I

Page 51 - 2.1.3 Memory Simulation

130CHAPTER 2 DEPENDENCE FUNCTIONSNote:With MB2141 emulator, the code coverage measurement is affected by a prefetch. Note whenanalyzing.

Page 52 - 2.1.4 I/O Port Simulation

131CHAPTER 2 DEPENDENCE FUNCTIONS2.2.11 Execution Time MeasurementThis function measures the program execution time. Measurement ItemsMeasures time

Page 53 - 2.1.5 Interrupt Simulation

132CHAPTER 2 DEPENDENCE FUNCTIONS• Clearing by dialogClick the [Clear] button in the time measurement dialog, which can be displayed by selecting [De

Page 54 - 2.1.6 Reset Simulation

133CHAPTER 2 DEPENDENCE FUNCTIONS2.2.12 Sampling by External ProbeAn external probe can be used to sample (input) data. There are two sampling types:

Page 55

134CHAPTER 2 DEPENDENCE FUNCTIONS Displaying and Setting External Probe DataWhen a command that can use external probe data is executed, external pr

Page 56 - Program execution

135CHAPTER 2 DEPENDENCE FUNCTIONS2.2.13 Checking Debugger InformationThis section explains how to check information about the MB2141 emulator debugge

Page 57 - 2.1.9 Break

1CHAPTER 1BASIC FUNCTIONSThis chapter describes the basic functions on the SOFTUNE Workbench.1.1 Workspace Management Function1.2 Project Management

Page 58 - 2.1.9.1 Code Break

136CHAPTER 2 DEPENDENCE FUNCTIONS----------------------------Language Tools- F2MC-16 Family SOFTUNE C Compiler versionFile Path: fcc907s.exe path- F2

Page 59

137CHAPTER 2 DEPENDENCE FUNCTIONS2.3 Emulator Debugger (MB2147-01)This section explains the functions of the emulator debuggers for the MB2147-01. E

Page 60 - 2.1.9.2 Data Break

138CHAPTER 2 DEPENDENCE FUNCTIONS2.3.1 Setting Operating EnvironmentThis section explains the operating environment setup. Setting Operating Environ

Page 61

139CHAPTER 2 DEPENDENCE FUNCTIONS2.3.1.1 Monitoring Program Automatic LoadingThe MB2147-01 emulator can automatically update the monitoring program a

Page 62 - 2.1.9.4 Guarded Access Break

140CHAPTER 2 DEPENDENCE FUNCTIONS2.3.1.2 MCU Operation ModeThere are two MCU operation modes as follows:• Debugging Mode• Native Mode Setting MCU Op

Page 63 - 2.1.9.5 Forced Break

141CHAPTER 2 DEPENDENCE FUNCTIONS2.3.1.3 Debug AreaSet the intensive debugging area out of the whole memory space. The area functions are enhanced.

Page 64

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.

Page 65

143CHAPTER 2 DEPENDENCE FUNCTIONSNote:The internal memory area, it is set a suitable area automatically by the selected MCU.- Internal ROM Image Area

Page 66 - 2.1.11 Trace

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

Page 67 - 2.1.11.1 Setting Trace

145CHAPTER 2 DEPENDENCE FUNCTIONS Creating and Viewing Memory MapUse the following commands for memory mapping.SET MAP: Set memory map.SHOW MAP: Dis

Page 68 - ■ Clearing Trace Data

2CHAPTER 1 BASIC FUNCTIONS1.1 Workspace Management FunctionThis section explains the workspace management function of SOFTUNE Workbench. WorkspaceSO

Page 69 - 2.1.11.3 Searching Trace Data

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

Page 70 - 2.1.11.4 Saving Trace Data

147CHAPTER 2 DEPENDENCE FUNCTIONS2.3.1.7 Event ModeThere are three event modes as listed below.• Normal mode• Multi trace mode• Performance mode Eve

Page 71 - 2.1.12 Measuring Coverage

148CHAPTER 2 DEPENDENCE FUNCTIONS2.3.2 Notes on Commands for Executing ProgramWhen using commands to execute a program, there are several points to n

Page 72

149CHAPTER 2 DEPENDENCE FUNCTIONS Notes on STEP Command- Exceptional Step ExecutionWhen executing the instructions listed in the notes on the GO com

Page 73

150CHAPTER 2 DEPENDENCE FUNCTIONS2.3.3 Commands Available during Execution of User ProgramThis section explains the commands available during the exe

Page 74

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

Page 75

152CHAPTER 2 DEPENDENCE FUNCTIONS2.3.4 BreakIn this emulator debugger, nine types of break functions can be used. When the program execution is abort

Page 76

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

Page 77

154CHAPTER 2 DEPENDENCE FUNCTIONS● Abnormal Breakpoint• Setting a breakpoint at the instruction immediately after string instructions listed below, m

Page 78

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

Page 79 - 2.2.1.1 MCU Operation Mode

3CHAPTER 1 BASIC FUNCTIONS1.2 Project Management FunctionThis section explains the project management function of SOFTUNE Workbench. Project Managem

Page 80 - ■ MCU Operation Speed

156CHAPTER 2 DEPENDENCE FUNCTIONS2.3.4.3 Monitoring Data BreakIt is a special break function to abort execution while it is corresponding to specifie

Page 81 - 2.2.1.2 Debug Area

157CHAPTER 2 DEPENDENCE FUNCTIONS2.3.4.4 Sequential BreakA sequential break is a function to abort a executing program, when the sequential condition

Page 82 - 2.2.1.3 Memory Area Types

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

Page 83

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.

Page 84

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

Page 85 - 2.2.1.4 Memory Mapping

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

Page 86

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

Page 87

163CHAPTER 2 DEPENDENCE FUNCTIONS2.3.5 Control by SequencerThis emulator has a sequencer to control events. By using this sequencer, sampling of brea

Page 88

164CHAPTER 2 DEPENDENCE FUNCTIONS Setting EventsThe emulator can monitor the MCU bus operation, and generate a trigger for a sequencer at a specifie

Page 89

165CHAPTER 2 DEPENDENCE FUNCTIONS2.3.5.1 Setting SequencerThe sequencer operates in the following order:1) The sequencer starts after the program exe

Page 90

4CHAPTER 1 BASIC FUNCTIONSlevel of a compiler and MCU setting, can be created within one project.In the project configuration, the following informat

Page 91

166CHAPTER 2 DEPENDENCE FUNCTIONSFigure 2.3-1 Operation of Sequencer Setting SequencerThe sequencer can be set by the dialog or the command.● Setti

Page 92

167CHAPTER 2 DEPENDENCE FUNCTIONS2.3.6 Real-time TraceWhile execution a program, the address, data and status information, and the data sampled by an

Page 93 - 2.2.5 Break

168CHAPTER 2 DEPENDENCE FUNCTIONSFigure 2.3-2 Frame Numbering at Tracing Trace FilterTo make effective use of the limited trace buffer capacity, in

Page 94 - 2.2.5.1 Code Break

169CHAPTER 2 DEPENDENCE FUNCTIONSFigure 2.3-3 Trace Sampling Operation (Trace Trigger) Setting Data Monitoring Trace TriggerWhen the debug function

Page 95

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

Page 96 - 2.2.5.2 Data Break

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

Page 97 - 2.2.5.3 Sequential Break

172CHAPTER 2 DEPENDENCE FUNCTIONSFigure 2.3-5 Frame Number in Multi Trace Trace DelayThe trace data which is acquired after one event occurrence is

Page 98 - 2.2.5.4 Guarded Access Break

173CHAPTER 2 DEPENDENCE FUNCTIONSNote:The multi trace function in MB2147-01 is exclusive with the RAM Checker function. For more details,refer to Sec

Page 99

174CHAPTER 2 DEPENDENCE FUNCTIONS2.3.6.3 Setting Methods of Multi TraceBefore executing the multi trace, the following settings must be made. After t

Page 100 - ■ Setting Method

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

Page 101 - 2.2.5.7 Forced Break

5CHAPTER 1 BASIC FUNCTIONS1.3 Project DependenceThis section explains the project dependence of SOFTUNE Workbench. Project DependenceIf target files

Page 102 - 2.2.6 Events

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

Page 103 - ■ Event Modes

177CHAPTER 2 DEPENDENCE FUNCTIONS2.3.6.5 Specify Displaying Trace Data Storage StatusThe data display start position in the trace buffer can be speci

Page 104 - ■ Operation in Normal Mode

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

Page 105

179CHAPTER 2 DEPENDENCE FUNCTIONS Displaying All Machine Cycles (Specify /CYCLE)Detailed information at all sampled machine cycles can be displayed.

Page 106 - Multitrace measurement

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) (

Page 107

181CHAPTER 2 DEPENDENCE FUNCTIONS Display in Source Line Units (Specify /SOURCE.)Only the source line can be displayed. This mode is enabled only in

Page 108 - Performance measurement

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

Page 109

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

Page 110 - 2.2.7 Control by Sequencer

184CHAPTER 2 DEPENDENCE FUNCTIONS2.3.7 Measuring PerformanceIt is possible to measure the time and pass count between two events. Repetitive measurem

Page 111 - 2.2.7.1 Setting Sequencer

185CHAPTER 2 DEPENDENCE FUNCTIONS2.3.7.1 Performance Measurement ProceduresPerformance can be measured by the following procedure:• Setting event mod

Page 113 - 2.2.7.2 Break by Sequencer

6CHAPTER 1 BASIC FUNCTIONS1.4 Make/Build FunctionThis section explains the make/build function of SOFTUNE Workbench. Make FunctionMake function gene

Page 114

186CHAPTER 2 DEPENDENCE FUNCTIONS● Measuring CountThe specified events become performance measurement points automatically. Executing ProgramStart m

Page 115

187CHAPTER 2 DEPENDENCE FUNCTIONS2.3.7.2 Display Performance Measurement DataDisplay the measured time and measuring count by using the SHOW PERFORMA

Page 116

188CHAPTER 2 DEPENDENCE FUNCTIONS2.3.8 Measuring CoverageThis emulator has the C0 coverage measurement function. Use this function to find what perce

Page 117

189CHAPTER 2 DEPENDENCE FUNCTIONS2.3.8.1 Coverage Measurement ProceduresThe procedure for coverage measurement is as follows:• Set range for coverage

Page 118

190CHAPTER 2 DEPENDENCE FUNCTIONS● Summary (Specify /GENERAL for command qualifier)● Details (Specify /DETAIL for command qualifier.)>SHOW COVERAG

Page 119 - 2.2.8 Real-time Trace

191CHAPTER 2 DEPENDENCE FUNCTIONS● Displays per source line (Specify /SOURCE for the command qualifier)● Displays per machine instruction (Specify /I

Page 120 - 2.2.8.1 Single Trace

192CHAPTER 2 DEPENDENCE FUNCTIONS2.3.9 Real-time MonitoringThe real-time monitoring function is used to display the memory contents during program ex

Page 121

193CHAPTER 2 DEPENDENCE FUNCTIONS2.3.10 Execution Time MeasurementThis function measures the program execution time. Measurement ItemsMeasures time

Page 122 - 2.2.8.2 Setting Single Trace

194CHAPTER 2 DEPENDENCE FUNCTIONS• Clearing by commandEnter the CLEAR TIMER command in the command window.For details, refer to Section "4.28 CL

Page 123

195CHAPTER 2 DEPENDENCE FUNCTIONS2.3.11 Power-on DebuggingThis section explains power-on debugging by the emulators for the MB2147-01. Power-on Debu

Page 124 - 2.2.8.3 Multi trace

7CHAPTER 1 BASIC FUNCTIONS1.4.1 Customize Build FunctionThis section describes the SOFTUNE Workbench to set the Customize Build function. Customize

Page 125 - Global number Local number

196CHAPTER 2 DEPENDENCE FUNCTIONS2.3.12 RAM CheckerThis section describes the functions of the RAM Checker. OverviewThe RAM checker obtains history

Page 126 - 2.2.8.4 Setting Multi Trace

197CHAPTER 2 DEPENDENCE FUNCTIONS Specifications List• SOFTUNE format- To display in the RAM Checker viewer (recommended)- Default extension is &quo

Page 127

198CHAPTER 2 DEPENDENCE FUNCTIONSFor details about settings of the RAM Checker viewer, refer to Section "3.21 RAM Checker Window" of"S

Page 128

199CHAPTER 2 DEPENDENCE FUNCTIONS RAM Checker ViewerThe RAM Checker Viewer is a tool for graphically displaying changes in data values with the pass

Page 129

200CHAPTER 2 DEPENDENCE FUNCTIONS2.3.13 Checking Debugger InformationThis section explains how to check information about the MB2147-01 emulator debu

Page 130 - Display of sequencer level

201CHAPTER 2 DEPENDENCE FUNCTIONS- F2MC-16 Family SOFTUNE Linker versionFile Path: flnk907s.exe path- F2MC-16 Family SOFTUNE Librarian versionFile Pa

Page 131

202CHAPTER 2 DEPENDENCE FUNCTIONS2.4 Emulator Debugger (MB2147-05)This section explains the functions of the emulator debuggers for the MB2147-05. E

Page 132

203CHAPTER 2 DEPENDENCE FUNCTIONS2.4.1 Setting Operating EnvironmentThis section explains the operating environment setup. Setting Operating Environ

Page 133

204CHAPTER 2 DEPENDENCE FUNCTIONS2.4.1.1 Monitoring Program Automatic LoadingEmulators for MB2147-05 can automatically update the monitoring program

Page 134

205CHAPTER 2 DEPENDENCE FUNCTIONS2.4.1.2 MCU Operation ModeThere are two MCU operation modes as follows:• Debugging Mode• Native Mode Setting MCU Op

Page 135 - 2.2.8.9 Saving Trace Data

8CHAPTER 1 BASIC FUNCTIONSNote:When checking [Use the Output window], note the following:• Once a tool is activated, Make/Build is suspended until th

Page 136 - 2.2.9 Measuring Performance

206CHAPTER 2 DEPENDENCE FUNCTIONS2.4.1.3 Debug AreaSet the intensive debugging area out of the whole memory space. The area functions are enhanced.

Page 137

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.

Page 138 - ■ Executing Program

208CHAPTER 2 DEPENDENCE FUNCTIONSNote:The internal memory area, it is set a suitable area automatically by the selected MCU.- Internal ROM Image Area

Page 139 - ■ Displaying Measured Time

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

Page 140 - 2.2.10 Measuring Coverage

210CHAPTER 2 DEPENDENCE FUNCTIONS Creating and Viewing Memory MapUse the following commands for memory mapping.SET MAP: Set memory map.SHOW MAP: Dis

Page 141

211CHAPTER 2 DEPENDENCE FUNCTIONS2.4.2 Notes on Commands for Executing ProgramWhen using commands to execute a program, there are several points to n

Page 142

212CHAPTER 2 DEPENDENCE FUNCTIONS Notes on STEP Command● Exceptional Step ExecutionWhen executing the instructions listed in the notes on the GO com

Page 143

213CHAPTER 2 DEPENDENCE FUNCTIONS2.4.3 Commands Available during Execution of User ProgramThis section explains the commands available during the exe

Page 144

214CHAPTER 2 DEPENDENCE FUNCTIONS2.4.4 BreakIn this emulator debugger, five kinds of break functions can be used. When the program execution is abort

Page 145 - ■ Measurement Items

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

Page 146

9CHAPTER 1 BASIC FUNCTIONS1.5 Include Dependencies Analysis FunctionThis section describes the function of the Include Dependencies Analysis of SOFTU

Page 147 - ■ Sampling by External Probe

216CHAPTER 2 DEPENDENCE FUNCTIONS● Abnormal Breakpoint• Setting a breakpoint at the instruction immediately after string instructions listed below, m

Page 148

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

Page 149 - ■ Displayed Contents

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

Page 150

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.

Page 151 - ■ Emulator

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

Page 152

221CHAPTER 2 DEPENDENCE FUNCTIONS2.4.5 Real-time TraceWhile execution a program, the address, data and status information, and the data sampled by an

Page 153

222CHAPTER 2 DEPENDENCE FUNCTIONSFigure 2.4-1 Frame Number at Tracing Trace FilterTo make effective use of the limited trace buffer capacity, in ad

Page 154 - 2.3.1.2 MCU Operation Mode

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

Page 155 - 2.3.1.3 Debug Area

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

Page 156 - 2.3.1.4 Memory Area Types

225CHAPTER 2 DEPENDENCE FUNCTIONS2.4.5.3 Specifying Displaying Trace Data StartThe data display start position in the trace buffer can be specified b

Page 157

10CHAPTER 1 BASIC FUNCTIONS1.6 Functions of Setting Tool OptionsThis section describes the functions to set options for the language tools activated

Page 158 - 2.3.1.5 Memory Mapping

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

Page 159 - ■ Internal ROM Area Setting

227CHAPTER 2 DEPENDENCE FUNCTIONS Displaying All Machine CyclesDetailed information at all sampled machine cycles can be displayed.In this mode, no

Page 160 - 2.3.1.6 Debug Function

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 (

Page 161 - 2.3.1.7 Event Mode

229CHAPTER 2 DEPENDENCE FUNCTIONS Display in Source Line Units (Specify /SOURCE.)Only the source line can be displayed. This mode is enabled only in

Page 162 - ■ Notes on GO Command

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

Page 163 - ■ Controlling Watchdog Timer

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

Page 164

232CHAPTER 2 DEPENDENCE FUNCTIONS2.4.6 Measuring Execution Cycle CountThis function measures the program execution cycle count. Measurement ItemsMea

Page 165

233CHAPTER 2 DEPENDENCE FUNCTIONS2.5 Emulator Debugger (MB2198)This section explains the functions of the emulator debuggers for the MB2198. Emulato

Page 166 - 2.3.4 Break

234CHAPTER 2 DEPENDENCE FUNCTIONS2.5.1 Setting Operating EnvironmentThis section explains the operating environment setup. Setting Operating Environ

Page 167 - 2.3.4.1 Code Break

235CHAPTER 2 DEPENDENCE FUNCTIONS2.5.1.1 Monitoring Program Automatic LoadingThe MB2198 emulator can automatically update the monitoring program at e

Page 168

11CHAPTER 1 BASIC FUNCTIONS1.7 Error Jump FunctionThis section describes the error jump function in SOFTUNE Workbench. Error Jump FunctionWhen an er

Page 169 - 2.3.4.2 Data Break

236CHAPTER 2 DEPENDENCE FUNCTIONS2.5.1.2 Boot ROM File Automatic ExecutionThe MB2198 emulator automatically loads and executes the Boot ROM file duri

Page 170 - 2.3.4.3 Monitoring Data Break

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

Page 171 - 2.3.4.4 Sequential Break

238CHAPTER 2 DEPENDENCE FUNCTIONS2.5.1.4 Operation Frequency ControlThis section describes the operation frequency setup. Operation frequencySet the

Page 172 - 2.3.4.5 Guarded Access Break

239CHAPTER 2 DEPENDENCE FUNCTIONS2.5.2 Notes on Commands for Executing ProgramWhen using commands to execute a program, there are several points to n

Page 173 - ■ Trace-Buffer-Full Break

240CHAPTER 2 DEPENDENCE FUNCTIONS2.5.3 Commands Available during Execution of User ProgramThis section explains the commands available during the exe

Page 174

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

Page 175 - ■ External Trigger Break

242CHAPTER 2 DEPENDENCE FUNCTIONS2.5.4 BreakIn this emulator debugger, seven kinds of break functions can be used. When the program execution is abor

Page 176 - 2.3.4.9 Forced Break

243CHAPTER 2 DEPENDENCE FUNCTIONS2.5.4.1 Code BreakThis function aborts a program by monitoring the specified address using hardware or software. Bre

Page 177 - 2.3.5 Control by Sequencer

244CHAPTER 2 DEPENDENCE FUNCTIONSNotes:• HardwareThere are the following considerations for the hardware break.- Due to combination use with the sequ

Page 178

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

Page 179 - 2.3.5.1 Setting Sequencer

12CHAPTER 1 BASIC FUNCTIONS[Example]*** %f(%l) %h: or, %[*] %f(%l) %h:The first four characters are "*** ", followed by the file name and

Page 180 - ■ Setting Sequencer

246CHAPTER 2 DEPENDENCE FUNCTIONS2.5.4.3 Guarded Access BreakThis function aborts the program execution when access has been performed using the spec

Page 181 - 2.3.6 Real-time Trace

247CHAPTER 2 DEPENDENCE FUNCTIONS2.5.4.4 Sequential BreakA sequential break is a function to abort an executing program as event sequential control,

Page 182 - ■ Trace Trigger Setup

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.

Page 183

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

Page 184 - 2.3.6.1 Setting Single Trace

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

Page 185 - 2.3.6.2 Multi Trace

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

Page 186 - Event trigger

252CHAPTER 2 DEPENDENCE FUNCTIONS2.5.5 Control by SequencerThis emulator has a sequencer to control events. By using this sequencer, sampling of brea

Page 187

253CHAPTER 2 DEPENDENCE FUNCTIONSThe sequence event is setting by the following command.• SET SEQUENCE :Sets sequence event• SHOW SEQUENCE :Displays

Page 188

254CHAPTER 2 DEPENDENCE FUNCTIONS2.5.5.1 Operating of sequencerThe sequencer works in the following order.1) The sequencer starts when the program ex

Page 189

255CHAPTER 2 DEPENDENCE FUNCTIONSFigure 2.5-1 Operation of SequencerSTARTLEVEL1LEVEL2LEVEL3LEVEL4LEVEL5LEVEL6ENDEVENT 1EVENT 4EVENT 2EVENT 3EVENT 6E

Page 190 - [Example]

13CHAPTER 1 BASIC FUNCTIONS1.8 Editor FunctionsThis section describes the functions of the SOFTUNE Workbench built-in standard editor. Standard Edit

Page 191

256CHAPTER 2 DEPENDENCE FUNCTIONS2.5.6 Real-time TraceWhile execution a program, the address, data and status information, and the data sampled by an

Page 192

257CHAPTER 2 DEPENDENCE FUNCTIONSFigure 2.5-2 Frame Number at Tracing Trace FilterTo make effective use of the limited trace buffer capacity, in ad

Page 193

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

Page 194

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

Page 195

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

Page 196

261CHAPTER 2 DEPENDENCE FUNCTIONS2.5.6.3 Specifying Displaying Trace Data StartThe data display start position in the trace buffer can be specified b

Page 197 - 2.3.6.8 Saving Trace Data

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

Page 198 - 2.3.7 Measuring Performance

263CHAPTER 2 DEPENDENCE FUNCTIONSReset: Indicates that reset is detected.Loop Count "Number of times": Displays number of times which loop

Page 199

264CHAPTER 2 DEPENDENCE FUNCTIONS Display in Source Line Units (Specify /SOURCE.)Only the source line can be displayed.[Example]>SHOW TRACE/SOURC

Page 200

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

Page 201

14CHAPTER 1 BASIC FUNCTIONS1.9 Storing External EditorsThis section describes the function to set an external editor to SOFTUNE Workbench. External

Page 202 - 2.3.8 Measuring Coverage

266CHAPTER 2 DEPENDENCE FUNCTIONS2.5.7 Measuring PerformanceIt is possible to measure the time and pass count between two events. Repetitive measurem

Page 203

267CHAPTER 2 DEPENDENCE FUNCTIONS2.5.7.1 Performance Measurement ProceduresPerformance can be measured by the following procedure:1. Setting minimum

Page 204

268CHAPTER 2 DEPENDENCE FUNCTIONS2.5.7.2 Display Performance Measurement DataDisplay the measured time and measuring count by using the SHOW PERFORMA

Page 205

269CHAPTER 2 DEPENDENCE FUNCTIONS2.5.8 Execution Time MeasurementThis function measures the program execution time. Measurement ItemsMeasures time b

Page 206 - 2.3.9 Real-time Monitoring

270CHAPTER 2 DEPENDENCE FUNCTIONSNote:The measured execution time is added about ten extra cycles per execution. If the execution cycle ismeasured, e

Page 207

271CHAPTER 2 DEPENDENCE FUNCTIONS2.5.9 Power-On DebuggingThis section explains power-on debugging by the emulators for the MB2198. Power-on Debuggin

Page 208

272CHAPTER 2 DEPENDENCE FUNCTIONS2.6 Emulator Debugger (MB2100-01)This section describes the emulator debugger functions that are available when the

Page 209 - 2.3.11 Power-on Debugging

273CHAPTER 2 DEPENDENCE FUNCTIONS2.6.1 Starting debuggingThis section describes the method of starting debugging by with the use the MB2100-01 emulat

Page 210 - 2.3.12 RAM Checker

274CHAPTER 2 DEPENDENCE FUNCTIONS2.6.1.1 Operating Environments of the TargetThis section describes the setting of the target operating environments

Page 211 - ■ To Use the RAM Checker

275CHAPTER 2 DEPENDENCE FUNCTIONSNotes:• When the operating environment set by the setup wizard is different from the actual operatingenvironment, th

Page 212 - ■ About Log File

15CHAPTER 1 BASIC FUNCTIONS Example of Optional Settings Reference SectionEditor SetupNote:Regarding execution of error jump in Hidemaru: To execut

Page 213 - ■ RAM Checker Viewer

276CHAPTER 2 DEPENDENCE FUNCTIONS2.6.1.2 SecurityThis section describes the security of the MB2100-01 emulator debugger. SecurityWhen beginning to d

Page 214

277CHAPTER 2 DEPENDENCE FUNCTIONS2.6.2 Ending debuggingThis section describes the method of ending debugging being executed with the use of the MB210

Page 215

278CHAPTER 2 DEPENDENCE FUNCTIONS2.6.3 Efficiently Executing DebuggingThis section describes setting for efficient debugging. Setting Operating Envi

Page 216

279CHAPTER 2 DEPENDENCE FUNCTIONS2.6.3.1 Increasing Communication Speed during DebuggingThis section describes setting for increasing the communicati

Page 217

280CHAPTER 2 DEPENDENCE FUNCTIONS2.6.3.2 Switching Debug FunctionThis section describes the method of switching the debug function correspondingly to

Page 218

281CHAPTER 2 DEPENDENCE FUNCTIONS2.6.4 Executing ProgramThis section describes the method of executing a user program with the MB2100-01 emulator deb

Page 219 - 2.4.1.2 MCU Operation Mode

282CHAPTER 2 DEPENDENCE FUNCTIONS2.6.4.1 Setting/Release of Debug FunctionsThe debug function can be set or released while executing the user program

Page 220 - 2.4.1.3 Debug Area

283CHAPTER 2 DEPENDENCE FUNCTIONSNote:An error message appears if you enter a command that cannot be used during the execution of a userprogram."

Page 221 - 2.4.1.4 Memory Area Types

284CHAPTER 2 DEPENDENCE FUNCTIONS2.6.4.2 MonitoringThis section describes the monitoring function in the MB2100-01 emulator debugger. MonitoringThe

Page 222

285CHAPTER 2 DEPENDENCE FUNCTIONS2.6.4.3 Power-on DebugThis section describes power-on debug function in the MB2100-01 emulator debugger. Power-on

Page 223 - 2.4.1.5 Memory Mapping

FUJITSU SEMICONDUCTOR LIMITEDF2MC-16 FAMILYSOFTUNETM WorkbenchUSER'S MANUAL

Page 224

16CHAPTER 1 BASIC FUNCTIONS1.10 Storing External ToolsThis section describes the function to set an external tool to SOFTUNE Workbench. External Too

Page 225

286CHAPTER 2 DEPENDENCE FUNCTIONSNotes:• Other debug features cannot be used while debugging power-on at all. • When security is enabled, power on de

Page 226

287CHAPTER 2 DEPENDENCE FUNCTIONS2.6.4.4 Notes on Commands for Executing ProgramWhen using commands to execute a program, there are several points to

Page 227

288CHAPTER 2 DEPENDENCE FUNCTIONSBecause "POP PS" (1) is an instruction as invalid breakpoint shown in "Notes on GO Command", no

Page 228 - 2.4.4 Break

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

Page 229 - 2.4.4.1 Code Break

290CHAPTER 2 DEPENDENCE FUNCTIONS- View the following dialogs.Line Assembly dialog (Disassembly window)Break setting dialog [Software]● Flash memory

Page 230

291CHAPTER 2 DEPENDENCE FUNCTIONS Examples of flash memory synchronization● In the case of [Debugger -> Flash]An image in the case where the flas

Page 231 - 2.4.4.2 Data Break

292CHAPTER 2 DEPENDENCE FUNCTIONS● In the case of [Flash -> Debugger]An image in the case where the flash memory synchronization [Flash -> Debu

Page 232 - 2.4.4.3 Guarded Access Break

293CHAPTER 2 DEPENDENCE FUNCTIONS2.6.6 To Interrupt the Program Execution [Break]This section describes the method of interrupting the execution of t

Page 233

294CHAPTER 2 DEPENDENCE FUNCTIONS2.6.6.1 Code Break (Hardware)This function suspends program execution by monitoring a specified address by hardware.

Page 234 - 2.4.4.5 Forced Break

295CHAPTER 2 DEPENDENCE FUNCTIONS- When the break operation is generated while the instruction where the user interrupt is generated andthe next one

Page 235 - 2.4.5 Real-time Trace

17CHAPTER 1 BASIC FUNCTIONS1.11 Macro Descriptions Usable in ManagerThis section explains the macro descriptions that can be used in the manager of S

Page 236

296CHAPTER 2 DEPENDENCE FUNCTIONS2.6.6.2 Code Break (Software)This function suspends program execution by monitoring a specified address by software.

Page 237 - 2.4.5.1 Setting Trace

297CHAPTER 2 DEPENDENCE FUNCTIONS2.6.6.3 Data BreakThis function suspends program execution when data access (read/write) is made to a specified addr

Page 238

298CHAPTER 2 DEPENDENCE FUNCTIONS2.6.6.4 Forced BreakThis function forcibly suspends program execution. Forced BreakThis function forcibly suspends

Page 239

299CHAPTER 2 DEPENDENCE FUNCTIONS2.6.6.5 Data Watch BreakThis special break function suspends program execution when the program reaches a specified

Page 240

300CHAPTER 2 DEPENDENCE FUNCTIONSNotes:• A data watch break shares points with the following functions. The maximum number variesdepending on how tho

Page 241

301CHAPTER 2 DEPENDENCE FUNCTIONS2.6.6.6 SequencerA sequencer is a function to abort the program execution to the specified event condition when prog

Page 242

302CHAPTER 2 DEPENDENCE FUNCTIONS Specifications of SequencerTable 2.6-2 shows the specifications of the sequencer for this emulator debugger. How

Page 243

303CHAPTER 2 DEPENDENCE FUNCTIONSNotes:• When the pass count mode is a passing count break mode, this function cannot be used. For details, refer to

Page 244

304CHAPTER 2 DEPENDENCE FUNCTIONS2.6.7 Measuring the Program Execution Cycle CountThis section explains the function of measuring the number of progr

Page 245 - 2.4.5.6 Saving Trace Data

305CHAPTER 2 DEPENDENCE FUNCTIONSNotes:• The number of cycles measured normally includes an error of about 10 cycles. However, it may beeven more, de

Page 246

18CHAPTER 1 BASIC FUNCTIONSThe macros in (*1) are determined as follows:- Customize build1. Source file before and after executing compiler and assem

Page 247 - ■ Emulator Debugger

306CHAPTER 2 DEPENDENCE FUNCTIONS2.6.8 Measuring Event-to-Event Execution Cycle Count [Performance Measurement]This section explains how to measure t

Page 248

307CHAPTER 2 DEPENDENCE FUNCTIONSNotes:• This function is not available when the execution time mode is set to the time measuring mode. Fordetails, r

Page 249

308CHAPTER 2 DEPENDENCE FUNCTIONS2.6.8.1 Measuring PerformanceThis section explains how to measure the event-to-event execution cycle count in the MB

Page 250

309CHAPTER 2 DEPENDENCE FUNCTIONS● Using Command for Measuring1. Specify performance events.- Execute the SET EVENT command.For details, refer to Sec

Page 251 - 2.5.1.3 MCU Operation Mode

310CHAPTER 2 DEPENDENCE FUNCTIONS2.6.9 Viewing Program Execution History [Trace]This section describes the trace function of this emulator debugger.

Page 252 - ■ Operation frequency

311CHAPTER 2 DEPENDENCE FUNCTIONS● When break halts program executionFigure 2.6-5 Acquiring Trace DataNote:Executing the forced start will clear the

Page 253

312CHAPTER 2 DEPENDENCE FUNCTIONS2.6.9.1 Displaying Trace DataThis section explains how to display trace data. Display Formats of Trace DataThe foll

Page 254

313CHAPTER 2 DEPENDENCE FUNCTIONS● Using command window1. Display trace data for each display mode.RAW data: SHOW TRACEInstruction: SHOW TRACESource:

Page 255

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

Page 256 - 2.5.4 Break

315CHAPTER 2 DEPENDENCE FUNCTIONS2.6.9.3 Trace Data Display Example (Instruction)This section describes trace data that is displayed in the instructi

Page 257 - 2.5.4.1 Code Break

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

Page 258

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

Page 259 - 2.5.4.2 Data Break

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

Page 260 - 2.5.4.3 Guarded Access Break

318CHAPTER 2 DEPENDENCE FUNCTIONS2.6.9.6 Searching for Trace DataThis section explains how to search for trace data. Searching for Trace DataThe spe

Page 261 - 2.5.4.4 Sequential Break

319CHAPTER 2 DEPENDENCE FUNCTIONS2.6.10 How to Display the Output Message from User Program to the DebuggerThis section explains the semihosting feat

Page 262

320CHAPTER 2 DEPENDENCE FUNCTIONS Using Method of Semihosting FeatureUse the following procedure to display the content of the output request to MBR

Page 263

321CHAPTER 2 DEPENDENCE FUNCTIONS2.6.11 Checking Debugger InformationThis section explains how to check information about the MB2100-01 emulator debu

Page 264

322CHAPTER 2 DEPENDENCE FUNCTIONS - SOFTUNE FJ-OMF to HEX Converter version File Path: f2hs.exe path-------------------------------------------------

Page 265 - 2.5.4.8 Forced Break

323CHAPTER 2 DEPENDENCE FUNCTIONS2.7 Monitor DebuggerThis section describes the functions of the monitor debugger. Monitor DebuggerThe monitor debug

Page 266 - 2.5.5 Control by Sequencer

324CHAPTER 2 DEPENDENCE FUNCTIONS2.7.1 Resources Used by Monitor ProgramThe monitor program of the monitor debugger uses the I/O resources listed bel

Page 267

325CHAPTER 2 DEPENDENCE FUNCTIONS2.7.2 BreakIn the monitor debugger, two types of break functions can be used. When the program execution is aborted

Page 268

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

Page 269

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

Page 270 - 2.5.6 Real-time Trace

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

Page 271

328CHAPTER 2 DEPENDENCE FUNCTIONS

Page 272 - 2.5.6.1 Setting Trace

329INDEXINDEXThe index follows on the next page.This is listed in alphabetic order.

Page 273

330INDEXIndexSymbols/CYCLEDisplaying All Machine Cycles (Specify /CYCLE.)...116/INSTRUCTIONDisp

Page 274

331INDEXProject Configuration ... 3ControlControl by Sequencer ... 96, 163, 252Controlli

Page 275

332INDEXSetting Event Mode ...123, 185Event-related CommandsEvent-related Commands in Multi Trace Mode...

Page 276

333INDEXLine NumberLine Number Information ... 27ListMacro List... 7

Page 277 - Decimal

334INDEXMulti Trace...171Multi Trace Frame Number...110, 171Multi Trace Functio

Page 278

335INDEXMonitoring Program Automatic Loading... 204, 235Program stopping conditions...

Page 279 - 2.5.6.5 Saving Trace Data

21CHAPTER 1 BASIC FUNCTIONS1.12 Setting Operating EnvironmentThis section describes the functions for setting the SOFTUNE Workbench operating environ

Page 280 - 2.5.7 Measuring Performance

336INDEXSetting Method...42, 44, 46, 47, 80, 82, 83, 85, 86, 153, 155, 156, 157, 159, 160, 161, 215, 217, 219, 243, 245,

Page 281

337INDEXDisplay Format of Trace Data ... 54Display without Analyzing Trace Data (Specify /RAWDATA.) ...

Page 283

ColophonCM41-00313-6EFUJITSU SEMICONDUCTOR • CONTROLLER MANUALF2MC-16 FAMILYSOFTUNETM WorkbenchUSER’S MANUALApril 2011 the 6th editionPublished FUJITS

Page 285 - 2.5.9 Power-On Debugging

22CHAPTER 1 BASIC FUNCTIONS1.13 Debugger TypesThis section describes the types of SOFTUNE Workbench debuggers. Type of DebuggerSOFTUNE Workbench int

Page 286 - MB2100-01 is specified

23CHAPTER 1 BASIC FUNCTIONS1.14 Memory Operation FunctionsThis section describes the memory operation functions. Functions for Memory Operations- Di

Page 287 - 2.6.1 Starting debugging

24CHAPTER 1 BASIC FUNCTIONS1.15 Register OperationsThis section describes the register operations. Register OperationsThe Register window is opened

Page 288 - ■ How to set

25CHAPTER 1 BASIC FUNCTIONS1.16 Line Assembly and DisassemblyThis section describes line assembly and disassembly. Line AssemblyTo perform line-by-l

Page 290 - 2.6.1.2 Security

26CHAPTER 1 BASIC FUNCTIONS1.17 Symbolic DebuggingThe symbols defined in a source program can be used for command parameters (address). There are thr

Page 291 - 2.6.2 Ending debugging

27CHAPTER 1 BASIC FUNCTIONS Line Number InformationLine number information is set with the line number information table in SOFTUNE Workbench when a

Page 292

28CHAPTER 1 BASIC FUNCTIONS1.17.1 Referring to Local SymbolsThis section describes referring to local symbols and Scope. ScopeWhen a local symbol is

Page 293

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

Page 294 - ■ Switching methods

30CHAPTER 1 BASIC FUNCTIONS Notes on C Language SymbolsThe C compiler outputs symbol information with "_" prefixed to global symbols. For

Page 295 - 2.6.4 Executing Program

31CHAPTER 2DEPENDENCE FUNCTIONSThis chapter describes the functions dependent on each Debugger.2.1 Simulator Debugger2.2 Emulator Debugger (MB2141)2

Page 296

32CHAPTER 2 DEPENDENCE FUNCTIONS2.1 Simulator DebuggerThis section describes the functions of the simulator debugger for the F2MC-16 Family. Simulat

Page 297

33CHAPTER 2 DEPENDENCE FUNCTIONS Simulation RangeThe simulator debugger simulates the MCU operations (instruction operations, memory space, I/O port

Page 298 - 2.6.4.2 Monitoring

34CHAPTER 2 DEPENDENCE FUNCTIONS2.1.1 Setting Operating EnvironmentThis section explains the operating environment setup. Setting Operating Environm

Page 299 - 2.6.4.3 Power-on Debug

35CHAPTER 2 DEPENDENCE FUNCTIONS2.1.1.1 Boot ROM File Automatic ExecutionThe simulator debugger for F2MC-16FX automatically loads and executes the Bo

Page 300

iPREFACE What is the SOFTUNE Workbench?SOFTUNE Workbench is support software for developing programs for the F2MC-16 family ofmicroprocessors / micro

Page 301

36CHAPTER 2 DEPENDENCE FUNCTIONS2.1.2 Instruction SimulationThis section describes the instruction simulation executed by SOFTUNE Workbench. Instruc

Page 302

37CHAPTER 2 DEPENDENCE FUNCTIONS2.1.3 Memory SimulationThis section describes the memory simulation executed by SOFTUNE Workbench. Memory Simulation

Page 303 - ■ Access to Flash Memory

38CHAPTER 2 DEPENDENCE FUNCTIONS2.1.4 I/O Port SimulationThis section describes I/O port simulation executed by SOFTUNE Workbench. I/O Port Simulati

Page 304

39CHAPTER 2 DEPENDENCE FUNCTIONS2.1.5 Interrupt SimulationThis section describes the interrupt simulation executed by SOFTUNE Workbench. Interrupt S

Page 305

40CHAPTER 2 DEPENDENCE FUNCTIONS2.1.6 Reset SimulationThis section describes the reset simulation executed by SOFTUNE Workbench. Reset SimulationThe

Page 306

41CHAPTER 2 DEPENDENCE FUNCTIONS2.1.7 Low-Power Consumption Mode SimulationThis section describes the low-power consumption SOFTUNE Workbench mode si

Page 307 - ■ Break Functions

42CHAPTER 2 DEPENDENCE FUNCTIONS2.1.8 STUB FunctionThis section describes the STUB function which executes commands automatically when the breakpoint

Page 308 - 2.6.6.1 Code Break (Hardware)

43CHAPTER 2 DEPENDENCE FUNCTIONS2.1.9 BreakIn the simulator debugger, five types of break functions can be used. When the program execution is aborte

Page 309

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

Page 310 - 2.6.6.2 Code Break (Software)

45CHAPTER 2 DEPENDENCE FUNCTIONS● Dangerous BreakPoints• Never set a breakpoint at an address other than the instruction starting address.• If a brea

Page 311 - 2.6.6.3 Data Break

ii Copyrights © 2004-2011 FUJITSU SEMICONDUCTOR LIMITED All rights reserved.• The contents of this document are subject to change without notice.Cust

Page 312 - 2.6.6.4 Forced Break

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

Page 313 - 2.6.6.5 Data Watch Break

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

Page 314

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

Page 315 - 2.6.6.6 Sequencer

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

Page 316 - ■ Specifications of Sequencer

50CHAPTER 2 DEPENDENCE FUNCTIONS2.1.10 Measuring Execution Cycle CountThis function measures the program execution cycle count. Measurement ItemsMea

Page 317

51CHAPTER 2 DEPENDENCE FUNCTIONS Clearing Measurement ResultsEither of the following methods can be used to clear the measurement results.● Operatio

Page 318 - ■ Error Information

52CHAPTER 2 DEPENDENCE FUNCTIONS2.1.11 TraceThe address and status information can be sampled during program execution to record it in a trace buffer

Page 319

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

Page 320 - [Performance Measurement]

54CHAPTER 2 DEPENDENCE FUNCTIONS2.1.11.2 Displaying Trace DataData recorded in the trace buffer can be displayed. Displaying Trace Data The trace wi

Page 321

55CHAPTER 2 DEPENDENCE FUNCTIONS2.1.11.3 Searching Trace DataThe trace buffer can be searched to locate target data. Searching Trace Data The trace

Page 322 - 2.6.8.1 Measuring Performance

iiiREADING THIS MANUAL Configuration of PageIn each section of this manual, the summary about the section is described certainly, so you can grasp an

Page 323 - ■ Ending the Measurement

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

Page 324 - ■ Trace Buffer

57CHAPTER 2 DEPENDENCE FUNCTIONS2.1.12 Measuring CoverageIn the high-speed version simulator debugger, the C0 coverage measurement function is provid

Page 325 - Max. 1,024 frames

58CHAPTER 2 DEPENDENCE FUNCTIONS2.1.12.1 Coverage Measurement ProceduresThe procedure for coverage measurement is as follows:• Set range for coverage

Page 326 - 2.6.9.1 Displaying Trace Data

59CHAPTER 2 DEPENDENCE FUNCTIONS● Summary (Specify /GENERAL for command qualifier)● Details (Specify /DETAIL for command qualifier)>SHOW COVERAGE/

Page 327

60CHAPTER 2 DEPENDENCE FUNCTIONS● Displays per source line (specify /SOURCE for the command qualifier)● Displays per machine instruction (specify /IN

Page 328 - Interrupt

61CHAPTER 2 DEPENDENCE FUNCTIONS2.1.13 Checking Debugger InformationThis section explains how to check information about the simulator debugger. Deb

Page 329

62CHAPTER 2 DEPENDENCE FUNCTIONS----------------------------Language Tools- F2MC-16 Family SOFTUNE C Compiler versionFile Path: fcc907s.exe path- F2M

Page 330 - ■ Source Display

63CHAPTER 2 DEPENDENCE FUNCTIONS2.2 Emulator Debugger (MB2141)This section explains the functions of the emulator debuggers for the MB2141. Emulator

Page 331 - 2.6.9.5 Saving Trace Data

64CHAPTER 2 DEPENDENCE FUNCTIONS2.2.1 Setting Operating EnvironmentThis section explains the operating environment setup. Setting Operating Environm

Page 332 - ■ Searching for Trace Data

65CHAPTER 2 DEPENDENCE FUNCTIONS2.2.1.1 MCU Operation ModeThere are two MCU operation modes as follows:• Debugging Mode• Native Mode Setting MCU Ope

Page 334

66CHAPTER 2 DEPENDENCE FUNCTIONS MCU Operation SpeedTo support a broader range of MCU operation speeds, the emulator adjusts control of the MCU acco

Page 335

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

Page 336

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.

Page 337 - 2.7 Monitor Debugger

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

Page 338 - ■ Required Resources

70CHAPTER 2 DEPENDENCE FUNCTIONSNote:The F2MC-16/16H only allows this setup in the debugging mode.

Page 339 - 2.7.2 Break

71CHAPTER 2 DEPENDENCE FUNCTIONS2.2.1.4 Memory MappingMemory space can be allocated to the user memory, the emulation memory, etc., and the attribute

Page 340 - 2.7.2.1 Software Break

72CHAPTER 2 DEPENDENCE FUNCTIONS[Example]>SHOW MAPaddress attribute type000000 .. FFFFFF noguardThe rest of setting area numbersuser = 8 emulation

Page 341 - 2.7.2.2 Forced Break

73CHAPTER 2 DEPENDENCE FUNCTIONS2.2.1.5 Timer Minimum Measurement UnitThe timer minimum measurement unit affects the sequencer, the emulation timer a

Page 342

74CHAPTER 2 DEPENDENCE FUNCTIONS2.2.2 Notes on Commands for Executing ProgramWhen using commands to execute a program, there are several points to no

Page 343

75CHAPTER 2 DEPENDENCE FUNCTIONS- Abnormal BreakpointSetting a breakpoint at the instruction immediately after string instructions listed below, may

Page 344

vCONTENTSCHAPTER 1 BASIC FUNCTIONS ... 11.1 Workspace Management Fu

Page 345

76CHAPTER 2 DEPENDENCE FUNCTIONS2.2.3 Commands Available during Execution of User ProgramThis section explains the commands available during the exec

Page 346

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

Page 347

78CHAPTER 2 DEPENDENCE FUNCTIONSThe following commands access memory.- Memory operation commandsSET MEMORY, SHOW MEMORY, EXAMINE, ENTER,COMPARE, FILL

Page 348

79CHAPTER 2 DEPENDENCE FUNCTIONS2.2.5 BreakIn this emulator debugger, seven types of break functions can be used. When the program execution is abort

Page 349

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

Page 350

81CHAPTER 2 DEPENDENCE FUNCTIONS● Abnormal Breakpoint• Setting a breakpoint at the instruction immediately after string instructions listed below, ma

Page 351

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

Page 352

83CHAPTER 2 DEPENDENCE FUNCTIONS2.2.5.3 Sequential BreakA sequential break is a function to abort a executing program, when the sequential condition

Page 353 - FUJITSU SEMICONDUCTOR LIMITED

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

Page 354

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

No comments