Renesas PC7501 Manual do Utilizador

Consulte online ou descarregue Manual do Utilizador para Software Renesas PC7501. Renesas PC7501 User`s manual [en] [fr] Manual do Utilizador

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

Resumo do Conteúdo

Página 1 - User's Manual

REJ10J1607-0100 User's ManualM16C R8C PC7501 Emulator Debugger V.1.03Renesas Microcomputer Development Environment SystemRev.1.00 Jul. 01, 2007

Página 2

12.2.5 Hardware Event ...264 12.2.6 CPU rewrite

Página 3 - Supported CPU

7.4 Coverage Window The Coverage window allows you to reference the coverage measurement result of the functions of the target program downloaded.

Página 4

7Windows/Dialogs 91 7.4.1 Extended Menus This window has the following popup menus that can be brought up by right-clicking in the window. Menu Fu

Página 5 - Setup of Debugger 1

7.4.2 Refer to the Source Line/the Executed Address It is possible to refer in the Editor(Source) Window or Memory Window. 7.4.2.1 Refer in the Ed

Página 6 - Reference 77

7Windows/Dialogs 7.5 Script Window The Script Window displays the execution of text -format script commands and the results of that execution. Scri

Página 7

7.5.1 Extended Menus This window has the following popup menus that can be brought up by right-clicking in the window. Menu Function Open... Open

Página 8

7Windows/Dialogs 7.6 S/W Break Point Setting Window The S/W Break Point Setting window allows you to set software break points. Software breaks st

Página 9 - 12. Attention 258

7.6.1 Command Button The buttons on this window has the following meanings. Button Function Load... Load setting information from a file in which

Página 10

7Windows/Dialogs 7.6.2 Setting and Deleting a Break Points from Editor(Source) Window The area which can be set in the software breakpoint is differ

Página 11 - Setup of Debugger

7.7 H/W Break Point Setting Window The H/W Breakpoint Setting window is used to set hardware breakpoints for the Emulators. • The events listed

Página 12

7Windows/Dialogs 7.7.1.1 Specify the Break Event To set events, double-click to select the event you want to set from the event setting area of the

Página 13 - 1. Features

Setup of Debugger 1

Página 14 - 1.1.3 Related Windows

• When FETCH is selected Breaks for the instruction fetch. • When DATA ACCESS is selected Breaks for the memory access. 100

Página 15 - 1.2 Break Functions

7Windows/Dialogs • When BIT SYMBOL is selected Breaks for the bit access. • When INTERRUPT is selected Breaks for the interrupt occurrence or t

Página 16 - 1.2.2 Hardware Break

• When TRIGGER is selected Breaks for the status of signal input from external trace cable. 102

Página 17

7Windows/Dialogs 7.7.2 Specify the Combinatorial Condition To specify a combinatorial condition, specify the desired condition from the combinatoria

Página 18

7.7.3 Specify the Process ID By specifying a process ID, it is possible to detect only event establishment under specific conditions. Example:

Página 19 - 1.3 Real-Time Trace Function

7Windows/Dialogs 7.7.5 Specify the Events (Instruction Fetch) To specify an instruction fetch event, change the event select dialog box's Event

Página 20

7.7.5.2 Instruction Fetch of Specified Address Area(In) Set as below. Example) Instruction fetch at address 80000h to 80FFFh 106

Página 21

7Windows/Dialogs 7.7.5.3 Instruction Fetch of Specified Address Area(Out) Set as below. Example) Instruction fetch at any address other than the r

Página 22 - 1.5 Coverage Function

7.7.5.4 Entering/exiting to specified function Set as below. Example) Entering a break to function name "wait" Example) Exiting from

Página 23

7Windows/Dialogs 109 7.7.6 Specify the Events (Memory Access) To specify a memory access event, change the event select dialog box's Event Typ

Página 25 - 3.1.3 LPT Interface

7.7.6.1.1. Writing/Reading a Specified Address Set as below. Example) Writing to even address 400h 110

Página 26 - 3.2 Download of Firmware

7Windows/Dialogs Example) Writing byte length data 32h to even address 400h 111

Página 27 - 3.3.1 USB communication

Example) Writing byte length data 32h to odd address 401h Contents of settings vary with each product and bus width. (8 bits bus width) 112

Página 28 - 3.3.2 LAN communication

7Windows/Dialogs (16 bits bus width) 113

Página 29

Example) Writing word length data 1234h to even address 400h Contents of settings vary with each product and bus width. (8 bits bus width) Please s

Página 30 - 4. Preparation before Use

7Windows/Dialogs 2nd point 115

Página 31

(16 bits bus width) 116

Página 32

7Windows/Dialogs Example) Writing data 10h - 3Fh to even address 400h 117

Página 33

7.7.6.1.2. Reading/writing data to the specified address range Set as below. Example) Writing data to addresses ranging from 400h to 40Fh 118

Página 34

7Windows/Dialogs 7.7.6.1.3. Reading/writing data to addresses outside the specified range Set as below. Example) Writing data to addresses below 7F

Página 35

1 Features 1. Features 1.1 Real-Time RAM Monitor Function This function allows you to inspect changes of memory contents without impairing the realt

Página 36

7.7.6.2 Memory Access(The debugger for M16C/R8C) ATTENTION It is not detected that data access to the odd addresses in word-size access. 7.7.6.2

Página 37

7Windows/Dialogs Example) Writing byte length data 32h to even address 400h 121

Página 38

Example) Writing byte length data 32h to odd address 401h Contents of settings vary with each product and bus width. (8 bits bus width) 122

Página 39

7Windows/Dialogs (16 bits bus width) 123

Página 40

Example) Writing word length data 1234h to even address 400h Contents of settings vary with each product and bus width. (8 bits bus width) Please s

Página 41

7Windows/Dialogs 2nd point 125

Página 43 - 5. Setup the Debugger

7Windows/Dialogs Example) Writing data 10h - 3Fh to even address 400h 127

Página 44 - 5.1.1 MCU Tab

7.7.6.2.2. Reading/writing data to the specified address range Set as below. Example) Writing data to addresses ranging from 400h to 40Fh 1

Página 45

7Windows/Dialogs 7.7.6.2.3. Reading/writing data to addresses outside the specified range Set as below. Example) Writing data to addresses below 7F

Página 46

1.1.2 Sampling Period Sampling cycle means the display update interval. You can specify this function in any window which supports the RAM monitor.

Página 47

7.7.7 Specify the Events (Bit Access) To specify a bit access event, change the event select dialog box's Event Type to "BIT SYMBOL"

Página 48

7Windows/Dialogs 7.7.7.1.1. Writing/Reading a Specified Bit Symbol Set as below. Example) Writing "1" to bit symbol "bitsym"

Página 49 - 5.1.3 Emulator Tab

7.7.8 Specify the Events (Interrupt) To specify an interrupt event, change Event Type in the event select dialog box to "INTERRUPT". When

Página 50

7Windows/Dialogs 7.7.8.2 Interrupt Termination Set as below. 133

Página 51 - 5.1.4 Script Tab

7.7.9 Specify the Events (External Trigger Signal) To specify an event for external trigger signal, change Event Type in the event select dialog bo

Página 52

7Windows/Dialogs Example) Fall of EXT1(brown) signal 7.7.9.2 Combination of rise/fall edges Set as below. Example) Rise of EXT0 (white)/EXT7

Página 53

7.7.10 Specify the Event Combination Condition Use the Combination group of the event setting windows to specify the combinatorial conditions of ev

Página 54

7Windows/Dialogs 7.7.10.2 Select AND(Same Time) Change the Combination group to "AND (Same Time)". Next, check (turn on) an event in the e

Página 55 - Nibb le

Sequential specification Use the buttons included in the Sequential group. Pass counts can be specified from the popup menu that appears when selec

Página 56 - Contents

7Windows/Dialogs 7.7.11 Specify the Process ID By specifying a task name (task number), it is possible to enable only the events that occurred in th

Página 57

1 Features 5 1.2 Break Functions 1.2.1 Software Breaks Function Software Break breaks the target program before execution of the command at the sp

Página 58

7.8 Protect Window The Protect window sets the protect break (memory protect) function of the emulator. • The protect break function is disable

Página 59

7Windows/Dialogs 7.9 Address Interrupt Break Point Setting Window The Address Interrupt Break Point Setting window allows you to set address interru

Página 60

7.9.1 Command Button The buttons on this window has the following meanings. Button Function Load... Load setting information from a file in whic

Página 61

7Windows/Dialogs 7.9.2 Setting and Deleting a Break Points from Editor(Source) Window The address interrupt break function can only be used when the

Página 62

7.10 Trace Point Setting Window The Trace Point Setting window is used to set trace points. • The events listed below can be specified as trace

Página 63

7Windows/Dialogs 7.10.1 Specify the Trace Event To set events, double-click to select the event you want to set from the event setting area of the T

Página 64

• When DATA ACCESS is selected Traces for the memory access. • When BIT SYMBOL is selected Traces for the bit access. 146

Página 65 - Tutorial

7Windows/Dialogs • When INTERRUPT is selected Traces for the interrupt occurrence or termination. • When TRIGGER is selected Traces for the sta

Página 66

7.10.2 Specify the Combinatorial Condition To specify a combinatorial condition, specify the desired condition from the combinatorial condition spe

Página 67 - 6. Tutorial

7Windows/Dialogs • When State Transition is selected Click the Details... button, and the dialog box shown below appears. Specification by a state

Página 68 - 6.2 Usage

1.2.2 Hardware Break This function causes the target program to stop upon detecting a data read/write to memory, instruction execution, or the risi

Página 69

7.10.5 Specify the Trace Write Condition Conditions for cycles to be written to trace memory can be specified. Total Writes all cycles. Pick up

Página 70

7Windows/Dialogs 151 7.10.7 Specify the Events (Instruction Fetch) How to set events for fetch is same as the way for H/W Break Point Setting Windo

Página 71

7.10.14 Specify the write condition Trace data write conditions can be specified. You can specify the following write conditions: 1. Write conditi

Página 72

7Windows/Dialogs • For condition 3, choose the Mode shown below and set the Start event. • For condition 4, choose the Mode shown below and s

Página 73

Similarly, when specifying conditions 5 to 7, choose "Exclude" and click the "Detail..." button to open the Realtime-trace Writ

Página 74

7Windows/Dialogs • For condition 7, choose the Mode shown below and set the Start event. 155

Página 75

7.11 Time Measurement Window The Time Measurement window displays the minimum/maximum/average execution time and measurement count at any measureme

Página 76

7Windows/Dialogs 7.11.1 Specify the Time Measurement Event The events listed below can be specified as measurement events. Fetch, Memory Access, B

Página 77 - 6.2.8 Step8 : Viewing Memory

• When FETCH is selected Measures for the instruction fetch. • When DATA ACCESS is selected Measures for the memory access. 158

Página 78

7Windows/Dialogs • When BIT SYMBOL is selected Measures for the bit access. • When INTERRUPT is selected Measures for the interrupt occurrence

Página 79

1 Features 7 1.2.3 About Protect Breaks Function Protect Break is a function to detect a write of data to the ROM area and an access (read, write,

Página 80

• When TRIGGER is selected Measures for the status of signal input from external trace cable. 160

Página 81

7Windows/Dialogs 7.11.2 Time Measurement Condition For the time measurement conditions, the following can be specified for each measurement interval

Página 82

7.11.4 Specify the Events (Instruction Fetch) How to set events for fetch is same as the way for H/W Break Point Setting Window. For detail about t

Página 83

7Windows/Dialogs 7.11.9 Set the Measurement Condition For the debugger, the following measurement conditions can be specified. • Measure the execut

Página 84

7.11.9.2 Measure the event occurrence cycle 1. Set the measurement event (measurement start event only). 2. Specify the following in the Measurem

Página 85

7Windows/Dialogs 7.11.9.4 Measure the execution time of the specified function (1) Measure the execution time of the specified function. In this mod

Página 86 - 6.2.14 What Next?

7.11.9.5 Measure the execution time of the specified function (2) Measure the execution time of the specified function. In this mode, the function

Página 87 - Reference

7Windows/Dialogs 7.12 Trace Window The Trace Window is used to display the results of real-time trace measurement. • Bus mode This mode allows yo

Página 88

1. Cycle display area: Shows trace cycles. Double-click here to bring up a dialog box to change the displayed cycle. 2. Label display area: Shows

Página 89 - 7. Windows/Dialogs

7Windows/Dialogs 7.12.2 Configuration of Disassemble Mode When disassemble mode is selected while bus mode is unselected, trace information is displ

Página 90 - 7.1 RAM Monitor Window

1.2.4 About Address Interrupt Breaks Function This function stops the target program immediately before executing an instruction at a specified add

Página 91

7.12.3 Configuration of Data Access Mode When data access mode is selected while bus mode and disassemble mode are unselected, trace information is

Página 92 - 7.1.1 Extended Menus

7Windows/Dialogs 7.12.4 Configuration of Source Mode When only source mode is selected, trace information is displayed in source mode. Source mode i

Página 93

7.12.5 Extended Menus This window has the following popup menus that can be brought up by right-clicking in the window. Menu Function BUS Display

Página 94

7Windows/Dialogs 173 7.12.6 Display of bus information on the M32C Debugger From left to right, the contents are as follows: • Address • The stat

Página 95 - 7.2 ASM Watch Window

Representation Status C U P O C P O R P Operation co e sized Operand size - - - No accessing CPU 0 1 0byte 1byte CPU 0 2 0byte 2bytes CPU

Página 96 - 7.2.1 Extended Menus

7Windows/Dialogs 175 7.12.7 Display of bus information on the M16C/R8C Debugger From left to right, the contents are as follows: • Address The sta

Página 97 - 7.3 C Watch Window

7.13 Data Trace Window The Data Trace Window is used to analyze the results of real-time trace measurements and graphically show data access inform

Página 98

7Windows/Dialogs 177 7.13.1 Extended Menus This window has the following popup menus that can be brought up by right-clicking in the window. Menu

Página 99 - 7.3.1 Extended Menus

7.14 GUI I/O Window The GUI I/O window allows you for port input by creating a user target system key input panel (button) in the window and clicki

Página 100 - 7.4 Coverage Window

7Windows/Dialogs 179 7.14.1 Extended Menus This window has the following popup menus that can be brought up by right-clicking in the window. Menu

Página 101 - 7.4.1 Extended Menus

1 Features 1.3 Real-Time Trace Function This function records a target program execution history. Up to 256K cycles of execution history can be re

Página 102

7.15 MR Window Use the MR Window to display the status of the realtime OS. You can only use the MR Window when you have downloaded a program tha

Página 103 - 7.5 Script Window

7Windows/Dialogs 181 7.15.1 Extended Menus This window has the following popup menus that can be brought up by right-clicking in the window. Me

Página 104 - 7.5.1 Extended Menus

7.15.2 Display the Task Status In the MR window, select Popup Menu - [Mode] -> [Task]. By double-clicking any line, the information on the ta

Página 105

7Windows/Dialogs 183 • *1Task Status Display Status RUN RUNNING state RDY READY state SUS SUSPENDED state DMT DORMANT state WAI(SLP) Sleeping sta

Página 106 - 7.6.1 Command Button

7.15.2.2 Display the Task Status(When the realtime OS is MRxx conformed to uITRON specifications V.4.0.) All the tasks defined in the configuration

Página 107

7Windows/Dialogs 185 • *1Task Status Display Status RUN RUNNING state RDY READY state SUS SUSPENDED state DMT DORMANT state WAI(SLP) Sleeping sta

Página 108

• *2 Display the Wait Cancellation Condition of Event Flag Wfmode Status TWF_ANDW Waits for all bits set in the wait bit pattern to be set (AND

Página 109

7Windows/Dialogs 7.15.4 Display the Timeout Queue Status In the MR window, select Popup Menu - [Mode] -> [Timeout Queue]. 7.15.4.1 Display the

Página 110

7.15.4.2 Display the Timeout Queue Status(When the realtime OS is MRxx conformed to uITRON specifications V.4.0.) The function of each item is as d

Página 111

7Windows/Dialogs 7.15.5 Display the Event Flag Status In the MR window, select Popup Menu - [Mode] -> [Event Flag]. 7.15.5.1 Display the Event

Página 112

1. This document is provided for reference purposes only so that Renesas customers may select the appropriate Renesas products for their use.

Página 113

1.3.2 Trace Condition Setting The following designations are available as trace events: • Address designation - Instruction fetch - Memory a

Página 114 - 7.7.4 Command Button

• The following are displayed in the Flgatr area: TA_TFIFO Task wait queue is in FIFO order TA_TPRI Task wait queue is in task priority order

Página 115

7Windows/Dialogs 7.15.6 Display the Semaphore Status In the MR window, select Popup Menu - [Mode] -> [Semaphore]. 7.15.6.1 Display the Semapho

Página 116

• The following are displayed in the Sematr area: TA_TFIFO Task wait queue is in FIFO order TA_TPRI Task wait queue is in task priority order

Página 117

7Windows/Dialogs 7.15.7 Display the Mailbox Status In the MR window, select Popup Menu - [Mode] -> [Mailbox]. 7.15.7.1 Display the Mailbox Sta

Página 118

7.15.7.2 Display the Mailbox Status (When the realtime OS is MRxx conformed to uITRON specifications V.4.0.) All the mail boxes defined in the conf

Página 119

7Windows/Dialogs 7.15.8 Display the Data Queue Status In the MR window, select Popup Menu - [Mode] -> [Data Queue]. 7.15.8.1 Display the Data

Página 120

• The Data Queue (Wait) field displays a string "Send" if a task waiting for a message sending, and then displays the ID number and name

Página 121

7Windows/Dialogs 7.15.9 Display the Cycle Handler Status In the MR window, select Popup Menu - [Mode] -> [Cyclic Handler]. 7.15.9.1 Display th

Página 122

7.15.9.2 Display the Cycle Handler Status(When the realtime OS is MRxx conformed to uITRON specifications V.4.0.) All the cycle handlers defined in

Página 123

7Windows/Dialogs 7.15.10 Display the Alarm Handler Status In the MR window, select Popup Menu - [Mode] -> [Alarm Handler]. When the realtime O

Página 124

1 Features 11 1.4 Time Measurement Function This function records the addresses executed (accessed) by the target program (C0 coverage). This fun

Página 125

7.15.11 Display the Memory Pool Status In the MR window, select Popup Menu - [Mode] -> [Memory Pool]. 7.15.11.1 Display the Memory Pool Statu

Página 126

7Windows/Dialogs 201 7.15.11.2 Display the Memory Pool Status(When the realtime OS is MRxx conformed to uITRON specifications V.4.0.) All the memor

Página 127

7.15.12 Display the Task Context 7.15.12.1 Display the Task Context In the MR window, select Popup Menu - [Context...]. The Context dialog box is

Página 128

7Windows/Dialogs 7.15.12.2 Change the task context Enter the task ID number in the Task ID field in the Context dialog and click the Set button. The

Página 129

7.16 MR Trace Window The MR Trace window measures the task execution history of a program using the real time OS and displays the result graphicall

Página 130

7Windows/Dialogs When moving the mouse to the information displayed in the window, the pop up window as below is opened, showing the detailed inform

Página 131

7.16.1 Extended Menus This window has the following popup menus that can be brought up by right-clicking in the window. Menu Function Start Marker

Página 132

7Windows/Dialogs 207 7.16.2 Refer the Execution History of Task(MRxx Window) You can reference the task execution history in the MR Trace window. Y

Página 133

7.16.2.4 Refer the Execution History of Task You can reference the task execution transition in the MR Trace window. By moving the mouse to any

Página 134

7Windows/Dialogs 7.16.2.4.1. Search the History of System Call Issue Click the "Search" button in the tool bar. The Search dialog is open

Página 135

1.5 Coverage Function Coverage Measurement is a function to record the addresses executed (accessed) by the target program (C0 coverage). After s

Página 136

7.16.2.4.2. Change the display magnification Click the "Expand" button or "Reduce" button in the tool bar. (Or, select Menu -

Página 137

7Windows/Dialogs 7.16.2.4.4. Change the task display order Drag the task/interrupt routine to be moved (the left portion of the graph) to the desti

Página 138

7.16.2.5 Measure the Execution Time of Task You can measure the execution time between the markers by changing the positions of start marker and en

Página 139

7Windows/Dialogs 7.17 MR Analyze Window The MR Analyze window displays the result of the measurement data statistically analyzed within the range sp

Página 140

7.17.2 Configuration of Ready State Duration Display Mode The ready state time display mode by task is used to display the results generated from s

Página 141

7Windows/Dialogs 7.17.4 Extended Menus This window has the following popup menus that can be brought up by right-clicking in the window. Menu Funct

Página 142

7.17.5.2 Refer the Ready Queue Time Click the Ready->Run button in the tool bar. (Or, select Menu - [Rdy -> Run].) The time required from

Página 143

7Windows/Dialogs 7.17.5.3.1. Extract the Issuance History Click the "Pick Up" button in the tool bar. (Or, select Menu - [Pick Up System

Página 144

7.18 MR Task Pause Window The MR Task Pause Window realizes the task pause function of the real time OS (MR308/MR30). You can pause and unpause the

Página 145

7Windows/Dialogs 219 ATTENTION Task pause function uses the address match interrupt of the MCU. Don't use this function when the target progra

Página 146

1 Features 13 1.6 Real-Time OS Debugging Function This function debugs the realtime OS-dependent parts of the target program that uses the realtime

Página 147

7.18.3 Pause the Specified Task Use the MR Task Pause window. To open the MR Task Pause window, select Menu - [View] -> [RTOS] -> [MR Task Pa

Página 148

7Windows/Dialogs 7.18.3.1 Pause Task Being Executed at a Specified Position 1. Click the ID field or (name) field of the task pause display fiel

Página 149

7.18.3.2 Pause After a Paused Task is Executed up to Specified Position 1. Click the ID field or (name)field of the task pause display area of

Página 150 - 7.8 Protect Window

7Windows/Dialogs 7.18.3.3 Turn Pause of Certain Task Off 1. Click the ID field or (name) field in the task pause display area of the ask line to

Página 151

7.18.3.4 Display Program Contents of Certain Task in Task Source Display Area Click the ID field of (name) field in the task pause display area

Página 152 - 7.9.1 Command Button

7Windows/Dialogs 7.19 Task Trace Window The Task Trace window measures the task execution history of a program using the real time OS and display it

Página 153

The grid lines are displayed using the start marker as the radix point. The scale is displayed, using the time at which the start marker is positio

Página 154

7Windows/Dialogs 7.19.2 Refer the Execution History of Task(Taskxx Window) You can reference the task execution history in the Task Trace window. Yo

Página 155

ATTENTION When specifying WORD in the access size when performing PID setting in the RTOS Information dialog, you must observe the following limits

Página 156

7Windows/Dialogs 7.19.2.2 Refer the Execution History of Task You can reference task trace transition in the Task Trace window. By moving the mou

Página 157

2. About the Emulator PC7501 The PC7501 emulator has full bus trace and is available for in-circuit emulation in system designed around the M16C P

Página 158

7.19.2.3 Change the grid line display interval Select [Value ...] from popup menu by right-clicking on the window. The Value dialog is opened. Sp

Página 159

7Windows/Dialogs 7.19.2.5 Measure the Execution Time of Task By changing the start marker position and end marker position in the Task Trace window,

Página 160 - 7.10.6 Command Button

7.20 Task Analyze Window The Task Analyze window displays the result of the measurement data statistically analyzed within the range specified by t

Página 161

7Windows/Dialogs 7.20.2 Analyze the Execution History of Task You can reference the execution history statistical processing in the Task Analyze win

Página 162

8. Table of Script Commands The following script commands are prepared. The commands with yellow color displaying can be executed at run time. The

Página 163

8Table of Script Commands 235 8.1.3 Register Operation Commands Comman Name dS ort Name h Contents Register R Checks and sets a register value

Página 164

8.1.7 Address Interrupt Break Setting Commands Command Name Short Name Contents ADdressInterruptBreak ADIB Sets and checks the address interru

Página 165

8Table of Script Commands 237 8.1.12 Program Display Commands Command Name Short Name Contents Func - Checks function names and displays the c

Página 166 - 7.11 Time Measurement Window

8.1.18 Utility Commands Comm nd Name aShort Name Contents Radix - Sets and checks the radix for numerical input Alias - Specifies and checks

Página 167

8Table of Script Commands 239 8.2 Table of Script Commands (alphabetical order) Command Name Short Name Contents AddPath - Adds the search pat

Página 168

3 Before starting the debugger 15 3. Before starting the debugger 3.1 Communication method by emulator The supported communication methods are as

Página 169

OverStepInstruaction OI Overstep execution of instructions Path - Sets and checks the search path Paus e - Waits for user input Print -

Página 170

9Writing Script Files 241 9. Writing Script Files This debugger allows you to run script files in a Script Window. The script file contains the co

Página 171 - 7.11.3 Command Button

9.1.1 Script Command You can use the same script commands that you enter in the Script Window. You can also call script files from within other scr

Página 172

9Writing Script Files 243 9.1.4 Loop Statement(while,endw) and Break Statement In loop statements, execution of a group of statements is repeated w

Página 173

9.2 Writing Expressions This debugger allows you to use expressions for specifying addresses, data, and number of passes, etc. The following shows

Página 174

9Writing Script Files 245 9.2.2 Symbols and labels You can include symbols and labels defined in your target program, or symbols and labels defined

Página 175

9.2.3 Macro Variables Macro variables are defined by assign statements in the script file. See Section "9.1.2 Assign Statement " in the

Página 176

9Writing Script Files 247 9.2.6 Line Nos. These are source file line Nos. The format for line Nos. is as follows: #line_no #line_no."source fi

Página 177 - 7.12 Trace Window

10. C/C++ Expressions 10.1 Writing C/C++ Expressions You can use C/C++ expressions consisting of the tokens shown below for registering C watchpoin

Página 178

10 C/C++ Expressions 249 10.1.2 Scope Resolution The scope resolution operator :: is available as following. Global scope: ::valiable name ::x, ::v

Página 179

3.2 Download of Firmware It is necessary to down-load the firmware which corresponds to connected Emulation Pod when the debugger is started to the

Página 180

10.1.6 Sign Inversion Sign inversion is indicated by the minus sign (-). You can only specify "-immediate_value" or "-variable_name&

Página 181

10 C/C++ Expressions 251 10.1.9 Pointers to Members Pointers to members using the ".*" or "->*" operator can be refered only

Página 182 - 7.12.5 Extended Menus

10.1.13 Casting to typedef Types You can use casting to typedef types (types other than the C basic types) and the pointer types to them. When cast

Página 183

10 C/C++ Expressions 253 10.2 Display Format of C/C++ Expressions C/C++ expressions in the data display areas of the C Watch Windows are displayed

Página 184

10.2.3 Pointer Types • When the result of calculation is a pointer type to other than a char* type, it is displayed in hexadecimal as follows: (un

Página 185

10 C/C++ Expressions 10.2.4 Array Types • When the result of calculation is an array type other than a char [ ] type, the starting address is displ

Página 186 - 7.13 Data Trace Window

10.2.8 When No C Symbol is Found If the calculated expression contained a C symbol that could not be found, it is displayed as follows: () x = <

Página 187 - 7.13.1 Extended Menus

11 Display the Cause of the Program Stoppage 257 11. Display the Cause of the Program Stoppage If the program is stoped by the debug function, th

Página 188 - 7.14 GUI I/O Window

12. Attention 12.1 Common Attention 12.1.1 File operation on Windows 1. File Name and Directory Name - Operation is not guaranteed if your dir

Página 189 - 7.14.1 Extended Menus

12 Attention 12.1.2.2 The debugger for M16C/R8C The area which can be set for software breakpoint varies depending on the processor mode. Processor

Página 190 - 7.15 MR Window

3 Before starting the debugger 3.3 Setting before emulator starts 3.3.1 USB communication Connection of USB devices is detected by Windows' Pl

Página 191 - 7.15.1 Extended Menus

12.1.4 Function name in C++ • When you input the address using the function name in setting display address, setting break points, and so on, you

Página 192

12 Attention 12.1.9 Restriction of LPT port 1. The emulator uses a printer (parallel) port during LPT communications with personal computer. The

Página 193

12.1.10 Notes for coverage function Coverage Measurement is a function to record the addresses accessed by the target program. These accessed add

Página 194

12 Attention 12.2 Attention of the M32C Debugger 12.2.1 Stack area used by the emulator The emulator uses the interrupt stack area as a work area (

Página 195

12.2.5 Hardware Event • The debugger does not support a command fetch (Fetch) or an interrupt as a hardware event. • If you specify word-length (

Página 196

12 Attention 12.2.7 MR STK script command • The MR STK BASE command automatically sets the area where the stack consumption can be measured. The ar

Página 197

12.3 Attention of the M16C/R8C Debugger 12.3.1 Connection to the emulator After setting of MCU by MCU Setting dialog, it takes 10-30 seconds to sta

Página 198

12 Attention 12.3.7 Hardware Event • If you specify word-length (2-byte length) data from an odd address as an event in the following data accesses

Página 199

12.3.9 Memory space expansion Memory mapping If you select "4MB Mode" for Memory Space Expansion in MCU setting dialog, the memory map de

Página 200

12 Attention 12.3.10 CPU rewrite • Please don't rewrite the last block. If you did, emulator gets out of control. • When you enabled CPU rew

Página 201

3.3.2 LAN communication Before the emulator can be connected in a LAN, the IP address, etc. must first be registered in the emulator. For the emu

Página 202

12.4 Option of C Compiler/Assembler/Linker We do not evaluate other settings, so we can not recommend to append other options. 12.4.1 When Using N

Página 203

12 Attention 12.4.3 When Using the IAR C Compiler (EW) Please specify the project setting by following process. 1. The Setting in the IAR Embedded

Página 204

12.4.4 When Using the IAR C Compiler (ICC) 12.4.4.1 Specify the Option Please compile according to the following procedures and link. • At compi

Página 205

12 Attention 12.4.5 When Using the TASKING C Compiler (CM) 12.4.5.1 Specify the Option Please specify "-g" and "- O0" options w

Página 206

[MEMO] 274

Página 207

M16C R8C PC7501 Emulator Debugger V.1.03 User's Manual Publication Date: Jul. 01, 2007 Rev.1.00 Published

Página 208

M16C R8C PC7501 Emulator Debugger V.1.03User's Manual

Página 209

3 Before starting the debugger 5. Click the Next button, and the dialog box shown below appears. Set the IP address, subnet mask, port number, and

Página 210

Overview The High-performance Embedded Workshop is a Graphical User Interface intended to ease the development and debugging of applications written

Página 211

4. Preparation before Use Please run the High-performance Embedded Workshop and connect the emulator . In addition, in order to debug with this pr

Página 212

4 Preparation before Use 4.2 Starting the High-performance Embedded Workshop Activate the High-performance Embedded Workshop from [Programs] in the

Página 213

4.2.1 Creating a New Workspace (Toolchain Used) 4.2.1.1 Step1 : Creation of a new workspace In the [Welcome!] dialog box that is displayed when th

Página 214 - 7.16 MR Trace Window

4 Preparation before Use 4.2.1.2 Step2 : Setting for the Toolchain A wizard for the project creation starts. Here, the following contents are set

Página 215

4.2.1.3 Step 3: Selecting of the Target Platform Select the target system used for your debugging (emulator, simulator). When the setting for the t

Página 216 - 7.16.1 Extended Menus

4 Preparation before Use 4.2.1.4 Step4 : Setting the Configuration File Name Set the configuration file name for each of the all selected target. Th

Página 217

4.2.1.5 Step5 : The check of a created file name Finally, confirm the file name you create. The files which will be generated by the High-performan

Página 218

4 Preparation before Use 4.2.2 Creating a New Workspace (Toolchain Not Used) When debugging the existing load module file with this product, a works

Página 219

4.2.2.2 Step 2: Selecting of the Target Platform Select the target system used for your debugging (emulator, simulator). A wizard starts and the fo

Página 220

4 Preparation before Use 4.2.2.3 Step3 : Setting the Configuration File Name Set the configuration file name for each of the all selected target. Th

Página 221

Active X, Microsoft, MS-DOS, Visual Basic, Visual C++, Windows and Windows NT are either registered trademarks or trademarks of Microsoft Corporati

Página 222 - 7.16.2.5.1. Move the Marker

4.2.2.4 Step4 : Registering the Load modules to be downloaded Finally, register the load module file to be used. Select [Debug Settings...] from th

Página 223 - 7.17 MR Analyze Window

4 Preparation before Use 3. Then register the corresponding download module in the [Download Modules] list box. A download module can be specified

Página 224

4.3 Starting the Debugger The debugging can be started by connecting with an emulator. 4.3.1 Connecting the Emulator Connect the emulator by simpl

Página 225 - 7.17.4 Extended Menus

5 Setup the Debugger 5. Setup the Debugger 5.1 Init Dialog The Init dialog box is provided for setting the items that need to be set when the debug

Página 226

5.1.1 MCU Tab The specified content becomes effective when the next being start. 5.1.1.1 Specifying the MCU file Click the "Refer"

Página 227

5 Setup the Debugger Select the check box to close the Init dialog box. After connecting to the emulator and confirming the firmware, the debugger w

Página 228 - 7.18 MR Task Pause Window

5.1.1.5 Using/unusing the watchdog timer Specify whether or not to use the watchdog timer. (By default, the watchdog timer is unused.) This specifi

Página 229 - 7.18.2 Extended Menus

5 Setup the Debugger 5.1.2 Debugging Information Tab The specified content becomes effective when the next being start. 5.1.2.1 display the compi

Página 230

Notes • If the load module size is large, the on-memory method may be inefficient because it requires a very large amount of time for downloading.

Página 231

5 Setup the Debugger 5.1.3 Emulator Tab 5.1.3.1 Specify the Target Clock Change the setting by synchronizing with the clock used by the target mi

Página 232

Setup of Debugger 1 1. Features 3 1.1 Real-Time RAM Monitor Function...

Página 233

Note * The accuracy of the clock frequency is plus or minus 5%. We recommend that final evaluation be made after installing the resonator or oscill

Página 234

5 Setup the Debugger 5.1.4 Script Tab The specified content becomes effective when the next being start. 5.1.4.1 Automatically Execute the Script

Página 235 - 7.19 Task Trace Window

5.2 Setting of the Communication Interface 5.2.1 Setting of the USB Interface USB communication uses the personal computer's USB interface. I

Página 236 - 7.19.1 Extended Menus

5 Setup the Debugger 5.2.2 Setting of the LAN Interface LAN communication uses a LAN interface of the personal computer. Before using LAN, you must

Página 237

5.2.2.2 Setting of the LAN Interface To set the LAN communication, click the "LAN" radio button of the MCU tab in the Init dialog. The se

Página 238

5 Setup the Debugger 5.2.3 Setting of the LPT Interface LPT communication uses a parallel interface (printer interface) of the personal computer. To

Página 239

5.3 Setup the Debugger for M32C 5.3.1 Emem Dialog In the Emem dialog box, setting information on the user target. The Emem dialog box opens after

Página 240

5 Setup the Debugger 5.3.1.1 Status Tab The specified content becomes effective when the next being start. 5.3.1.1.1. Select the Processor Mode S

Página 241 - 7.19.2.5.1. Move the Marker

5.3.1.2 Emulation Memory Tab The specified content becomes effective when the next being start. 5.3.1.2.1. Debug monitor's bank address set

Página 242 - 7.20 Task Analyze Window

5 Setup the Debugger 5.3.1.2.3. Emulation memory allocation for an extended area When memory extension or microprocessor mode is selected, emulatio

Página 243

5.2.2 Setting of the LAN Interface...43 5.2.3 Setting of the L

Página 244 - 8. Table of Script Commands

The setting of the emulation memory area varies depending on the specified processor mode. • Single-chip Mode You do not need to specify the area

Página 245

5 Setup the Debugger 5.4 Setup the Debugger for M16C/R8C 5.4.1 MCU Setting Dialog In the MCU Setting dialog box, setting information on the user ta

Página 246

5.4.1.1 MCU Tab The specified content becomes effective when the next being start. Select the Processor Mode Specify the processor mode for the

Página 247

5 Setup the Debugger 5.4.1.1.1. Inspecting the MCU status Clicking this tab displays the status of each MCU pin. It allows to check whether the MCU

Página 248 - 8.1.18 Utility Commands

5.4.1.2.1. Emulation memory allocation Set the memory area in 4 KB units into which you want the emulation memory to be mapped. Four of such memor

Página 249

Tutorial 55

Página 250

(Blank Page) 56

Página 251 - 9. Writing Script Files

6 Tutorial 57 6. Tutorial 6.1 Introduction This section describes the main functions of this debugger by using a tutorial program. The tutorial pro

Página 252 - 9.1.3 Conditional Statement

6.2 Usage Please follow these instructions: 6.2.1 Step1 : Starting the Debugger 6.2.1.1 Preparation before Use To run the High-performance Embedd

Página 253 - 9.1.5 Comment statements

6 Tutorial 6.2.2 Step2 : Checking the Operation of RAM Check that RAM is operating correctly. Display and edit the contents of the memory in the [Me

Página 254 - 9.2 Writing Expressions

7.7.8 Specify the Events (Interrupt) ...132 7.7.9 Specify the Event

Página 255 - Notes

6.2.3 Step3 : Downloading the Tutorial Program 6.2.3.1 Downloading the Tutorial Program Download the object program to be debugged. The download f

Página 256 - 9.2.5 Memory variables

6 Tutorial 6.2.3.2 Displaying the Source Program This debugger allows the user to debug a user program at the source level. Double-click [tutorial.c

Página 257 - Dyadic comparison level 8

6.2.4 Step4 : Setting a Breakpoint A software breakpoint is a basic debugging function. The [Editor(Source)] window provides a very simple way of

Página 258 - 10. C/C++ Expressions

6 Tutorial 6.2.5 Step5 : Executing the Program Execute the program as described in the following: 6.2.5.1 Resetting of CPU To reset the CPU, select

Página 259 - 10.1.5 Reference

6.2.5.3 Reviewing Cause of the Break The break factor is displayed in the [Output] window. The user can also see the cause of the break that occ

Página 260 - 10.1.6 Sign Inversion

6 Tutorial 6.2.6 Step6 : Reviewing Breakpoints The user can see all the breakpoints set in the program in the [Breakpoints] dialog box. 6.2.6.1 Rev

Página 261 - signed

6.2.7 Step7 : Viewing Register The user can see all registers/flags value in the [Register] window. 6.2.7.1 Viewing Register Select [Registers]

Página 262 - 10.1.16 Character Constants

6 Tutorial 6.2.8 Step8 : Viewing Memory When the label name is specified, the user can view the memory contents that the label has been registered i

Página 263 - 10.2.2 Basic Types

6.2.9 Step9 : Watching Variables As the user steps through a program, it is possible to watch that the values of variables used in the user program

Página 264 - 10.2.3 Pointer Types

6 Tutorial 6.2.9.2 Registering Variable The user can also add a variable to the [C Watch] window by specifying its name. Click the [C Watch] window

Página 265 - 10.2.7 Bit Field Types

7.15.11 Display the Memory Pool Status ...200 7.15.12 Display the Task Cont

Página 266 - 10.2.9 Syntax Errors

6.2.10 Step10 : Stepping Through a Program This debugger provides a range of step menu commands that allow efficient program debugging. 1. Step In

Página 267

6 Tutorial 6.2.10.2 Executing [Step Out] Command The [Step Out] command steps out of the called function(subroutine) and stops at the next statement

Página 268 - 12. Attention

6.2.10.3 Executing [Step Over] Command The [Step Over] command executes a function (subroutine) call as a single step and stops at the next stateme

Página 269

6 Tutorial 6.2.11 Step11 : Forced Breaking of Program Executions This debugger can force a break in the execution of a program. 6.2.11.1 Forced Bre

Página 270 - 12.1.8 Down-load of Firmware

6.2.12 Step12 : Displaying Local Variables The user can display local variables in a function using the [C Watch] window. 6.2.12.1 Displaying Lo

Página 271

6 Tutorial 6.2.13 Step13 : Stack Trace Function The debugger uses the information on the stack to display the names of functions in the sequence of

Página 272

6.2.14 What Next? This tutorial has described the usage of this debugger. Sophisticated debugging can be carried out by using the emulation functio

Página 273

Reference 77

Página 275 - 12.2.7 MR STK script command

7Windows/Dialogs 79 7. Windows/Dialogs The window of this debugger is shown below. When the window name is clicked, the reference is displayed.

Página 276

9.2.7 Character constants ...247 9.2.8 Operators ..

Página 277 - 12.3.7 Hardware Event

7.1 RAM Monitor Window The RAM monitor window is a window in which changes of memory contents are displayed while running the target program. The

Página 278

7Windows/Dialogs ATTENTION • The RAM monitor window shows the data that have been accessed through the bus. Therefore, changes are not reflected in

Página 279 - 12.3.10 CPU rewrite

7.1.1 Extended Menus This window has the following popup menus that can be brought up by right-clicking in the window. Menu Function RAM Monitor A

Página 280 - -yspc

7Windows/Dialogs 7.1.2 Setting the RAM monitor area Choose the popup menu [RAM Monitor Area...] in the RAM monitor window. The RAM monitor area setu

Página 281 - -ylmb

7.1.2.1 Changing the RAM Monitor Area The start address and the size of the RAM monitor area can be changed. • Changing from a dialog box Select t

Página 282

7Windows/Dialogs 7.2 ASM Watch Window The ASM watch window is a window in which you can register specific addresses as watchpoints and inspect memor

Página 283

7.2.1 Extended Menus This window has the following popup menus that can be brought up by right-clicking in the window. Menu Function Add... Add

Página 284

7Windows/Dialogs 7.3 C Watch Window The C Watch Window displays C/C++ expressions and their values (results of calculations). The C/C++ expressions

Página 285

ATTENTION • You cannot change the values of the C watch points listed below: - Register variables - C watch point which does not indicate an a

Página 286

7Windows/Dialogs 89 7.3.1 Extended Menus This window has the following popup menus that can be brought up by right-clicking in the window. Menu

Comentários a estes Manuais

Sem comentários