RX850 Pro Ver.3.21 for Task Debugger

RX850 Pro Ver.3.21 for Task Debugger
To our customers,
Old Company Name in Catalogs and Other Documents
On April 1st, 2010, NEC Electronics Corporation merged with Renesas Technology
Corporation, and Renesas Electronics Corporation took over all the business of both
companies. Therefore, although the old company name remains in this document, it is a valid
Renesas Electronics document. We appreciate your understanding.
Renesas Electronics website: http://www.renesas.com
April 1st, 2010
Renesas Electronics Corporation
Issued by: Renesas Electronics Corporation (http://www.renesas.com)
Send any inquiries to http://www.renesas.com/inquiry.
Notice
1.
2.
3.
4.
5.
6.
7.
All information included in this document is current as of the date this document is issued. Such information, however, is
subject to change without any prior notice. Before purchasing or using any Renesas Electronics products listed herein, please
confirm the latest product information with a Renesas Electronics sales office. Also, please pay regular and careful attention to
additional and different information to be disclosed by Renesas Electronics such as that disclosed through our website.
Renesas Electronics does not assume any liability for infringement of patents, copyrights, or other intellectual property rights
of third parties by or arising from the use of Renesas Electronics products or technical information described in this document.
No license, express, implied or otherwise, is granted hereby under any patents, copyrights or other intellectual property rights
of Renesas Electronics or others.
You should not alter, modify, copy, or otherwise misappropriate any Renesas Electronics product, whether in whole or in part.
Descriptions of circuits, software and other related information in this document are provided only to illustrate the operation of
semiconductor products and application examples. You are fully responsible for the incorporation of these circuits, software,
and information in the design of your equipment. Renesas Electronics assumes no responsibility for any losses incurred by
you or third parties arising from the use of these circuits, software, or information.
When exporting the products or technology described in this document, you should comply with the applicable export control
laws and regulations and follow the procedures required by such laws and regulations. You should not use Renesas
Electronics products or the technology described in this document for any purpose relating to military applications or use by
the military, including but not limited to the development of weapons of mass destruction. Renesas Electronics products and
technology may not be used for or incorporated into any products or systems whose manufacture, use, or sale is prohibited
under any applicable domestic or foreign laws or regulations.
Renesas Electronics has used reasonable care in preparing the information included in this document, but Renesas Electronics
does not warrant that such information is error free. Renesas Electronics assumes no liability whatsoever for any damages
incurred by you resulting from errors in or omissions from the information included herein.
Renesas Electronics products are classified according to the following three quality grades: “Standard”, “High Quality”, and
“Specific”. The recommended applications for each Renesas Electronics product depends on the product’s quality grade, as
indicated below. You must check the quality grade of each Renesas Electronics product before using it in a particular
application. You may not use any Renesas Electronics product for any application categorized as “Specific” without the prior
written consent of Renesas Electronics. Further, you may not use any Renesas Electronics product for any application for
which it is not intended without the prior written consent of Renesas Electronics. Renesas Electronics shall not be in any way
liable for any damages or losses incurred by you or third parties arising from the use of any Renesas Electronics product for an
application categorized as “Specific” or for which the product is not intended where you have failed to obtain the prior written
consent of Renesas Electronics. The quality grade of each Renesas Electronics product is “Standard” unless otherwise
expressly specified in a Renesas Electronics data sheets or data books, etc.
“Standard”:
8.
9.
10.
11.
12.
Computers; office equipment; communications equipment; test and measurement equipment; audio and visual
equipment; home electronic appliances; machine tools; personal electronic equipment; and industrial robots.
“High Quality”: Transportation equipment (automobiles, trains, ships, etc.); traffic control systems; anti-disaster systems; anticrime systems; safety equipment; and medical equipment not specifically designed for life support.
“Specific”:
Aircraft; aerospace equipment; submersible repeaters; nuclear reactor control systems; medical equipment or
systems for life support (e.g. artificial life support devices or systems), surgical implantations, or healthcare
intervention (e.g. excision, etc.), and any other applications or purposes that pose a direct threat to human life.
You should use the Renesas Electronics products described in this document within the range specified by Renesas Electronics,
especially with respect to the maximum rating, operating supply voltage range, movement power voltage range, heat radiation
characteristics, installation and other product characteristics. Renesas Electronics shall have no liability for malfunctions or
damages arising out of the use of Renesas Electronics products beyond such specified ranges.
Although Renesas Electronics endeavors to improve the quality and reliability of its products, semiconductor products have
specific characteristics such as the occurrence of failure at a certain rate and malfunctions under certain use conditions. Further,
Renesas Electronics products are not subject to radiation resistance design. Please be sure to implement safety measures to
guard them against the possibility of physical injury, and injury or damage caused by fire in the event of the failure of a
Renesas Electronics product, such as safety design for hardware and software including but not limited to redundancy, fire
control and malfunction prevention, appropriate treatment for aging degradation or any other appropriate measures. Because
the evaluation of microcomputer software alone is very difficult, please evaluate the safety of the final products or system
manufactured by you.
Please contact a Renesas Electronics sales office for details as to environmental matters such as the environmental
compatibility of each Renesas Electronics product. Please use Renesas Electronics products in compliance with all applicable
laws and regulations that regulate the inclusion or use of controlled substances, including without limitation, the EU RoHS
Directive. Renesas Electronics assumes no liability for damages or losses occurring as a result of your noncompliance with
applicable laws and regulations.
This document may not be reproduced or duplicated, in any form, in whole or in part, without prior written consent of Renesas
Electronics.
Please contact a Renesas Electronics sales office if you have any questions regarding the information contained in this
document or Renesas Electronics products, or if you have any other inquiries.
(Note 1) “Renesas Electronics” as used in this document means Renesas Electronics Corporation and also includes its majorityowned subsidiaries.
(Note 2) “Renesas Electronics product(s)” means any product developed or manufactured by or for Renesas Electronics.
User’s Manual
RX850 Pro Ver. 3.21
Real-Time Operating System
Task Debugger
Target Tool
Task Debugger Ver.3.20 for RX850 Pro
Document No. U17422EJ2V0UM00 (2nd edition)
Date Published July 2006 CP(K)
© NEC Electronics Corporation 2005
Printed in Japan
[MEMO]
2
User’s Manual U17422EJ2V0UM
Windows, Windows NT, and Windows XP are either registered trademarks or trademarks of Microsoft
Corporation in the United States and/or other countries.
Pentium is a trademark of Intel Corporation.
Green Hills Software is a trademark of Green Hills Software, Inc.
User’s Manual U17422EJ2V0UM
3
• The information in this document is current as of July, 2006. The information is subject to change
without notice. For actual design-in, refer to the latest publications of NEC Electronics data sheets or
data books, etc., for the most up-to-date specifications of NEC Electronics products. Not all
products and/or types are available in every country. Please check with an NEC Electronics sales
representative for availability and additional information.
• No part of this document may be copied or reproduced in any form or by any means without the prior
written consent of NEC Electronics. NEC Electronics assumes no responsibility for any errors that may
appear in this document.
• NEC Electronics does not assume any liability for infringement of patents, copyrights or other intellectual
property rights of third parties by or arising from the use of NEC Electronics products listed in this document
or any other liability arising from the use of such products. No license, express, implied or otherwise, is
granted under any patents, copyrights or other intellectual property rights of NEC Electronics or others.
• Descriptions of circuits, software and other related information in this document are provided for illustrative
purposes in semiconductor product operation and application examples. The incorporation of these
circuits, software and information in the design of a customer's equipment shall be done under the full
responsibility of the customer. NEC Electronics assumes no responsibility for any losses incurred by
customers or third parties arising from the use of these circuits, software and information.
• While NEC Electronics endeavors to enhance the quality, reliability and safety of NEC Electronics products,
customers agree and acknowledge that the possibility of defects thereof cannot be eliminated entirely. To
minimize risks of damage to property or injury (including death) to persons arising from defects in NEC
Electronics products, customers must incorporate sufficient safety measures in their design, such as
redundancy, fire-containment and anti-failure features.
• NEC Electronics products are classified into the following three quality grades: "Standard", "Special" and
"Specific".
The "Specific" quality grade applies only to NEC Electronics products developed based on a customerdesignated "quality assurance program" for a specific application. The recommended applications of an NEC
Electronics product depend on its quality grade, as indicated below. Customers must check the quality grade of
each NEC Electronics product before using it in a particular application.
"Standard": Computers, office equipment, communications equipment, test and measurement equipment, audio
and visual equipment, home electronic appliances, machine tools, personal electronic equipment
and industrial robots.
"Special": Transportation equipment (automobiles, trains, ships, etc.), traffic control systems, anti-disaster
systems, anti-crime systems, safety equipment and medical equipment (not specifically designed
for life support).
"Specific": Aircraft, aerospace equipment, submersible repeaters, nuclear reactor control systems, life
support systems and medical equipment for life support, etc.
The quality grade of NEC Electronics products is "Standard" unless otherwise expressly specified in NEC
Electronics data sheets or data books, etc. If customers wish to use NEC Electronics products in applications
not intended by NEC Electronics, they must contact an NEC Electronics sales representative in advance to
determine NEC Electronics' willingness to support a given application.
(Note)
(1) "NEC Electronics" as used in this statement means NEC Electronics Corporation and also includes its
majority-owned subsidiaries.
(2) "NEC Electronics products" means any product developed or manufactured by or for NEC Electronics (as
defined above).
M8E 02. 11-1
4
User’s Manual U17422EJ2V0UM
[MEMO]
User’s Manual U17422EJ2V0UM
5
[MEMO]
6
User’s Manual U17422EJ2V0UM
INTRODUCTION
Readers
This manual is intended for users who design and develop application systems using
V850 microcontrollers products.
Purpose
This manual is intended for users to understand the functions of the Task debugger
Ver.3.20 for RX850 Pro described the organization listed below.
Organization
This manual consists of the following major sections.
• General
• Installation
• Starting and exiting
• Window reference
• Error messages
• Notes on debugging
How to read this manual
It is assumed that the readers of this manual have general knowledge in the fields of
electrical engineering, logic circuits, microcontrollers, C language, and assemblers.
To understand the hardware functions of the V850 microcontrollers
→ Refer to the User’s Manual Hardware of each product.
To understand the instruction functions of the V850 microcontrollers
→ Refer to the V850ES Architecture User’s Manual (U15943E) or
V850E1 Architecture User’s Manual (U14559E).
Conventions
Data significance:
Higher digits on the left and lower digits on the right
Note:
Footnote for item marked with Note in the text
Caution:
Information requiring particular attention
Remark:
Supplementary information
Numerical representation: Binary...XXXX or XXXXB
Decimal...XXXX
Hexadecimal...0xXXXX
Prefixes indicating power of 2 (address space and memory capacity):
K (kilo)
210 = 1024
M (mega)
220 = 10242
User’s Manual U17422EJ2V0UM
7
Related Documents
Read this manual together with the following documents.
The related documents indicated in this publication may include preliminary versions.
However, preliminary versions are not marked as such.
Documents related to development tools (user’s manuals)
Document Name
CA850 Ver. 3.00 C Compiler Package
Document Number
Operation
U17293E
C Language
U17291E
Assembly Language
U17292E
Link Directives
U17294E
ID850 Ver. 3.00 Integrated Debugger
Operation
U17358E
ID850NW Ver. 3.00, 3.10 Integrated Debugger
Operation
U17369E
ID850NWC Ver. 2.51 Integrated Debugger
Operation
U16525E
ID850QB Ver. 3.20 Integrated Debugger
Operation
U17964E
SM+ System Simulator
Operation
U18010E
User Open Interface
U18212E
SM850 Ver. 2.50 System Simulator
Operation
U16218E
SM850 Ver. 2.00 or later System Simulator
External Part User Open Interface Specifications
U14873E
RX850 Pro Ver. 3.21 Real-Time OS
Basics
U18165E
In-Structure
U18164E
Task Debugger
This manual
AZ850 Ver. 3.30 System Performance Analyzer
U17423E
PG-FP4 Flash Memory Programmer
U15260E
TW850 Ver. 2.00 Performance Analysis Tuning Tool
U17421E
PM+ Ver. 6.20 Project Manager
U17990E
8
User’s Manual U17422EJ2V0UM
CONTENTS
CHAPTER 1 GENERAL ... 13
1. 1 Overview ... 13
1. 2 System Configuration ... 13
1. 3 Operating Environment ... 14
CHAPTER 2 INSTALLATION ... 15
2. 1 Installing RD850 Pro ... 15
2. 2 Folder Configuration ... 15
2. 3 Uninstalling RD850 Pro
... 15
CHAPTER 3 STARTING AND EXITING ... 16
3. 1 Starting ... 16
3. 2 Exiting ... 16
CHAPTER 4 WINDOW REFERENCE ... 17
4. 1 Explanation of RD850 Pro Window’s Each Area ... 17
4. 1. 1 Resource selection buttons ... 18
4. 1. 2 Resource list display area ... 18
4. 1. 3 Detailed display area ... 18
4. 1. 4 HLD check box ... 18
4. 1. 5 Title bar ... 18
4. 1. 6 Menu bar ... 19
4. 2 Explanation of Display Contents ... 20
4. 2. 1 Task information display ... 20
4. 2. 2 Event flag information display ... 23
4. 2. 3 Semaphore information display ... 24
4. 2. 4 Mailbox information display ... 25
4. 2. 5 Variable length memory pool information display ... 27
4. 2. 6 Cyclic startup handler information display ... 28
4. 2. 7 Queue information display ... 29
4. 2. 8 Operating system management table information display ... 31
CHAPTER 5 ERROR MESSAGES ... 33
5. 1 Description of Error Messages ... 33
User’s Manual U17422EJ2V0UM
9
CHAPTER 6 NOTES ON DEBUGGING ... 34
6. 1 Next-Step Execution ... 34
INDEX ... 35
10
User’s Manual U17422EJ2V0UM
LIST OF FIGURES
Figure No.
Title and Page
1-1
System Configuration ... 13
2-1
Folder Configuration ... 15
3-1
RD850 Pro Startup Screen ... 16
4-1
Display Example of the RD850 Pro Window ... 17
4-2
Example of Task Information Display ... 20
4-3
Example of Event Flag Information Display ... 23
4-4
Example of Semaphore Information Display ... 24
4-5
Example of Mailbox Information Display : 1 ... 25
4-6
Example of Mailbox Information Display : 2 ... 25
4-7
Example of Variable Length Memory Pool Information Display ... 27
4-8
Example of Cyclic Startup Handler Information Display ... 28
4-9
Example of Queue Information Display : Timer Queue ... 29
4-10
Example of Queue Information Display : Ready Queue ... 29
4-11
Example of Operating System Management Table Information Display ... 31
User’s Manual U17422EJ2V0UM
11
LIST OF TABLES
Table No.
Title and Page
4-1
Resource Selection Buttons ... 18
4-2
Resource List Display Area : Task Information ... 20
4-3
Detailed Display Area : Task Information ... 21
4-4
Statuses of Tasks ... 22
4-5
Additional Task Information ... 22
4-6
Resource List Display Area : Event Flag Information ... 23
4-7
Detailed Display Area : Event Flag Information ... 23
4-8
Resource List Display Area : Semaphore Information ... 24
4-9
Detailed Display Area : Semaphore Information ... 24
4-10
Resource List Display Area : Mailbox Information ... 25
4-11
Detailed Display Area : Mailbox Information ... 26
4-12
Resource List Display Area : Variable Length Memory Pool Information ... 27
4-13
Detailed Display Area : Variable Length Memory Pool Information ... 27
4-14
Resource List Display Area : Cyclic Startup Handler Information ... 28
4-15
Detailed Display Area : Cyclic Startup Handler Information ... 28
4-16
Resource List Display Area : Queue Information ... 29
4-17
Detailed Display Area : Timer Queue Information ... 30
4-18
Detailed Display Area : Ready Queue Information ... 30
4-19
Detailed Display Area : Operating System Management Table Information ... 32
12
User’s Manual U17422EJ2V0UM
CHAPTER 1 GENERAL
CHAPTER 1
GENERAL
1. 1 Overview
The RD850 Pro (Task Debugger for RX850 Pro is referred to as RD850 Pro in this user’s manual) connects with a
debugger using TIP (Tool Interface Protocol), and provides powerful debugging functions for a application program in
which the real-time OS (RX850 Pro) is embedded.
The RD850 Pro provides the following functions.
- The real-time OS resource display function
- The real-time OS status change function
This version of the RX850 Pro dose not support this function.
1. 2 System Configuration
The RD850 Pro connects with the debugger using TIP and extends the debugger functions.
The system configuration of the RD850 Pro is as follows:
Figure 1-1 System Configuration
Host machine
Debugger
RD850 Pro
TIP
Target system
- In-circuit emulator
- ROM emulator
- ROM monitor
etc.
Real-time OS
User’s Manual U17422EJ2V0UM
Compiler
13
CHAPTER 1 GENERAL
1. 3 Operating Environment
The RD850 Pro requires an environment in which a debugger supporting TIP is running. The RD850 Pro cannot be
used just on its own.
(1) Host machine
CPU
Intel PentiumTM II 400 MHz or faster
Memory
256 Mbyte or more
OS
Windows® 98, Windows 2000, Windows NT4.0 (Service Pack5 or later), Windows Me,
Windows XP Home Edition, Windows XP Professional
[Caution] It is recommended that the newest Service Pack be installed in any of the above OSs.
(2) Software
- Debugger
Debugger supporting TIP (SM850 (from NEC Electronics), etc.)
- Real-time OS
RX850 Pro V3.20 or later (from NEC Electronics)
- Compiler
CA850 (from NEC Electronics)
CCV850/CCV850E (from Green Hills® Software, Inc.,USA)
14
User’s Manual U17422EJ2V0UM
CHAPTER 2 INSTALLATION
CHAPTER 2
INSTALLATION
2. 1 Installing RD850 Pro
The RD850 Pro is included with the real-time OS package (RX850 Pro). When the RX850 Pro is installed, the
RD850 Pro can be also installed if necessary, as it is supplied in the same package.
For the details on how to install the RX850 Pro, refer to the RX850 Pro user's manual.
2. 2 Folder Configuration
After installing the RD850 Pro the configuration of the folders related to the RD850 Pro is as follows:
Figure 2-1 Folder Configuration
Install folder (default: C:\Program Files\NEC Electronics Tools\RD850 Pro\Vx.xx)
bin
Execution files, DLL files, resource files, etc.
lib
Liraly files for tcl/tk
doc
Document-related files (*.pdf/*.txt)
hlp
Help file (*.chm)
A shortcut for the RD850 Pro (default: [Program] -> [NEC Electronics Tools] -> [RD850 Pro] -> [Vx.xx] -> [RD850
Pro Vx.xx]) is automatically added to the Windows start menu.
2. 3 Uninstalling RD850 Pro
Uninstall the RD850 Pro with the following procedure.
(1) Start up Windows.
(2) Select "Add/Remove Programs" ("Add or Remove Programs" in the case of Windows XP) from the control
panel.
(3) Select items to be uninstalled.
- RD850 Pro V850 Task Debugger Vx.xxx
- RD850 Pro (Vx.xxx) documents
(4) Perform uninstallation according to the message displayed.
User’s Manual U17422EJ2V0UM
15
CHAPTER 3 STARTING AND EXITING
CHAPTER 3
STARTING AND EXITING
3. 1 Starting
The RD850 Pro cannot be used just on its own. Since the RD850 Pro operates by communicating with and obtaining information from a debugger, the debugger must operate at the same time. For the operation of the debugger,
refer to the user's manual of the debugger.
The RD850 Pro is described using the Tcl/Tk script language. Therefore, RD850 Pro itself is not an execution file.
Moreover, since the RD850 Pro operates while communicating with the debugger, it requires a Tcl/Tk that includes
a communication mechanism. This expanded Tcl/Tk is called wishtip (wishtip.exe). The RD850 Pro is executed by
being interpreted with a wishtip.
To start the RD850 Pro, use either of the following:
(1) Startup using startup parameter of wishtip
(2) Double clicking icon after linking with wishtip
The operation is the same with either of theses startup methods, but method (2) is recommended because it is much
simpler to use.
For the linking method with wishtip, refer to the Windows manual.
The following window will be displayed after the RD850 Pro is started.
Figure 3-1 RD850 Pro Startup Screen
3. 2 Exiting
To exit the RD850 Pro, select [File] menu -> [quit] on the RD850 Pro window.
16
User’s Manual U17422EJ2V0UM
CHAPTER 4 WINDOW REFERENCE
CHAPTER 4
WINDOW REFERENCE
4. 1 Explanation of RD850 Pro Window’s Each Area
The RD850 Pro window is one shown below.
For details on the function of each area, refer to the following.
Figure 4-1 Display Example of the RD850 Pro Window
Resource selection buttons
HLD check box
Title bar
Menu bar
Resource list display area
Detailed display area
User’s Manual U17422EJ2V0UM
17
CHAPTER 4 WINDOW REFERENCE
4. 1. 1 Resource selection buttons
This button is used to select the resource to be displayed on the Resource list display area.
By clicking the button, the list of information of all the resources generated/registered within the selected resource is
displayed on the Resource list display area.
Table 4-1 Resource Selection Buttons
Button
Function
[TSK]
Displays task information.
[EVF]
Displays event flag information.
[SEM]
Displays semaphore information.
[MBX]
Displays mailbox information.
[MPL]
Displays variable length memory pool information.
[CYC]
Displays cyclic startup handler information.
[QUE]
Displays queue (timer queue or ready queue) information.
[SBT]
Displays operating system management table information.
4. 1. 2 Resource list display area
This area is used to display the list of the resource selected with the Resource selection buttons. All of the generated/registered resources are displayed in the list.
For details on the contents of this area, refer to the "4. 2 Explanation of Display Contents".
[Caution] To display the resource information, the following conditions are required.
• A load module linking with the RX850 Pro must be loaded to the debugger.
• The RX850 Pro system initialization processing must be completed. (The control must be transferred
to a task which is the first to operate).
The operation is not guaranteed if the Resource selection buttons is clicked while the above conditions are not
satisfied.
4. 1. 3 Detailed display area
This area is used to display the detailed information of a resource selected with the Resource list display area.
For details on the contents of this area, refer to the "4. 2 Explanation of Display Contents".
4. 1. 4 HLD check box
This box is used to fix the status (hold status) currently displayed.
When this check box is checked, the display information is not updated until the check box is unchecked, regardless
of whether program execution or breaks occur thereafter. This check box is not checked in the default condition.
By using this function, statuses at different times can easily be compared by starting up several RD850 Pro.
4. 1. 5 Title bar
The title bar shows the type (task, event flag, etc.) of resource currently selected. The title format is as follows:
- RD850 Pro [Resource Type ]
18
User’s Manual U17422EJ2V0UM
CHAPTER 4 WINDOW REFERENCE
4. 1. 6 Menu bar
(1) [File] menu
[Quit]
Terminates the RD850 Pro.
(2) [View] menu
[Task]
Displays task information.
[Eventflag]
Displays event flag information.
[Semaphore]
Displays semaphore information.
[Mailbox]
Displays mailbox information.
[Variable-size memorypool]
Displays variable length memory pool information.
[Cyclic handler]
Display cyclic startup handler information.
[System queue]
Displays queue (timer queue or ready queue) information.
[System base table]
Displays operating system management table information.
(3) [Help] menu
[Contents]
Opens the help window for the RD850 Pro.
[About RD850 Pro]
Displays the version information of the RD850 Pro.
User’s Manual U17422EJ2V0UM
19
CHAPTER 4 WINDOW REFERENCE
4. 2 Explanation of Display Contents
This section is described the contents of the resource information selected with the Resource selection buttons.
4. 2. 1 Task information display
The following contents are displayed in the Resource list display area and the Detailed display area.
Figure 4-2 Example of Task Information Display
Table 4-2 Resource List Display Area : Task Information
Item
Contents
1st item
Task ID
2nd item
Task symbol [Note]
3rd item
Current task priority
4th item
Task status (refer to Table 4-4)
[Note] A symbol of startup address is displayed as a symbol, but if symbol information dose not exist, the startup
address is displayed in hexadecimal notation.
[Remark] Tasks are displayed in the order of the ID number.
20
User’s Manual U17422EJ2V0UM
CHAPTER 4 WINDOW REFERENCE
Table 4-3 Detailed Display Area : Task Information
Item
Contents
name
Task symbol [Note]
tskid
Task ID
entry
Task start address
- If there is debug information: File name #line number (symbol [Note])
[Remark] The task source can be opened in the Source Window of the debugger by doubleclicking this line. Refer to the "Task source program display".
sts
Task status (refer to Table 4-4)
pri
Priority
suscnt
Suspend count
wupcnt
Startup request count
pc
Current PC
If the symbol information in the RD850 Pro is not obtained, this will not be displayed. The display
format is the same as the [entry] line.
[Remark] The task source can be opened in the Source Window of the debugger by doubleclicking this line. Refer to the "Task source program display".
stksz
Task stack size and task secured area name
SPOL0 system memory area 0
SPOL1 system memory area 1
stkptr
Task stack pointer
lang
Task language (TA_ASM: Assembly language / TA_HLNG: C language)
keyid
Key ID value
If key ID is not specified, "(not used)" is displayed.
iniintr
Task interrupt state at startup (TA_DISINT: Disables all interrupt / TA_ENAINT: Enables all
interrupt)
gp
Task inherent gp value used during task generation
If there is no inherent gp specification and the value is not used, "(not used)" is indicated following
the label.
tp
Task inherent tp value used during task generation
If there is no inherent tp specification and the value is not used, "(not used)" is indicated following
the label.
[Note] A symbol of startup address is displayed as a symbol, but if symbol information dose not exist, the startup
address is displayed in hexadecimal notation.
User’s Manual U17422EJ2V0UM
21
CHAPTER 4 WINDOW REFERENCE
The statuses of the tasks are as follows:
Table 4-4 Statuses of Tasks
Status
Description
RUN
Execution status
RDY
Execution enabled status
DMT
Halt status
SUS
Suspend status
SLP
Startup wait status
DLY
Time limit wait status
EVF
Event flag wait status
SEM
Semaphore wait status
MBX
Message wait status
MPL
Variable length memory block wait status
There may be several of the above-described task statuses. In this case, these statuses are displayed separated by
"|".
The following information additional to the status is displayed depending on a task status.
Table 4-5 Additional Task Information
Status
Description
TIM
Wait status with time limit
PRI
Wait status of queue processed according to the priority
Moreover, if a task is in the wait status for resources (event flag, semaphore, mailbox, variable length memory pool),
the ID of these resources are displayed in addition to the status.
- Task source program display
By double-clicking the [entry] line on the Detailed display area, the task source can be opened in the Source
Window of the debugger, and by double-clicking the [pc] line, the task source at the pc location can be opened, if
there is the debug information.
The Assembler Window of the debugger can be opened if there is no debug information.
22
User’s Manual U17422EJ2V0UM
CHAPTER 4 WINDOW REFERENCE
4. 2. 2 Event flag information display
The following contents are displayed in the Resource list display area and the Detailed display area.
Figure 4-3 Example of Event Flag Information Display
Table 4-6 Resource List Display Area : Event Flag Information
Item
Contents
1st item
Event flag ID
2nd item
Existence of wait task (TSK: Wait task / NON: No wait task )
3rd item
Current bit pattern
Table 4-7 Detailed Display Area : Event Flag Information
Item
Contents
evfid
Event flag ID
atr
Wait attribute of multiple tasks (TA_WMUL: Multiple task wait / TA_WSGL: 1 task wait)
pattern
Current bit pattern
wait tsk
This item is displayed when a task waiting for an event flag exists.
name
Wait task symbol
id
Wait task ID
ptn
Wait pattern
opt
Wait option (TWF_ORW: OR wait / TWF_ANDW: AND wait)
clr
Existence of clear specification (ON: Clear specification / OFF: No clear specification)
User’s Manual U17422EJ2V0UM
23
CHAPTER 4 WINDOW REFERENCE
4. 2. 3 Semaphore information display
The following contents are displayed in the Resource list display area and the Detailed display area.
Figure 4-4 Example of Semaphore Information Display
Table 4-8 Resource List Display Area : Semaphore Information
Item
Contents
1st item
Semaphore ID
2nd item
Existence of wait task (TSK: Wait task / NON: No wait task )
3rd item
Current resource count
Table 4-9 Detailed Display Area : Semaphore Information
Item
24
Contents
semid
Semaphore ID
tskopt
Queuing method of task (TA_TFIFO: According to FIFO : TA_TPRI: According to priority)
count
Current resource count
maxcnt
Maximum resource count
wait tsk
This item is displayed when a task waiting for a semaphore exists.
name
Wait task symbol
id
Wait task ID
User’s Manual U17422EJ2V0UM
CHAPTER 4 WINDOW REFERENCE
4. 2. 4 Mailbox information display
The following contents are displayed in the Resource list display area and the Detailed display area.
Figure 4-5 Example of Mailbox Information Display : 1
Figure 4-6 Example of Mailbox Information Display : 2
Table 4-10 Resource List Display Area : Mailbox Information
Item
Contents
1st item
Mailbox ID
2nd item
Existence of wait task (TSK: Wait task / MSG: Receive wait message / NON: No wait task or no
receive wait message)
User’s Manual U17422EJ2V0UM
25
CHAPTER 4 WINDOW REFERENCE
Table 4-11 Detailed Display Area : Mailbox Information
Item
Contents
mbxid
Mailbox ID
tskopt
Queuing method of task (TA_TFIFO: According to FIFO : TA_TPRI: According to priority)
msgopt
Message queuing method (TA_MFIFO: According to FIFO : TA_MPRI: According to priority)
wait tsk
This item is displayed when a task waiting for a message exists.
message
name
Wait task symbol
id
Wait task ID
This item is displayed when a message exists.
addr
Message address
[Remark] The memory list can be opened in the Memory Window of the debugger
by double-clicking this line. Refer to the "Message memory display".
- Message memory display
The Memory Window of the debugger can be opened by double-clicking the [adr] line within the [message] item
on the Detailed display area.
26
User’s Manual U17422EJ2V0UM
CHAPTER 4 WINDOW REFERENCE
4. 2. 5 Variable length memory pool information display
The following contents are displayed in the Resource list display area and the Detailed display area.
Figure 4-7 Example of Variable Length Memory Pool Information Display
Table 4-12 Resource List Display Area : Variable Length Memory Pool Information
Item
Contents
1st item
Variable length memory pool ID
2nd item
Existence of wait task (TSK: Wait task / NON: No wait task )
Table 4-13 Detailed Display Area : Variable Length Memory Pool Information
Item
Contents
mplid
Variable length memory pool ID
tskopt
Queuing method of task (TA_TFIFO: According to FIFO : TA_TPRI: According to priority)
topadr
Memory pool start address
size
Memory pool size (Unit: byte)
align4 (user specified size +8) is displayed
free
Total free memory size (Unit: byte)
max
Maximum securable memory block size (Unit: byte)
wait tsk
This item is displayed when a task waiting for a memory block exists.
name
Wait task symbol
id
Wait task ID
size
Wait block size (Unit: byte)
(The result of adding 4-byte required by the RX850 Pro to the value requested by the
system call is displayed.)
User’s Manual U17422EJ2V0UM
27
CHAPTER 4 WINDOW REFERENCE
4. 2. 6 Cyclic startup handler information display
The following contents are displayed in the Resource list display area and the Detailed display area.
Figure 4-8 Example of Cyclic Startup Handler Information Display
Table 4-14 Resource List Display Area : Cyclic Startup Handler Information
Item
Contents
1st item
Cyclic startup handler ID
2nd item
Cyclic startup handler symbol [Note]
3rd item
Activation status (TCY_ON: Enables startup / TCY_OFF: Disables startup)
[Note] A symbol of startup address is displayed as a symbol, but if symbol information dose not exist, the startup
address is displayed in hexadecimal notation.
Table 4-15 Detailed Display Area : Cyclic Startup Handler Information
Item
Contents
name
Cyclic startup handler symbol [Note]
cycno
Cyclic startup handler number
entry
Cyclic startup handler start address
- If there is debug information: File name #line number (symbol [Note])
[Remark] The task source can be opened in the Source Window of the debugger by doubleclicking this line. Refer to the "Cyclic startup handler source display".
intvl
Cyclic startup interval
activate
Activation status (TCY_ON: Enables startup / TCY_OFF: Disables startup)
[Note] A symbol of startup address is displayed as a symbol, but if symbol information dose not exist, the startup
address is displayed in hexadecimal notation.
- Cyclic startup handler source display
By double-clicking the [entry] line on the Detailed display area, the Source Window of the debugger can be
opened if there is debug information, and the Assembler Window of the debugger can be opened if there is no
debug information.
28
User’s Manual U17422EJ2V0UM
CHAPTER 4 WINDOW REFERENCE
4. 2. 7 Queue information display
Queue information includes timer queue information and ready queue information.
The following contents are displayed in the Resource list display area and the Detailed display area.
Figure 4-9 Example of Queue Information Display : Timer Queue
Figure 4-10 Example of Queue Information Display : Ready Queue
Table 4-16 Resource List Display Area : Queue Information
Item
Contents
1st item
Queue name (TimerQueue / ReadyQueue)
2nd item
Priority (None in the case of timer queue)
User’s Manual U17422EJ2V0UM
29
CHAPTER 4 WINDOW REFERENCE
Table 4-17 Detailed Display Area : Timer Queue Information
Selected Resource
Task
Cyclic startup handler
Item
Contents
name
Task symbol [Note]
id
Task ID
clk
Wait clock count
name
Cyclic startup handler name [Note]
no
Cyclic startup handler number
clk
Wait clock count
[Note] A symbol of startup address is displayed as a symbol, but if symbol information dose not exist, the startup
address is displayed in hexadecimal notation.
Table 4-18 Detailed Display Area : Ready Queue Information
Item
task
Contents
name
Task symbol [Note]
id
Task ID
[Note] A symbol of startup address is displayed as a symbol, but if symbol information dose not exist, the startup
address is displayed in hexadecimal notation.
30
User’s Manual U17422EJ2V0UM
CHAPTER 4 WINDOW REFERENCE
4. 2. 8 Operating system management table information display
"System Base Table" is displayed in the Resource list display area and the following contents are displayed in the
Detailed display area.
Figure 4-11 Example of Operating System Management Table Information Display
User’s Manual U17422EJ2V0UM
31
CHAPTER 4 WINDOW REFERENCE
Table 4-19 Detailed Display Area : Operating System Management Table Information
Item
Contents
system time
System time (Unit: basic clock cycle)
os nest
Nest count of system processing
int nest
Nest count of interrupt processing
dispatch
Dispatch restrain flag
enable: dispatch enable state
disable: dispatch disable state
int sp
interrupt stack pointer
The system fixed stack value that is when the control shifts from OS to indirectly startup interrupt
handler (initial stack value is used in case of multiple interrupts)
The stack pointer is placed where space for interrupt frames is reserved from [sys sp base].
sys sp base
Start address of interrupt stack pointer
interrupt
This item is displayed when a interrupt handler exists.
Int (interrupt factor number)_ent Start address of interrupt handler
- If there is debug information: File name #line number
(symbol [Note])
svc
Int (interrupt factor number)_gp
Interrupt handler inherent gp value used when registering the
handler (displayed when it is specified)
Int (interrupt factor number)_tp
Interrupt handler inherent tp value used when registering the
handler (displayed when it is specified)
This item is displayed when a expanded SVC handler exists.
svc (system call number)_ent
Start address of expanded SVC handler
- If there is debug information: File name #line number
(symbol [Note])
svc (system call number)_gp
Expanded SVC handler inherent gp value used when
registering the handler (displayed when it is specified)
svc (system call number)_tp
Expanded SVC handler inherent tp value used when
registering the handler (displayed when it is specified)
[Note] A symbol of startup address is displayed as a symbol, but if symbol information dose not exist, the startup
address is displayed in hexadecimal notation.
- Handler source display
By double-clicking the [int (interrupt factor number)_ent] or [svc (system call number)_ent] line on the Detailed
display area, the Source Window of the debugger can be opened if there is debug information, and the Assembler
Window of the debugger can be opened if there is no debug information.
32
User’s Manual U17422EJ2V0UM
CHAPTER 5 ERROR MESSAGES
CHAPTER 5
ERROR MESSAGES
5. 1 Description of Error Messages
1000:Not connect.
Displayed when the debugger is not connected. Start the debugger.
1100:Debugger running.
Displayed when the display resources are changed when the status is not the break status. Operate when in the
break status.
1200:RX not loaded.
The RX850 Pro is not loaded. Load the RX850 Pro.
1600:Maybe link is broken.
The queue search process ended abnormally due to a time out. The queue information may be destroyed.
User’s Manual U17422EJ2V0UM
33
CHAPTER 6 NOTES ON DEBUGGING
CHAPTER 6
NOTES ON DEBUGGING
This chapter describes cautions that apply to debugging a load module in which the RX850 Pro is embedded, using the
ID850 integrated debugger (including the RD850 Pro).
6. 1 Next-Step Execution
When debugging a load module in which the RX850 Pro is embedded, observe the following three points when executing the next step.
(1) Do not next-step execute ext_tsk.
Tasks which next-step executed (hereafter known as target tasks) simply terminate, and no break occurs.
Even if a break occurs, it may occur during processing after sta_tsk is issued for the next target task (or a task
sharing a stack with the target task).
Even if no break has occurred, it may be generated by selecting the [Execute] menu -> [Stop].
(2) Be careful with next-step execution of tasks for which ter_tsk can be performed.
If ter_tsk is performed during next-step execution, the target task simply terminates and no break occurs.
Even if a break occurs, it may occur during processing after sta_tsk is issued for the next target task (or a task
sharing a stack with the target task).
Even if no break has occurred, it may be generated by selecting the [Execute] menu -> [Stop].
(3) Next-step execution may not function appropriately during the RX850 Pro processing.
A break may occur inside a subroutine.
34
User’s Manual U17422EJ2V0UM
INDEX
INDEX
A
Mailbox ...
Activation status ...
25
Operating system management table ...
28
Queue ...
C
Semaphore ...
CA850 ...
Task ...
14
CCV850/CCV850E ...
D
Debugger ...
20
Resource list display area ...
18
Resource selection button ...
18
27
14
Detailed display area ...
S
18
Starting ...
E
16
Status of task ...
Error messages ...
Exiting ...
24
Variable length memory pool ...
14
31
29
33
22
System configuration ...
13
16
Expanded SVC handler ...
ext_tsk ...
T
32
Task source program display ...
34
H
HLD check box ...
Hold status ...
18
16
ter_tsk ...
34
The real-time OS resource display function ...
18
Host machine ...
Tcl/Tk ...
22
TIP ...
14
13
13
Title bar ...
18
Tool interface protocol ...
13
I
Installation ...
U
15
Integrated debugger ...
Interrupt handler ...
Uninstalling ...
34
15
32
V
M
Version information ...
Menu bar ...
19
19
W
N
wishtip ...
Next-step execution ...
34
Notes on debugging ...
34
16
O
Operating Environment ...
14
R
Real-time OS ...
14
Resource information
Cyclic startup handler ...
Event flag ...
28
23
User’s Manual U17422EJ2V0UM
35
For further information,
please contact:
NEC Electronics Corporation
1753, Shimonumabe, Nakahara-ku,
Kawasaki, Kanagawa 211-8668,
Japan
Tel: 044-435-5111
http://www.necel.com/
[America]
[Europe]
[Asia & Oceania]
NEC Electronics America, Inc.
2880 Scott Blvd.
Santa Clara, CA 95050-2554, U.S.A.
Tel: 408-588-6000
800-366-9782
http://www.am.necel.com/
NEC Electronics (Europe) GmbH
Arcadiastrasse 10
40472 Düsseldorf, Germany
Tel: 0211-65030
http://www.eu.necel.com/
NEC Electronics (China) Co., Ltd
7th Floor, Quantum Plaza, No. 27 ZhiChunLu Haidian
District, Beijing 100083, P.R.China
TEL: 010-8235-1155
http://www.cn.necel.com/
Hanover Office
Podbielski Strasse 166 B
30177 Hanover
Tel: 0 511 33 40 2-0
NEC Electronics Shanghai Ltd.
Room 2509-2510, Bank of China Tower,
200 Yincheng Road Central,
Pudong New Area, Shanghai P.R. China P.C:200120
Tel: 021-5888-5400
http://www.cn.necel.com/
Munich Office
Werner-Eckert-Strasse 9
81829 München
Tel: 0 89 92 10 03-0
Stuttgart Office
Industriestrasse 3
70565 Stuttgart
Tel: 0 711 99 01 0-0
United Kingdom Branch
Cygnus House, Sunrise Parkway
Linford Wood, Milton Keynes
MK14 6NP, U.K.
Tel: 01908-691-133
Succursale Française
9, rue Paul Dautier, B.P. 52180
78142 Velizy-Villacoublay Cédex
France
Tel: 01-3067-5800
Sucursal en España
Juan Esplandiu, 15
28007 Madrid, Spain
Tel: 091-504-2787
NEC Electronics Hong Kong Ltd.
12/F., Cityplaza 4,
12 Taikoo Wan Road, Hong Kong
Tel: 2886-9318
http://www.hk.necel.com/
Seoul Branch
11F., Samik Lavied’or Bldg., 720-2,
Yeoksam-Dong, Kangnam-Ku,
Seoul, 135-080, Korea
Tel: 02-558-3737
NEC Electronics Taiwan Ltd.
7F, No. 363 Fu Shing North Road
Taipei, Taiwan, R. O. C.
Tel: 02-2719-2377
NEC Electronics Singapore Pte. Ltd.
238A Thomson Road,
#12-08 Novena Square,
Singapore 307684
Tel: 6253-8311
http://www.sg.necel.com/
Tyskland Filial
Täby Centrum
Entrance S (7th floor)
18322 Täby, Sweden
Tel: 08 638 72 00
Filiale Italiana
Via Fabio Filzi, 25/A
20124 Milano, Italy
Tel: 02-667541
Branch The Netherlands
Limburglaan 5
5616 HR Eindhoven
The Netherlands
Tel: 040 265 40 10
G05.12A
Was this manual useful for you? yes no
Thank you for your participation!

* Your assessment is very important for improving the work of artificial intelligence, which forms the content of this project

Download PDF

advertisement