Fujitsu F2 Manual do Utilizador

Consulte online ou descarregue Manual do Utilizador para Software Fujitsu F2. Fujitsu F2 User's Manual Manual do Utilizador

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 354
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes

Resumo do Conteúdo

Página 1 - USER'S MANUAL

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

Página 2

vi 2.1.11.3 Searching Trace Data ... 552

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 11

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

Página 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

Página 13

vii2.2.10.1 Coverage Measurement Procedures ... 1272.2.11 Executio

Página 14

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

Página 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

Página 16

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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 24 - ■ Tool Options

viii 2.4.1 Setting Operating Environment ... 2032.4.1

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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.

Página 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

Página 35 - ■ Operating Environment

ix2.5.7 Measuring Performance ... 2662.5.7.

Página 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

Página 37

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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 43

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

Página 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

Página 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

Página 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

Página 48

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

Página 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

Página 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

Página 51 - 2.1.3 Memory Simulation

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

Página 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

Página 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

Página 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:

Página 55

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

Página 56 - Program execution

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

Página 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

Página 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

Página 59

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

Página 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

Página 61

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

Página 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

Página 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.

Página 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.

Página 65

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

Página 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

Página 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

Página 68 - ■ Clearing Trace Data

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

Página 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

Página 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

Página 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

Página 72

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

Página 73

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

Página 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

Página 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

Página 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

Página 77

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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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.

Página 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

Página 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

Página 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

Página 87

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

Página 88

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

Página 89

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

Página 90

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

Página 91

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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 105

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

Página 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) (

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 114

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

Página 115

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

Página 116

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

Página 117

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

Página 118

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

Página 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

Página 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

Página 121

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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 127

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

Página 128

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

Página 129

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

Página 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

Página 131

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

Página 132

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

Página 133

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

Página 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

Página 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

Página 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.

Página 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.

Página 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

Página 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

Página 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

Página 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

Página 142

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

Página 143

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

Página 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

Página 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

Página 146

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

Página 147 - ■ Sampling by External Probe

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

Página 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

Página 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

Página 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.

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 157

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

Página 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

Página 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

Página 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 (

Página 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

Página 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

Página 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

Página 164

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

Página 165

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

Página 166 - 2.3.4 Break

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

Página 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

Página 168

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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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,

Página 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.

Página 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

Página 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

Página 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

Página 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

Página 187

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

Página 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

Página 189

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

Página 190 - [Example]

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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 199

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

Página 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

Página 201

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

Página 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

Página 203

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

Página 204

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

Página 205

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

Página 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

Página 207

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

Página 208

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

Página 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

Página 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

Página 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

Página 212 - ■ About Log File

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

Página 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

Página 214

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

Página 215

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

Página 216

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

Página 217

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

Página 218

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

Página 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

Página 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."

Página 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

Página 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

Página 223 - 2.4.1.5 Memory Mapping

FUJITSU SEMICONDUCTOR LIMITEDF2MC-16 FAMILYSOFTUNETM WorkbenchUSER'S MANUAL

Página 224

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

Página 225

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

Página 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

Página 227

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

Página 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

Página 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

Página 230

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

Página 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

Página 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

Página 233

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

Página 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

Página 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

Página 236

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

Página 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

Página 238

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

Página 239

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

Página 240

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

Página 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

Página 242

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

Página 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

Página 244

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

Página 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

Página 246

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

Página 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

Página 248

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

Página 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

Página 250

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

Página 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.

Página 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

Página 253

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

Página 254

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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 262

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

Página 263

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

Página 264

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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 271

328CHAPTER 2 DEPENDENCE FUNCTIONS

Página 272 - 2.5.6.1 Setting Trace

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

Página 273

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

Página 274

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

Página 275

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

Página 276

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

Página 277 - Decimal

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

Página 278

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

Página 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

Página 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,

Página 281

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

Página 283

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

Página 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

Página 286 - MB2100-01 is specified

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

Página 287 - 2.6.1 Starting debugging

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

Página 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

Página 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

Página 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

Página 292

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

Página 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

Página 294 - ■ Switching methods

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

Página 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

Página 296

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

Página 297

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

Página 298 - 2.6.4.2 Monitoring

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

Página 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

Página 300

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

Página 301

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

Página 302

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

Página 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

Página 304

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

Página 305

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

Página 306

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

Página 307 - ■ Break Functions

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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 316 - ■ Specifications of Sequencer

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

Página 317

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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 324 - ■ Trace Buffer

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

Página 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

Página 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/

Página 327

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

Página 328 - Interrupt

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

Página 329

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

Página 330 - ■ Source Display

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

Página 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

Página 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

Página 334

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

Página 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

Página 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.

Página 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

Página 338 - ■ Required Resources

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

Página 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

Página 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

Página 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

Página 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

Página 343

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

Página 344

vCONTENTSCHAPTER 1 BASIC FUNCTIONS ... 11.1 Workspace Management Fu

Página 345

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

Página 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

Página 347

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

Página 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

Página 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

Página 350

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

Página 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

Página 352

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

Página 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

Página 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

Comentários a estes Manuais

Sem comentários