SOFTUNE Workbench is support software for developing programs for the F2MC-16 family of
microprocessors / microcontrollers.
It is a combination of a development manager, simulator debugger, emulator debugger, m onitor debugger,
and an integrated development environment for efficient development.
■ Purpose of this manual and target readers
This manual explains functions of SOFTUNE Workbench.
This manual is intended for engineers designing several kinds of products using SOFTUNE Workbench.
Other company names and products names are trademarks or registered trademarks of their respective
companies.
■ Trademarks
REALOS, SOFTUNE are trademark of Fujitsu Semiconductor Limited, Japan.
2
Note: F
Microsoft, Windows and Windows Media are either registered trademarks of Microsoft Corporation in the
United States and/or other countries.
The company names and brand names herein are the trademarks or registered trademarks of their respective
owners.
MC is the abbreviation of FUJITSU Flexible Microcontroller.
■ Organization of This Manual
This manual consists of the following 2 chapters.
CHAPTER 1 BASIC FUNCTIONS
This chapter describes the basic functions on the SOFTUNE Workbench.
CHAPTER 2 DEPENDENCE FUNCTIONS
This chapter describes the functions dependent on each Debugger.
i
• The contents of this document are subject to change without notice.
Customers are advised to consult with sales representatives before ordering.
• The information, such as descriptions of function and application circuit examples, in this document are presented solely for the
purpose of reference to show examples of operations and uses of FUJITSU SEMICONDUCTOR device; FUJITSU
SEMICONDUCTOR does not warrant proper operation of the device with respect to use based on such information. When you
develop equipment incorporating the device based on such information, you must assume any responsibility arising out of such
use of the information. FUJITSU SEMICONDUCTOR assumes no liability for any damages whatsoever arising out of the use
of the information.
• 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. FUJITSU SEMICONDUCTOR assumes no liability for any
infringement of the intellectual property rights or other rights of third parties which would result from the use of information
contained herein.
• The products described in this document are designed, developed and manufactured as contemplated for general use, including
without limitation, ordinary industrial use, general office use, personal use, and household use, but are not designed, developed
and manufactured as contemplated (1) for use accompanying fatal risks or dangers that, unless extremely high safety is secured,
could have a serious effect to the public, and could lead directly to death, personal injury, severe physical damage or other loss
(i.e., nuclear reaction control in nuclear facility, aircraft flight control, air traffic control, mass transport control, medical life
support system, missile launch control in weapon system), or (2) for use requiring extremely high reliability (i.e., submersible
repeater and artificial satellite).
Please note that FUJITSU SEMICONDUCTOR will not be liable against you and/or any third party for any claims or damages
arising in connection with above-mentioned uses of the products.
• Any semiconductor devices have an inherent chance of failure. You must protect against injury, damage or loss from such
failures by incorporating safety design measures into your facility and equipment such as redundancy, fire protection, and
prevention of over-current levels and other abnormal operating conditions.
• Exportation/release of any products described in this document may require necessary procedures in accordance with the
regulations of the Foreign Exchange and Foreign Trade Control Law of Japan and/or US export control laws.
• The company names and brand names herein are the trademarks or registered trademarks of their respective owners.
In each section of this manual, the summary about the section is described certainly, so you can grasp an
outline of this manual if only you read these summaries.
And the title of upper section is described in lower section, so you can grasp the position where you are
reading now.
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
1.11 Macro Descriptions Usable in Manager
1.12 Setting Operating Environment
1.13 Debugger Types
1.14 Memory Operation Functions
1.15 Register Operations
1.16 Line Assembly and Disassembly
1.17 Symbolic Debugging
1
CHAPTER 1 BASIC FUNCTIONS
1.1Workspace 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.
■ Workspace Management Function
To manage two or more projects, workspace manages the following information:
• Project
• Active project
• Subproject
■ Project
The operation performed in SOFTUNE Workbench is based on the project. The project is a set of files and
procedures necessary for creation of a target file. The project file contains all data managed by the project.
■ Active Project
The active project is basic to workspace and undergoes [Make], [Build], [Compile/Assemble], [Start Debug],
and [Update Dependence] in the menu. [Make], [Build], [Compile/Assemble], and [Update Dependence]
affect the subprojects within the active project.
If workspace contains some project, it always has one active project.
■ Subproject
The subproject is a project on which other projects depend. The target file in the subpr oject is linked with the
parent project of the subproject in creating a target file in the parent project.
This dependence consists of sharing target files output by the subproject, so a subproject is first made and
built. If making and building of the subproject is unsuccessful, the parent project of the subproject will not be
made and built.
The target file in the subproject is however not linked with the parent project when:
• An absolute (ABS)-type project is specified as a subproject.
• A library (LIB)-type project is specified as a subproject.
■ Restrictions on Storage of Two or More Projects
Only one REALOS-type project can be stored in one workspace.
2
CHAPTER 1 BASIC FUNCTIONS
1.2Project 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. Especially, its
major purpose is to manage information necessary for creation of a target file.
The project manages the following information:
- 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)
■ Project Format
The project file supports two formats: a 'workspace project format,' and an 'old project format.'
The differences between the two formats are as follows:
Workspace project format
- Supports management of two or more project configurations
- Supports use of all macros usable in manager
- Does not support early Workbench versions(*)
Old project format
- Supports management of just one project configuration
- Limited number of macros usable in manager
For details, see Section "1.11 Macro Descriptions Usable in Manager".
- Supports early Workbench versions(*)
When a new project is made, the workspace project format is used.
When using an existing project, the corresponding project format is used.
If a project made by an early Workbench version(*) is used, a dialog asking whether to convert th e file t o the
workspace project format is displayed. For details, refer to Section "2.13 Reading SOFTUNE Project Files of
Old Versions" of "SOFTUNE Workbench Operation Manual".
To open a project file in the workspace project format with an early Workbench version(*), it is necessary to
convert the file to the old project format. For saving the file in other project formats, refer to Section "4.2.7
Save As" of "SOFTUNE Workbench Operation Manual".
2
MC-16: V30L26 or earlier
*: F
■ 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. A new project configuration is created on the se tting of the selected existing project configuration. In
the new project configuration, the same files as those in the original project configuration are always used.
By using the project configuration, the settings of programs of different versions, such as the optimization
3
CHAPTER 1 BASIC FUNCTIONS
level of a compiler and MCU setting, can be created within one project.
In the project configuration, the following information is managed:
- Name and directory of target file
- Information on options of language tools to create target file by compiling, assembling and linking
source files
- Information on whether to build file or not
- Information on setting of debugger to debug target file
■ Active Project Configuration
The active project configuration at default undergoes [Make], [Build], [Comp ile/Assemble], [Start Debug],
and [Update Dependence].
The setting of the active project configuration is used for the file state displayed in the SRC tab of proj ect
window and includes files detected in the Dependencies folder.
Note:
If a macro function newly added is used in old project format, the macro description is expanded at the
time of saving in old project format. For the macro description newly added, refer to Section "1.11
Macro Descriptions Usable in Manager".
4
CHAPTER 1 BASIC FUNCTIONS
1.3Project 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
[Project] - [Project Dependence] menu. The subproject is a project on which other projects depend.
By defining project dependence, a subproject can be made an d built to link its target file b efore making and
building the parent project.
The use of project dependence enables simultaneous making and building of two or m ore projects developed
in one workspace.
A project configuration in making and building a subproject in [Project] - [Project Configuration] - [Build
Configuration] menu can be specified.
5
CHAPTER 1 BASIC FUNCTIONS
1.4Make/Build Function
This section explains the make/build function of SOFTUNE Workbench.
■ Make Function
Make function generates a target file by compiling/assembling only u pdated source files from all sou rce files
registered in a project, and then joining all required object files.
This function allows compiling/assembling only the minimum of required files. The time required for
generating a target file can be sharply reduced, especially, when debugging.
For this function to work fully, the dependence between source files and include files should be accurately
grasped. To do this, SOFTUNE Workbench has a function for analyzing include dependence. To perform this
function, it is necessary to understand the dependence of a source file and include file. SOFTUNE
Workbench has the function for analyzing the include file dependence. For details, see Section "1.5 Include
Dependencies Analysis Function".
■ Build Function
Build function generates a target file by compiling/assembling all source files registered with a project,
regardless of whether they have been updated or not, and then by joining all required object files. Using this
function causes all files to be compiled/assembled, resulting in the time re quired for gener ating the targ et file
longer. Although the correct target file can be generated from the current source files.
The execution of Build function is recommended after completing debugging at the final stage of program
development.
Note:
When executing the Make function using a source file restored from backup, the integrity between an
object file and a source file may be lost. If this happens, executing the Build function again.
6
CHAPTER 1 BASIC FUNCTIONS
1.4.1Customize Build Function
This section describes the SOFTUNE Workbench 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.
The following operations can be performed automatically during Make or Build using this function:
- starting the syntax check before executing the Compiler,
- after executing the Converter, starting the S-format binary Converter (m2bs.exe) and converting
Motorola S-format files to binary format files.
■ Setting Options
An option follows the tool name to start a tool from SOFTUNE Workbench. The options include any file
name and tool-specific options. SOFTUNE Workbench h a s the macros indicating that any file name and toolspecific options are specified as options.
■ Macro List
If any character string other than parameters is specified, it is passed directly to the tool. For details abo ut the
parameters, see Section "1.11 Macro Descriptions Usable in Manager".
The Setup Customize Build dialog provides a macro list for macro input. The build file, load module file,
project file submenus indicate their sub-parameters specified.
The environment variable brackets must have any item; otherwise, resulting in an error.
When checking [Use the Output window], note the following:
• Once a tool is activated, Make/Build is suspended 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. The user can not perform input while the Output window is in use, so the tool cannot be
terminated. To forcibly terminate the tool, select the tool on the Task bar and input Control - C, or
Control - Z.
8
CHAPTER 1 BASIC FUNCTIONS
1.5Include 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.
For this reason, SOFTUNE Workbench has a built-in Include Dependencies Analysis function. Th is function
can be activated by selecting the [Project] - [Include Dependencies] menu. By using this function, uses can
know the exact dependencies, even if an include file includes another include file.
SOFTUNE Workbench automatically updates the dependenci e s of the com piled/assembled files.
Note:
When executing the [Project] - [Include Dependencies] menu, the Output window is redrawn and
replaced by the dependencies analysis result.
If the contents of the current screen are important (error message, etc.), save the contents to a file and
then execute the Include Dependencies command.
9
CHAPTER 1 BASIC FUNCTIONS
1.6Functions 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. SOFTUNE Workbench stores and manages the options specified for each tool in
project configurations.
Tool options include the options effective for all sou rce files (common options) and th e options effective for
specific source files (individual options). For details about the option setting, refer to Section "4.5.5 Setup
Project" of "SOFTUNE Workbench Operation Manual".
- Common options
These options are effective for all source files (excluding those for which individual options are
specified) stored in the project.
- Individual options
These options are compile/assemble options effective for specific source files. The common options
specified for source files for which individual options are specified become invalid.
■ Tool Options
SOFTUNE Workbench the macros indicating that any file name and directory name are specified as options.
If any character string other than parameters is specified, it is passed directly to the tool. For details abo ut the
parameters, see Section "1.11 Macro Descriptions Usable in Manager". For details about the tool option s for
each tool, see the manual of each tool.
10
CHAPTER 1 BASIC FUNCTIONS
1.7Error Jump Function
This section describes the error jump function in SOFTUNE Workbench.
■ Error Jump Function
When an error, such as a compile error occurs, double-clicking the error message displayed in the Output
window, opens the source file where the error occurred, and automatically moves the cursor to the error line.
This function permits efficient removal of compile errors, etc.
The SOFTUNE Workbench Error Jump function analyzes the source file names and line number inform ation
embedded in the error message displayed in the Output window, opens the matching file, and jumps
automatically to the line.
The location where a source file name and line number information are embedded in an error message, varies
with the tool outputting the error.
An error message format can be added to an existing one or modified into an new one. However, th e modify
error message formats for pre-installed Fujitsu language tools are defined as part of the system, these can not
be modified.
■ Syntax
A new error message format should be added when working the Error Jump function with user register. To
set Error Jump, execute the [Setup] - [Error Jump Setting] me nu.
An error message format can be described in Syntax. SOFTUNE Workbench uses macro descriptions as
shown in the Table 1.7-1 to define such formats.
To analyze up to where %f, %h, and %* continue, SOFTUNE Workbench uses the character immediately
after the above characters as a delimiter. Therefore, in Syntax, the description until a character that is used as
a delimiter re-appears, is interpreted as a file name or a keyword for help, or i s skipped over. To use % as a
delimiter, describe as %%. The %[char] macro skips over as long as the specified character continues in
parentheses. To specify "]" as a skipped character, describe it as "\]". Blank characters in succession can be
specified with a single blank character.
Table 1.7-1 List of Special Characters String for Analyzing Error Message
CharactersSemantics
%fInterpret as source file name and inform editor.
%lInterpret as line numb er and inform editor.
%hBecome keyword when searching help file.
%*Skip any desired character.
%[char]Skip as long as characters in [ ] continues.
11
CHAPTER 1 BASIC FUNCTIONS
[Example]
***%f(%l)%h: or, %[*]%f(%l)%h:
The first four characters are "*** ", followed by the file name and parenthesized page number, and then
the keyword for help continues after one blank character.
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.
The standard editor has the following functions in addition to regular editing functions.
- K e yword marking function in C/assembler source file
Displays reserved words, such as if and for, in different color
- Error line marking function
The error line can be viewed in a different color, when executing Error Jump.
- Bookmark setup function
A bookmark can be set on any line, and instantaneously j umps to the line. Once a book mark is set, the
line is displayed in a different color.
- Ruler, line number display function
The Ruler is a measure to find the position on a line; it is displayed at the top of the Edit window. A
line number is displayed at the left side of the Edit window.
- Automatic indent function
When a line is inserted using the Enter key, the same indent (indentation) as the preceding line is set
automatically at the inserted line. If the space or tab key is used on the preceding line, the same use is
set at the inserted line as well.
- Function to display, Blank, Line Feed code, and Tab code
When a file includes a Blank, Line Feed code, and Tab code, these codes are displayed with special
symbols.
- Undo function
This function cancels the preceding editing action to restore the previous state. When more than one
character or line is edited, the whole portion is restored.
- Tab size setup function
Tab stops can be specified by defining how many digits to skip when Tab codes are inserted. The
default is 8.
- Font changing function
The font size for character string displayed in the Edit window can be selected.
■ Reference Section
Edit Window (The Standard Editor)
13
CHAPTER 1 BASIC FUNCTIONS
1.9Storing 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. Use the [Setup] [Editor setting] menu to set an external editor.
■ Precautions
- Error jump function
The error jump cannot move the cursor to an error line if the external editor does not have a functi on to
specify the cursor location when activated the external editor.
- File save at compiling/assembling
SOFTUNE Workbench cannot control an external editor. Always save the file you are editing before
compiling/assembling.
■ Setting Options
When activating an external editor from SOFTUNE Workbench, options must be add ed immediately after
the editor name. The names of file to be opened by the editor and the initial location of the cursor (the li ne
number). can be specified. SOFTUNE Workbench has a set of special parameters for specifying any file
name and line number, as shown in the Table 1.9-1. If any other character string are described by these
parameters, such characters string are passed as is to the editor.
%f (File name) is determined as follows:
1. If the focus is on the SRC tab of Project window, and if a valid file name is selected, the selected file
2. When a valid file name cannot be acquired by the above procedure, the file name w ith a focus in the
%x (project path) is determined as follows:
1. If a focus is on the SRC tab of project w indow and a valid file name is selected, the project path is a
2. If no path is obtained, the project path is a path to the active project.
Also file name cannot be given double-quotes in the expansion of %f macros.
Therefore, it is necessary for you to provide double-quotes for %f. Depending on the edi tor, there are line
numbers to which there will be no correct jump if the entire option is not given double-quotes.
name becomes the file name.
built-in editor becomes the file name.
path to the project in which the file is stored.
14
Table 1.9-1 List of Special Characters for Analyzing Error Message
Parameter Semantics
%% Means specifying % itself
%f Means specifying file name
%l Means specifying line number
Regarding execution of error jump in Hidemaru:
To execute error jump in Hidemaru used as an external editor, use the [Others] - [Operating
Environment] - [Exclusive Control] menu, and then set "When opening the same file in Hidemaru" and
"Opening two identical files is inhibited".
15
CHAPTER 1 BASIC FUNCTIONS
1.10Storing External Tools
This section describes the function to set an external tool to SOFTUNE Workbench.
■ 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. Use this function to coordinate with a source file version control
tool.
If a tool set as an external tool is designed to output the execution result to the standard output and the
standard error output through the console application, the result can be specified to output the SOFTUNE
Workbench Output window. In addition, the allow description of additional parameters each time the tool is
activated.
To set an external tool, use the [Setup] - [Setting Tool] menu.
To select the title of a set tool, use the [Setup] - [Activating Tool] menu.
■ Setting Options
When activating an external tool from SOFTUNE Workbench, options must be added immediately after the
external tool name. Specify the file names, and unique options, etc.
SOFTUNE Workbench has a set of special parameters for specifying any file name and unique tool options.
If any characters string described other than these parameters, such characters string are passed as is to the
external tool.
For details about the parameters, see Section "1.11 Macro Descriptions Usable in Manager".
Note:
When checking [Use the Output window], note the following:
• Once a tool is activated, neither other tools nor the compiler/assembler can be 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. The user cannot perform input while the Output window is in use, so the tool cannot be
terminated. To forcibly terminate the tool, select the tool on the Task bar and input Control - C, or
Control - Z.
■ Reference Section
Setting Tools
Starting Tools
16
Loading...
+ 324 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.