Fujitsu SOFTUNE User Manual

Fr family softune workbench
Table of Contents

Advertisement

FUJITSU SEMICONDUCTOR
CM71-00329-7E
CONTROLLER MANUAL
FR FAMILY
OFTUNE TM
S
WORKBENCH
USER'S MANUAL
for V6

Advertisement

Table of Contents
loading

Summary of Contents for Fujitsu SOFTUNE

  • Page 1 FUJITSU SEMICONDUCTOR CM71-00329-7E CONTROLLER MANUAL FR FAMILY OFTUNE TM WORKBENCH USER’S MANUAL for V6...
  • Page 3 FR FAMILY WORKBENCH OFTUNE USER’S MANUAL for V6 FUJITSU SEMICONDUCTOR LIMITED...
  • Page 5 SOFTUNE Workbench. Be sure to read this manual completely. ■ Trademarks REALOS, SOFTUNE are trademark of Fujitsu Semiconductor Limited, Japan. The company names and brand names herein are the trademarks or registered trademarks of their respective owners. ■ Organization of Manual This manual consists of two chapters.
  • Page 6 Any information in this document, including descriptions of function and schematic diagrams, shall not be construed as license of the use or exercise of any intellectual property right, such as patent right or copyright, or any other right of FUJITSU SEMICONDUCTOR or any third party or does FUJITSU SEMICONDUCTOR warrant non-infringement of any third-party's intellectual property right or other right by using such information.
  • Page 7: Table Of Contents

    CONTENTS CHAPTER1 Basic Functions ..................1 Workspace Management Function ..................... 2 Project Management Function ......................3 Project Dependence ........................... 5 Make/Build Function ........................... 6 1.4.1 Customize Build Function ......................7 Include Dependencies Analysis Function ................... 9 Functions of Setting Tool Options ..................... 10 Error Jump Function .........................
  • Page 8 2.1.10.5 Searching Trace Data ....................... 55 2.1.10.6 Saving Trace Data ........................56 2.1.10.7 Clearing Trace Data ......................... 57 2.1.11 Measuring Coverage ........................58 2.1.11.1 Coverage Measurement Procedures ..................59 2.1.12 Checking Debugger Status ......................62 Emulator Debugger (MB2197) ......................65 2.2.1 Setting Operating Environment ....................
  • Page 9 2.3.4.2 Data Break ..........................113 2.3.4.3 Code Event Break ........................114 2.3.4.4 Data Event Break ........................116 2.3.4.5 Trace Buffer-full Break ......................118 2.3.4.6 Alignment Error Break ......................119 2.3.4.7 External Trigger Break ......................120 2.3.4.8 Forced Break .......................... 121 2.3.4.9 Data Watch Break ........................
  • Page 10 2.4.7.2 Measuring Event-to-Event Execution Cycle Count [Performance Measurement] ....186 2.4.8 Viewing Program Execution History [Trace] ................189 2.4.8.1 Displaying Trace Data ......................191 2.4.8.2 Saving Trace Data ........................198 2.4.8.3 Searching for Trace Data ....................... 199 2.4.8.4 Obtaining Only Trace Data with Specified Attributes .............. 200 2.4.8.5 Ending Trace Acquisition in Specified Conditions ..............
  • Page 11: Chapter1 Basic Functions

    CHAPTER1 Basic Functions This chapter describes the basic functions on the SOFTUNE Workbench. 1.1 Workspace Management Function 1.2 Project Management Function 1.3 Project Dependence 1.4 Make/Build Function 1.5 Include Dependencies Analysis Function 1.6 Functions of Setting Tool Options 1.7 Error Jump Function 1.8 Editor Functions 1.9 Storing External Editors 1.10 Storing External Tools...
  • Page 12: Workspace Management Function

    CHAPTER1 Basic Functions Workspace Management Function This section explains the workspace management function of SOFTUNE Workbench. ■ Workspace SOFTUNE Workbench uses workspace as a container to manage two or more projects including subprojects. For example, a project that creates a library and a project that creates a target file using the project can be stored in one workspace.
  • Page 13: Project Management Function

    CHAPTER1 Basic Functions Project Management Function This section explains the project management function of SOFTUNE Workbench. ■ Project Management Function The project manages all information necessary for development of a microcontroller system. - Project configuration - Active project configuration - Information on source files, include files, other object files, library files - Information on tools executed before and after executing language tools (customize build function) ■...
  • Page 14: Project Configuration

    CHAPTER1 Basic Functions ■ Project Configuration The project configuration is a series of settings for specifying the characteristics of a target file, and making, building, compiling and assembling is performed in project configurations. Two or more project configurations can be created in a project. The default project configuration name is Debug.
  • Page 15: Project Dependence

    CHAPTER1 Basic Functions Project Dependence This section explains the project dependence of SOFTUNE Workbench. ■ Project Dependence If target files output by other projects must be linked, a subproject is defined in the project required in the [Project] - [Project Dependence] command. The subproject is a project on which other projects depend. By defining project dependence, a subproject can be made and built to link its target file before making and building the parent project.
  • Page 16: Make/Build Function

    CHAPTER1 Basic Functions Make/Build Function This section explains the make/build function of SOFTUNE Workbench. ■ Make Function Make function generates a target file by compiling/assembling only updated source files from all source files registered in a project, and then joining all required object files. This function allows compiling/assembling only the minimum of required files.
  • Page 17: Customize Build Function

    CHAPTER1 Basic Functions 1.4.1 Customize Build Function This section describes the SOFTUNE Workbench function to set the Customize Build function. ■ Customize Build Function In SOFTUNE Workbench, different tools can be operated automatically before and after executing the Assembler, Compiler, Linker, Librarian, Converter, or Configurator started at Compile, Assemble, Make, or Build.
  • Page 18 CHAPTER1 Basic Functions Note: When checking [Use the Output window], note the following: • Once a tool is activated, Make/Build activated until the tool is terminated. • The Output window must not be used with a tool using a wait state for user input while the tool is executing.
  • Page 19: Include Dependencies Analysis Function

    CHAPTER1 Basic Functions Include Dependencies Analysis Function This section describes the function of the Include Dependencies Analysis of SOFTUNE Workbench. ■ Analyzing Include Dependencies A source file usually includes some include files. When only an include file has been modified leaving a source file unchanged, SOFTUNE Workbench cannot execute the Make function unless it has accurate and updated information about which source file includes which include files.
  • Page 20: Functions Of Setting Tool Options

    CHAPTER1 Basic Functions Functions of Setting Tool Options This section describes the functions to set options for the language tools activated from SOFTUNE Workbench. ■ Function of Setting Tool Options To create a desired target file, it is necessary to specify options for the language tools such as a compiler, assembler, and linker.
  • Page 21: Error Jump Function

    An error message format can be added to an existing one or modified into a new one. However, the modify error message formats for pre-installed Fujitsu language tools are defined as part of the system, these can not be modified.
  • Page 22 CHAPTER1 Basic Functions [Example] *** %f(%l) %h: or, %[*] %f(%l) %h: The first four characters are "*** ", followed by the file name and parenthesized line number, and then the keyword for help continues after one blank character. This represents the following message: *** C:\Sample\sample.c(100) E4062C: Syntax Error: near /int.
  • Page 23: Editor Functions

    CHAPTER1 Basic Functions Editor Functions This section describes the functions of the SOFTUNE Workbench built-in standard editor. ■ Standard Editor SOFTUNE Workbench has a built-in editor called the standard editor. The standard editor is activated as the Edit window in SOFTUNE Workbench. As many Edit windows as are required can be opened at one time.
  • Page 24 CHAPTER1 Basic Functions ● Font changing function The font size for character string displayed in the Edit window can be selected.
  • Page 25: Storing External Editors

    CHAPTER1 Basic Functions Storing External Editors This section describes the function to set an external editor to SOFTUNE Workbench ■ External Editor SOFTUNE Workbench has a built-in standard editor, and use of this standard editor is recommended. However, another accustomed editor can be used, with setting it, instead of an edit window. There is no particular limit on which editor can be set, but some precautions (below) may be necessary.
  • Page 26: Example Of Optional Settings

    CHAPTER1 Basic Functions Table 1.9-1 List of Special Characters for Analyzing Error Message Parameter Semantics Means specifying % itself Means specifying file name Means specifying line number Means specifying project path ■ Example of Optional Settings Table 1.9-2 Example of Optional Settings (For External Editors) Editor name Argument WZ Editor V4.0...
  • Page 27: Storing External Tools

    CHAPTER1 Basic Functions 1.10 Storing External Tools This section describes the SOFTUNE Workbench function to set an external tool. ■ External Tools A non-standard tool not attached to SOFTUNE Workbench can be used by setting it as an external tool and by calling it from SOFTUNE Workbench.
  • Page 28: Macro Descriptions Usable In Manager

    CHAPTER1 Basic Functions 1.11 Macro Descriptions Usable in Manager This section explains the macro descriptions that can be used in the manager of SOFTUNE Workbench. ■ Macros SOFTUNE Workbench has special parameters indicating that any file name and tool-specific options are specified as options.
  • Page 29 CHAPTER1 Basic Functions Table 1.11-1 List of macros that can be specified 1 Parameter Meaning Passed as full-path name of file. (*1) Passed as main file name of file. (*1) Passed as directory of file. (*1) Passed as extension of file. (*1) Passed as full-path name of load module file.
  • Page 30 CHAPTER1 Basic Functions • Tool options 1. Null character • Others 1. File as focus is on the SRC tab of project window and valid file name is selected 2. File on which focus is in internal editor as no valid file name can be obtained in 1 3.
  • Page 31: Examples Of Macro Expansion

    CHAPTER1 Basic Functions ■ Examples of Macro Expansion If the following workspace is opened, macro expansion is performed as follows: Workspace : C:\Wsp\Wsp.wsp Active project : C:\Wsp\Sample\Sample.prj Active project configuration - Debug Object directory : C:\Wsp\Sample\Debug\Obj\ Subproject : C:\Subprj\Subprj.prj Active project configuration - Release Object directory : C:\Subprj\Release\Obj\...
  • Page 32: Setting Operating Environment

    CHAPTER1 Basic Functions 1.12 Setting Operating Environment This section describes the functions for setting the SOFTUNE Workbench operating environment. ■ Operating Environment Set the environment variables for SOFTUNE Workbench and some basic items for the workspace. To set the operating environment, use the [Setup]-[Development] command. ●...
  • Page 33: Debugger Types

    CHAPTER1 Basic Functions 1.13 Debugger Types This section describes the types of SOFTUNE Workbench debuggers. ■ Type of debugger SOFTUNE Workbench integrates three types of debugger: a simulator debugger, emulator debugger, and monitor debugger. Any one can be selected depending on the requirement. ■...
  • Page 34: Memory Operation Functions

    CHAPTER1 Basic Functions 1.14 Memory Operation Functions This section describes the memory operation functions. ■ Functions for Memory Operations • Display/Modify memory data Memory data can be display in the Memory window and modified. • Fill The specified memory area can be filled with the specified data. •...
  • Page 35: Register Operations

    CHAPTER1 Basic Functions 1.15 Register Operations This section describes the register operations. ■ Register Operations The Register window is opened when the [View] - [Register] menu is selected. The register and flag values can be displayed in the Register window. For further details about modifying the register value and the flag value, refer to "4.4.4 Register"...
  • Page 36: Line Assembly And Disassembly

    CHAPTER1 Basic Functions 1.16 Line Assembly and Disassembly This section describes line assembly and disassembly. ■ Line Assembly To perform line-by-line assembly (line assembly), right-click anywhere in the Disassembly window to display the short-cut menu, and select [Inline Assembly]. For further details about assembly operation, refer to "4.4.3 Assembly"...
  • Page 37: Symbolic Debugging

    CHAPTER1 Basic Functions 1.17 Symbolic Debugging The symbols defined in a source program can be used for command parameters (address). There are three types of symbols as follows: • Global Symbol • Static Symbol within Module (Local Symbol within Module) •...
  • Page 38: Line Number Information

    CHAPTER1 Basic Functions ■ Line Number Information Line number information is set with the line number information table in SOFTUNE Workbench when a debug information file is loaded. Once registered, such information can be used at anytime thereafter. Line number is defined as follows: [Source File Name] $Line Number...
  • Page 39: Referring To Local Symbols

    CHAPTER1 Basic Functions 1.17.1 Referring to Local Symbols This section describes referring to local symbols and Scope. ■ Scope When a local symbol is referred to, Scope is used to indicate the module and function to which the local symbol to be referred belongs. SOFTUNE Workbench automatically scopes the current module and function to refer to local symbols in the current module with preference.
  • Page 40: Referring To C/C++ Variables

    CHAPTER1 Basic Functions 1.17.2 Referring to C/C++ Variables C/C++ variables can be specified using the same descriptions as in the source program written in C/C++. ■ Specifying C/C++ Variables C/C++ variables can be specified using the same descriptions as in the source program. The address of C/ C++ variables should be preceded by the ampersand symbol "&".
  • Page 41: Notes On C/C++ Symbols

    CHAPTER1 Basic Functions ■ Notes on C/C++ Symbols The C/C++ compiler outputs symbol information with "_" prefixed to global symbols. For example, the symbol main outputs symbol information _main. However, SOFTUNE Workbench permits access using the symbol name described in the source to make program debugging described in C/C++ easier. Consequently, a symbol name described in C/C++ and a symbol name described in assembler, which should both be unique, may be identical.
  • Page 42 CHAPTER1 Basic Functions...
  • Page 43: Chapter2 Dependence Functions

    CHAPTER2 Dependence Functions This chapter describes the functions dependent on each Debugger. 2.1 Simulator Debugger 2.2 Emulator Debugger (MB2197) 2.3 Emulator Debugger (MB2198) 2.4 Emulator Debugger (MB2100-01) 2.5 Monitor Debugger...
  • Page 44: Simulator Debugger

    CHAPTER2 Dependence Functions Simulator Debugger This section describes the functions of the simulator debugger. ■ Simulator Debugger The simulator debugger simulates the MCU operations (executing instructions, memory space, I/O ports, interrupts, reset, etc.) with software to evaluate a program. It is used to evaluate an uncompleted system, the operation of single units, etc. There are 2 types of simulator debuggers.
  • Page 45: Simulation Range

    CHAPTER2 Dependence Functions Target program size CODE XX(KB) DATA YY(KB) Required RAM space (MB) = 20 + (XX / 64)  6 + (YY / 64)  1.5 However, RAM space larger than the above may be needed depending on program allocation. Allocate memory space consecutive areas should be reserved as much as possible.
  • Page 46: Instruction Simulation

    CHAPTER2 Dependence Functions 2.1.1 Instruction Simulation This section describes the instruction simulation executed. ■ Instruction Simulation This simulates the operations of all instructions supported by the FR Family. It also simulates the changes in memory and register values due to such instructions.
  • Page 47: Memory Simulation

    CHAPTER2 Dependence Functions 2.1.2 Memory Simulation This section describes the memory simulation executed. ■ Memory Simulation The simulator debugger must first secure memory space to simulate instructions because it simulates the memory space secured in the host PC memory. • To secure the memory area, either use the [Setup] - [Memory Map] menu, or the SET MAP command in the Command window.
  • Page 48: I/O Port Simulation

    CHAPTER2 Dependence Functions 2.1.3 I/O Port Simulation This section describes I/O port simulation executed. ■ I/O Port Simulation (Input Port) There are two types of simulations in I/O port simulation: input port simulation, and output port simulation. Input port simulation has the following types: •...
  • Page 49: Interrupt Simulation

    CHAPTER2 Dependence Functions 2.1.4 Interrupt Simulation This section describes interrupt simulation executed. ■ Interrupt Simulation This simulates the MCU operation for an interrupt request. The following types can be used to allow an interrupt to occur. • When the instruction is executed as many cycles as the specified cycle count while executing a program (executing execution commands), generate an interrupt corresponding to the specified interrupt number to reset the interrupt generating condition.
  • Page 50: Reset Simulation

    CHAPTER2 Dependence Functions 2.1.5 Reset Simulation This section describes the reset simulation executed. ■ Reset Simulation The simulator simulates the operation when a reset signal is input to the MCU using the [Debug]-[Reset MCU] menu or RESET command, and initializes the registers. The function for performing reset processing by operation of MCU instructions (writing to RST bit in standby control register) is also supported.
  • Page 51: Low Power Consumption Mode Simulation

    CHAPTER2 Dependence Functions 2.1.6 Low Power Consumption Mode Simulation This section describes the low power consumption mode simulation executed. ■ Low Power Consumption Mode Simulation The MCU enters the low power consumption mode in accordance with the MCU instruction operation (Write to SLEEP bit or STOP bit of standby control register).
  • Page 52: Stub Function

    CHAPTER2 Dependence Functions 2.1.7 STUB Function This section describes the STUB function which executes commands automatically when the breakpoint hit occurs. ■ Outline of STUB Function The STUB function is supported so that a series of commands in the command list can automatically be executed when a specified breakpoint is hit.
  • Page 53: Break

    CHAPTER2 Dependence Functions 2.1.8 Break This Simulator Debugger provides five types of break functions. When by each break function aborts program execution, the address where a break occurred and the break factor are displayed. ■ Break Functions This Simulator Debugger provided the following five types of break functions; - Code break - Data break - Trace buffer-full break...
  • Page 54: Code Break

    CHAPTER2 Dependence Functions 2.1.8.1 Code Break This function causes a break by monitoring a specified address by software. A break occurs before executing an instruction at the specified address. ■ Code Break When the program reaches a break point (immediately before executing the instruction at the memory location), the simulator debugger executes the following processes: 1.
  • Page 55: Data Break

    CHAPTER2 Dependence Functions 2.1.8.2 Data Break This function aborts the program execution when a data access (read/write) is made to a specified address. ■ Data Break When data is written or read to a data break point, the simulator debugger executes the following processes: 1.
  • Page 56: Trace Buffer-Full Break

    CHAPTER2 Dependence Functions 2.1.8.3 Trace Buffer-full Break This function aborts the program execution when the trace buffer becomes full. ■ Trace Buffer-full Break This function aborts the program execution when the trace buffer becomes full. When the trace buffer-full break occurs, the following message appears at the status bar. Break at address by trace buffer full ■...
  • Page 57: Guarded Access Break

    CHAPTER2 Dependence Functions 2.1.8.4 Guarded Access Break A guarded access break suspends a executing program when accessing in violation of the access attribute set by using the [Setup]-[Memory Map] command, and accessing a guarded area (access-disabled area in undefined area). ■...
  • Page 58: Forced Break

    CHAPTER2 Dependence Functions 2.1.8.5 Forced Break This function forcibly aborts the program execution to generate a break. ■ Forced Break This function forcibly aborts the program execution to generate a break. When the forced break occurred, the following message appears at the status bar. Break at address by command abort request ■...
  • Page 59: Measuring Execution Cycle Count

    CHAPTER2 Dependence Functions 2.1.9 Measuring Execution Cycle Count This function measures the program execution cycle count and step count. ■ The measuring item Measures program execution cycle count and step counts. ● Execution Cycle Count This is calculated based on the basic cycle count of each instruction described in the Programming Manual. Because no simulation was done on pipeline process or cache operation inside the chip, it may differ from an actual chip for normal simulator debugger and/or high-speed simulator debugger.
  • Page 60: Trace

    CHAPTER2 Dependence Functions 2.1.10 Trace The address and status information can be sampled during program execution to record it in a trace buffer. This function is called a trace. ■ Trace Data recorded with the trace function can be used to make a detailed analysis of a program execution history.
  • Page 61: Trace Sampling

    CHAPTER2 Dependence Functions 2.1.10.1 Trace Sampling Trace measurements are made of a program execution status during the interval between the start and stop of program execution. ■ Trace Sampling While the trace function is enabled, data is always sampled and recorded in the trace buffer during execution of an execution command.
  • Page 62: Setting Trace

    CHAPTER2 Dependence Functions 2.1.10.2 Setting Trace You must set the following two items to perform a trace. After that, trace data will be sampled with the execution of the program. You can set this from the command window. ■ Setting Trace 1.
  • Page 63: Displaying Trace Data

    CHAPTER2 Dependence Functions 2.1.10.3 Displaying Trace Data Data recorded in the trace buffer can be displayed. ■ Displaying Trace Data The trace window displays how much trace data is stored in the trace buffer. Also, you can use the SHOW TRACE command from the command window.
  • Page 64: Display Format Of Trace Data

    CHAPTER2 Dependence Functions 2.1.10.4 Display Format of Trace Data There are two display formats for displaying the data stored in the trace buffer. ■ Display Format of Trace Data • Display Only Instruction Operation: Specify Instruction • Display by Unit of Source Lines: Specify Source ■...
  • Page 65: Searching Trace Data

    CHAPTER2 Dependence Functions 2.1.10.5 Searching Trace Data The trace buffer can be searched to locate target data. ■ Searching Trace Data Specify the address information for the search purpose. This search function can be run by clicking the Search button in the trace window.
  • Page 66: Saving Trace Data

    CHAPTER2 Dependence Functions 2.1.10.6 Saving Trace Data The debugger has function of saving trace data. ■ Saving Trace Data Save the trace data to the specified file. For details on operations, refer to Sections "3.14 Trace Window", and "4.4.8 Trace" in "SOFTUNE Workbench Operation Manual";...
  • Page 67: Clearing Trace Data

    CHAPTER2 Dependence Functions 2.1.10.7 Clearing Trace Data To clear trace data, use the following command. ■ Clearing Trace Data When clearing trace data, the [Clear] command is executed from the short-cut menu in the trace window.
  • Page 68: Measuring Coverage

    CHAPTER2 Dependence Functions 2.1.11 Measuring Coverage In the high-speed version simulator debugger, the C0 coverage measurement function is provided. Use this function to find what percentage of an entire program has been executed. ■ Coverage Measurement Function When testing a program, the program is executed with various test data input and the results are checked for correctness.
  • Page 69: Coverage Measurement Procedures

    CHAPTER2 Dependence Functions 2.1.11.1 Coverage Measurement Procedures The procedure for coverage measurement is as follows: - Set range for coverage measurement : SET COVERAGE - Measure coverage : GO, STEP, CALL - Display measurement result : SHOW COVERAGE ■ Setting Range for Coverage Measurement Use the SET COVERAGE command to set the measurement range.
  • Page 70 CHAPTER2 Dependence Functions - Displaying coverage rate of load module (Specify /MODULE for the command qualifier) >SHOW COVERAGE/MODULE sample.abs ......(84.03%) +- startup.asm ....(90.43%) +- sample.c ...... (95.17%) +- samp.c ....... (100.00%) Displays the load modules and the coverage rate of each module. - Summary (Specify /GENERAL for command qualifier.) >SHOW COVERAGE/GENERAL (HEX)0X0...
  • Page 71 CHAPTER2 Dependence Functions - Displays per source line (Specify /SOURCE for the command qualifier) >SHOW COVERAGE/SOURCE main sample.c 66: void main() 67: { struct table *value[16]; for (i=0; i<16; i++) value[i] = &target[i]; sort_val(value, 16L); 75: } The execution situation of each source line is displayed. No execution Execution Blank : Line which the code had not been generated or...
  • Page 72: Checking Debugger Status

    FR Family SOFTUNE Workbench VxxLxx ALL RIGHTS RESERVED, COPYRIGHT(C) FUJITSU SEMICONDUCTOR LIMITED 1997 LICENCED MATERIAL - PROGRAM PROPERTY OF FUJITSU SEMICONDUCTOR LIMITED ======================================================= Cpu information file path: CPU information file path Cpu information file version: CPU information file version =======================================================...
  • Page 73 CHAPTER2 Dependence Functions Version: SiiEd3.ocx version ------------------------------------------------------- SiM911 Product name: SOFTUNE Workbench File Path: SiM911.dll path Version: SiM911.dll version - - - - - - - - - - - - - - - - - - - - - - - - - - - - Language Tools - FR Family SOFTUNE C/C++ Compiler version File Path: fcc911s.exe path...
  • Page 74 CHAPTER2 Dependence Functions REALOS version: REALOS version ------------------------------------------------------- SiIODef Product name: Softune Workbench File Path: SiIODef.dll path Version: SiIODef.dll version ======================================================= Current path: Path of the currently used project Language: Currently used language Help file path: Help file path...
  • Page 75: Emulator Debugger (Mb2197)

    CHAPTER2 Dependence Functions Emulator Debugger (MB2197) This section describes the emulator debugger functions that are available when the emulator debugger (MB2197) is specified. ■ Emulator Debugger When choosing the emulator debugger from the setup wizard, select one of the following emulators. •...
  • Page 76: Setting Operating Environment

    CHAPTER2 Dependence Functions 2.2.1 Setting Operating Environment This section explains the operating environment setup. ■ Setting Operating Environment For emulator debugger (MB2197), the following items must be set according to the operating environment. Each setting item has a default value at startup. Therefore, if the default value is used as it is, there is no need to change this setting.
  • Page 77: Mcu Operation Mode

    CHAPTER2 Dependence Functions 2.2.1.1 MCU Operation Mode The following four modes are in the MCU Operation Mode. The Internal Trace Mode and External Trace Mode are enabled only with products using the DSU3 chips. The Full Trace Mode and Real-time Mode are not enabled with products using the DSU3 chips. •...
  • Page 78: Dram Refresh Control

    CHAPTER2 Dependence Functions 2.2.1.2 DRAM Refresh Control This section explains DRAM refresh setup. ■ DRAM Refresh Control The operating frequency of some DSU chips is automatically divided at a break (in emulation mode). When this happens, the register (RFCR) must be reset if the built-in DRAM refresh function is used on the user target.
  • Page 79: Cache Flush Control

    CHAPTER2 Dependence Functions 2.2.1.3 Cache Flush Control This section explains cache flush setup. ■ Cache Flush Control When using a chip with cache memory, rewriting the memory and software break point setup using commands is not reflected in the cache. Therefore, cache flushing must be performed when such commands are executed.
  • Page 80: Operating Frequency

    CHAPTER2 Dependence Functions 2.2.1.4 Operating Frequency This section explains the setting of operating frequencies. ■ Operating frequencies Set the operating frequencies of the MCU. Enable only DSU3. DSU3 ranges from 1 to 200 MHz. This setting provides the optimum communication speed between the MCU and emulator. This function can be controlled by the [Frequency] tab in debug environment setting dialog.
  • Page 81: Notes On Executing Program

    CHAPTER2 Dependence Functions 2.2.2 Notes on Executing Program There are some precautions to observe when using program execution commands. ■ Real-time Functionality in Running Program When the MCU is in the full trace mode, there are some cases when a program cannot execute in real-time. The MCU operation mode can be set up by using either the [Emulation] tab in debug environment setting dialog, or the SET RUNMODE command in the Command window.
  • Page 82: Commands Available During Execution Of User Program

    CHAPTER2 Dependence Functions 2.2.3 Commands Available during Execution of User Program This section explains the commands available during the execution of a user program. ■ Commands Available during Execution of User Program The emulator debugger (MB2197) allows you to use certain commands during the execution of a user program.
  • Page 83: Break

    CHAPTER2 Dependence Functions 2.2.4 Break The emulator debugger (MB2197) provides seven types of break functions. When by each break function aborts program execution, the address where a break occurred and the break factor are displayed. ■ Break Functions The emulator debugger (MB2197) provides the following seven types of break functions; •...
  • Page 84: Code Break

    CHAPTER2 Dependence Functions 2.2.4.1 Code Break This function aborts the program execution by monitoring a specified address by hardware or software. A break occurs before executing an instruction at the specified address. ■ Code Break This function aborts the program execution by monitoring a specified address by hardware or software. A break occurs before executing an instruction at the specified address.
  • Page 85 CHAPTER2 Dependence Functions Notes: Hardware The hardware break requires the following cautions: - Do not set any hardware break in instruction placed in a delay slot. When the hardware break is set in the instruction, a branch does not occur even if the program is reexecuted after break. - Be sure to set a breakpoint at the starting address of the instruction.
  • Page 86: Code Event Break

    CHAPTER2 Dependence Functions 2.2.4.2 Code Event Break This function used breakpoints contained in the evaluation chip. The address mask, pass count, and sequential mode can be set. ■ Code Event Break This function uses breakpoints contained in an evaluation chip. The address mask and pass count can be set.
  • Page 87: Data Event Break

    CHAPTER2 Dependence Functions 2.2.4.3 Data Event Break This function uses breakpoints contained in the evaluation chip. The address mask, data size, access type, and sequential mode can be set. ■ Data Event Break This function uses breakpoints contained in the evaluation chip. The address mask, data size (byte/half word/word), and access attributes (read/write) can be set.
  • Page 88: Trace Buffer-Full Break

    CHAPTER2 Dependence Functions 2.2.4.4 Trace Buffer-full Break This function aborts the program execution when the trace buffer becomes full. ■ Trace Buffer-full Break This function aborts the program execution when the trace buffer becomes full. When the trace buffer-full break occurs, the following message appears at the status bar. Break at address by trace buffer full ■...
  • Page 89: Alignment Error Break

    CHAPTER2 Dependence Functions 2.2.4.5 Alignment Error Break This function aborts the program execution when an instruction access or a word/half word access beyond the boundary is made to the odd address. ■ Alignment Error Break This function aborts the program execution when an instruction access or a word/half word access beyond the boundary is made to the odd address.
  • Page 90: External Trigger Break

    CHAPTER2 Dependence Functions 2.2.4.6 External Trigger Break This function aborts the program execution when an external signal is input from the TRIG of the Emulator. ■ External Trigger Break This function aborts the program execution when an external signal is input from the TRIG of the Emulator.
  • Page 91: Forced Break

    CHAPTER2 Dependence Functions 2.2.4.7 Forced Break This function forcibly aborts the program execution to generate a break. ■ Forced Break This function forcibly aborts the program execution to generate a break. When the forced break occurred, the following message appears at the status bar. Break at address by command abort request ■...
  • Page 92: Measuring Execution Cycle Count

    CHAPTER2 Dependence Functions 2.2.5 Measuring Execution Cycle Count This function measures the program execution cycle count. ■ The measuring item Measures program execution cycle counts. The maximum measurable count is "2 to the power of 48 - 1", in other words, up to 281,474,976,710,655 cycles.
  • Page 93: Trace

    CHAPTER2 Dependence Functions 2.2.6 Trace The address and status information can be sampled during program execution to record it in a trace buffer. This function is called a trace. ■ Trace Data recorded with the trace function can be used to make a detailed analysis of a program execution history.
  • Page 94: Trace Data

    CHAPTER2 Dependence Functions 2.2.6.1 Trace Data Data sampled and recorded by tracing is called trace data. ■ Trace Data You can sample the following sizes using the emulation debugger. • Full Trace Mode: 65536 bytes • Real Time Trace Mode: 65536 bytes •...
  • Page 95: Trace Sampling

    CHAPTER2 Dependence Functions 2.2.6.2 Trace Sampling Trace measurements of the program execution status are made during the interval between the program start and stop. The DSU3 chip emulator debugger (MB2197) performs trace measurements until the program execution stops, using the first or second code event or first data event as a trigger for starting trace measurement.
  • Page 96: Setting Trace

    CHAPTER2 Dependence Functions 2.2.6.3 Setting Trace To perform a trace, complete steps 1 through 3 below. When a program is executed after completion of the following steps, trace data is sampled. Trace setup can also be performed from the command window. The DSU3 chip allows the trace measurement region for data access to be specified.
  • Page 97: Displaying Trace Data

    CHAPTER2 Dependence Functions 2.2.6.4 Displaying Trace Data Data recorded in the trace buffer can be Displayed. ■ Displaying Trace Data The trace window displays how much trace data is stored in the trace buffer. Also, you can use the SHOW TRACE command from the command window.
  • Page 98: Display Format Of Trace Data

    CHAPTER2 Dependence Functions 2.2.6.5 Display Format of Trace Data There is a format for displaying trace buffer data. ■ Display Format of Trace Data • Display Only Instruction Operation: (Specify Instruction) ■ Display Only Instruction Operation In this mode, the instruction operation is displayed in disassembly units.
  • Page 99: Searching Trace Data

    CHAPTER2 Dependence Functions 2.2.6.6 Searching Trace Data The trace buffer can be searched to locate target data. ■ Searching Trace Data Specify the address, data, and access information for searching. The address and data can be masked. This search function can be run by clicking the Search button in the trace window.
  • Page 100: Saving Trace Data

    CHAPTER2 Dependence Functions 2.2.6.7 Saving Trace Data The debugger has function of saving trace data. ■ Saving Trace Data Save the trace data to the specified file. For details on operations, refer to Sections "3.14 Trace Window", and "4.4.8 Trace" in "SOFTUNE Workbench Operation Manual"...
  • Page 101: Clearing Trace Data

    CHAPTER2 Dependence Functions 2.2.6.8 Clearing Trace Data To clear trace data, use the following command. ■ Clearing Trace Data When clearing trace data, the [Clear] command is executed from short-cut menu in the trace window.
  • Page 102: Notes On Use Of Tracing Function

    CHAPTER2 Dependence Functions 2.2.6.9 Notes on Use of Tracing Function This section describes the precautions to observe when displaying or searching for trace data. ■ Notes on Trace Function When the emulator debugger is in use, tracing is enabled by the following: •...
  • Page 103 CHAPTER2 Dependence Functions • When displaying valid pass cycles or instruction, the omitted trace data frame is displayed as follows: *** Address Lost Error *** Frame where address at code fetching could not be sampled. • At step execution by a single instruction, trace data may not be sampled correctly for each single instruction execution.
  • Page 104: Inaccessible Area

    CHAPTER2 Dependence Functions 2.2.7 Inaccessible Area This section explains inaccessible area. ■ Inaccessible area The inaccessible area is a function that suppresses access to memory when the debugger accesses a specified memory area (using commands, windows, etc. (*)). However, access to memory is not suppressed using program. The following commands are used to set an inaccessible area.
  • Page 105: Checking Debugger Status

    FR Family SOFTUNE Workbench VxxLxx ALL RIGHTS RESERVED, COPYRIGHT(C) FUJITSU SEMICONDUCTOR LIMITED 1997 LICENCED MATERIAL - PROGRAM PROPERTY OF FUJITSU SEMICONDUCTOR LIMITED ======================================================= Cpu information file path: CPU information file path Cpu information file version: CPU information file version =======================================================...
  • Page 106 CHAPTER2 Dependence Functions Version: SiiEd3.ocx version ------------------------------------------------------- SiM911 Product name: SOFTUNE Workbench File Path: SiM911.dll path Version: SiM911.dll version - - - - - - - - - - - - - - - - - - - - - - - - - - - - Language Tools - FR Family SOFTUNE C/C++ Compiler version File Path: fcc911s.exe path...
  • Page 107 CHAPTER2 Dependence Functions DSU type : Currently used DSU type Monitor version : Version of monitor (dependent) Communication device : Device type Baud rate : Baud rate Host name : LAN host name REALOS version : REALOS version ------------------------------------------------------- SiIODef Product name: Softune Workbench File Path: SiIODef.dll path Version: SiIODef.dll version...
  • Page 108: Emulator Debugger (Mb2198)

    CHAPTER2 Dependence Functions Emulator Debugger (MB2198) This section describes the emulator debugger functions that are available when the emulator debugger (MB2198) is specified. ■ Emulator Debugger When choosing the emulator debugger from the setup wizard, select one of the following emulators. •...
  • Page 109 CHAPTER2 Dependence Functions Notes: When FR80S is used, there are some restrictions on the debug functions as follows: • The debug functions shown in Table 2.3-1 are valid only when set in the internal RAM space. However, the code break and the data break are excluded. •...
  • Page 110: Setting Operating Environment

    CHAPTER2 Dependence Functions 2.3.1 Setting Operating Environment This section explains the operating environment setup. ■ Setting Operating Environment For emulator debugger (MB2198), the following items must be set according to the operating environment. Each setting item has a default value at startup. Therefore, if the default value is used as it is, there is no need to change this setting.
  • Page 111: Monitoring Program Automatic Loading

    CHAPTER2 Dependence Functions 2.3.1.1 Monitoring Program Automatic Loading The emulators debugger (MB2198) can update the monitoring program automatically at emulator startup. ■ Monitoring Program Automatic Loading When emulator debugger (MB2198) is specified, data in the emulator can be checked at the beginning of debugging to automatically load the appropriate monitoring program and configuration binary data into the emulator.
  • Page 112: Mcu Operation Mode

    CHAPTER2 Dependence Functions 2.3.1.2 MCU Operation Mode The following four modes are in the MCU Operation Mode. The Full Trace Mode and Real-time Mode are not enabled with products using the DSU3 chips. • Full Trace Mode • Real Time Mode •...
  • Page 113: Cache Flush Control

    CHAPTER2 Dependence Functions 2.3.1.3 Cache Flush Control This section explains cache flush setup. ■ Cache Flush Control When using a chip with cache memory, rewriting the memory and software break point setup using commands is not reflected in the cache. Therefore, cache flushing must be performed when such commands are executed.
  • Page 114: Operating Frequency

    CHAPTER2 Dependence Functions 2.3.1.4 Operating Frequency This section explains the setting of operating frequencies. ■ Operating frequencies Set the operating frequencies of the MCU. The most suitable operating frequencies vary depending on the type of DSU. DSU3 ranges from 1 to 200 MHz and DSU4 from 1 to 266 MHz. This setting provides the optimum communication speed between the MCU and emulator.
  • Page 115: External Memory Emulation

    CHAPTER2 Dependence Functions 2.3.1.5 External Memory Emulation This section explains the external memory emulation function. ■ External memory emulation Some DSU4 chips can use the RAM in the adapter unit in place of the user system memory. This function is called external memory emulation. For the FR Family, the ‘chip select’...
  • Page 116: Debug Mode

    CHAPTER2 Dependence Functions 2.3.1.6 Debug mode Debug mode includes the following modes. Selectable debug mode varies with the emulator or its connection configuration. • RealTimeMemory mode • RAM Checker mode ■ Setting of debug mode This mode sets debug mode. Debug mode includes RealTimeMemory mode and RAM Checker mode, and selectable debug mode varies with the emulator or its connection configuration.
  • Page 117: Notes On Executing Program

    CHAPTER2 Dependence Functions 2.3.2 Notes on Executing Program There are some precautions to observe when using program execution commands. ■ Real-time Functionality in Running Program When the MCU is in the full trace mode, there are some cases when a program cannot execute in real-time. The MCU operation mode can be set up by using either the [Emulation] tab in debug environment setting dialog, or the SET RUNMODE command in the Command window.
  • Page 118: Commands Available During Execution Of User Program

    CHAPTER2 Dependence Functions 2.3.3 Commands Available during Execution of User Program This section explains the commands available during the execution of a user program. ■ Commands Available during Execution of User Program The emulator debugger (MB2198) allows you to use certain commands during the execution of a user program.
  • Page 119 CHAPTER2 Dependence Functions Notes: • The conditions which allow you to use the commands in Table 2.3-2 are limited to the following cases when a user program is executed. - [Debug] - [Run] - [Go] menu - [Go] button on the debug toolbar The commands in Table 2.3-2 cannot be used when the GO command is entered in the command window.
  • Page 120: Break

    CHAPTER2 Dependence Functions 2.3.4 Break The emulator debugger (MB2198) provides nine types of break functions. When by each break function aborts program execution, the address where a break occurred and the break factor are displayed. ■ Break Functions The emulator debugger (MB2198) provides the following nine types of break functions; - Code break - Data break - Code event break...
  • Page 121: Code Break

    CHAPTER2 Dependence Functions 2.3.4.1 Code Break This function aborts the program execution by monitoring a specified address by hardware or software. A break occurs before executing an instruction at the specified address. ■ Code Break This function aborts the program execution by monitoring a specified address by hardware or software. A break occurs before executing an instruction at the specified address.
  • Page 122 CHAPTER2 Dependence Functions Notes: Hardware The hardware break requires the following cautions: • Do not set any hardware break in a instruction placed in a delay slot. When the hardware break is set in the instruction, a branch does not occur even if the program is reexecuted after break. •...
  • Page 123: Data Break

    CHAPTER2 Dependence Functions 2.3.4.2 Data Break This function aborts the program execution when a data access (read/write) is made to a specified address. ■ Data Break This function aborts program execution when a data access (read/write) is made to a specified address. Up to two breakpoints can be set.
  • Page 124: Code Event Break

    CHAPTER2 Dependence Functions 2.3.4.3 Code Event Break This function uses breakpoints contained in the evaluation chip. The address mask, pass count, and sequential mode can be set. ■ Code Event Break This function uses breakpoints contained in an evaluation chip. The address mask and pass count can be set.
  • Page 125 CHAPTER2 Dependence Functions Notes: • In the DSU3 chip, the code event can be used as a break factor and a trace measurement start factor. This mode is called a trace sampling mode. There are two trace sampling modes. - Full mode: The code event is used as a break factor. - Trigger mode: The code event is used as a trace measurement start factor.
  • Page 126: Data Event Break

    CHAPTER2 Dependence Functions 2.3.4.4 Data Event Break This function uses breakpoints contained in the evaluation chip. The address mask, data size, access type, and sequential mode can be set. ■ Data Event Break This function uses breakpoints contained in the evaluation chip. The address mask, data size (byte/half word/word), and access attributes (read/write) can be set.
  • Page 127 CHAPTER2 Dependence Functions Notes: • In the DSU3 chip, the data event can be used as a break factor and a trace measurement start factor. This mode is called a trace sampling mode. There are two trace sampling modes. - Full mode: The data event is used as a break factor. - Trigger mode: The data event is used as a trace measurement start factor.
  • Page 128: Trace Buffer-Full Break

    CHAPTER2 Dependence Functions 2.3.4.5 Trace Buffer-full Break This function aborts the program execution when the trace buffer becomes full. ■ Trace Buffer-full Break This function aborts the program execution when the trace buffer becomes full. When the trace buffer-full break occurs, the following message appears at the status bar. Break at address by trace buffer full ■...
  • Page 129: Alignment Error Break

    CHAPTER2 Dependence Functions 2.3.4.6 Alignment Error Break This function aborts the program execution when an instruction access or a word/half word access beyond the boundary is made to the odd address. ■ Alignment Error Break This function aborts the program execution when an instruction access or a word/half word access beyond the boundary is made to the odd address.
  • Page 130: External Trigger Break

    CHAPTER2 Dependence Functions 2.3.4.7 External Trigger Break This function aborts the program execution when an external signal is input from the TRIG of the Emulator. ■ External Trigger Break This function aborts the program execution when an external signal is input from the TRIG of the Emulator.
  • Page 131: Forced Break

    CHAPTER2 Dependence Functions 2.3.4.8 Forced Break This function forcibly aborts the program execution to generate a break. ■ Forced Break This function forcibly aborts the program execution to generate a break. When the forced break occurred, the following message appears at the status bar. Break at address by command aborts request ■...
  • Page 132: Data Watch Break

    CHAPTER2 Dependence Functions 2.3.4.9 Data Watch Break This special break function suspends program execution when the program reaches a specified address where specified data matches. Use conditions vary depending on the connection state of the Emulator. ■ Data Watch Break This special break function suspends program execution when the program reaches a specified address where specified data matches.
  • Page 133 CHAPTER2 Dependence Functions ■ How to set Set the data watch break as follows. • Data watch break (hardware) • Command - SET BREAK/DATAWATCH • Dialog - "Code" tab in breakpoint setting dialog • Data watch break (software) • Command - SET BREAKCONDITION - SET BREAK/BREAKCONDITION •...
  • Page 134: Control By Sequencer

    CHAPTER2 Dependence Functions 2.3.5 Control by Sequencer The emulator debugger (MB2198) have a sequencer that controls events. By using this sequencer it is possible to exercise break control while focusing on a certain program flow (sequence). The break generated by this function is called a sequential break. ■...
  • Page 135 CHAPTER2 Dependence Functions The sequencer operates as shown below when it uses the real-time monitoring bus interface: [Setup Example] >SET SEQUENCE 1.3.2, r=4 Events 1, 3, and 2 are specified respectively for Levels 1, 2, and 3. Event 4 is specified as a restart condition.
  • Page 136 CHAPTER2 Dependence Functions Note: Sequencer (Only Real-time Monitoring Bus Interface) 1. This function can be used only when the evaluation chip is the FR60Lite or FR80S. When FR80S is used, however, this function is valid only if the internal RAM space is allowed for write access.
  • Page 137: Measuring Execution Cycle Count

    CHAPTER2 Dependence Functions 2.3.6 Measuring Execution Cycle Count This function measures the program execution time. ■ The measuring item Measures program execution time and cycle count. The resolution of the execution time is 25ns, and up to "(2 to the power of 64 - 1) x 25ns" can be measured. Also, the maximum number of cycles that can be measured is "2 to the power of 64 - 1", in other words, up to 18,446,744,073,709,551,615 cycles.
  • Page 138: Trace

    CHAPTER2 Dependence Functions 2.3.7 Trace This section describes the trace function of the emulator debugger (MB2198). The program execution history can be analyzed in detail using the data recorded by trace. ■ Trace Buffer One data unit stored in the trace buffer is called a frame. shows the trace buffer capacity for each operation mode.
  • Page 139 CHAPTER2 Dependence Functions Notes: 1. The execution time display function is available only when a DSU4 evaluation chip with the external trace bus interface is used. Furthermore, since the execution time is stored in the trace memory on the adapter unit, measurements cannot be made in the external trace mode in which the memory is used for trace data storage.
  • Page 140: Setting Trace Trigger

    CHAPTER2 Dependence Functions ■ Setting Trace Trigger When preselected conditions are met while monitoring the MCU bus operation, a trigger to start a trace can be generated. This function is called a trace trigger. To use the trace trigger function, specify the code (/CODE) and data access (/READ/WRITE). Up to 4 trace triggers can be preset each for code attribute and data access attribute.
  • Page 141 CHAPTER2 Dependence Functions Note: Trace Trigger • This function can be used only when FR60Lite or FR80S is used. When FR80S is used, however, this function is valid only if the internal RAM space is allowed for write access. • If a trace trigger is set, the trace cannot be acquired until the trace starting trigger occurs. Disassembling and source are displayed in the trace from the jumps destination address of the branch instruction executed after the trace starting trigger has occurred.
  • Page 142: Display Format Of Trace Data

    CHAPTER2 Dependence Functions 2.3.7.1 Display Format of Trace Data There are three formats for displaying trace buffer data. ■ Display Format of Trace Data • Display Only Instruction Operation: Specify Instruction • Display Bus Cycles: Specify RAW data • Display by Unit of Source Lines: Specify Source ■...
  • Page 143: Saving Trace Data

    CHAPTER2 Dependence Functions 2.3.7.2 Saving Trace Data The debugger has function of saving trace data. ■ Saving Trace Data Save the trace data to the specified file. For details on operations, refer to Sections "3.14 Trace Window", and "4.4.8 Trace" in "SOFTUNE Workbench Operation Manual";...
  • Page 144: Notes On Use Of Tracing Function

    CHAPTER2 Dependence Functions 2.3.7.3 Notes on Use of Tracing Function This section describes the precautions to observe when displaying or searching for trace data. ■ Notes on Trace Function When the emulator debugger is in use, tracing is enabled by the following: •...
  • Page 145 CHAPTER2 Dependence Functions • When displaying valid pass cycles or instruction, the omitted trace data frame is displayed as follows: *** Address Lost Error *** Frame where address at code fetching could not be sampled. • At step execution by a single instruction, trace data may not be sampled correctly for each single instruction execution.
  • Page 146: Measuring Performance

    CHAPTER2 Dependence Functions 2.3.8 Measuring Performance It is possible to measure the time and pass count between two events. Repetitive measurement can be performed while executing a program in real-time, and when done, the data can be totaled and displayed. Using this function enables the performance of a program to be measured.
  • Page 147: Performance Measurement Procedures

    CHAPTER2 Dependence Functions 2.3.8.1 Performance Measurement Procedures Performance can be measured by the following procedure: • Set event mode. • Set minimum measurement unit for timer. • Specify performance-buffer-full break. • Set events. • Execute program. • Display measurement result. •...
  • Page 148: Executing Program

    CHAPTER2 Dependence Functions ■ Setting Events Set events using the SET EVENT command. The starting/ending point of time measurement and points to measure pass count are specified by events. Events at 4 points (1 to 4) can be set. However, in the performance measurement, the intervals, starting event number and ending event number are fixed in the following combination.
  • Page 149: Displaying Performance Measurement Data

    CHAPTER2 Dependence Functions 2.3.8.2 Displaying Performance Measurement Data Display the measured time and measuring count by using the SHOW PERFORMANCE command. ■ Displaying Measured Time To display the time measured, specify the starting event number or the ending event number. Count of measuring within given time interval Event number >SHOW PERFORMANCE/TIME...
  • Page 150: Real-Time Monitoring

    CHAPTER2 Dependence Functions 2.3.9 Real-time Monitoring This section explains the real-time monitoring function. ■ Command execution during program execution The real-time monitoring function updates the memory content in real time during program execution and displays it in a window. This emulator debugger (MB2198) is provided with a real-time memory window that can display two 256- byte areas for real-time monitoring.
  • Page 151: Power-On Debugging

    CHAPTER2 Dependence Functions 2.3.10 Power-on Debugging This section explains power-on debugging. ■ Power-on debugging The emulator debugger (MB2198) provides power-on debugging function. This emulator can debug the sequence performed immediately after target system power-on. The power-on debugging procedure is described below: 1.
  • Page 152: Inaccessible Area

    CHAPTER2 Dependence Functions 2.3.11 Inaccessible Area This section explains inaccessible area by the emulator debugger for the MB2198. ■ Inaccessible area The inaccessible area is a function that suppresses access to memory when the debugger accesses a specified memory area (using commands, windows, etc. (*)). However, access to memory is not suppressed using program.
  • Page 153: Ram Checker

    CHAPTER2 Dependence Functions 2.3.12 RAM Checker This section describes the function of the RAM Checker. ■ Overview The RAM Checker obtains the access history of the monitoring address log in the SOFTUNE Workbench, and displays the log file graphically using the attached tool "RAM Checker Viewer". The SOFTUNE Workbench has the following functions: - Up to eight points monitoring addressed available - Logs data access history of monitoring address at 1ms intervals...
  • Page 154: Specification List

    CHAPTER2 Dependence Functions ■ Specification list Table 2.3-8 RAM Checker Specification List Numbers for monitoring points 8 points Size byte/halfword/word Event function Max 4 points Sampling rate 1ms (fixed) Updating interval 100ms (fixed) Type of log file SOFTUNE style or CSV style - SOFTUNE format When displaying using the RAM Checker Viewer (SOFTUNE format recommended) Default extension is ".SRL".
  • Page 155: Log File

    CHAPTER2 Dependence Functions ■ Memory access during logging During program execution, the emulator debugger (MB2198) reads/writes memory after causing MCU break once to access, and then reexecuting the program. Therefore, when the emulator debugger accesses memory, it cannot get a log at the time of the memory access correctly. To prevent this, during logging, do not perform operation involving memory access (such as SET MEMORY/SHOW MEMORY command operation and memory window operation).
  • Page 156: Ram Checker Viewer

    CHAPTER2 Dependence Functions ■ RAM Checker Viewer The RAM Checker Viewer is a tool to graphically display the data value that changes as time goes by. It displays data value in the following three formats: - Bit display (image of Logic Analyzer) - Data value display (line graph) - Bit/data value display (simultaneous display of bit and data value) Other display information includes CPU stop, trigger point, and data lost.
  • Page 157: Checking Debugger Status

    FR Family SOFTUNE Workbench VxxLxx ALL RIGHTS RESERVED, COPYRIGHT(C) FUJITSU SEMICONDUCTOR LIMITED 1997 LICENCED MATERIAL - PROGRAM PROPERTY OF FUJITSU SEMICONDUCTOR LIMITED ======================================================= Cpu information file path: CPU information file path Cpu information file version: CPU information file version =======================================================...
  • Page 158 CHAPTER2 Dependence Functions Version: SiiEd3.ocx version ------------------------------------------------------- SiM911 Product name: SOFTUNE Workbench File Path: SiM911.dll path Version: SiM911.dll version - - - - - - - - - - - - - - - - - - - - - - - - - - - - Language Tools - FR Family SOFTUNE C/C++ Compiler version File Path: fcc911s.exe path...
  • Page 159 CHAPTER2 Dependence Functions DSU type : Currently used DSU type Common version : Version of monitor (common) Monitor version : Version of monitor (dependent) Configuration board ID : Configuration board ID Configuration board version : Configuration board version MCU frequency : Operating frequency Communication device : Device type...
  • Page 160: Emulator Debugger (Mb2100-01)

    CHAPTER2 Dependence Functions Emulator Debugger (MB2100-01) This section describes the emulator debugger (MB2100-01) functions. ■ Features of Emulator Debugger (MB2100-01) The emulator debugger (MB2100-01) has the following features: ● Real-time control The following operations can be controlled during the execution of the user program: •...
  • Page 161: Starting Debugging

    CHAPTER2 Dependence Functions 2.4.1 Starting debugging This section describes the method of starting debugging. ■ Starting Debugging When starting debugging, select the [Debug] - [Start debug] menu. When debugging is started by a new project, the setup wizard for performing initial setting is activated. For details, refer to "4.7.2.5 Setup Wizard"...
  • Page 162: Power-On Reset

    CHAPTER2 Dependence Functions 2.4.1.1 Power-on Reset This section describes how to issue the power-on reset. ■ Issuing the Power-on Reset To start the emulator debugger (MB2100-01), enable the DEBUG I/F. For details of DEBUG I/F, refer to the Hardware Manual for the product type you are using. For the emulator debugger (MB2100-01), the power-on reset is recommended.
  • Page 163: Operating Environments Of The Target

    CHAPTER2 Dependence Functions 2.4.1.2 Operating Environments of the Target This section describes the setting of the target operating environments. ■ Operating Environments of the Target In the emulator debugger (MB2100-01), it is necessary to set the following items according to the operating environments of the target.
  • Page 164 CHAPTER2 Dependence Functions Notes: • When the actual value is different from the input value for the communication speed of the reference frequency, the debugger cannot be started. • For details on the DEBUG I/F (interface), refer to "EMBEDDED EMULATOR MB2100-01-E OPERATION MANUAL".
  • Page 165: Security

    CHAPTER2 Dependence Functions 2.4.1.3 Security This section describes the security. ■ Security When beginning to debug it when the security function of target MCU is effective, it is necessary to enter the password in the emulator debugger (MB2100-01). For information of security function, refer to the Hardware Manual for the product type you are using. ■...
  • Page 166: Ending Debugging

    CHAPTER2 Dependence Functions 2.4.2 Ending debugging This section describes the method of ending debugging. ■ Ending debugging When ending debugging, select the [Debug] - [End debug] menu. Turn off the power supply of the target after selecting the [End debug] menu. ■...
  • Page 167: Efficiently Executing Debugging

    CHAPTER2 Dependence Functions 2.4.3 Efficiently Executing Debugging This section describes setting for efficient debugging. ■ Setting Operating Environment Emulator debugger (MB2100-01) can perform efficient debugging by setting the following items in accordance with the operating environment and applications. • Standard high-speed communication For details, refer to "2.4.3.1 Increasing Communication Speed during Debugging".
  • Page 168: Increasing Communication Speed During Debugging

    CHAPTER2 Dependence Functions 2.4.3.1 Increasing Communication Speed during Debugging This section describes setting for increasing the communication speed during debugging. ■ Standard High-speed Communication In the case of the emulator debugger (MB2100-01), when the standard high-speed communication is set to the optimal value, the phase modulation mode is enabled, and high-speed communication can be performed between the target and adapter.
  • Page 169: Switching Debug Function

    CHAPTER2 Dependence Functions 2.4.3.2 Switching Debug Function This section describes the method of switching the debug function correspondingly to the usage. ■ Debug Functions Some of the debugging features are exclusive features which cannot be set simultaneously. Exclusive features require to switch modes depending on usage. The mode has two types described below.
  • Page 170: Executing Program

    CHAPTER2 Dependence Functions 2.4.4 Executing Program This section describes the method of executing a user program. ■ Executing a program A user program is executed in a procedure described below. 1. Open a project (workspace). Select the [File] - [Open workspace file] menu. 2.
  • Page 171: Setting/Release Of Debug Functions

    CHAPTER2 Dependence Functions 2.4.4.1 Setting/Release of Debug Functions The debug function is set or can be released while executing the user program. ■ Commands Available during Execution of User Program A specific debug feature can setting/be released while executing the user program in the emulator debugger (MB2100-01).
  • Page 172 CHAPTER2 Dependence Functions Table 2.4-1 Commands Available during Execution of User Program (2 / 2) Function Major Command name Trace operation 4.15 SET TRACE (type2) 4.18 CLEAR TRACE 4.20 ENABLE TRACE (type2) 4.22 DISABLE TRACE (type2) 4.23 SEARCH TRACE 4.24 SET DATATRACEAREA 4.26 CANCEL DATATRACEAREA 4.33 SET DELAY *1 : Refer to "SOFTUNE Workbench Command Reference Manual".
  • Page 173: Monitoring

    CHAPTER2 Dependence Functions 2.4.4.2 Monitoring This section describes the monitoring function. ■ Monitoring The monitoring function is capable of real-time referencing a variation in the value of a specific address during user program execution. The function is capable of a variation in the value of a specified watch variable, in addition to the value of a specific address.
  • Page 174: Power-On Debug

    CHAPTER2 Dependence Functions 2.4.4.3 Power-on Debug This section describes power-on debug function. ■ Power-on Debug Power-on debug is a function to debug the sequence immediately after turning on of the power supply of the target system. ■ How to use The use procedure of power-on debug is as follows: ●...
  • Page 175 CHAPTER2 Dependence Functions Notes: • Other debug features cannot be used while debugging power-on at all. • When security is enabled, power on debug is not available. • Selecting the power-on debug menu, the following functions cleared. - Performance measurement - Execution cycle measurement •...
  • Page 176: To Access The Flash Memory

    CHAPTER2 Dependence Functions 2.4.5 To Access the Flash Memory This section describes the access method to the flash memory. ■ Access to Flash Memory In the emulator debugger (MB2100-01), the direct operation of the content of the flash memory can be done as well as RAM area.
  • Page 177 CHAPTER2 Dependence Functions - View the following dialogs. Line Assembly dialog (Disassembly window) Break setting dialog [Software] ● Flash memory synchronization [Debbuger -> Flash] • Manual flash memory synchronization Select the [Environment] - [Flash area control] menu. For details, refer to "4.7.4 Flash area control" in "SOFTUNE Workbench Operation Manual".
  • Page 178 CHAPTER2 Dependence Functions ■ Examples of flash memory synchronization ● In the case of [Flash -> Debugger] An image in the case where the flash memory synchronization [Flash -> Debugger] has been performed is shown below. Figure 2.4-4 Variations in the values of the internal debugger and flash memory in the case of the flash memory synchronization [Flash ->...
  • Page 179 CHAPTER2 Dependence Functions ● In the case of [Debugger -> Flash] An image in the case where the flash memory synchronization [Debugger -> Flash] has been performed is shown below. Figure 2.4-5 Variations in the values of the internal debugger and flash memory in the case of the flash memory synchronization [Debugger ->...
  • Page 180: To Interrupt The Program Execution [Break]

    CHAPTER2 Dependence Functions 2.4.6 To Interrupt the Program Execution [Break] This section describes the method of interrupting the execution of the user program. ■ Break Functions The function to interrupt the execution of the user program is called a break function. The emulator debugger (MB2100-01) provides the following eight types of break functions;...
  • Page 181: Code Break (Hardware)

    CHAPTER2 Dependence Functions 2.4.6.1 Code Break (Hardware) This function suspends program execution by monitoring a specified address by hardware. ■ Code Break (Hardware) This function suspends program execution by monitoring a specified address by hardware. A break occurs before an instruction at the specified address is executed. Code Break (Hardware) has the hardware/count for which a path count can be set.
  • Page 182 CHAPTER2 Dependence Functions Notes: • Do not set the code break to an instruction placed in a delay slot. If a code break is set and the branch instruction is executed, the following phenomenon occurs. Hardware: A break set in the delay slot does not occur. •...
  • Page 183: Code Break (Software)

    CHAPTER2 Dependence Functions 2.4.6.2 Code Break (Software) This function suspends program execution by monitoring a specified address by software. A break occurs before executing an instruction at the specified address. ■ Code Break (Software) This function suspends program execution by monitoring a specified address by software. The conditions are as follows.
  • Page 184 CHAPTER2 Dependence Functions Notes: • Do not set the code break (software) to an instruction placed in a delay slot. When set, an incorrect instruction exception occurs. For details of the invalid instruction exception, refer to the Hardware Manual for the product type you are using. •...
  • Page 185: Data Break

    CHAPTER2 Dependence Functions 2.4.6.3 Data Break This function suspends program execution when data access (read/write) is made to a specified address. ■ Data Break This function suspends program execution when data access (read/write) is made to a specified address. Up to 8 points can be set.
  • Page 186: Trace Trigger Break

    CHAPTER2 Dependence Functions 2.4.6.4 Trace Trigger Break This function suspends program execution when a trace trigger terminates trace acquisition. ■ Trace Trigger Break This function suspends program execution when a trace trigger terminates trace acquisition. Only one point can be set. When the trace trigger break occurs, the following message appears in the status bar.
  • Page 187: Forced Break

    CHAPTER2 Dependence Functions 2.4.6.5 Forced Break This function forcibly suspends program execution. ■ Forced Break This function forcibly suspends program execution. When the forced break occurs, the following message appears in the status bar. Break at address by command abort request ■...
  • Page 188: Data Watch Break

    CHAPTER2 Dependence Functions 2.4.6.6 Data Watch Break This break function suspends program execution when the program reaches a specified instruction address while the value in the specified data address matches with specified data. ■ Data Watch Break This break function suspends program execution when the program reaches a specified instrution address while the value in the specified data address matches with specified data.
  • Page 189 CHAPTER2 Dependence Functions Notes: • A data watch break shares points with the following functions. The maximum number of data watch breaks varies depending on how those functions are used. - Code break - Data break - Trace trigger - Sequencer •...
  • Page 190: Sequencer

    CHAPTER2 Dependence Functions 2.4.6.7 Sequencer This is a function to abort the program execution when the program is executedalong with the event order specified by the user. ■ Control by Sequencer Set two events, and set the flow in order from level 1 to level 2 as the condition for terminating the sequencer.
  • Page 191: Specifications Of Sequencer

    CHAPTER2 Dependence Functions ■ Specifications of Sequencer Table 2.4-2 shows the specifications of the sequencer for the emulator debugger (MB2100-01). Table 2.4-2 Specifications of Sequencer Function Specification No. of levels 2 levels Restart function Available (one) Conditions of each Address event Pass count : 1 to 1048575 (Code/data)
  • Page 192: Guarded Access Break

    CHAPTER2 Dependence Functions 2.4.6.8 Guarded Access Break This is a function to abort the program execution when an access violation to protected area of memory occurs. ■ Guarded Access Breaks This is a break caused when monitoring an access to a guarded area on memory. If a guarded access break occurs while executing a program, program execution is suspended with the following message on the status bar.
  • Page 193: Measuring The Program Execution Time

    CHAPTER2 Dependence Functions 2.4.7 Measuring the Program Execution Time This section explains the function to measure the program execution time. ■ Measured Items The emulator debugger (MB2100-01) can measure the following two items for the user program execution time. • Time measurement Measures the time from start of program execution to end.
  • Page 194: Measuring The Program Execution Cycle Count

    CHAPTER2 Dependence Functions 2.4.7.1 Measuring the Program Execution Cycle Count This section explains the function of measuring the number of program execution cycles. ■ Measurement Items This function measures the number of program execution cycles or real-time. The measurement is performed whenever a program is executed, and the measurement result displays the following values: The measurement is performed whenever a program is executed, and the measurement result displays the following two values:...
  • Page 195 CHAPTER2 Dependence Functions ■ Setting Measurement Unit Either of the following methods can be used to set the measurement unit. • Dialog - Time Measurement Dialog For details, refer to "4.6.8.1 Measurement Unit for Execution Time Measurement" of "SOFTUNE Workbench Operation Manual". •...
  • Page 196: Measuring Event-To-Event Execution Cycle Count [Performance Measurement]

    CHAPTER2 Dependence Functions 2.4.7.2 Measuring Event-to-Event Execution Cycle Count [Performance Measurement] This section explains how to measure the execution cycle count between two events. ■ Performance Measurement The emulator debugger (MB2100-01) measures the execution cycle count or real-time between two events, which the system has passed while a user program is running.
  • Page 197: Measuring Procedure

    CHAPTER2 Dependence Functions ■ Measuring Procedure Use the following steps to measure the performance. 1. Specify the performance measuring interval. 2. Execute the measurement. 3. Display the measurement result. Each of these steps can be executed in two methods: using GUI (window or dialog) and using only the command.
  • Page 198 CHAPTER2 Dependence Functions ■ Remeasuring Remeasuring performance refers to a function that clears the measuring count during execution of a user program and remeasures from the beginning. To carry out remeasuring, select [Restart] in the shortcut menu of the performance window. If necessary, you can respecify the performance measuring interval (event) during execution.
  • Page 199: Viewing Program Execution History [Trace]

    CHAPTER2 Dependence Functions 2.4.8 Viewing Program Execution History [Trace] This section describes the trace function. ■ What is Trace The function that records the program execution history is called "trace". Trace data contains the following information, which is available for the analysis of the program execution history.
  • Page 200 CHAPTER2 Dependence Functions Figure 2.4-9 shows how data is stored in the trace buffer. Figure 2.4-9 Acquiring Trace Data When a break occurred during execution of a program Start execution Stop execution Start execution Stop execution Program flow Trace Buffer | --------------- ---------------| Max.
  • Page 201: Displaying Trace Data

    CHAPTER2 Dependence Functions 2.4.8.1 Displaying Trace Data This section explains how to display trace data. ■ Display Formats of Trace Data The following three formats can be used to display trace data. RAW data: Displays trace data without analyzing it. Instruction: Displays trace data in the order in which instructions are executed.
  • Page 202 CHAPTER2 Dependence Functions 3. (If the trace window is already displayed), update trace data. - Right-click on the trace window, and select [Refresh] from the pop-up menu. Trace data is updated in the trance window. For details, refer to Section "3.14 Trace Window" in "SOFTUNE Workbench Operation Manual". Using command window 1.
  • Page 203: Raw Data Display

    CHAPTER2 Dependence Functions 2.4.8.1.1 Trace Data Display Examples (RAW Data) This section describes trace data that is displayed in the RAW data mode. ■ RAW Data Display This format displays frames that are output from the emulator without analyzing them. Figure 2.4-11 shows a RAW data display example.
  • Page 204 CHAPTER2 Dependence Functions frame no. Displays frame numbers in decimal notation. b-addr Displays a branch address or low-level reset occurrence address in hexadecimal notation, or displays the standby state. • For branch address Branch destination address = 110C6: "-> 000110C6" Branch source address = 110A8: "000110A8 ->"...
  • Page 205 CHAPTER2 Dependence Functions a-data Displays access data in hexadecimal notation. In some cases, however, it may display read IDs, depending on the a-stat and a-type status. a-stat a-type a-data read Read access data write Write access data read cpu / lost Read ID r-id Displays an ID that associates the read ID of a-data with r-data.
  • Page 206: Instruction Display

    CHAPTER2 Dependence Functions 2.4.8.1.2 Trace Data Display Example (Instruction) This section describes trace data that is displayed in the instruction mode. ■ Instruction Display This mode displays the branch addresses of the RAW data display in disassembly format. Figure 2.4-14 shows an instruction display example.
  • Page 207: Source Display

    CHAPTER2 Dependence Functions 2.4.8.1.3 Trace Data Display Example (Source) This section describes trace data that is displayed in the source line mode. ■ Source Display This mode displays only source lines. Figure 2.4-15 shows a source display example. Figure 2.4-15 Source Display frame no.
  • Page 208: Saving Trace Data

    CHAPTER2 Dependence Functions 2.4.8.2 Saving Trace Data This section explains how to save trace data. ■ Saving Trace Data Trace data can be saved in a specified file. The following two methods are available to save trace data: using GUI (window or dialog) and using only the command.
  • Page 209: Searching For Trace Data

    CHAPTER2 Dependence Functions 2.4.8.3 Searching for Trace Data This section explains how to search for trace data. ■ Searching for Trace Data The specified address or frame number in trace data can be displayed. The following two methods are available to search for trace data: using GUI (window or dialog) and using only the command.
  • Page 210: Obtaining Only Trace Data With Specified Attributes

    CHAPTER2 Dependence Functions 2.4.8.4 Obtaining Only Trace Data with Specified Attributes This section explains the trace filter. ■ Trace Filter This function obtains only the data with a specified access attribute when fetching codes or obtaining data access information as trace data. The access attribute can be selected from read, write, or code.
  • Page 211: Ending Trace Acquisition In Specified Conditions

    CHAPTER2 Dependence Functions 2.4.8.5 Ending Trace Acquisition in Specified Conditions This section explains the trace trigger. ■ Trace Trigger A trigger can be generated to end trace acquisition in the specified conditions by monitoring the MCU bus running status. This function is called a "trace trigger". The trace trigger can be selected with either the code attribute or the data access attribute.
  • Page 212: Disabling Memory Access To Specified Area

    CHAPTER2 Dependence Functions 2.4.9 Disabling Memory Access to Specified Area This section explains the access-prohibited area. ■ Access-prohibited Area The access-prohibited area has a function to inhibit memory access when the debugger tries to access the memory in the specified area (*1). However, it does not inhibit memory access from the program. (*1) The following shows the memory access by the commands or window operations.
  • Page 213: Displaying Messages Output From The User Program On Debugger

    CHAPTER2 Dependence Functions 2.4.10 Displaying Messages Output from the User Program on Debugger This section explains semihosting features. ■ What is Semihosting Feature This is a function to display the messages output from the user program on debugger window. This can be used only for products whose semihosting function is enabled.
  • Page 214: Using Semihosting Feature

    CHAPTER2 Dependence Functions ■ Using Semihosting Feature Perform the following procedure to display the content of output request to MBR on the terminal window. 1. Controlling MBR with the user program MBR must be controlled in the user program, as shown in Figure 2.4-16 . Sample projects that include a method for controlling the MBR is attached to SOFTUNE Workbench V60L10 or later.
  • Page 215: Checking Debugger Status

    FR Family SOFTUNE Workbench VxxLxx ALL RIGHTS RESERVED, COPYRIGHT(C) FUJITSU SEMICONDUCTOR LIMITED 1997 LICENCED MATERIAL - PROGRAM PROPERTY OF FUJITSU SEMICONDUCTOR LIMITED ======================================================= Cpu information file path: CPU information file path Cpu information file version: CPU information file version =======================================================...
  • Page 216 CHAPTER2 Dependence Functions SiM911 Product name: SOFTUNE Workbench File Path: SiM911.dll path Version: SiM911.dll version - - - - - - - - - - - - - - - - - - - - - - - - - - - - Language Tools - FR Family SOFTUNE C/C++ Compiler version File Path:...
  • Page 217 CHAPTER2 Dependence Functions CPU family ID: ID that indicates the CPU family installed in the device DSU type ID: ID that indicates the OCD-DSU installation type. DSU version ID: ID that indicates version information of the DSU installed in the device Device ID: ID that indicates device information Device version ID:...
  • Page 218: Monitor Debugger

    CHAPTER2 Dependence Functions Monitor Debugger This section describes the functions of the monitor debugger. ■ Monitor Debugger The monitor debugger performs debugging by putting the target monitor program for debugging into the target system and by communicating with the host. Before using this debugger, the target monitor program must be ported to the target hardware.
  • Page 219: Resources Used By Monitor Program

    CHAPTER2 Dependence Functions 2.5.1 Resources Used by Monitor Program The monitor program of the monitor debugger uses the I/O resources listed below. The target hardware must have these resources available for the monitor program. ■ Required Resources The following resources are required to build the monitor program into the target hardware. Table 2.5-1 Resources Used by Monitor Debugger UART Required...
  • Page 220: Break

    CHAPTER2 Dependence Functions 2.5.2 Break The Monitor Debugger provides two types of break functions. When by each break function aborts program execution, the address where a break occurred and the break factor are displayed. ■ Break Functions The Monitor provides the following two types of break function; - Software break - Forced break...
  • Page 221: Software Break

    CHAPTER2 Dependence Functions 2.5.2.1 Software Break A software break is a function to make a break by executing an instruction embedded in memory. The break occurs before executing the instruction at the specified address. ■ Software Break A software break is a function to make a break by executing an instruction embedded in memory. The break occurs before executing the instruction at the specified address.
  • Page 222: Forced Break

    CHAPTER2 Dependence Functions 2.5.2.2 Forced Break This function forcibly aborts the program execution to generate a break. ■ Forced Break This function forcibly aborts the program execution to generate a break. When the forced break occurred, the following message appears at the status bar. Break at address by command abort request ■...
  • Page 223: Measuring Execution Time

    CHAPTER2 Dependence Functions 2.5.3 Measuring Execution Time This function measures the execution time of a program. ■ Measurement Item The execution time of a program is measured. The resolution of the execution time is 1s, and up to "(2 to the power of 32 - 1) x 1s" can be measured. The measurement is performed whenever a program is executed, and the measurement result displays the following two values: - Execution time spent on the previous program execution...
  • Page 224: Inaccessible Area

    CHAPTER2 Dependence Functions 2.5.4 Inaccessible Area This section explains inaccessible area by the monitor debugger. ■ Inaccessible area The inaccessible area is a function that suppresses access to memory when the debugger accesses a specified memory area (using commands, windows, etc.*). However, access to memory is not suppressed using program.
  • Page 225: Index

    INDEX INDEX The index follows on the next page. This is listed in alphabetic order.
  • Page 226 INDEX Index Code Break Code Break ....... 44, 74, 111, 171 Access Code Break (Software)........173 Access to Flash Memory ....... 166 Code Event Break Access-prohibited Area........202 Code Event Break ........76, 114 Access Attributes Command Memory Area Access Attributes ...... 37 Command execution during program execution Active Project ............
  • Page 227 INDEX Debugging DEBUG I/F............. 152 filter Ending debugging.......... 156 Trace filter ............129 Power-on debugging ........141 Flag T Starting Debugging........151 Precautions on executing the instruction for Verification Items When Starting Debugging clearing flag T......71, 107 ............151 Flash Memory Delay branch instruction Access to Flash Memory........166 Precaution on executing the delay branch...
  • Page 228 INDEX STUB Function ..........42 Management Trace Buffer-full Break....... 46, 78, 118 Project Management Function ......3 Trace Trigger Break........176 Workspace Management Function....2 How to use MB2100-01 How to use..........163, 164 Features of Emulator Debugger (MB2100-01) ............150 Setting MCU Operation Mode ....
  • Page 229 INDEX Operating Environment Project format.............3 Operating Environment........22 Project Management Function ......3 Setting Operating Environment ..66, 100, 157 Restrictions on Storage of Two or More Projects ..............2 Operating Environments Operating Environments of the Target ..153 Project Configuration Active Project Configuration.......4 Operating frequencies Project Configuration..........4 Operating frequencies ......
  • Page 230 INDEX Security Security............155 Target Semihosting Feature Operating Environments of the Target ..153 Using Semihosting Feature ......204 TBR Register What is Semihosting Feature......203 Value of TBR Register......71, 107 Sequencer Terminal Window Control by Sequencer ......124, 180 What is Terminal Window......
  • Page 231 INDEX Trace Trigger Break Trace Trigger Break........176 Variables Specifying C/C++ Variables ......30 User Program Commands Available during Execution of User Workspace Program........72, 108 Workspace ............2 Workspace Management Function ....2 Workspace Management Workspace Management Function ....2...
  • Page 232 INDEX...
  • Page 233 Colophon CM71-00329-7E FUJITSU SEMICONDUCTOR CONTROLLER MANUAL FR FAMILY OFTUNE TM WORKBENCH USER’S MANUAL for V6 November 2011 the seventh edition FUJITSU SEMICONDUCTOR LIMITED Published Sales Promotion Dept. Edited...

This manual is also suitable for:

Softune workbench

Table of Contents