Manuals
/
Brands
/
Computer Equipment
/
Network Card
/
Renesas
/
Computer Equipment
/
Network Card
Renesas
M16C PC4701 user manual
1
1
294
294
Download
294 pages, 4.45 Mb
REJ10J1608-0100
User's Manual
M16C PC4701 Emulator Debugger V.1.03
Renesas Microcomputer Deve
lopment Environment System
Rev.1.00
Jul. 01, 2007
Contents
Main
Notes regarding these materials
Overview
Targ et Sy ste m
Supported CPU
Page
Setup of Debugger 1
1. Features 1
2. About the Emulator PC4701 11
3. Before starting the debugger 12
4. Preparation before Use 20
Tutorial 59
6. Tutorial 61
Reference 81
7. Windows/Dialogs 83
Page
8. Table of Script Commands 239
9. Writing Script Files 245
10. C/C++ Expressions 253
11. Display the Cause of the Program Stoppage 262 12. Attention 263
Page
Page
Page
1. Features
1.1 Real-Time RAM Monitor Function
1.1.1 RAM Monitor Area
1.1.2 Sampling Period
1.1.3 Related Windows
1.2 Break Functions
1.2.1 Software Breaks Function
1.2.2 Hardware Break
1.2.3 Protect Break
1.3 Real-Time Trace Function
1.3.1 Trace Area
1.3.2 Trace Condition Setting
1.3.3 Trace Data Write Condition
1.4 Time Measurement Function
1.4.1 The Measurement Condition
1.5 Coverage Function
1.5.1 Coverage Measurement Area
1.5.2 Related Windows
1.6 Real-Time OS Debugging Function
1.7 GUI Input/Output Function
2. About the Emulator PC4701
2.1 Communication methods
2.2 Function table
3. Before starting the debugger
3.1 Communication method by emulator
3.1.1 USB Interface
3.1.2 LAN Interface
3.1.3 LPT Interface
3.1.4 Proprietary Parallel Interface
3.2 Download of Firmware
3.3 Setting before emulator starts
3.3.1 USB communication
3.3.2 LAN communication 1
Page
3.3.3 LAN communication 2
3.3.4 Proprietary parallel communication
4. Preparation before Use
4.1 Workspaces, Projects, and Files
4.2 Starting the High-performance Embedded Workshop
4.2.1 Creating a New Workspace (Toolchain Used)
Page
Page
Page
Page
4.2.2 Creating a New Workspace (Toolchain Not Used)
Page
Page
Page
Page
4.3 Starting the Debugger
4.3.1 Connecting the Emulator
4.3.2 Ending the Emulator
5. Setup the Debugger
5.1 Init Dialog
5.1.1 MCU Tab
Page
Page
5.1.2 Debugging Information Tab
Page
5.1.3 F/W and Work Area Tab
5.1.4 Memory Extension Mode Tab
Page
Page
5.1.5 Clock Tab
5.1.6 Script Tab
5.2 Setting of the Communication Interface
5.2.1 Setting of the USB Interface
Page
5.2.3 Setting of the LAN Interface
Page
5.2.4 Setting of the Parallel Interface
5.2.5 Setting of the Serial Interface
5.3 Setup the Debugger for M32C
5.3.1 Emem Dialog
5.3.1.1.1. Select the Processor Mode
5.3.1.1.2. Inspecting the MCU status
5.3.1.2.1. Debug monitor's bank address settings
5.3.1.2.2. Automatic emulation memory allocation for the internal ROM
5.3.1.2.3. Emulation memory allocation for an extended area
Page
Page
5.5 Setup the Debugger for 740
5.5.1 Map Command
5.6 Method of making MCU file
5.6.1 Method of making MCU file (the M16C/R8C Debugger)
Page
Page
Page
Page
6. Tutorial
6.1 Introduction
6.2 Usage
6.2.1 Step1 : Starting the Debugger
6.2.2 Step2 : Checking the Operation of RAM
6.2.3 Step3 : Downloading the Tutorial Program
Page
6.2.4 Step4 : Setting a Breakpoint
6.2.5 Step5 : Executing the Program
Page
6.2.6 Step6 : Reviewing Breakpoints
6.2.7 Step7 : Viewing Register
6.2.8 Step8 : Viewing Memory
6.2.9 Step9 : Watching Variables
Page
6.2.10 Step10 : Stepping Through a Program
Page
Page
6.2.11 Step11 : Forced Breaking of Program Executions
6.2.12 Step12 : Displaying Local Variables
6.2.13 Step13 : Stack Trace Function
6.2.14 What Next?
Page
Page
7. Windows/Dialogs
7.1 RAM Monitor Window
Page
7.1.1 Extended Menus
7.1.2 Setting the RAM monitor area
7.2 ASM Watch Window
7.2.1 Extended Menus
7.3 C Watch Window
Page
7.3.1 Extended Menus
7.4 Coverage Window
7.4.1 Extended Menus
7.4.2 Refer to the Source Line/the Executed Address
7.5 Script Window
7.5.1 Extended Menus
7.6 S/W Break Point Setting Window
7.6.1 Command Button
7.6.2 Setting and Deleting a Break Points from Editor(Source) Window
7.7 H/W Break Point Setting Window
Page
Page
Page
Page
7.7.2 Specify the Combinatorial Condition
Page
7.7.5 Specify the Events (Instruction Fetch)
Page
Page
Page
7.7.6 Specify the Events (Memory Access)
7.7.6.1.1. Writing/Reading a Specified Address
Page
Page
Page
Page
Page
Page
Page
7.7.6.1.2. Reading/writing data to the specified address range
7.7.6.1.3. Reading/writing data to addresses outside the specified range
7.7.6.2.1. Writing/Reading a Specified Address
Page
Page
Page
Page
Page
7.7.6.2.2. Reading/writing data to the specified address range
7.7.6.2.3. Reading/writing data to addresses outside the specified range
7.7.6.3.1. Writing/Reading a Specified Address
Page
Page
7.7.6.3.2. Reading/writing data to the specified address range
7.7.6.3.3. Reading/writing data to addresses outside the specified range
7.7.7 Specify the Events (Bit Access)
7.7.7.1.1. Writing/Reading a Specified Bit Symbol
7.7.8 Specify the Events (Interrupt)
Page
Page
Page
Page
Page
Page
7.7.11 Specify the Process ID
Page
7.9 Trace Point Setting Window
7.9.1 Specify the Trace Event
Page
Page
7.9.2 Specify the Combinatorial Condition
Page
7.9.5 Specify the Trace Write Condition
7.9.6 Command Button
Page
7.9.14 Specify the write condition
Page
Page
Page
7.10 Time Measurement Window
7.10.1 Specify the Time Measurement Event
Page
Page
Page
Page
Page
7.10.9 Set the Measurement Condition
Page
Page
Page
7.11 Trace Window
7.11.1 Configuration of Bus Mode
Page
7.11.2 Configuration of Disassemble Mode
7.11.3 Configuration of Data Access Mode
7.11.4 Configuration of Source Mode
7.11.5 Extended Menus
Page
Page
Page
Page
7.11.8 Display of bus information on the 740 Debugger
7.12 Data Trace Window
7.12.1 Extended Menus
7.13 GUI I/O Window
7.13.1 Extended Menus
7.14 MR Window
Page
7.14.2 Display the Task Status
Page
Page
Page
7.14.3 Display the Ready Queue Status
7.14.4 Display the Timeout Queue Status
Page
7.14.5 Display the Event Flag Status
Page
7.14.6 Display the Semaphore Status
Page
7.14.7 Display the Mailbox Status
Page
7.14.8 Display the Data Queue Status
Page
7.14.9 Display the Cycle Handler Status
Page
7.14.10 Display the Alarm Handler Status
7.14.11 Display the Memory Pool Status
Page
7.14.12 Display the Task Context
Page
7.15 MR Trace Window
Page
7.15.1 Extended Menus
7.15.2 Refer the Execution History of Task(MRxx Window)
Page
7.15.2.4.1. Search the History of System Call Issue
7.15.2.4.2. Change the display magnification
7.15.2.4.3. Change the grid line display interval
7.15.2.4.4. Change the task display order
7.15.2.4.5. Display the specific task only
7.15.2.4.6. Change the display color
7.15.2.5.1. Move the Marker
7.16 MR Analyze Window
7.16.1 Configuration of CPU Occupancy Status Display Mode
7.16.2 Configuration of Ready State Duration Display Mode
7.16.3 Configuration of System Call History Display Mode
7.16.4 Extended Menus
7.16.5 Analyze the Execution History of Task
7.16.5.1.1. Refer the CPU Occupation State
Page
7.16.5.3.1. Extract the Issuance History
7.17 MR Task Pause Window
7.17.1 About Task Pause Function
7.17.2 Extended Menus
7.17.3 Pause the Specified Task
Page
Page
Page
Page
7.18 Task Trace Window
7.18.1 Extended Menus
7.18.2 Refer the Execution History of Task(Taskxx Window)
7.18.2.1.1. Set the Information of Realtime OS.
7.18.2.1.2. Select the Trace Range
7.18.2.1.3. Start the Target Program
7.18.2.2.1. Change the display magnification
7.18.2.2.2. Change the grid line display interval
7.18.2.2.3. Change the task display order
7.18.2.3.1. Move the Marker
7.19 Task Analyze Window
7.19.1 Extended Menus
7.19.2 Analyze the Execution History of Task
8. Table of Script Commands
Page
Page
Page
8.2 Table of Script Commands (alphabetical order)
Page
9. Writing Script Files
9.1 Structural Elements of a Script File
9.1.1 Script Command
9.1.2 Assign Statement
9.1.3 Conditional Statement
9.1.4 Loop Statement(while,endw) and Break Statement
9.1.5 Comment statements
9.2 Writing Expressions
9.2.1 Constants
9.2.2 Symbols and labels
9.2.3 Macro Variables
9.2.4 Register variables
9.2.5 Memory variables
9.2.6 Line Nos.
9.2.7 Character constants
9.2.8 Operators
10. C/C++ Expressions
10.1 Writing C/C++ Expressions
10.1.2 Scope Resolution
10.1.3 Mathematical Operators
10.1.4 Pointers
10.1.5 Reference
10.1.6 Sign Inversion
10.1.7 Member Reference Using Dot Operator
10.1.8 Member Reference Using Arrow
10.1.9 Pointers to Members
10.1.10 Parentheses
10.1.11 Arrays
10.1.12 Casting to Basic Types
10.1.13 Casting to typedef Types
10.1.14 Variable Name
10.1.15 Function Name
10.1.16 Character Constants
10.1.17 Character String Literals
10.2 Display Format of C/C++ Expressions
10.2.1 Enumeration Types
10.2.2 Basic Types
10.2.3 Pointer Types
10.2.4 Array Types
10.2.5 Function Types
10.2.6 Reference Types
10.2.7 Bit Field Types
10.2.8 When No C Symbol is Found
10.2.9 Syntax Errors
10.2.10 Structure and Union Types
11. Display the Cause of the Program Stoppage
12. Attention
12.1 Common Attention
12.1.1 File operation on Windows
12.1.2 Area where software breakpoint can be set
12.1.3 Get or set C variables
12.1.4 Function name in C++
12.1.5 Option settings for download modules
12.1.6 Debugging multi modules
12.1.7 Synchronized debugging
12.1.8 Down-load of Firmware
12.1.9 Restriction of LPT port
12.1.10 Notes for coverage function
12.1.11 Emulator reset switch
12.1.12 Debugging Resource on Emulator
12.2 Attention of the M32C Debugger
12.2.1 Stack area used by the emulator
12.2.2 Interrupt stack pointer when resetting the target program
12.2.3 Option of C Compiler/Assembler/Linker
12.2.4 Target MCU HOLD terminal
12.2.5 Hardware Event
12.2.6 Time Measurement Resource
12.2.7 CPU rewrite
12.2.8 MR STK script command
12.3 Attention of the M16C/R8C Debugger
12.3.1 Map of stack area used by the emulator
12.3.2 Options for compiler, assembler, and linker
12.3.3 TASKING C Compiler
12.3.4 Target MCU HOLD terminal
12.3.5 Hardware Event
12.3.6 Operating frequency of MCU
12.3.7 The correspondence OS version of task pause function
12.3.8 Memory Space Expansion
12.3.9 Watch dog timer
12.3.10 CPU rewrite
12.3.11 MR STK script command
12.4 Attention of the 740 Debugger
12.4.1 Setting of Memory Map
12.4.2 Emulation Pod M37515T-RPD
12.4.3 Stack area used by the emulator
12.4.4 Specify the Clock
12.4.8 Debugging in the 16-Timer functions
12.4.9 Hardware Event
12.4.10 Operating frequency of MCU
12.5 Option of C Compiler/Assembler/Linker
12.5.1 When Using NCxx
12.5.2 When Using the Assembler Package for 740 Family
Page
12.5.4 When Using the IAR C Compiler (ICC)
12.5.5 When Using the TASKING C Compiler (EDE)
12.5.6 When Using the TASKING C Compiler (CM)
12.5.7 When Using the IAR EC++ Compiler (EW)