Home

SH7046 E6000H Emulator User`s Manual

image

Contents

1. User I F 1 PinNo Signal Name User I F 1 Pin No Signal Name UCN1 101 3VCC UCN1 127 GND 102 PE5 TIOC1B TXD3 A7 128 GND 103 3VCC 129 GND 104 PE4 TIOC1A RXD3 A6 130 PD5 D5 AUDMD 105 3VCC 131 PB9 _IRQ7 A21 _ADTRG 106 PE3 TIOCOD DRAK1 _CS3 132 PD6 D6 AUDCK 107 3VCC 133 PB8 _IRQ6 A20 _WAIT 108 GND 134 PD7 D7 _AUDSYNC 109 3VCC 135 GND 110 PE2 TIOCOC _DREQ1 _CS2 136 PD8 D8 _UBCTRG 111 5VCC 137 PB7 _IRQ5 A19 _BREQ 112 PE1 TIOCOB _DRAKO _CS1 138 GND 113 5VCC 139 PB6 _IRQ4 A18 _BACK 114 PEO TIOCOA _DREQO _CSO 140 PD9 D9 115 5VCC 141 PB5 _IRQ3 _POE SDA1 CK HRxD2 116 PDO D0 RXD2 AUDATAO 142 PD10 D10 117 5VCC 143 PB4 _IRQ2 _POE2 SCL1 _POEHIZ HTxD2 SCK4 118 GND 144 PD11 D11 119 5VCC 145 PB3 _IRQ1 _POE1 SDAO _VCOSTOP TXD4 120 PD1 D1 TXD2 AUDATA1 146 PD12 D12 121 5VCC 147 N C 122 PD2 D2 SCK2 AUDATA2 148 GND 123 N C 149 PB2 _IRQO _POEO SCLO _OSCERV RXD4 124 PD3 D3 AUDATA3 150 PD13 D13 125 GND 151 PB1 A17 HRxDO HRxD 1 SCK4 126 PD4 D4 AUDRET 152 PD14 D14 44 RENESAS Table 3 5 Pin Arrangement on HS7046EPH60H cont User I F1 PinNo Signal Name User I F 1 Pin No Signal Name UCN1 153 PBO A16 HTxDO HTxD1 UCN1
2. Frame ground Ground Figure 2 5 Connecting the System Ground A WARNING Always switch OFF the emulator and user system before connecting or disconnecting any CABLES Failure to do so will result in a FIRE HAZARD and will damage the user system and the emulator or will result in PERSONAL INJURY The USER PROGRAM will be LOST The user system must be connected to an appropriate ground so as to minimize noise and the adverse effects of ground loops When connecting the evaluation chip board and the user system confirm that the ground pins of the evaluation chip board are firmly connected to the user system s ground 15 RENESAS Emulator power User system supply cable power supply cable Outlet Ground 100 V to 240 V AC power Figure 2 6 Connecting the Frame Ground 2 2 6 PC Interface Board Specifications For details on the PC interface board LAN adapter or USB adapter refer to their description notes RENESAS Section 3 Hardware Specifications 3 1 Environmental Conditions CAUTION Observe the conditions listed in table 3 1 when using the emulator The following environmental conditions must be satisfied otherwise the user system and the emulator will not operate normally The USER PROGRAM will be LOST Table 3 1 Environmental Conditions Item Specifications Temperature Operating 10 to 35 C Storage 10 to 50 C Humid
3. pap E G Tutorial faa Tutorial Ly C source file 24 00001038 void main void dbsct c 28 t 4 B intprg c 26 0000103a while 1 B resetprg c 27 00001042 tutorial sbrk c ai vecttblc 28 C source file aa p E sort cpp 31 00001054 void tutorial void 2min i a Download modules v9 long j H Tutorial abs ge Soe 3 Dependencies R class Sample p sam ait 0000105 p_sam new Sample 38 00001066 fori 103 i lt 10 i Ji 39 0000106e j randi 40 00001076 1f 3 lt Opt 41 0000107a n EE 42 43 0000107c ali j 44 45 00001090 p_sam gt sort a 46 0000109a p_sam gt change a a7 48 000010a4 p_sam gt s0 a 0 49 000010aa p_sam gt sl a 1 50 000010b0 p_sam gt s2 a 2 51 000010b6 p_sam gt s3 a 3 52 000010be p_sam gt s4 a 4 53 000010c2 p_sam gt s5 a 5 54 000010c8 p_sam gt s6 a 6 55 000010ce p_sam gt s7 a 7 56 00001004 p_sam gt s6 a 8 57 000010da p_sam gt s9 a 9 58 000010e0 delete p sam 59 4 Ger Na tutorial cpp Figure 4 4 Editor Window Setting a Software Breakpoint The symbol e will appear on the line containing the sort function This shows that a software breakpoint has been set 87 RENESAS 4 5 Setting Registers Set a value in the program counter before executing the program e Select Registers from the CPU submenu of the View menu or click the Register toolbar button to display the Register window
4. Name Value Radix RO 00000020 Hex R1 00006168 Hex R2 00000007 Hex R3 00002032 Hex R4 000069D2 Hex RS FFFFE400 Hex R6 ooo00001 Hex R 00000020 Hex R3 oo000000 Hex Ro ooooo000 Hex R10 ooooo000 Hex R11 oo000000 Hex R12 00000008 Hex R13 oo000000 Hex R14 00000014 Hex R15 FFFFFFFO Hex PC 00000800 Hex SR o0000000000000000000000011110000 Lili Bin GBR oooo0000 Hex VBR oooo0000 Hex MACH 00000000 Hex MACL 00000000 Hex PR 00001094 Hex Figure 4 5 Register Window e To change the value of the program counter PC double click on the PC value area in the Register window with the mouse The following dialog box is then displayed and the value can be changed Set the program counter to H 00000800 in this tutorial program and click the OK button ix Value Jooooosoo Radix Hex ind Set As whole Register x Figure 4 6 Register Dialog Box PC 88 RENESAS 4 6 Executing the Program Execute the program as described in the following e To execute the program select Go from the Debug menu or click the Go button on the toolbar es Figure 4 7 Go Button While the program is executed the current address bus value and the operating state of the MCU are displayed on the status bar The program will be executed up to the software breakpoint that has been set and an arrow will appear on the S W Breakpoints column in the Editor window to show the position where th
5. 7 Set a software breakpoint at the address on the line that has p_sam gt change a within the tutorial function H 0000109A in this example Refer to section 4 15 1 Software Break Function 8 Select Reset Go from the Debug menu Execution stops when the break condition is satisfied and the Performance Analysis window then displays the information shown below The value shown in the Count column is 1 which indicates that the sort function has been executed once and the execution time is also displayed In this tutorial the minimum unit for time measurement is defined as 20 ns This value can be changed in the Configuration Properties dialog box CLI a 4a B71 gt Wo Wame Condition Rate RUN TIME MAX MIN TIME Count 0 10 20 30 40 50 1 PAL Range 4 00002032 u 000020cc 318 GOh OOmin 00s 00Oms Lidus 100ns 1 SHARSRR SEARS ERR z 3 4 5 6 7 8 ee 2i Figure 4 59 Performance Analysis Dialog Box Displaying the Result 9 Delete the settings for performance analysis and delete the event points Click the right hand mouse button on the Performance Analysis window to display a popup menu Select Reset All from this popup menu to clear all of the settings Clicking the right hand mouse button on the Event window also displays a popup menu Select Delete All from this popup menu to delete all the event points that have been set 128 RENESAS 4 19 Monitor Function
6. Step 8 Dialog Box If multiple target platforms were selected in the New Project Step 7 dialog box shown in figure 2 5 set the name of a configuration file for each of them each time clicking the Next button to proceed to the next target Setting of the configuration file name is the end of the emulator settings Click the Finish button to display the Summary dialog box Clicking the OK button activates the High performance Embedded Workshop 5 After the High performance Embedded Workshop has been activated the emulator is automatically connected The message Connected is displayed on the Debug tab in the Output window to indicate the completion of connection RENESAS 2 1 2 Creating a New Workspace Toolchain Used 1 In the Welcome dialog box that is displayed when the High performance Embedded Workshop is activated select the Create a new project workspace radio button and click the OK button Figure 2 6 Welcome Dialog Box RENESAS 2 Creation of anew workspace is started The following dialog box is displayed Workspace Name E Assembly Application sample ET Demonstration Eain m Empty Application KE Import Makefile sample Library Directory C AHew2 sample Browse CPU family H8S H8 300 E Tool chain Hitachi H8S H8 300 Standard Properties Figure 2 7 New Project Workspace Dialog Box Works
7. 0OFD9000 OOFDBFFF Reserved Area OOFF6000 OOFFBFFF Internal RAM OOFFEAOO OOFFFEFF Internal 10 OOFFFF20 OOFFFFFF Internal 10 Figure 3 4 Memory Mapping Dialog Box Add Displays the Edit Memory Mapping dialog box allowing the user to modify the address range and attributes of a memory map Modify Displays the Edit Memory Mapping dialog box allowing the user to modify the address range and attributes of a memory map Reset Resets the map memory to its default settings Close Closes the dialog box The memory configuration of the target MCU being emulated is displayed by the Memory sheet in the Status window Note For details refer to section 5 12 Memory Map The content displayed in the Memory Mapping dialog box differs depending on the product 20 RENESAS 3 1 5 Changing the Memory Map Setting Clicking the Add button on the Memory Mapping dialog box or clicking the Modify button after selecting the information on the memory map setting you want to change opens the Edit Memory Mapping dialog box lapping Memory Mapping Erom Cancel Io Setting On Chip Read write A Figure 3 5 Edit Memory Mapping Dialog Box Use this dialog box to change the address range and attributes of a memory map From Enter the start address of the map range To Enter the end address of the map range Setting Enter the memory map setting The choice
8. Break Halts execution when the selected condition has been satisfied After execution Halts execution after the address at which the condition has been satisfied Before execution Halts execution before the address at which the condition is satisfied Output Trigger Outputs a trigger when the selected condition has been satisfied 42 RENESAS 3 7 3 Settings an On Emulator Breakpoint Use the On Emulator sheet on the Event window to display change or add settings for on emulator breakpoints Select Add or Edit from the popup menu displayed on the On Chip sheet The Breakpoint Properties dialog box the On Emulator Break page will appear Breakpoint Properties Software Break On Chip Break On Emulator Break m Sequential Break el ike el 2 ed ea Count Address Range Break F Range 43 F Range 24 Aun time count between tigger outputs F From 3 to 4 Back AUN Beset _Resetall Cancel Apply Figure 3 24 Breakpoint Properties Dialog Box On Emulator Break Page List box Displays the current settings for each of the channels If no setting has been made for a channel only the channel number is displayed here Edit Clicking this button opens the On Emulator Break Channel n dialog box n channel number which allows the user to set a break condition for a selected channel Reset Clears the settings made for the selecte
9. Figure 4 48 Statistic Dialog Box Condition Added 121 RENESAS 7 To start statistical analysis of the specified condition press the Result button The number of write operations that satisfies the conditions and the PTR values will be displayed Statistic m Statistic Analysis Default Range ltem Area i Start RAM R AW WR amp AreasRAM 400 04113 04112 04111 Figure 4 49 Statistic Dialog Box Result of Analysis 8 Click the Close button to close the Statistic dialog box 9 Delete the event points that have been set and clear the trace information Clicking the right hand mouse button on the Event window displays a popup menu Select Delete All from this menu to delete all the event points that have been set Clicking the right hand mouse button on the Trace window displays a further popup menu Select Clear from this menu to clear the trace information 122 RENESAS 4 16 5 Function Calls This mechanism is only used to collect trace information on the function calls 1 Make the setting so that a break occurs at the address on the line that has p_sam gt sO0 a 0 within the tutorial function H 000010A 4 in this example for details refer to section 4 15 1 Software Break Function 2 Select Reset Go from the Debug menu Execution stops when the break condition is satisfied and the Trace window then displays the trace inf
10. Interrupt Sets the levels high or low of the IRQ and NMI signals as the condition When Don t Care has been selected the level of the IRQ or NMI signal cannot be set as the condition Count Sets a satisfaction count condition When Don t Care has been selected the satisfaction count is defined as 1 3 7 4 Editing Event Points Handlings for settings other than software breakpoints on chip breakpoints and on emulator breakpoints are common 3 7 5 Modifying Event Points Select an event point to be modified and choose Edit from the popup menu to open the dialog box that corresponds the event which allows the user to modify the event conditions The Edit menu is only available when one event point is selected 3 7 6 Enabling an Event Point Select an event point and choose Enable from the popup menu to enable the selected event point 3 7 7 Disabling an Event Point Select an event point and choose Disable from the popup menu to disable the selected event point When an event point is disabled the event point will remain in the list but an event will not occur when the specified conditions have been satisfied 3 7 8 Deleting an Event Point Select an event point and choose Delete from the popup menu to remove the selected event point To retain the event point but not have it cause an event when its conditions are met use the Disable option see section 3 15 7 Disabling an Event Point 46
11. Make the setting so that a break occurs at the address on the line that has p_sam gt s0 a 0 within the tutorial function H 000010A4 in this example for details on refer to section 4 15 1 Software Break Function Select Reset Go from the Debug menu Execution stops when the break condition is satisfied and the Trace window then displays the trace information Select Statistic from the popup menu that is displayed when you click the right hand mouse button on the Trace window A message box appears indicating that the trace data is being loaded and the Statistic dialog box will be displayed St ic r Statistic Analysis Figure 4 46 Statistic Dialog Box 119 RENESAS 5 Select R W in the Item combo box and enter WR in the Start edit box Then click the New button R W WR will be displayed in the Condition column of the Result list box Figure 4 47 Statistic Dialog Box New Condition 120 RENESAS 6 Then select Area from the Item combo box and enter RAM in the Start edit box Then click the Add button the new condition is now added to the R W WR display in the Condition column of the Result list box so that it now shows R W WR amp Area RAM This completes the setting of the conditions Default Range ltem Area Start RAM R W WR amp Area RAM
12. The emulator allows monitoring of the contents of specified addresses in memory during execution of the user program In this example we monitor the content of the address range where variable a of the tutorial function is stored 1 Select the CPU submenu from the View menu Selecting Monitor Setting from the Monitor submenu displays the Monitor Setting dialog box Monitor Setting Name monto m Options Address Size byte H 0020 hA Access Format BYTE ASCII hd JV Auto Refresh at rate ms D 00500 JV Reading the Initial Value r Color Change Indicator Change x Foreground oe Background m IV Mayfly m Detail DETAIL NOT SUPPORTED Detail m History Figure 4 60 Monitor Setting Dialog Box RENESAS 129 2 Set the items in the Monitor Setting dialog box as follows Enter moni tor1 in the Name edit box e Set the parameters in the Options group box as follows a Use the Watch window to refer to the address on the line where variable a which is defined within the tutorial function is allocated and enter this address in the Address edit box In this example H FFFFE400 is entered b Enter H 20 in the Size byte combo box c Select BYTE ASCII from the Access Format combo box d Check the Auto Refresh at rate ms check box and enter D00500 in the edit box e Check the Read
13. how to symbol It indicates that the text to its immediate right is describing how to do something Components Check all the components described in the component list unpacking If the components are not complete contact a Renesas sales office RENESAS Contents Hardware Part Section 1 Overview 1 1 Notes on Usage 1 2 Emulator Hardware Components 1 2 1 E6000H Station Components 1 2 2 Evaluation Chip Board Configuration 1 2 3 Configuration of User System Interface Board 1 3 System Configuration 1 3 1 System Configuration Using a PC Interface Board cccceeeceseeeereeeeeeeeeeees T Section2 Preparation before Use 2 1 Description on Emulator Usage 2 2 Emulator Connection 2 2 1 Connecting the User System 2 2 2 Connecting the User System Interface Board 2 2 3 Connecting the External Probe 2 2 4 Selecting the Clock 2 2 5 Connecting the System Ground 2 2 6 PC Interface Board Specifications Section 3 Hardware Specifications 0 0 0 0 cece eseseescseeeeesessesesseseeseeeeanees 17 3 1 Environmental Conditions 3 2 Emulator External Dimensions and Mass 3 3 User System Interface Circuit 3 3 1 User System Interface Circuit 3 3 2 Delay Time with the User System Interface 3 4 Connecting the Emulator to the User System 3 4 1 Connecting to the User System 3 4 2 Pin Arrangement on the User System Interface Connector 3 4 3 Precautions on Connecting the Us
14. 73 QUIT QU Exits High performance Embedded Workshop 74 RADIX RA Sets default input radix 75 REFRESH RF Updates windows related to memory 76 REGISTER_DISPLAY RD Displays CPU register values 77 REGISTER_SET RS Sets CPU register contents 78 REMOVE FILE REM Deletes the specified file from the current project 79 RESET RE Resets CPU 80 SAVE_SESSION SE Saves the current session 81 SLEEP Delays command execution 82 STEP ST Steps program by instructions or source lines 83 STEP_MODE SM Sets the step mode 84 STEP_OUT SP Steps out of the current function 85 STEP_OVER SO Steps program not stepping into functions 86 STEP_RATE SR Sets or displays rate of stepping 87 SUBMIT SU Executes a command file 88 SYMBOL_ADD SA Defines a symbol 89 SYMBOL_CLEAR Sc Deletes a symbol 90 SYMBOL_LOAD SL Loads a symbol information file 91 SYMBOL_SAVE SS Saves a symbol information file 92 SYMBOL_VIEW SV Displays symbols 93 STATUS STS The content of the Platform sheet in the Status window is displayed 94 SAVE_WORKSPACE SW Saves the current workspace 95 TCL Enables or disables the TCL 96 TIMER TI Sets or displays the timer resolution 97 TOOL_INFORMATION TO Outputs information on the currently registered tool to a file 98 TRACE TR Displays trace information 99 TRACE_ACQUISITION TA Sets or displays trace acquisition parameters 100 TRACE_ACQUISITIONn TAn Sets PtoP point and each channel for trace acquisition conditions 101 TRACE_ACQUISITION T
15. 89 N C S1REQ3_N 118 AVSS RENESAS 47 Table 3 5 Pin Arrangement on HS7046EPH60H cont User I F2 PinNo Signal Name User I F2 PinNo Signal Name UCN2 119 N C UCN2 140 GND 120 AVSS 141 GND 121 GND 142 PF8 AN8 122 PFO ANO 143 PA6 TCLKA _CS2 _RD RXD2 123 N C 144 PF9 AN9 124 PF1 AN1 145 PA7 TCLKB _CS3 _WAIT TXD2 125 N C 146 PF10 AN10 126 PF2 AN2 147 PA8 TCLKC _IRQ2 D0 RXD3 127 PAO RXDO A0 148 PF11 AN11 _POEO RXD2 128 PF3 AN3 149 PA9 TCLKD _IRQ3 D1 TXD3 129 PA1 TXDO A1 150 GND _POE1 TXD2 130 GND 151 GND 131 GND 152 PF12 AN12 132 PF4 AN4 153 PA10 _CS0 _RD D2 TCK SCK2 133 PA2 SCKO _DREQO IRQO 154 PF13 AN13 A2 PCIO ACK2 134 PF5 AN5 155 PA11 _CS1 _ADTRG D3 SCK3 135 PA3 RXD1 _WRL A3 156 PF14 AN14 _POE4 RXD3 136 PF6 AN6 157 PA12 _WRL _UBCTRG D4 TDI 137 PA4 TXD1 158 PF15 AN15 138 PF7 AN7 159 PA13 _WRH POE4 D5 TDO _BREQ 139 PAS SCK1 _DREQ1 _IRQ1 160 GND A5 _POE6 ACK3 48 RENESAS Table 3 5 Pin Arrangement on HS7046EPH60H cont User I F2 PinNo Signal Name User I F2 PinNo Signal Name UCN2 161 GND UCN2 181 GND 162 PGO AN16 182 EXTAL 163 PA14 _RD POES5 D6 183 PA22 _WRHL TMS 164 PG
16. H 00100000 128K H 0011FFFF H 00120000 128K H 0013FFFF H 00140000 128K H 0015FFFF H 00160000 128K H 0017FFFF H 00180000 128K H 0019FFFF H 001A0000 128K H 001BFFFF H 001C0000 128K H 001DFFFF H 001E0000 128K H 001FFFFF SB Short block LB Large block Figure 5 1 Memory Map in the Invalid On Chip ROM Mode RENESAS 141 Memory map for on chip ROM valid mode H 00000000 1M d H 00100000 2M H 001FFFFF 2M H 003FFFFF On chip ROM H 00200000 SBo 128K H 0021FFFF H00220000 cso SBi 128K H 0023FFFF H 00240000 Reserved 128K H 0025FFFF H 00400000 H 00260000 1M SB3 128K H 004FFFFF H 0027FFFF H 00500000 H 00280000 iM SB4 128K H OO5FFFFF H 0029F FFF H 00600000 H 002A0000 1M SB5 128K H O06FFFFF H 002BFFFF H 00700000 H 002C0000 1M H 007FFFFF 1700800000 H 002E0000 1M SB7 128K H 008FFFFF H 002FFFFF 1700900000 H 00300000 1M SB8 128K H 009FFFFF H 0031FFFF H 00320000 H 00A00000 1M SB9 128K HIQOAFFFFF H 0033FFFF H 00B00000 H 00340000 1M SB10 128K H OOBFFFFF H 0035FFFF H 00C00000 H 00360000 2M SB11 128K H OODFFFFF H 0037FFFF H 01000000 H 00E00000 H 00380000 2M SB12 128K H FFFEFFFF H OOFFFFFF H 0039FFFF H FFFF0000 H 003A0000 SB13 128K
17. Low The status of the IRQ signal is low Timestamp Sets the time stamp condition Don t care Detects no time stamp value when this box is checked Value Enter the time stamp value The format is as follows hour h minute min second s millisecond ms microsecond us nanosecond ns Clicking the OK button after setting conditions in those pages stores the settings and starts searching Clicking the Cancel button closes this dialog box without setting of conditions When a trace record that matches the search conditions is found the line for the trace record will be highlighted When no matching trace record is found a message dialog box will appear Only the trace information that satisfies all the conditions set in above pages will be searched If a find operation is successful selecting Find Next from the popup menu will move to the next found item 3 8 5 Clearing the Trace Information Select Clear from the popup menu to empty the trace buffer that stores the trace information If several Trace windows are open all Trace windows will be cleared as they all access the same buffer 58 RENESAS 3 8 6 Saving the Trace Information in a File Select Save from the popup menu to open the Save As file dialog box which allows the user to save the information displayed in the Trace window as a text file A range can be specified based on the PTR number saving the complete buffer may take several min
18. 3 0 PF 15 0 PG 3 0 SN74S1053NS Figure 3 8 User System Interface Circuits 6 3 3 2 Delay Time with the User System Interface The delay time is generated on the timing of the _RES signal when it is input to the MCU from the user system as shown in table 3 3 because this connection for this signal is via logic circuit on the evaluation chip board Table 3 3 Delay Time for Signal Connected via the Evaluation Chip Board Signal Name Delay Time ns _RES 15 0 26 RENESAS 3 4 Connecting the Emulator to the User System 3 4 1 Connecting to the User System AWARNING Always switch OFF the emulator and user system before connecting or disconnecting any CABLES Failure to do so will result in a FIRE HAZARD and will damage the user system or emulator or result in PERSONAL INJURY Also the USER PROGRAM will be LOST The emulator is connected to the user system by using the user system interface board Table 3 4 User System Interface Board and User Interfaces User System Interface Board User Interface HS7046ECH61H FP 80Q IC149_080_017_B5 HS7047ECH61H FP 100M IC149_100_054_B51 HS7144ECH61H FP 112B IC149_112C15333 0B HS7145ECH61H FP 144F NQPACK144SD Notes 1 The 1C149 series is manufactured by YAMAICHI ELECTRONICS Co LTD 2 The NQPACK series is manufactured by Tokyo Eletech Corporation RENESAS Installing IC Socket 1 Installing IC Socket Install the IC s
19. Address Data Bus Area Probe Interrupt and Count are the same as those for on emulator break conditions For details on the on emulator break conditions refer to section 3 7 Using the Event Points 2 Set the range in the address range trace so that value of the end address will be larger than that of the start address 3 Two channels are used in the address range conditional trace To perform the address range conditional trace select an odd numbered channel 2n 1 for the address range trace and an even numbered channel 2n for the conditional trace respectively and then check Combination with the next channel 56 RENESAS 3 8 4 Searching for a Trace Record Use the Trace Find dialog box to search for a trace record To open this dialog box choose Find from the popup menu Area Probes IRQ Timestamp General Address Data AAW Status Trace search range J Not designation D Upward search Start PTR j 31071 Endet o Cancel Apply Figure 3 30 Trace Find Dialog Box The Trace Find dialog box has the following options General Sets the range for searching Not designation Searches for information that does not match the conditions set in other pages when this box is checked Upward search Searches upwards when this box is checked Start PTR Enters a PTR value to start a search End PTR Enters a PTR value to end a search Address Sets an
20. Available Not available Only one point is used in Time Of Specified Range Measurement and Start Point To End Point Measurement while two sequential points are used in Start Range To End Range Measurement Access Count Of Specified Range Measurement and Called Count Of Specified Range Measurement The conditions that have been set will be canceled when switching these modes of different types 67 RENESAS 3 9 1 Opening the Performance Analysis Window Choose View gt Performance gt Performance Analysis or click the PA toolbar button NE to open the Select Performance Analysis Type dialog box erformance Ane 2 2 x E6000H Performance Analysis Performance Analysis Figure 3 35 Select Performance Analysis Type Dialog Box Select E6000H Performance Analysis and then click the OK button to open the Performance Analysis window F alist haua ag No Mame Condition Rate RUN TIME MAX MIN TIME Count 0 10 20 30 40 S0 1 PAL pange 4 00002032 u 000020cc 31 OOh OOmin 00s 00Ons Lidus 100ns 1 SARRUNNANRNASKN 2 3 4 5 6 7 8 p S E a Figure 3 36 Performance Analysis Window This window displays the rate of execution time in the area selected by the user during the last program run in percentages histogram or numerical values It is possible to hide any column not necessary in the Performance Analysis window Selecting a column you want to hide from the pop
21. Count and Action On Chip Bre x Address Data Bus Area Count Action m Address Address H 0000107C I Use mask Only H or Oor BY is effe a mask is 1 and a nomask is 0 Cancel Apply Figure 3 23 On Chip Break Channel n Dialog Box 41 RENESAS Address Sets address bus conditions Don t Care Selects no address bus condition Address Sets an address bus value It is also possible to specify a label as the address value Use mask Sets mask conditions Set the mask bits if Use mask is selected Masked bits satisfy this break condition regardless of their values Data Sets data bus conditions Don t Care Selects no data bus condition Value Sets a data bus value Use mask Sets mask conditions Set the mask bits if Use mask is selected Masked bits satisfy this break condition regardless of their values Access Size Selects the data access size Bus Area Sets access type bus status and read write cycle conditions Access type Sets access type conditions Bus State Sets bus status conditions When Don t Care has been selected no bus status condition can be set Read Write Sets read write conditions When Don t Care has been selected no read write condition can be set Count Sets a satisfaction count of the condition When Don t Care has been selected the satisfaction count is defined as 1 Action
22. Profile Chart window is going to be opened when it has already been opened selects whether another window is to be opened or the same window is to be used to display data When a check mark is shown to the left side of the menu text another window is opened e Output Profile Information File Displays the Save Profile Information File dialog box Profiling results are saved in a profile information file pro extension The optimizing linkage editor optimizes user programs according to the profile information in this file For details of the optimization using the profile information refer to the manual of the optimizing linkage editor e Expands Size Expands spaces between each function The key can also be used to expand spaces e Reduces Size ee Reduces spaces between each function The key can also be used to reduce spaces 82 RENESAS Section 4 Tutorial 4 1 Introduction This section describes the main functions of the emulator by using a tutorial program The tutorial program is based on the C program that sorts ten random data items in ascending or descending order The tutorial program performs the following actions e The main function repeatedly calls the tutorial function to repeat sorting e The tutorial function generates random data to be sorted and calls the sort and change functions in that order e The sort function enters the array where the random data generated by the tutorial functio
23. Step Over F10 P Executes a block of user program before breaking If a subroutine call is reached then the subroutine will not be entered Shift F11 Step Out Executes the user program to reach the end of the current function Step Launches the Step Program dialog box allowing the user to modify the settings for stepping Step Auto Mode Steps only one source line when the Editor window is active When the Disassembly window is active stepping is executed in a unit of assembly instructions Assembly Executes stepping in a unit of assembly instructions Source Steps only one source line Halt Program Esc Stops the execution of the user program Initialize Disconnects the emulator and connects it again Connect Connects the emulator Disconnect Disconnects the emulator Save Memory Saves the specified memory area data to a file Verify Memory Verifies file contents against memory contents Configure Overlay Selects the target section group when the overlay function is used Download Modules Downloads the object program Unload Modules Unloads the object program RENESAS 149 Table A 1 GUI Menus cont Menu Setup Toolbar Option Shortcut Button Customize Remarks Customize the High performance Embedded Workshop application Options Sets option of
24. This allows breaking the program for several E6000H emulators at the same time by using a trigger input and probe pins Driver Displays the E6000H driver that is currently installed Change driver in start up When this box is checked selection of a driver will be available next time the emulator is connected Note The system clock is set as the input for the clock counter setting The debugging function in the E6000H emulator is realized by serial communication with the target MCU The JTAG clock is used as the input clock in this serial communication Set the JTAG clock frequency as high as possible to improve performance in downloading and reading memory Note that however the JTAG clock frequency must be lower than that of the peripheral modules clock Po of the target MCU 16 RENESAS 3 1 2 Settings Associated with the Pin Function Controller The Pin Select Registers page of the Configuration Properties dialog box allows setting of the pins selected by the pin function controller PFC The emulator correctly sets these pins that correspond to the signals for use in the following functions e External interrupt signal conditions for hardware breaks and tracing e Detecting the WAIT signal for display in the emulation state display Select the pins that have been set as the PFC by the user program OH Configuration Properties L Figure 3 2 Configuration Dialog Box Pin Se
25. any of other sequential subroutines in a program that includes subroutines in sequence such as an assembly program Access Count Of Specified Range Measurement Measures the number of times a specified range is accessed from another specified range Measurement of the number of times a global variable is accessed from a specific function Called Count Of Specified Range Measurement Measures the number of times a specified range has called another specified range Measurement of the number of times a function is called from a specific function Use eight performance channels installed on the circuit for measurement of hardware performance in the emulator for setting of conditions for measurement Up to eight points can be set Note however that up to four points can be set in Start Range To End Range Measurement Access Count Of Specified Range Measurement or Called Count Of Specified Range Measurement because two sequential points are used for setting a condition in these modes 66 RENESAS Table 3 2 Mode Settings for Measurement Point Measurement Mode Time Of Specified Range o o o o oO 0 0 oO Measurement Start Point To End Point o o o o oO 0 oO O Measurement Start Range To End o Oo _ o o Range Measurement Access Count Of o o o N Oo Specified Range Measurement Called Count Of o o o o Specified Range Measurement Note Note O
26. gt s4 a 4 p_sam gt s5S a 5 p_sam gt s6 a 6 p_sam gt s7 a 7 p_sam gt s8 a 8 p_sam gt s9 a 9 delete p_sam tutorial cpp Figure 4 34 Editor Window at Execution Stop Software Break 108 RENESAS The Status window displays the following contents Item Status Connected To SH7046 E6000H Emulator CPU SH 2 E6000H H UDI USB Driver CPU 5H7145M Mode 3 Clock source 10MHz JTAG Clock 10MHz Clock Mode 0 Write Protect area write None Guard Protect area access None Cause of last break Stepping Completed RunTime Count O0hOOminO0s000ms048 us400ns Method of RunTime Count Go to Break A Ef Memory Platform Figure 4 35 Displayed Contents of the Status Window Software Break Note The items that can be displayed in this window differ depending on the product For the items that can be displayed refer to section 3 Debugging or the online help 109 RENESAS 4 15 2 On Chip Break Function Setting of an on chip breakpoint on channel 4 such that a break is triggered when the break condition has been satisfied five times is explained as an example of the use of on chip breakpoints Note The channels on which the satisfaction count can be specified differ depending on the product For details on each product refer to section 3 Debugging or the online help e Select Eventpoints from the Code submenu of the View menu or click the Eventpoints toolbar button B The E
27. idi Opena recent project workspace Administration E m Fe C Browse to another project workspace Figure 2 10 Welcome Dialog Box 2 The Open Workspace dialog box is displayed Select a directory in which you have created a workspace After that select the workspace file hws and click the Open button Look in sane ck Ee sample File name sample hws Files of type Workspaces hws X Cancel 4 Figure 2 11 Open Workspace Dialog Box 3 This activates the High performance Embedded Workshop and recovers the state of the selected workspace at the time it was saved When the saved state information of the selected workspace includes connection to the emulator the emulator will automatically be connected To connect the emulator when the saved state information does not include connection to the emulator refer to section 2 2 Connecting the Emulator RENESAS 2 2 Connecting the Emulator Select either of the following two ways to connect the emulator a Connecting the emulator after the setting at emulator activation Select Debug gt Debug Settings to open the Debug Settings dialog box It is possible to register the download module or the command chain that is automatically executed at activation When the dialog box is closed after setting the Debug Settings dialog box the emulator will automatically be connected b Connecting the emulator withou
28. trace acquisition is started with the execution of the user program and stopped by halting the user program The acquired trace information is displayed in the Trace window 15 x Address Coded Codel Data R W SZ Status Area IRQ Timestamp 00010 00002130 RTS NOP 000b0009 RD L IF ROM 1111 1 0000h000mint 00009 OTH 1111 1 0000h000mint 00008 fffffEdO 00000000 RD b DAT RAM 1111 1 0000h000mint 00007 000010a4 DATA W H 0000 00006262 RD Lb IF ROM 1111 1 0000h000mint 00006 oTH jiii 1 0000h000mint 00005 000010a8 2d22d615 RD Lb IF ROM 1111 1 0000h000mint 00004 OTH 1111 1 0000h000mint 00003 OTH 1111 1 0000h000mint 00002 iii 1 0000h000mint 00001 1111 1 0000h000mint 00000 1 0000h000 4 Figure 3 26 Trace Window This window displays the following trace information items PTR Cycle number in the trace buffer When the most recent record is record 0 earlier record numbers go backwards 1 2 If a delay count has been set the cycle number where the trace stop condition has been satisfied is record 0 For the cycle during delay executed until the trace has stopped earlier record numbers go forward 1 2 the most recent record Address Address bus value 8 digit hexadecimal Code0 Upper 16 bits of the executed instruction code Code1 Lower 16 bits of the executed instruction code Data Data in byte word or longword units displayed as 2 digit 4 digit or
29. 00000000 Value before reset Undefined MACL H 00000000 Value before reset Undefined PR H 00000000 Value before reset Undefined Note X indicates an undefined value RENESAS 55 56 RENESAS Section 4 Diagnostic Test Procedure This section describes the diagnostic test procedure using the E6000H diagnostic program 4 1 System Set Up for Diagnostic Program Execution To execute the diagnostic program use the following hardware do not connect the user system interface board and user system E6000H HS7046EPH60H Host computer The E6000 PC interface board which will be one of the following boards PCI bus interface board HS6000EIC01H or HS6000EIC02H PC card interface HS6000EIP01H LAN adapter HS6000ELN01H USB adapter HS6000EIU01H or HS6000EIU02H Install the E6000 PC interface board in the host computer and connect the supplied PC interface cable to the board Connect the PC interface cable to the E6000H Connect the supplied AC power cable to the E6000H Initiate the host computer to make it enter the command input wait state of the DOS prompt Windows 98SE or Windows Me or command prompt Windows NT Windows 2000 or Windows XP If the property of the prompt window is not a mode for displaying the whole screen press the Alt Enter key to switch the mode To set back the mode press the Alt Enter key The display of the screen is switched regardless of the OS being used Note In the MS DOS
30. 16 N C S1CLR3_N 46 N C 17 GND 47 GND 18 GND 48 VCC 19 C S2CLRO_N 49 N C SAB8_P 20 C S3CLRO_N 50 VCC 21 C S2CLR1_N 51 N C SAB9_P 22 C S3CLR1_N 52 VCC 23 C S2CLR2_N 53 N C SAB10_P 24 C S8CLR2_N 54 PVCC 25 C S2CLR3_N 55 N C SAB11_P 26 N C S3CLR3_N 56 PVCC 27 GND 57 GND 28 GND 58 PVCC 29 N C SABO_P 59 N C SVID4_N 30 MD4 60 PVCC 46 RENESAS Table 3 5 Pin Arrangement on HS7046EPH60H cont User I F 2 Pin No Signal Name User I F2 PinNo Signal Name UCN2 61 N C SVID3_N UCN2 90 N C S2REQ3_N 62 PVCC 91 N C SSREQO_N 63 N C SVID2_N 92 N C 64 PVCC 93 N C SS3REQ1_N 65 N C SVID1_N 94 N C 66 N C 95 N C S3REQ2_N 67 GND 96 N C 68 GND 97 N C SSREQ3_N 69 N C SVIDO_N 98 N C 70 _RES 99 N C SSREQ4_N 71 N C SOREQO_N 100 N C 72 N C SADTRG2_N 101 GND 73 N C SOREQ1_N 102 AVCC 74 N C SADTRG1_N 103 N C 75 N C SOREQ2_N 104 AVCC 76 N C SADTRGO_N 105 N C EVAVCC 77 GND 106 AVCC 78 GND 107 N C EVAVCC 79 N C SOREQ3_N 108 AVCC 80 N C SMTUADTRG_N 109 N C EVAVCC 81 N C S1REQO_N 110 AVref 82 N C 111 N C SMMTADTRG_N 83 N C S1REQ1_N 112 AV ref 84 N C S2REQO_N 113 N C 85 N C S1REQ2_N 114 AVSS 86 N C S2REQ1_N 115 N C 87 GND 116 AVSS 88 N C S2REQ2_N 117 N C
31. 177 GND 154 PD15 D15 178 PD24 D24 _DREQO _UBCTRG 155 PC15 A15 179 PC6 A6 156 PD16 D16 _IRQO AUDATAO 180 PD25 D25 _DREQ1 157 GND 181 PC5 D5 158 GND 182 PD26 D26 DACK0 159 PC14 A14 183 PC4 A4 160 PD17 D17 _IRQ1 AUDATA1 184 PD27 D27 DACK1 161 PC13 A13 185 GND 162 PD18 D18 _IRQ2 AUDATA2 186 GND 163 PC12 A12 187 PC3 A3 164 PD19 D19 _IRQ3 AUDATA3 188 PD28 D28 _CS2 165 PC11 A11 189 PC2 A2 166 GND 190 PD29 D29 _CS3 167 GND 191 PC1 A1 168 PD20 D20 _IRQ4 _AUDRST 192 PD30 D30 _IRQOUT 169 PC10 A10 193 PCO A0 HRxD1 170 PD21 D21 _IRQ5 AUDMD 194 PD31 D31 _ADTRG 171 PC9 AQ 195 GND 172 PD22 D22 _IRQ6 AUDCK 196 GND 173 PC8 A8 197 GND 174 PD23 D23 _IRQ7 _AUDSYNC 198 GND 175 PC7 A7 199 GND 176 GND 200 GND RENESAS 45 Table 3 5 Pin Arrangement on HS7046EPH60H cont User I F 2 Pin No Signal Name User I F2 PinNo Signal Name UCN2 1 GND UCN2 31 N C SAB1_P 2 GND 32 MD3 3 GND 33 N C SAB2_P 4 GND 34 MD2 5 GND 35 N C SAB3_P 6 GND 36 MD1 7 GND 37 GND 8 GND 38 GND 9 N C SOCLRO_N 39 N C SAB4_P 10 N C S1CLRO_N 40 MDO 11 N C SOCLR1_N 41 N C SAB5_P 12 N C S1CLR1_N 42 NMI 13 N C SOCLR2_N 43 N C SAB6_P 14 N C S1CLR2_N 44 _HSTBY 15 N C SOCLR3_N 45 N C SAB7_P
32. 3 5 5 Bus State Controller BSC The wait state controller has a programmable wait mode and a WAIT pin input mode The programmable wait mode is valid when the emulation memory or user external memory is accessed but input to the user WAIT pin is only valid when user external memory is accessed 3 5 6 Watchdog Timer WDT While emulation is being halted during break counting up the WDT timer counter TCNT is suspended and restarted when emulation is executed again user mode During break mode a prescaler which supplies a clock to TCNT operates continuously Since the phase of the prescaler may be unmatched before or after emulation transits the break mode the period before an overflow occurs will differ by 1 cycle in the prescaler s clock cycle 52 RENESAS 3 5 7 A D Converter The A D converter has AVcc AVss Avref and _ADTRG pins as well as the analog input pins As the A D converter operates with an independent power supply connect AVcc the power supply pin to the A D power supply on the user system Notes 1 When not using the A D converter connect AVcc to Vcc 2 As the user system interface cable printed circuit boards and protective circuits are connected between the MCU and the user system in the emulator pod the conversion precision is lower than that of the SH7046 series or SH7144 series MCUs At final debugging of the user system using the A D converter use the actual SH7046 series or SH7144 series F Z
33. 5 5 Monitoring Variables Using the Watch window refers to the value of any variables When the address of the variable registered in the Watch window exists within the monitoring range that has been set by the Monitor function the value of the variable can be updated and displayed This function allows checking the content of a variable without affecting the realtime operation 32 RENESAS 3 5 6 Hiding the Monitor Window When using the Monitor function to monitor the value of a variable from the Watch window hide the Monitor window for the effective use of the screen The current monitoring information is listed as the submenu when selecting Display gt CPU gt Monitor The list consists of the Monitor window name and the address to start monitoring When the left of the list is checked the Monitor window is being displayed Selecting items of the Monitor window you want to hide from the monitor setting list displays no Monitor window and removes the check mark at the left of the list To display the Monitor window again select the hidden the Monitor window E 2 ert settns Shift Ctrl E v monitor2 H OOFFB080 monitor H OOFFBOO0 _heap_area Windows Select Figure 3 16 Monitor Setting List 33 RENESAS 3 5 7 Managing the Monitor Window Selecting Display gt CPU gt Monitor gt Windows Select displays the Windows Select dialog box In thi
34. 8 digit hexadecimal 48 RENESAS R W SZ Status Area Probes NM IRQ Timestamp Source Label Whether an access was read RD or write WR Selects the size of an access as B byte W word or L longword Bus state DMA internal DMAC DTC execution cycle AUD AUD cycle BRL user bus release DAT CPU data access cycle except for PC relative data access IF CPU instruction fetch cycle including PC relative data access or OTH other cases Types of access areas U32 U16 and U08 32 16 and 8 bit external memory area respectively E32 E16 and E08 32 16 and 8 bit emulation memory area respectively ROM I O and RAM on chip ROM on chip I O and on chip RAM respectively A 4 bit binary number showing the four probe pins in the order of Probe 4 Probe 3 Probe 2 and Probe 1 from the left Status of NMI input signal Status of IRQ input signals Time stamp of the record Time stamps start from zero each time the user program is executed The minimum unit used in time measurement depends on the time stamp clock rate selected in the Trace Acquisition dialog box Source program of the executed instruction address Label information of the address if defined Timestamp Difference Difference from the timestamp value shown on the previous line It is possible to hide any column not necessary in the Trace window Selecting a column you want to hide f
35. 89 FB 32 16 89 FS 00001138 D1 OD D2 OE AQ OA OO 09 63 16 64 16 65 16 AD 03 00001148 00 09 66 36 25 62 75 04 34 36 89 FA 32 16 89 F3 00001158 66 F6 65 F6 64 F6 63 F6 62 F6 OO OB 61 F6 OO 09 00001168 bsec_top 00 oO 15 ZO OO OO 15 E8 OO OO 15 EB OO OO 15 F4 00001178 CcALL_INIT 2F D6 2F E6 4F 22 D2 OA DD OA AO 06 GE 22 52 EL 00001188 22 28 89 05 42 0B 00 09 7E OC 62 D2 3E 22 8B F6 zl Figure 4 13 Memory Window 94 RENESAS 4 10 Watching Variables As the user steps through a program it is possible to watch that the values of variables used in the user program are changed For example set a watch on the long type array a declared at the beginning of the program by the following procedure Click the left of displayed array a in the Editor window to place the cursor Select Instant Watch with the right hand mouse button The following dialog box will be displayed a FFFFE400 long 10 Figure 4 14 Instant Watch Dialog Box Click the Add button to add a variable to the Watch window a Watch a FFFFE400 long 10 Te watchs watch2 A watcha J Watch Figure 4 15 Watch Window Displaying the Array RENESAS 95 The user can also add a variable to the Watch window by specifying its name e Click the Watch window with the right hand mouse button and select Add Watch from the popup menu The following dialog box w
36. Channel 1 Dialog Box Address Page RENESAS 4 Items that have been set are displayed in the list box on the Condition page of the Trace Acquisition Properties dialog box Click the Close button on this dialog box 2x Condition Other Combination Sequential Trace Stop Bos oe eo ew es ee I ResetPoint Delay Run time count between trigger outputs M Use Fromito2 From3to4 C Froom5to6 From7tod Back stop address H 0000107C won nos woh Figure 4 43 Trace Acquisition Properties Dialog Box Trace Stop 5 Select Reset Go from the Debug menu The trace condition is satisfied and the Trace window then displays the following contents Data Z Status Area Probes IRQ Timestamp OTH 1111 1 O000h000mint ffffffdo 00000000 RD L DAT RAM 1111 1 0000h000mint 00001078 BT H 107C 8 8900622b RD L IF ROM 1111 1 O000h000mint OTH 1111 1 0000h000mint 0000107c d42066e3 RD L IF ROM 1111 1 O0000h000mint 0000107c MOV L H OO MOV R14 R6 d42066e3 RD L IF ROM 1111 zl O000h000minCt OTH 1111 1 O000h000mint 00001080 mov R6 R5 SHLL2 RS 65634508 RD L IF ROM 1111 1 0000h000mint 00001100 ffffe400 RD L DAT ROM 1al 1 0000h000mint 00001084 Mov R5 R0 MOV L R2 60530426 RD L IF ROM 1111 1 0000h000mint 1111 1 OO00hO0OminCt 1 O000hO00mint Figure 4 44 Trace Window Trace Stop 117 RENESAS 4 16 3 Displaying Trace Information by the Conditional
37. DPRAM Marching POME sacccnacacaveareres SAHReReeRe Ne Ree eS SKIP 05 Trace Memory Address Decode Test cece eee eee OK 06 Trace Memory Marching Test 4c 255553e 44444444 0055505828 OK 07 G A Registers Initial Value Check 2224 OK 08 G A Registers Writel Verify pepioriicereisssstt ta Es AG Riel eens OK 2 Emulation Board Access 01 Registers Initial Value Check 2 02 000 OK 02 Registers WHite Verify lt ccacaaceeeeeeree cane eens teeseseas OK 03 H UDI Interface Registers Initial Value Check OK 04 H UDI Interface Registers Write Verify OK 05 MAPR Interface Registers Initial Value Check OK 06 MAPR Interface Registers Write Verify 4 OK 07 PRALR Interface Registers Initial Value Check OK 08 PRALR Interface Registers Write Verify OK RENESAS 61 Bi 4 5 6 62 Evaluation Board Access 01 02 03 04 05 06 07 08 09 10 11 12 Basic 01 02 03 04 05 06 07 08 GO to 01 02 03 04 05 06 07 08 09 Registers Initial Value Check ccccicccceseeereae ech eeaaaad OK Registers Weite Verily secre nccnnnnccareeieieee ee REEDER TRNA OK H U TDCODE Check cessendnsncnsnendye gee Ge Gane Goi SSIS BS Seb ble WOE ORR S OK Firmware BOOT 2 sc cccsissiscccccce cscs ccc c cb bbb bbb bbe eeceeces OK Configuration Seb cc
38. FOR ANY PARTICULAR PURPOSE OR USE OR AGAINST INFRINGEMENT OF ANY PATENT IN NO EVENT SHALL RENESAS BE LIABLE FOR ANY DIRECT INCIDENTAL OR CONSEQUENTIAL DAMAGES OF ANY NATURE OR LOSSES OR EXPENSES RESULTING FROM ANY DEFECTIVE EMULATOR PRODUCT THE USE OF ANY EMULATOR PRODUCT OR ITS DOCUMENTATION EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES EXCEPT AS EXPRESSLY STATED OTHERWISE IN THIS WARRANTY THIS EMULATOR PRODUCT IS SOLD AS IS AND YOU MUST ASSUME ALL RISK FOR THE USE AND RESULTS OBTAINED FROM THE EMULATOR PRODUCT RENESAS State Law Some states do not allow the exclusion or limitation of implied warranties or liability for incidental or consequential damages so the above limitation or exclusion may not apply to you This warranty gives you specific legal rights and you may have other rights which may vary from state to state The Warranty is Void in the Following Cases Renesas shall have no liability or legal responsibility for any problems caused by misuse abuse misapplication neglect improper handling installation repair or modifications of the emulator product without Renesas prior written consent or any problems caused by the user system All Rights Reserved This user s manual and emulator product are copyrighted and all rights are reserved by Renesas No part of this user s manual all or part may be reproduced or duplicated in any form in hard copy or machine readable form by any means availab
39. KEEP the user s manual handy for future reference Do not attempt to use the emulator product until you fully understand its mechanism Emulator Product Throughout this document the term emulator product shall be defined as the following products produced only by Renesas Technology Corp excluding all subsidiary products e Emulator station e PC interface board e User system interface board e Cable The user system or a host computer is not included in this definition Purpose of the Emulator Product This emulator product is a software and hardware development tool for systems employing the Renesas microcomputer This emulator product must only be used for the above purpose Limited Applications This emulator product is not authorized for use in MEDICAL atomic energy aeronautical or space technology applications without consent of the appropriate officer of a Renesas sales company Such use includes but is not limited to use in life support systems Buyers of this emulator product must notify the relevant Renesas sales offices before planning to use the product in such applications Improvement Policy Renesas Technology Corp including its subsidiaries hereafter collectively referred to as Renesas pursues a policy of continuing improvement in design performance and safety of the emulator product Renesas reserves the right to change wholly or partially the specifications design user s manual and other documentation
40. LTD on the user system to connect the emulator Since the pin arrangement is the same as that of the actual MCU refer to the hardware manual Figure 3 12 shows the connection of the HS7047ECH61H figure 3 13 shows the size restrictions for the installed components of the HS7047ECH61H and figure 3 14 shows the recommended mount pad dimensions of the user system IC socket 31 RENESAS Evaluation chip board Figure 3 12 Connection Using the HS7047ECH61H Evaluation chip board m 3 Ee s IC socket Unit mm tt User system IC149 100 054 B51 manufactured by 1erance 0 5 mm YAMAICHI ELECTRONICS Co LTD 55 8 Figure 3 13 Restrictions on Component Installation 32 RENESAS 17 10 min a al 13 80 max B a 0 50 x 24 12 00 0 05 a a 0 50 0 05 0 30 0 05 E y SS SS A SS a lo S wo S z Bl 4 o 8 0 pene vera One a Ue COE a a Eo a 1 x A x o ite a co S gt _ y Unit mm Figure 3 14 Recommended Mount Pad Dimensions of the User System IC Socket RENESAS 33 Connection Using the HS7144ECH61H AWARNING Always switch OFF the emulator and user system before connecting or disconnecting any CABLES Failure to do so will result in a FIRE HAZARD and will damage the user system or emulator or result in PERSONAL INJURY Also
41. Menus Toolbar Menu Option Shortcut Button Remarks View Command Line Ctrl L Opens the Command Line window Workspace Alt K E Opens the Workspace window Output Alt U E Opens the Output window Disassembly Ctrl D E Opens the Disassembly window CPU Registers Ctrl R Opens the Register window Memory Ctrl M E Opens the Memory window IO Ctrl I E Opens the IO window Status Ctrl U E Opens the Status window Extended Monitor a Opens the Extended Monitor window Monitor Monitor Shift a Opens the Monitor window Setting Ctrl E Windows Opens the Windows Select Select dialog box to list add or edit the Monitor window Sym Labels Shift Opens the Labels window bol Ctrl A Watch Ctrl W E Opens the Watch window Locals Shift G Opens the Locals window Ctrl W Code Eventpoints Ctrl E E Opens the Event window Trace Ctrl T Opens the Trace window Code Coverage Shift Opens the Code Coverage Ctrl H window Data coverage Shift Opens the Data Coverage Ctrl Z window Stack Trace Ctrl K ia Opens the Stack Trace window 147 RENESAS Table A 1 GUI Menus cont Menu Option View Gra cont phic Image Shortcut Shift Ctrl G Remarks Opens the Image window Waveform Shift Ctrl V Opens the Waveform window P
42. PROGRAM will be LOST Check that the emulator power switch is turned off Ensure that the power lamp on the right side of the E6000H station s front panel is not lit Remove the AC power cable of the E6000H station from the outlet if the cable is connected to the outlet Connect pin 1 on the user system connector to the connector installed at the bottom of the E6000H user system interface board When connecting the connector prevent the upper or lower side of the board from lifting off the connector Alternately tighten the screws on both sides of the board RENESAS 2 2 2 Connecting the User System Interface Board A WARNING Always switch OFF the emulator and user system and check pin numbers on the connectors and IC socket before connecting or disconnecting the USER SYSTEM INTERFACE BOARD Connection with the power on or incorrect connection will damage the emulator user system interface board and user system and result in a FIRE HAZARD For details on the method of connecting the user system interface board refer to the descriptions of the user system interface boards for individual SH7046 E6000H series products Evaluation chip board User system interface board Figure 2 2 Connecting the User System Interface Board 11 RENESAS 2 2 3 Connecting the External Probe CAUTION Check the external probe direction and connect the external probe to the emulator station correctly Incorrec
43. Time Of Specified Range Measurement 4 18 1 Time Of Specified Range Measurement 1 Select Performance Analysis from the Performance submenu of the View menu to display the Select Performance Analysis Type dialog box Figure 4 54 Select Performance Analysis Type Dialog Box 2 Select E6000H Performance Analysis from the Performance Analysis combo box in the Select Performance Analysis Type dialog box and click the OK button The Performance Analysis window will be displayed I a Ela og 0 10 20 30 4C Figure 4 55 Performance Analysis Window 126 RENESAS 3 Select the line in the Performance Analysis window that has 1 in its No column and click the right hand mouse button to display a popup menu Select Set from this popup menu to display the Performance Analysis Properties dialog box Measurement Method PA1 Time Of Specified Range Measurement Range Name PA1 Range Start Address H o0000000 H EndAddress H 00000000 Common Settings of Performance PA1 8 Address Control Mode PC Time Measurement Unit 20ns Figure 4 56 Performance Analysis Properties Dialog Box 4 Select Time Of Specified Range Measurement from the Measurement Method PAI combo box 5 The parameter settings are as follows Enter sort in the Range Name edit box Click the button on the right of the Start Address edit box to d
44. Trace Function The conditional trace function only acquires trace information at the address where a specified condition has been satisfied This is useful for analyzing a program focused on reading from or writing to a specific address e g a global variable or memory mapped I O 1 If the user program is running select Halt Program from the Debug menu to halt the program 2 Delete all the break conditions that have been set Uncheck Free Trace on the Condition page of the Trace Acquisition Properties dialog box otherwise the free trace mode will be selected 3 Select 1 from the list box on the Condition page of the Trace Acquisition Properties dialog box and then click Edit The Trace Acquisition Condition Channel 1 dialog box is displayed Select the Acquisition Condition radio button in the After Condition Match group box on the Action page 4 An address must be set as the condition Uncheck Don t Care on the Address page of the Trace Acquisition Condition Channel 1 dialog box Then use the Watch window to refer to the address on the line that includes a 0 and enter this address in the Start edit box In this example enter H FFFFE4 00 This completes the setting of an address Click the OK button to close the Trace Acquisition Condition Channel 1 dialog box 5 Items that have been set are displayed in the list box on the Condition page of the Trace Acquisition Properties dial
45. address condition Don t care Detects no address when this box is checked Value Enter the address value not available when Don t care has been checked Data Sets a data condition Don t care Detects no data when this box is checked Value Enter the data value not available when Don t care has been checked R W Selects the type of access cycles Don t care Detects no read write condition when this box is checked Setting Detects the specified read write condition RD Read cycle WR Write cycle 57 RENESAS Status Selects the status of a bus as the condition Don t care Detects no bus condition when this box is checked Setting Detects the specified bus condition Area Selects the area being accessed Don t care Detects no area condition when this box is checked Setting Detects the specified area condition Probes Sets a probe signal condition Don t care Detects no probe signal condition when this box is checked Setting Detects the specified probe signal condition Don t care Detects no selected probe signal condition High The status of the probe signal is high Low The status of the probe signal is low IRQ Sets an IRQ signal condition Don t care Detects no IRQ signal condition when this box is checked Setting Detects the specified IRQ signal condition Don t care Detects no selected IRQ signal condition High The status of the IRQ signal is high
46. board Figure 1 5 Configuration of User System Interface Board a Connector for the evaluation chip For connection to the evaluation chip board board b Connector for the user system For connection to the user system 6 RENESAS 1 3 System Configuration The emulator must be connected to a host computer via the selected PC interface board 1 3 1 System Configuration Using a PC Interface Board The emulator can be connected to a host computer via a PC interface board option PCI bus or PC card bus Install the PC interface board to the expansion slot for the interface board in the host computer and connect the interface cable supplied with the PC interface board to the emulator A LAN adapter can be used to connect the emulator to a host computer as a network A USB adapter can be used to connect the emulator to a host computer with the USB interface For details on PC interface boards available for PCI bus and PC card bus specifications LAN adapter and USB adapter refer to their description notes Figure 1 6 shows the configuration of a system in which the PC interface board is used Figure 1 7 shows the configuration of a system in which the LAN adapter is used Figure 1 8 shows the configuration of a system in which the USB adapter is used Install the PC interface board to the expansion slot for the PC interface board in the host computer CL PC interface board E6000H emulator PC interface cable r
47. chip board IC socket User system Figure 3 9 Connection Using the HS7046ECH61H Evaluation chip board D o 7 8 Ee ot 7 i Unit mm IC socket User system IC149 080 017 B5 manufactured by Tolerance 40 5mm YAMAICHI ELECTRONICS Co LTD Figure 3 10 Restrictions on Component Installation 29 RENESAS 20 50 min E al 14 70 max a 0 65 x 19 12 35 0 1 gt 0 1 0 65 0 05 0 35 0 05 l l I j _ _ Ss SS A i SSS A SS lo S t r H S 19 g 2 a a E E j E D E E Z 1 2 x fey S 1 y SS SS 1 ll i i Unit mm 30 Figure 3 11 Recommended Mount Pad Dimensions of the User System IC Socket RENESAS Connection Using the HS7047ECH61H A WARNING Always switch OFF the emulator and user system before connecting or disconnecting any CABLES Failure to do so will result in a FIRE HAZARD and will damage the user system or emulator or result in PERSONAL INJURY Also the USER PROGRAM will be LOST Notes 1 For more details on the HS7047ECH61H refer to the user s manual supplied with the emulator 2 This user system interface board can only be used in combination with the specified QFP socket 1C149 100 054 B51 Install the FP 100M IC socket IC149 100 054 B51 manufactured by YAMAICHI ELECTRONICS Co
48. emulator and re initiate the High performance Embedded Workshop If the problem is not solved contact us and describe the error occurrence in detail Target system is Vcc down The value of Vcc is lower than the specified threshold value JTAG Timeout Srval Error Exit the High performance Embedded Workshop re connect JTAG Packet Receive Error the user system interface cable turn on the power of the emulator and re initiate the High performance Embedded Workshop 6 1 2 Error Messages during Emulation The emulator displays error messages if an error occurs during emulation in the dedicated message dialog box when the High performance Embedded Workshop is used and on the status bar Table 6 2 lists error messages during emulation Table 6 2 Error Messages during Emulation Error Message Description and Solution Communication DLL error The power of the emulator is turned off or there is a communication error Exit the High performance Embedded Workshop re connect the user system interface cable turn on the power of the emulator and re initiate the High performance Embedded Workshop If the problem is not solved contact us and describe the error occurrence in detail Communication Timeout error Parallel Access Error An error has occurred during a parallel access Parallel accesses are disabled until a break occurs 145 RENESAS 146 RENESAS Appendix A Menus Table A 1 shows GUI menus Table A 1 GUI
49. file e 2nd column Source Address column Address information for the source line e 3rd column On Chip Break column On chip breaks e 4th column S W Breakpoints column PC bookmark and breakpoint information The text area is displayed in the right part of the Editor window Line Number column This column displays the line number for the source file Source Address column When a program is downloaded an address for the current source file is displayed on the Source address column These addresses are helpful when setting the PC value or a breakpoint On Chip Break column The On Chip Break column displays the following items On chip break channel 1 8 On chip break channel 2 On chip break channel 3 On chip break channel 4 On chip break reset point These are also set by using the popup menu S W Breakpoints column This column displays the following items E A bookmark is set A PC breakpoint is set PC location 23 RENESAS gt WN To switch off a column in all source files Click the right hand mouse button on the Editor window or select the Edit menu Click the Define Column Format menu item The Global Editor Column States dialog box is displayed A check box indicates whether the column is enabled or not If it is checked the column is enabled If the check box is gray the column is enabled in some files and disabled in others Deselect the check box
50. filtering Don t care other pages Only selects the cycle number when this box is checked Other options become invalid Enable Filter Enables the filter when this box is checked Not designation Filters information that does not match the conditions set in those pages when this box is checked Trace display range Sets the range for filtering Start PTR Enters a PTR value to start filtering End PTR Enters a PTR value to end filtering Address Sets address conditions Don t care Detects no address when this box is checked Setting Detects the specified address 60 RENESAS Point Specifies a single address Range Specifies an address range From Enter a single address value or the start value of the address range To Enter the end value of the address range Data Sets data conditions Don t care Detects no data when this box is checked Setting Detects the specified data Point Specifies single data Range Specifies a data range From Enter a single value or the minimum value of the data range To Enter the maximum value of the data range R W Selects the type of access cycles Don t care Detects no read write condition when this box is checked Setting Detects the specified read write condition RD Detects read cycles when this box is checked WR Detects write cycles when this box is checked Status Selects the status of a bus as the condition multip
51. gis sisisesis see ghd 2 2 2 2 8 2 0 Rae ce eae ee OR RIES ele OK Enulation Memory CSO TESC sccccaw caer aor cease an dakesaaa ents OK Enulatdon Memory OEI TEESE ascend eed ddee dd bss pisieipieie ge SS TASS OK Enmilation Memory CS2 TEst cicccacsee44e 55 5 444444440 FR aE RS OK Emulation Memory OEF TES cc 00 nnnnnnenice dn eee ee ny He RARE REE OK Enulation Memory Test 22 204 cceregeenrece weer nnd dw anwew es OK IRON TORC xsi gs cane eee cos coco 5h 5t 5h st Ge 505 ae bud eSedeSede beds Se Se Seles bib EE OK INNAM TOUCA gh gS EEEE STS Ses G 5 o oo SG SMS Sa BESS OK Function SOP EO TERA 5 te e555 sc aan es eh NENEN OR AA OK TESEI AGODA Sos cance iow ea sein ow tsetse a a R EEA OK DIEP ainne EEEE EEEE E agneudn uaa ene Gr be Gn br br se bl bre SORES OK REYBREAK oi iaeidsigsidiigeidside dis atenangnensesenananendtle queue laa gee Si bi bl pe Ble eO b biim He e NeU OK IBRIGONTD ee cuana ee oo SAREREA EE a Bue eee ee E OK ERAM WRITE PROTECT TEBE 9 5 5 s se5 902 2 2 2 2 2 2 2 2 2 4 eee a eee Seis ie RE OK ENROM WRITE PROTECT TOSE cc cccde ee eee ees Aa See PERS Cae ees OK RAM GOD MOS acute oxsisisscnt asta Teate Ose akg ee ay en a A aE A og OK BREAK Time Measurement Counter Test Mode G 5ccsemocsoane ens Mahe eee eee ey ee bb Meee OK EMU 10MHz MPU 20MHz Sampling 20nS 2 eee eee ee eee eee OK EMU 10MHz MPU 40MHz Sampling 1 6u 2 0 OK EMU 10MHz MPU 40MHz Sampling 52u
52. hexadecimal e The counter for measurement has 24 bits and the maximum measurement time is as given below depending on the value set in Timer Resolution Table 5 8 Maximum Measurement Time Value of Timer Resolution Maximum Measurement Time 52 us Approximately 14 minutes 1 6 us Approximately 26 seconds 20 ns Approximately 0 33 second e The maximum measurement count for Access Count of Specified Range Measurement and Called Count of Specified Range Measurement is 65 535 138 RENESAS 5 9 Profiling Function e If there is no stack information file extension is sni that is output from the optimizing linkage editor only the functions that have been executed during the profiling data measurement are displayed For details of the stack information file refer to the manual of the optimizing linkage editor e The stack size differs from the actual value It should be used as a reference value during a function call If there is no stack information file extension is sni that is output from the optimizing linkage editor the stack size is not displayed e While the profiling function is used software break and on emulator break which are event functions are not available e While the profiling function is used the parallel access function during user program execution is not available e Since the profiling function internally breaks user program execution the program is not executed in realtime The m
53. interface cable connector For the PC interface cable that connects the host computer to the E6000H station A PC interface board PC card interface LAN adapter or USB adapter can be connected Marked PC IF RENESAS 1 2 2 Evaluation Chip Board Configuration The names of the components on the evaluation chip board of the emulator are listed below b 1 Top view of evaluation chip board sa 3y fe Balk Risk SS ate ge 3 Side view of evaluation chip board Figure 1 4 Evaluation Chip Board a Station to evaluation chip board This is a cover for protecting the connector that interface connector cover connects the E6000H station to the evaluation chip board b Crystal oscillator terminals For installing a crystal oscillator to be used as an external clock source for the target MCU c HS7145PWB20H board Connector to the trace cable is attached d HS7145PWB30H board An evaluation chip is installed and a dedicated connector to the user system interface board or user system is attached e User system interface board For connecting the user system interface board or connector user system Note a to e listed above are referred to as the evaluation chip board RENESAS 1 2 3 Configuration of User System Interface Board The names of the components of the user system interface board are given below b 1 Top view of HS7145ECH61H board 2 Bottom view of HS7145ECH61H
54. linkage editor Note If profile information has been acquired by selecting the Not trace the function call menu the program cannot be optimized by the optimizing linkage editor e Output Text File Displays the Save Text of Profile Data dialog box Displayed contents are saved in a text file e Setting This menu has the following submenus the menus available only in the List sheet are also included 1 Show Functions Variables Displays both functions and global variables in the Function Variable column 2 Show Functions Displays only functions in the Function Variable column 3 Show Variables Displays only global variables in the Function Variable column 4 Only Executed Functions Only displays the executed functions If a stack information file sni extension output from the optimizing linkage editor does not exist in the directory where the load module is located only the executed functions are displayed even if this check box is not checked 5 Include Data of Child Functions Sets whether or not to display information for a child function called in the function as profile data e Properties This popup menu is unavailable in the SH7046 E6000H emulator 80 RENESAS 3 11 Profile Chart Window Profile Chart lo0l x change long tutorial Sample Figure 3 45 Profile Chart Window This window displays the relation of calls for a specific function T
55. of a column you want to switch off Click the OK button for the new column settings to take effect Line Number On Chip Break S W Breakpoints Cancel S W Breakpoints ASM A Source Address Figure 3 7 Global Editor Column States Dialog Box gt To switch off a column in one source file 24 1 2 Open the source file which contains the column you want to remove and click the Edit menu Click the Columns menu item to display a cascaded menu item The columns are displayed in this popup menu If a column is enabled it has a tick mark next to its name Clicking the entry will toggle whether the column is displayed or not RENESAS 3 2 3 Viewing the Assembly Language Code Tf you have a source file open right click to open the pop up menu and select the View Disassembly option to open a Disassembly view at the same address as the current Source view It is also possible to view the disassembly using the new integrated Disassembly view in the source file If you do not have a source file but wish to view code at assembly language level then select one of the following operations Click on the View Disassembly toolbar button Choose the View gt Disassembly menu option Press Ctrl D The Disassembly window opens at the current PC location void main void while 1 tutorial 0001024 5502 _main BSR tutorial 8 000102C 40FC BR
56. on the Breakpoint Properties dialog box 106 RENESAS The software breakpoint that has been set is displayed in the Event window D I X Type Software Enable PC 000010A4 tutorial cpp 48 Break Aahh Software On Chip A On Emulator Figure 4 33 Event Window Software Breakpoint Setting Note The items that can be displayed in this window differ depending on the product For the items that can be displayed refer to section 3 Debugging or the online help e Close the Event window To stop the tutorial program at the breakpoint select Reset Go from the Debug menu 107 RENESAS The program runs until it stops at the breakpoint that has been set 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 00001038 0000103a 00001042 00001054 0000105 00001066 0000106e 00001076 0000107a 0000107c 00001090 0000109a 000010a4 000010aa 000010b0 000010b6 000010be 000010c2 000010c8 000010ce 000010d4 000010da 000010e0 void main void while 1 tutorial void tutorial void el long j in i class Sample p sam p_sam new Sample for i O i lt 10 i j j rand if j lt Opi beet afi 3 p_sam gt sort a p_sam gt change a p_sam gt sO0 a QO p_sam gt sl a 1 p_sam gt s2 a 2 p_sam gt s3 a 3 p_sam
57. on the evaluation chip board Clock Mode Sets the operating clock mode of the target MCU JTAG Clock Sets the JTAG clock frequency Timer Resolution Selects the resolution of the timer for use in execution time measurement and performance analysis Select one of the following values Runtime measurement 52us 1 6us or 20ns Clock counter measurement CLOCK CLOCK 2 CLOCK 4 or CLOCK 8 Enable interrupts during step execution When this box is checked interrupts are accepted during step execution Break on access error When this box is checked a break the user program stops occurs if your program accesses a guarded memory area or writes to a write protected area Enable read and write on the ly Selects whether or not to enable an access to memory during user program execution Enable internal ROM area write When this box is checked writing to the on chip ROM area is enabled User VCC Threshold Sets the voltage level for the user system Down will be displayed in User PVcc of the Extended Monitor window when the actual user Vcc of the target system is lower than the specified value User Signals When this box is checked the selected signal from the user system is enabled Bus Timeout Select the bus timeout detection time 100us 1 6ms 13ms or 210ms can be selected Enable multi break When this box is checked the multibreak function is enabled
58. performance Embedded Workshop s Event window An overview and setting of the break function are described below 4 15 1 Software Break Function The emulator can set up to 255 software breakpoints e Select Eventpoints from the Code submenu of the View menu or click the Eventpoints toolbar button B The Event window is displayed e Select the Software sheet PE A X Type TIP software A On Chip A On Emulator 7 Figure 4 30 Event Window Before Setting a Software Breakpoint e Click the Event window with the right hand mouse button and select Add from the popup menu e The Breakpoint Properties dialog box Software Break page is displayed 104 RENESAS Breakpoint Prope Ai z oT 4 Eount Bun time count betwee E Erom 3 to 4 Figure 4 31 Breakpoint Properties Dialog Box 105 RENESAS e Click the Edit button to display the Software Break dialog box H 00001044 Figure 4 32 Software Break Dialog Box e Use the Editor window to refer to the address on the line that has p_sam gt sO0 a 0 within the tutorial function and enter this address in the Address edit box In this example enter H 000010A4 Note This dialog box differs depending on the product For the items of each product refer to section 3 Debugging or the online help e Click the OK button Then click the Close button
59. powerful yet intuitive way of accessing observing and modifying the debugging platform in which the application is running High performance Embedded Workshop is a powerful development environment for embedded applications targeted at microcontrollers The main features are e A configurable build engine that allows you to set up compiler assembler and linker options via an easy to use interface e An integrated text editor with user customizable syntax coloring to improve code readability e A configurable environment to run your own tools e An integrated debugger which allows you to build and debug in the same application e Version control support The High performance Embedded Workshop has been designed with two key aims firstly to provide you the user with a set of powerful development tools and secondly to unify and present them in a way that is easy to use RENESAS About This Manual This manual is comprised of two parts Hardware Part and Debugger Part Hardware Part Preparation before use hardware specifications and troubleshooting procedure Debugger Part A peculiar debugging function to the emulator tutorial Emulator software specification and notes This manual describes the debugging function for SH7046 E6000H Emulator debugger that used with the High performance Embedded Workshop For detailed information on the basic look and feel of the High performance Embedded Workshop and customizing the High
60. prompt if the display of the screen is not switched after pressing the Alt Enter key mark the Alt Enter check box in Windows shortcut keys of the Misc page on the MS DOS Prompt Properties dialog box and click the Apply button to update the settings as shown in figure 4 1 57 RENESAS MS DOS Prompt Properties Figure 4 1 Misc Page 5 Turn on the E6000H emulator switch Note To execute the diagnostic program firstly turn on the power of the emulator In the diagnostic program the initial state of hardware is checked Therefore after the power is turned on do not activate the High performance Embedded Workshop before executing the diagnostic program 58 RENESAS 4 2 Test Item of the Diagnostic Program Table 4 1 shows the test items of this diagnostic program Table 4 1 Test Items of the Diagnostic Program Test No Test Item Description 1 Main Board Access Register test in the E6000H main board 2 Emulation Board Access Register test in the E6000H emulation board 3 Evaluation Chip Board Access Register test in the E6000H evaluation chip board 4 Basic Function Test for the basic function GO to BREAK Time Measurement Test for the execution time measurement function 6 Emulation Monitor Test for emulation monitor G A Break Function Test for the G A break function G A Performance Analysis Function Test for the G A performance measurement f
61. restart trace acquisition being stopped during execution of the user program select Restart from the popup menu 59 RENESAS 3 8 11 Extracting Records from the Acquired Information Use the filtering function to extract the records you need from the acquired trace information The filtering function allows the trace information acquired by hardware to be filtered by software Unlike the settings made in the Trace Acquisition dialog box for acquiring trace information by conditions changing the settings for filtering several times to filter the acquired trace information allows easy extraction of necessary information which is useful for analysis of data The content of the trace buffer will not be changed even when the filtering function is used Acquiring useful information as much as possible by the Trace Acquisition settings improves the efficiency in analysis of data because the capacity of the trace buffer is limited Use the filtering function in the Trace Filter dialog box to select a range for filtering Probes IRQ Timestamp General Address Data RAY Status Area I Enable Filter x D J Not designation Trace display range Start PTR End PTR Cancel Figure 3 31 Trace Filter Dialog Box General Page To open the Trace Filter dialog box select Filter from the popup menu The Trace Filter dialog box has the following pages General Sets the range for
62. sort long Cancel Figure 3 37 Input Function Range Window Notes 1 Entering the name of an overload function or a class opens the Select Function dialog box Select a function in this dialog box 2 The addresses figured out are just for reference In some cases the end address of a function may be different Check the last instruction of the function in the Disassembly window to correct the value set in End Address so that it will be the address of the last instruction in general the last instruction of a function is a RTS instruction A label name or an expression can be entered instead of an address value in boxes where an address should be entered 69 RENESAS 1 Time Of Specified Range Measurement Performance An 21x Measurement Method PA1 Time Df Specified Range Measurement bd Range Name PA1 Range Start Address H o0000000 Hl End Address H o0000000 Common Settings of Performance PA1 8 Address Control Mode PC Time Measurement Unit 20ns Figure 3 38 Time Of Specified Range Settings Range Name The name of the range to be measured Range The range for the Time Of Specified Range Measurement Start Address Address to start measurement End Address Address to end measurement Measures the execution time and the execution count in the range between the start address and end address Starts measurement with a detected program prefetch in the range sp
63. ss_ size times cycles _PowerON_Reset_PC F 00000400 H O0O0002E 1 208 Sample change long F 000020 E H O000006A 1 150 Sample sort long F 00002032 H o000009 1 401 Sample Sample F 00002000 H 00000032 1 145 _rand F 00001228 H O0O0O0O2C 10 873 operator new unsigned long F o0001ics H o0000060 1 108 __ CALL INIT F 00001178 H o0000028 1 77 __INITSCT F 00001110 xH oo000000 1 293 tutorial F 00001054 H o00000a0 1 1205 main F 00001038 H O0O0O01C 1 52 Eh tist Tree 7 Th cal Figure 3 43 Profile Window List Sheet is window displays the address and size of a function or a global variable the number of times the function is led or the global variable is accessed and profile data When the column header is clicked data are sorted in alphabetic or numeric ascending descending order Double clicking the Function Variable or Address column displays the source program of the address in the line Right clicking on the mouse within the window displays a popup menu For details on this popup menu refer to section 3 10 5 Tree Sheet Note For notes on the profiling function refer to section 5 9 Profiling Function 78 RENESAS 3 10 5 Tree Sheet x Show Functions Variables JE o stack Size times cycles Sie C Hew3 Tools Re COs El PowerON_Reset 00000400 H 00000024 H 00000000 1 442 __INITSCT 00001088 H o0000000 H 000O0000O 1 88074 _srand 0000
64. system IC socket Tolerance 0 5 mm NQPACK144SD manufactured by Tokyo Eletech Corporation Figure 3 19 Restrictions on Component Installation 38 RENESAS Lag 23 00 m p 19 00 gt 0 5 x 35 175 gt 0 50 7 00 0 25 i a aai I x 7 4 Te 7 A O 9 o a O l 2 Il x pi e 3 2 SL type 3 1 0 yy T lt r t 2 00 Unit mm Tolerance 0 10 mm Figure 3 20 Recommended Mount Pad Dimensions of the User System IC Socket RENESAS 39 Connection Using the Dedicated Connector A WARNING Always switch OFF the emulator and user system before connecting or disconnecting any CABLES Failure to do so will result in a FIRE HAZARD and will damage the user system or emulator or result in PERSONAL INJURY Also the USER PROGRAM will be LOST Note This evaluation chip board can only be used in combination with the specified dedicated connector WD 200P VF85 N Install the dedicated connector WD 200P VF85 N manufactured by Japan Aviation Electronics Industry Ltd on the user system to connect the emulator Figures 3 21 3 22 and 3 23 show connection using the dedicated connector size restrictions for the installed components and the location for mounting the connector in the user system respectively Evaluation chip board Connector WD 200P VF8
65. tcyc x n 2 37 n is the number of n is the number of waits waits The basic bus cycle software wait is shown in figure 3 2 The user system interface circuits connected to the user system are shown in figures 3 3 to 3 8 19 RENESAS T1 Tw T2 a gt lt gt gt VOH CK VoL taD a A17 to AO X x tcsD1i tcsD2 aoe pes _cSn ON F E tRSD1 tOE al RSD2 e _RD When read la tacc a tRDS R tRDH D7 to DO 2 When read twsD1 twsD2 twR _WRx tas When written 3 twop tWDH D7 to DO te When written te Note tRDH Specified from the earliest negation timing from A17 to AO CSn or RD Figure 3 2 Basic Bus Cycle Software Wait 20 RENESAS MCU in the emulator MD3 MD2 MD1 MDO FWP HD151015 ALVCH16244A HD151015 EPM7256AE User system EPM7512AE MD3 MD2 MD1 MDO EPM7512AE Figure 3 3 User System Interface Circuits 1 RENESAS 21 MCU in the emulator User system VHC244 PVcc PVcc PA13 TDO _BREQ PA13 TDO _BREQ PA15 _TRST _BACK PA15 _TRST _BACK PA10 TCK PA10 TCK PA12 TDI PA12 TDI PA14 TMS PVcc PA14 TMS PD4 _AUDRST D4 PD4 _AUDRST D4 PD5 AUDMD D5 PD5 AUDMD D5 PD7 AUDSYNC D7 PD7 AUDSYNC D7 PD6 AUDCK D6 PD6 AUDCK D6 PDO AUDATAO DO PDO AUDATA0 DO PD1 AUDATA1 D1 PD1 AUDATA1 D1 PD2 AUDATA2 D2 PD2 AUDATA2 D2 PD3 AUDAUA3 D3 PD3 AUDAUA3 D3 LVTH16244 _A
66. to evaluate all information as a total system before making a final decision on the applicability of the information and products Renesas Technology Corp assumes no responsibility for any damage liability or other loss resulting from the information contained herein Renesas Technology Corp semiconductors are not designed or manufactured for use in a device or system that is used under circumstances in which human life is potentially at stake Please contact Renesas Technology Corp or an authorized Renesas Technology Corp product distributor when considering the use of a product contained herein for any specific purposes such as apparatus or systems for transportation vehicular medical aerospace nuclear or undersea repeater use The prior written approval of Renesas Technology Corp is necessary to reprint or reproduce in whole or in part these materials If these products or technologies are subject to the Japanese export control restrictions they must be exported under a license from the Japanese government and cannot be imported into a country other than the approved destination Any diversion or reexport contrary to the export control laws and regulations of Japan and or the country of destination is prohibited Please contact Renesas Technology Corp for further details on these materials or the products contained therein IMPORTANT INFORMATION READ FIRST e READ this user s manual before using this emulator product e
67. user program 49 HELP HE Displays the command line help 50 INITIALIZE IN Initializes the debugging platform 51 JTAG_CLOCK JCK Sets and displays the JTAG clock TCK 52 LOG LO Controls command output logging 53 MAP_DISPLAY MA Displays memory mapping 54 MAP_SET MS Sets memory mapping 55 MEMORY_COMPARE MC Compares memory contents 56 MEMORY_DISPLAY MD Displays memory contents 57 MEMORY_EDIT ME Modifies memory contents 58 MEMORY FILL MF Modifies the content of a memory area by specifying data 59 MEMORY FIND MI Searches for data within the memory range 60 MEMORY_MOVE MV Moves a block of memory 61 MEMORY_TEST MT Tests a block of memory 62 MODE MO Sets or displays the MCU mode 63 MONITOR_CLEAR MOC Deletes a monitor point 64 MONITOR_DISPLAY MOD Displays the content of the monitor 65 MONITOR_REFRESH MOR Controls an automatic update of the content of the monitor 66 MONITOR_SET MOS Sets or displays a monitor point 67 OPEN_WORKSPACE Ow Opens a workspace 152 RENESAS Table B 1 High performance Embedded Workshop Commands cont No Command Name Abbreviation Function 68 PINSEL PSL Displays the current settings for selection of pins 69 PINSEL_xxxx PSLxxxx Allows settings for selection of pins xxxx Pin name 70 PROFILE PR Enables or disables the profile 71 PROFILE_DISPLAY PD Displays profiling results 72 PROFILE_SAVE PS Saves profiling results
68. 0 00 OK EMU 10MHz MPU 40MHz Sampling MPU 2 00 OK EMU 10MHz MPU 40MHz Sampling MPU 2 00 2eee2eee OK EMU 10MHz MPU 40MHz Sampling MPU 4 00222e000 OK EMU 10MHz MPU 40MHz Sampling MPU 8 2 00005 OK EMU 10MHz MPU 20MHz Sampling 100ns OK Emulation Monitor 01 02 03 04 TRES ZEEE RST S AM RRM ROE R Red pigs pF Eel seile AY EOS 6 OK RSEST3 G naga ete aig dca AG AAERR AREER ELAEALEEERREASR ETT OK WOGINING 5 825 5 555 eh OEE ENEN cartes ERNEA OK EA COS Ce eee ae ee ee Ra Re ea a ae ee ee eae ae OK RENESAS 7 G A Break Function OL Addrepu Conditio aonane EEEE S SSeS Se UR eS OK 02 Data Condition 03 Control Signal Condition ASEDSHH HL LH HL OK 04 Function Code Condition ASEAST3 0 ccc eee eee eens OK 05 Control Signal Condition ASEAA3 0 2 0 OK 06 Control Signal Condition DMA escccan canna ancekads eaaaa eee OK 8 G A Performance Analysis Function 01 Time Measurement 20ns Sampling 2 04 OK 02 Peker Emel Test AMHZ ccodcnieiio cn nnnnnnicncn swe ebb ewe eee OK 03 Peker micls Test TOMA e gcecocececece oe daaa Wesr war be warp bok GANS EE aS OK 04 Beker Emel Test QOMAZ gs 5 5 9 5 5 9 6 4 4 9 6 46 46 4 40608 00028 eR RRR US eS OK 05 Beker Emel Test 2Q5MA 4 5 p 65 6i9 sorso 2 5 ierre eher EERS OK 06 Peker Em lk Test 32MH2 s
69. 096 a j tgap t 39 40 else 41 break 42 43 44 45 000020b6 gap gap 2 46 47 sort cpp Figure 4 52 Editor Window Software Breakpoint Setting 124 RENESAS e Select Reset Go from the Debug menu e After the break in program execution select Stack Trace from the Code submenu of the View menu to open the Stack Trace window StackTrace i 5 x Kind Name Value F Sample sort long 00002054A F tutorial 00001094 F maini 00001046 F PowerON Reset_PC 00000824A F PowerON Reset_PC 00000824A F PowerON Reset _PC 00000824A F PowerON Reset _PC 00000824A F PowerON Reset _PC 00000824A F PowerON Reset_PC 00000824A Figure 4 53 Stack Trace Window Figure 4 53 shows that the position of the program counter is currently at the selected line of the sort function and that the sort function is called from the tutorial function To delete the software breakpoint double click the S W Breakpoints column in the sort function again RENESAS 125 4 18 Performance Analysis Function Performance analysis by the emulator is available in the following modes e Time Of Specified Range Measurement e Start Point To End Point Measurement e Start Range To End Range Measurement e Access Count Of Specified Range Measurement e Called Count Of Specified Range Measurement In this tutorial we describe the
70. 1 AN17 184 GND 165 PA15 CK _POE6 D7 185 PA23 _WRHH _TRES _BACK 166 PG2 AN18 186 N C CKEO_P 167 PA16 _POE7 187 _WDTOVF 168 PG3 AN19 188 GND 169 PA17 _WAIT PCIO 189 PINMD1 170 N C 190 FWP 171 GND 191 PINMDO 172 AVre 192 N C SVRES_N 173 PA18 _BREQ DRAKO 193 GND 174 AVre 194 GND TGBON2 175 PA19 _BACK DRAK1 195 GND 176 AVre 196 GND 177 PA20 197 GND 178 AVre 198 GND 179 PA21 199 GND 180 N C 200 GND Note Signals PINMD1 and PINMD0 are used for recognition of the target MCUs Pin processing must be handled according to the table below Target MCU PINMD1 PINMDO SH7046 GND GND SH7047 GND Vcc pulled up at 1 kQ SH7144 Vec pulled up at 1 kQ GND SH7145 Vec pulled up at 1 kQ Vcc pulled up at 1 KQ RENESAS 49 3 4 3 Precautions on Connecting the User System When connecting the evaluation chip board to the user system note the followings i Secure the E6000H station location Place the E6000H station and evaluation chip board so that the station to trace cable is not bent or twisted as shown below A bent or twisted cable will impose stress on the user interface leading to connection or contact failure Make sure that the E6000H station is placed in a secure position so that it does not move and impose stress on the user interface during use 2 50 Make sure the power supply is off Before co
71. 1038 0000103a 00001042 00001054 000010S 00001066 0000106e 00001076 0000107a 0000107c 00001090 0000109a 000010a4 000010aa 000010b0 000010b6 o00010be 000010c2 000010c8 000010ce 000010d4 000010da 000010e0 ve void main void while 1 tutorial void tutorial void long j int i class Sample p_sam pvalue type p_sam new Sample fori i70 1 lt 10 i 34 B R a FFFFE400 long 10 aa cane R 0 H OOOOOff6 FFFFE400 long eee R 1 H O00015fb FFFFE404 long gt R 2 H 0000167e FFFFE408 long ali j R 3 H O0001cfb FFFFE40 long z eee R 4 H 00002781 FFFFE410 long Praa Eana R 5 H 00003f54 FFFFE414 long R 6 H 000041c6 FFFFE418 long p_sam gt s0 a 0 R 7 H 0000446b FFFFE41 long Decent esea ca ie R 8 H 000059e2 FFFFE420 long psem gt s3 a 3 R 9 H 0000794b FFFFE424 long p_sam gt s4 a 4 a H OO00000a R14 int p_sam gt s5 a 5 p_sam gt s6 a 6 p_sam gt s7 a 7 p_sam gt s6 a 8 p_sam gt s9 a 9 delete p_sam TTD watchs watch2 A watchs A watcha 7 Figure 4 23 High performance Embedded Workshop Window Step Out The data of variable a displayed in the Watch window is sorted in the ascending order 101 RENESAS 4 12 3 Executing the Step Over Command The Step Over executes a function call in a single step and stops at the next statement of the m
72. 1148 H O000000E H 00000000 1 135 __ CALL INIT 0000114 H O000001E H 00000000 1 268 Es _ main 00001024 H 00000004 H 00000000 1 63 tutorial 0000102E H 00000088 H 00000000 1 3151 Sample Sample 00002000 H 00000046 H 00000000 1 603 Sample change long O00020c6 H 00000054 H 00000000 d 4695 Sample sort long 00002046 H 00000080 H 00000000 1 15632 _rand 00001174 H O000002E H 00000000 10 4120 Figure 3 44 Profile Window Tree Sheet This window displays the relation of function calls in a tree structure Displayed contents are the address size stack size and number of function calls and execution cycles The stack size and number of function calls are values when the function is called The Tree sheet is only available when Not trace the function call is not checked in the popup menu of the Profile window Double clicking a function in the Function column expands or reduces the tree structure display The expansion or reduction is also provided by the or key Double clicking the Address column displays the source program of the specific address Right clicking on the mouse within the window displays a popup menu Supported menu options are described in the following sections e View Source Displays the source program or disassembled memory contents for the address in the selected line e View Profile Chart Displays the Profile Chart window focused on the function in the specified
73. 37 GND 14 C SDB12_P 38 C SDB3_P 15 C SMS0_N 39 C SSSTBY_N 16 GND 40 C SDB2_P 17 GND 4 C SIOWORD_N 18 C SDB11_P 42 C SDB1_P 19 C SMSB3_N 43 C SWAIT_N 20 C SDB10_P 44 C SDBO_P 21 C SMSB2_N 45 C SIOWR_N 22 C SDB9_P 46 GND 23 C SMSB1_N 47 GND 24 C SDB8_P 48 N C SHCANSTART_P 42 RENESAS Table 3 5 Pin Arrangement on HS7046EPH60H cont User I F 1 PinNo Signal Name User I F 1 Pin No Signal Name UCN1 49 N C UCN1 75 N C 50 N C 76 N C 51 N C 77 GND 52 N C 78 GND 53 N C 79 PE21 PWOBB SCK4 A15 54 N C 80 N C 55 N C 81 PE20 PVOB TXD4 A14 56 GND 82 PE13 TIOC4B _MRES 57 GND 83 PE19 PUOB RXD4 A13 58 N C 84 PE12 TIOC4A TXD1 TXD3 59 N C 85 PE18 PWOA A12 60 N C 86 PE11 TIOC3D RXD1 RXD3 61 N C 87 GND 62 N C 88 GND 63 N C 89 PE17 PVOA _WAIT A11 64 N C 90 PE10 TIOC3C TXD2 _WRL HRxDO amp HRxD 65 GND 91 PE16 PUOA _UBCTRG A10 66 N C 92 PE9 TIOC3B SCK1 SCk3 HTxDO amp HTxD1 67 N C 93 PE15 TIOC4D DACK1 _IRQOUT 68 GND 94 PE8 TIOC3A SCK2 _WRH 69 N C 95 PE14 TIOC4C DACKO 70 N C 96 PE7 TIOC2B RXD2 A9 71 N C 97 N C 72 N C 98 GND 73 N C 99 3VCC 74 N C 100 PE6 TIOC2A SCK3 A8 RENESAS 43 Table 3 5 Pin Arrangement on HS7046EPH60H cont
74. 4 Mbyte emulation memory which can be divided into 128 kbytes x 16 and 1 Mbyte x 2 The emulation memory can also be set in a unit of each block figure 5 1 or 5 2 as well as in the accessing attribute Some 128 kbyte emulation memory is set for the 1 Mbyte or 2 Mbyte blocks However the remaining area of the allocated block cannot be used This also applies to a case when one 1 Mbyte emulation memory is allocated to the 2 Mbyte blocks 140 RENESAS Memory map for on chip ROM invalid mode H 00000000 2M H 001FFFFF H 00200000 2M H 003FFFFF H 00400000 H 007FFFFF H 00800000 HOOBFFFFF H 00C00000 4M HOOFFFEFF 101000000 Reserved HEFFEFFFF H FFFF0000 16K On chip RAM for expansion HEFFESEFF HFFFF4000 Reserved H FFFF7FFF H FFFF8000 16K On chip VO slave O H FFFFBFFF H FFFFC000 16K On chip RAM H FFFFFFFF H 00200000 1M H 002FFFFF H 00300000 1M H 003FFFFF H 00400000 1M H 004FFFFF H 00500000 1M H 005FFFFF H 00600000 1M H 006FFFFF H 00700000 1M H 007FFFFF H 00800000 1M H 008FFFFF H 00900000 1M H 009FFFFF H 00A00000 1M HOOAFFEFF H 00B00000 1M HOOBEFFFF H 00C00000 H 00E00000 2M HOOFFFFFF H 00000000 128K H 0001FFFF H 00020000 128K H 0003FFFF H 00040000 128K H 0005FFFF H 00060000 128K H 0007FFFF H 00080000 128K H 0009FFFF H 000A0000 128K H 000BFFFF H 000C0000 128K H 000DFFFF H 000E0000 128K H O00FFFFF
75. 5 0 05 0 35 0 05 fg a A SSS A _ _ _ a ite Oo g 2 g os H wo he hi i i b a 2 2 i rf u t N x wo Oo co ee SS E lt LA SS _ T Unit mm RENESAS Connection Using the HS7145ECH61H A WARNING Always switch OFF the emulator and user system before connecting or disconnecting any CABLES Failure to do so will result in a FIRE HAZARD and will damage the user system or emulator or result in PERSONAL INJURY Also the USER PROGRAM will be LOST Notes 1 For more details on the HS7145ECH61H refer to the user s manual supplied with the emulator 2 This user system interface board can only be used in combination with the specified QFP socket NQPACK 144SD Install the FP 144F IC socket NQPACK144SD manufactured by Tokyo Eletech Corporation on the user system to connect the emulator Since the pin arrangement is the same as that of the actual MCU refer to the hardware manual Figure 3 18 shows the connection of the HS7145ECH61H figure 3 19 shows the size restrictions for the installed components of the HS7145ECH61H and figure 3 20 shows the recommended mount pad dimensions of the user system IC socket RENESAS 37 Evaluation chip board Figure 3 18 Connection Using the HS7145ECH61H Evaluation chip board Sey a _ ____ 7 7 2 S 1 8 8 Toot at 2 i SHES ey 8 Unit mm User
76. 5 N Lb manufactured by Japan Aviation ee Electronics Industry Ltd Figure 3 21 Connection Using the Dedicated Connector Evaluation chip board rr a S ao i x LRO g co 1 Connector WD 200P VF85 N Unit mm manufactured by Japan Aviation Tolerance 0 1 mm Electronics Industry Ltd j User system Figure 3 22 Size Restrictions for the Installed Components 40 RENESAS 140 0 Hole for a connector NTH x 4 WD 200P VF85 N Unit mm Tolerance 0 1 mm Figure 3 23 Location for Mounting the Connector in the User System To design the foot pattern refer to the catalog on WD 200P VF85 N for dimensions 41 RENESAS 3 4 2 Pin Arrangement on the User System Interface Connector Table 3 5 lists the pin arrangement on the user system interface connector of HS7046EPH60H Table 3 5 Pin Arrangement on HS7046EPH60H User I F 1 Pin No Signal Name User I F 1 Pin No Signal Name UCN1 1 GND UCN1 25 N C SMSBO_N 2 GND 26 GND 3 GND 27 GND 4 GND 28 C SDB7_P 5 GND 29 N C SE_N 6 GND 30 C SDB6_P 7 GND TGBON1 31 C SMSPT_N 8 C SDB15_P 32 C SDB5_P 9 C SMS3_N 33 C SMSE_N 10 C SDB14_P 34 C SDB4_P 11 C SMS2_N 35 C SIORD_N 12 C SDB13_P 36 GND 13 C SMS1_N
77. A main 8 void tutorial void 000102E 01106DF2 tutorial STM L ER2 ER3 SP long j int i class Sample p_sam p_sam new Sample 0001032 1480 SUB L ERO ERO 0001034 5E002000 JSR Sample Sample 24 0001038 OF83 MOV L ERO ER3 0001034 1922 SUB W R2 R2 j rand 000103C 5E001174 JSR rand 24 0001040 0D01 MOV W RO R1 0001042 17F1 EXTS L ER1L if j lt Oj 0001044 4c02 BGE H 1048 8 wi ua Figure 3 8 Disassembly Window In this window the following information is shown on the left as information lines e First column On chip break column On chip breaks e Second column S W Breakpoints ASM column PC and breakpoint information This window is used in the same way as the source code window 25 RENESAS 3 2 4 Modifying the Assembly Language Code You can modify the assembly language code by double clicking on the instruction that you want to change The Assembler dialog box will be opened Address Code 0001040 0D01 Mnemonic Cancel AOA Figure 3 9 Assembler Dialog Box The address instruction code and mnemonic are displayed Enter a new instruction or edit the old instruction in the Mnemonics field Pressing the Enter key will replace the memory content with the new instruction and move on to the next instruction Clicking the OK button will replace the memory content with the new instruction and close the dialog box Clicking the Cancel b
78. AC Deletes trace acquisition parameters _CLEAR 102 TRACE_BINARY_ TBC Compares a trace binary file with the current trace COMPARE information 103 TRACE_BINARY_SAVE TBV Outputs trace information into a binary file 153 RENESAS Table B 1 High performance Embedded Workshop Commands cont No Command Name Abbreviation Function 104 TRACE_FILTER TF Filters trace information 105 TRACE_SAVE TV Outputs trace information into a file 106 TRACE_STATISTIC TST Analyzes statistic information 107 UPDATE_ALL_ UD Updates dependencies of the current project DEPENDENCIES 108 USER_SIGNALS US Enables or disables the user signal information 109 WATCH_ADD WA Adds a watch item 110 WATCH_AUTO_UPDATE WU Selects or cancels automatic update of watch items 111 WATCH_DELETE WD Deletes a watch item 112 WATCH_DISPLAY wi Displays the contents of the Watch window 113 WATCH_EDIT WE Edits the value of a watch item 114 WATCH_EXPAND WX Expands or collapses a watch item 115 WATCH_RADIX WR Changes the radix of a watch item to be displayed 116 WATCH_SAVE WS Saves the contents of the Watch window to a file For the syntax of each command refer to the online help 154 RENESAS Renesas Microcomputer Development Environment System User s Manual SH7046 E6000H Emulator Publication Date Rev 4 00 October 21 2005 Published by Sales Strategic Planning Div Renesas Technology Corp Edited by Customer Support Department Glo
79. Be sure to read and understand the warnings below before using this emulator Note that these are the main warnings not the complete list A WARNING Always switch OFF the emulator and user system before connecting or disconnecting any CABLES or PARTS Failure to do so will result in a FIRE HAZARD and will damage the user system and the emulator product or will result in PERSONAL INJURY The USER PROGRAM will be LOST vl RENESAS CAUTION Place the emulator station and evaluation chip board so that the trace cables are not bent or twisted A bent or twisted cable will impose stress on the user interface leading to connection or contact failure Make sure that the emulator station is placed in a secure position so that it does not move during use nor impose stress on the user interface VII 2tENESAS CAUTION This equipment has been tested and found to comply with the limits for a Class A digital device pursuant to part 15 of the FCC Rules These limits are designed to provide reasonable protection against harmful interference when the equipment is operated in a commercial environment This equipment generates uses and can radiate radio frequency energy and if not installed and used in accordance with the instruction manual may cause harmful interference to radio communications Operation of this equipment in a residential area is likely to cause harmful interference in which case the user will b
80. 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 majority owned subsidiaries Note 2 Renesas Electronics product s means any product developed or manufactured by or for Renesas Electronics C 7 D T on lt D D tENESAS SH7046 E6000H Emulator User s Manual Renesas Microcomputer Development Environment System SuperH Family SH7046 Series SuperH Family SH7047 Series SuperH Family SH7144 Series HS7046EPH60HE Renesas Electronics Rev 4 00 2005 10 www renesas com Keep safety first in your circuit designs Renesas Technology Corp puts the maximum effort into making semiconductor products better and more reliable but there is always the possibility that trouble may occur with them Trouble with semiconductors may lead to personal injury fire or property damage Remember to give due consideration to safety when making your circuit designs with appropriate measures such as i placement of substitutive auxiliary circuits ii use of nonflammable material or iii prevention against any malfunction or mishap Notes regarding these materials These materials are intended as a reference to assist our customers in the selection of the Renesas Technology Corp product best suited to the customer s application they do not convey any li
81. Event Points The emulator has the event point function to support breakpoints of the following three types Software breakpoints Execution of the user program stops when the instruction at the specified address is fetched Up to 255 software breakpoints can be set Any content at the specified address is replaced by a break instruction a dedicated instruction for use with the emulator The software breakpoint cannot be set in the write protected area such as ROM area or flash memory area on the user system The user can set a software breakpoint in the Editor or Disassembly window On chip breakpoints These break functions built in the MCU Conditions on the address bus data bus bus area and satisfaction count can be set The on chip breakpoint can be set even in the ROM area or flash memory area on the user system It is also possible to set a sequential breakpoint consisted of several on chip breakpoints The user can set an on chip breakpoint in the Editor or Disassembly window On emulator breakpoints On emulator break functions are implemented by dedicated hardware in the E6000H station Conditions on the address bus data bus bus area external probe signals external interrupt signals and satisfaction count can be set As the emulator hardware provides this function several cycles may be required until a break occurs after satisfaction of a condition Software on chip and on emulator breakpoints can be set in the Event wi
82. Measurement Start Address Start address End Address End address End Range The end range for the Start Range To End Range Measurement Start Address Start address End Address End address Starts measurement with a detected prefetch cycle in the specified start address range and then stops with a detected prefetch cycle in the specified end address range The execution count is incremented every time the program passes the end address range 73 RENESAS 4 Access Count Of Specified Range Measurement Performance An perties Eiki Figure 3 41 Access Count Of Specified Range Measurement Settings Range Name The name of the range to be measured Range The range for the Access Count Of Specified Range Measurement Start Address Start address End Address End address Access Area Range The access range for the Access Count Of Specified Range Measurement Start Address Start address End Address End address Measures the number of times the range specified as the access range is accessed from the range specified by the start and end addresses The execution count in the range is measured with Time Of Specified Range Measurement mode 74 RENESAS 5 Called Count Of Specified Range Measurement Performance An Measurement Method PA1 Called Count Of Specified Range Measurement Range Name PA1 Range Call Range Start Address H o0000000 jal Start Ad
83. On chip RAM for expansion FEF3FFF H 003BFFFF H FFFF4000 H 003C0000 Reserved BB14 128K H FFFF7FFF H 003DFFFF H FFFF8000 H003E0000 16K On chip I O slave O BB1q 128K H FFFFBFFF H 003FFFFF H FFFFC000 16K On chip RAM SB Short block H FFEFEFFF LB Large block Figure 5 2 Memory Map in the Valid On Chip ROM Mode 142 RENESAS Section 6 Error Messages 6 1 Error Messages of the Emulator 6 1 1 Error Messages at Emulator Initiation The emulator displays error messages in the format below if an error occurs at emulator initiation in the dedicated message dialog box when the High performance Embedded Workshop is used Table 6 1 lists error messages at emulator initiation RENESAS 143 Table 6 1 Error Messages at Initiation Error Message Description and Solution There is no configuration file The configuration file that is required to initiate the emulator cannot be found Exit and re install the High performance Embedded Workshop Then re connect the user system interface cable turn on the power of the emulator and re initiate the High performance Embedded Workshop If the problem is not solved contact us and describe the error occurrence in detail The contents of the configuration file are incorrect The configuration file that is required to initiate the emulator is invalid Exit and re install the High performance Embedded Workshop Then re connect the us
84. RANGE_ AD Deletes a performance analysis range DELETE 6 ASSEMBLE AS Assembles instructions into memory 7 ASSERT gt Checks if an expression is true or false 8 AUTO_COMPLETE AC Enables or disables the auto complete function 9 BREAKPOINT_ONCHIP BC Displays on chip breakpoints sets sequential breaks and sets PtoP time measurement 10 BREAKPOINT_ONCHIPn BCn Sets on chip breakpoint of each channel 11 BREAKPOINT_ONCHIP BCC Clears on chip breakpoints _CLEAR 12 BREAKPOINT_ONCHIP BCE Enables or disables an on chip breakpoint _ENABLE 13 BREAKPOINT_ BE Displays on emulator breakpoints ONEMULATOR 14 BREAKPOINT_ BEn Sets on emulator breakpoint of each channel ONEMULATORn 15 BREAKPOINT_ BEC Clears on emulator breakpoints ONEMULATOR_CLEAR 16 BREAKPOINT_ BEE Enables or disables an on emulator breakpoint ONEMULATOR_ ENABLE 17 BREAKPOINT_ BS Sets a software breakpoint SOFTWARE 18 BREAKPOINT_ BSC Clears software breakpoints SOFTWARE_CLEAR 19 BREAKPOINT_ BSE Enables or disables a software breakpoint SOFTWARE_ENABLE 20 BUILD BU Performs a build on the current project 21 BUILD_ALL BL Performs a build all on the current project 22 CHANGE_ cc Sets the current configuration CONFIGURATION 23 CHANGE_PROJECT CP Sets the current project 24 CHANGE_SESSION cs Changes the current session 25 CLOSE_WORKSPACE CW Close the current workspace 26 CLOCK_MODE CKM Sets and displays the clock mode 27 CONFIGURE_ CPF Sets the debugging environment for the emula
85. RENESAS 3 7 9 Deleting All Event Points Choose Delete All from the popup menu to remove all event points 3 7 10 Viewing the Source Line for an Event Point Select an event point and choose Go to Source from the popup menu to open the Editor or Disassembly window at the address of the event point The Go to Source menu is only available when one event point that has the corresponding source file is selected 47 RENESAS 3 8 Viewing the Trace Information The emulator acquires the results of each instruction execution into the trace buffer as trace information and displays it in the Trace window The conditions for the trace information acquisition can be specified in the Trace Acquisition dialog box Since trace information in bus cycles is acquired by the hardware circuit and stored in the trace buffer the realtime operation is retained The Trace window displays the content of the trace buffer which records up to 128 k bus cycles from the last program run and is always updated Note For notes on the trace functions refer to section 5 6 Trace Functions 3 8 1 Opening the Trace Window To open the Trace window choose View gt Code gt Trace or click the Trace toolbar button 3 8 2 Acquiring Trace Information When the emulator does not set the acquisition condition of the trace information all bus cycles are acquired by default without any condition free trace mode In the free trace mode
86. RO SE ER LS OK 08 Timeout Trace SEOD 21655 hGhsene eee ees EES SSEEEEEADE SEES RS OK OOF sSUbrOUGINe TAO AONE EEEN EA euusu ccc eueueuerian bl a0 bl br bibs publ SURE eS OK 10 INOM THA GE aniria gigi HAR AEREE EE ST Sw Da tes BOG Bla CREE OK RENESAS 12 Combination 01 B to A Time 02 B to A Time 03 D to C Time 13 Parallel Access 01 INROM Para 02 INROM Para 03 ERAM Paral 04 ERAM Paral 05 ERAM Paral 06 ERAM Paral 07 INROM Para 08 INROM Para 14 PC Coverage 01 PC Coverage Normal stopped at We Tests run for 0H 3M Summary Tests performed Measurement FPGA counter 220 OK Measurement i G A counter f 2000000e OK Measurement G A counter P 2000000e OK lel Read Access Byte Long 2 2 OK lel Write Access Byte Long OK el Read Access Byte Long 2 OK el Write Access Byte Long 2 OK el Write Access Byte Word Long OK el Read Access Byte Word Long OK lel Write Access Byte Word Long OK lel Read Access Byte Word Long OK Se esha Ricky hs aBGp Aaa dy tye lds la ELARA AARAA a a OK d Jan 22 09 46 55 2003 Shows the time when the diagnostic program has ended 12S Shows the execution time of the diagnostic program Shows the total of the 1 time s number of errors occurred 1 Main Board Access 0 Error s in each test i
87. SEBRKAK NC _ASEBRKAK NC _DBGMD PVcc 47 KQ PE13 _MRES PE13 _MRES VHC244 T _WDTOVF _WDTOVF 22 Figure 3 4 User System Interface Circuits 2 RENESAS MCU in the emulator User system HD151015 HD151015 LVTH16374 AHC14 AHC14 NMI LVTH16374 ALVCH16244A HD151015 EPM7256AE 47 KQ _HSTBY HD15015 EPM7256AE AHC14 47 kQ _RES ALVTC16244A Figure 3 5 User System Interface Circuits 3 23 RENESAS MCU in the emulator 3Vec User system 100 Q PLLVcc PLLVcL 3kQ 470 pF 0 1 uF NC PLLCAP PLLVss PLLCAP PLLVss XTAL NC NC XTAL HD15015 EPM7256AE EXTAL EPM7256AE MAX709M Ath 22 kQ LMC6484AIM Vcc 1 kQ UPVcc NC AVcc AVref o uF Figure 3 6 User System Interface Circuits 4 RENESAS MCU in the emulator PVcc User system 47 kQ PA 19 17 PA 19 17 PA 9 7 PAS PA2 PA 9 7 PA5 PA2 EPM7256AE VHC244 PA 23 20 PA16 z PA 23 20 PA16 PA11 PA6 PA4 PAS PA11 PA6 PA4 PAS PA1 PAO PVcc PA1 PAO 47 KQ PB 9 2 EPM7256AE VHC244 PB 1 0 PC 15 0 PVcc 47 KQ PD 23 16 EPM7256AE VHC244 PD 31 24 PD 15 8 PD 31 24 PD 15 8 Figure 3 7 User System Interface Circuits 5 25 RENESAS MCU in the emulator User system PVcc 47 KQ PE17 VHC244 PE 21 18 PE 16 14 PE 21 18 PE 16 14 PE 12 0 PE 12 0 PF 15 0 PG
88. Step Execution 5 5 Event Functions 5 5 1 Software Breakpoints 5 5 2 On Chip Break 5 5 3 On Emulator Break 5 6 Trace Functions 5 6 1 Displaying the Trace Information 5 6 2 Specifying Trace Acquisition Conditions 5 6 3 Searching for a Trace Record 5 6 4 Filtering Trace Records 5 7 Monitor Function 5 8 Performance Analysis Function 5 8 1 Errors 5 8 2 Notes 5 9 Profiling Function 5 10 Input Format 5 10 1 Entering Masks 5 11 Tutorial Program 5 11 1 Notes on Operating the Tutorial Program 5 12 Memory Map 5 12 1 Emulation Memory 5 12 2 Controlling Memory Map Section G Error Messages ruere reinir irreg E a aate 143 6 1 Error Messages of the Emulator 6 1 1 Error Messages at Emulator Initiation 6 1 2 Error Messages during Emulation Appendix A Menusyiisiciicisscssscscsscssdsscdactecestesstitesssvsasavedeoudssacstastavnasivsiemasnesssetes 147 Appendix B Command Lines uu cece ccceeseesceceeeecseeseseseesesseeesseseesessesaeaee 151 vi RENESAS Hardware Part RENESAS RENESAS 1 1 Section 1 Overview Notes on Usage Incorrect operation will damage the user system and the emulator product The USER PROGRAM will be LOST CAUTION READ the following warnings before using the emulator product 1 Check all components with the component list after unpacking the emulator m a p Never place heavy objects on the casing Observe the following conditions in the
89. TAT microcomputer MCUs 3 5 8 Emulator State and On Chip Modules Some on chip modules do not operate when the emulator is in break mode Table 3 7 shows the relation between the emulator s state and operation of the on chip modules Table 3 7 Emulator State and Operation of On Chip Modules Operation During Operation During Emulation Emulation Halted Execution or Step On Chip Module Break Execution WDT watchdog timer No Yes MTU multi function timer pulse unit Yes Yes MMT motor management unit Yes Yes CMT compare match timer Yes Yes SCI serial communication interface Yes Yes DTC data transfer controller Yes Yes HCAN2 Yes Yes UBC user break controller No Yes AUD advanced user debugger Yes Yes 1 O port Yes Yes A D converter Yes Yes H UDI user debugging interface Not available Not available Notes 1 If a break occurs during a DTC cycle vector read read write of transferred information or data read write the DTC continues operation until the DTC cycle is complete The DTC resumes operation after it returns to emulation 2 Not supported by the emulator 53 RENESAS 3 5 9 Pin Functions This emulator supports the extended functions that are not included in the product MCU Therefore the pin status which does not exist in the SH7046 SH7047 SH7144 or SH7145 may be displayed Table 3 8 shows the difference between the pins of which status is m
90. TR value to start the search can be specified in the End PTR e When the user clock i e system clock signal has been selected in Time measurement unit of the Trace Acquisition Properties dialog box no time stamp information will be searched 5 6 4 Filtering Trace Records e After the trace information is filtered all trace information displayed in the Trace window is saved a range for saving trace information cannot be specified To save a specific range of trace information the filter range must be specified in the General page of the Trace Filter dialog box e When the user clock i e system clock signal has been selected in Time measurement unit of the Trace Acquisition Properties dialog box no time stamp information will be filtered 137 RENESAS 5 7 Monitor Function The foreground and background colors cannot be changed in some operating systems 5 8 Performance Analysis Function 5 8 1 Errors An error will be included in the measured performance as follows e tone resolution error 20 ns error when the measurement resolution is 20 ns This error may occur when the user program execution starts or stops breaks or when the measurement start or end condition is satisfied e Frequency stability of the crystal oscillating module for performance analysis 0 01 5 8 2 Notes e Inall measurement modes the interval between the end condition satisfaction and the next start condition satisfaction must b
91. The content of a software breakpoint address is replaced by a break instruction during user program execution The maximum number of software breakpoints and temporary PC breakpoints in Temporary PC Breakpoints of the Run Program dialog box is 255 in total Therefore when 255 software breakpoints have been set no temporary breakpoint set in Temporary PC Breakpoints of the Run Program dialog box is valid Ensure that the total number of software breakpoints and temporary PC breakpoints are 255 or less Do not set a breakpoint immediately after a delayed branch instruction at a slot instruction If this is attempted a slot illegal instruction interrupt will occur when the delayed branch instruction is executed and the break will not occur 5 5 2 On Chip Break The satisfaction count can only be set for channel 4 A reset point is only valid when a sequential break is enabled If a sequential break and a break range Address Range Break have been specified together only a sequential break is enabled The address and data conditions are satisfied on the bus cycles where the values on the address bus or data bus match Consider the following points when setting these conditions Longword access Longword data is read and written in a single bus cycle A data condition is only valid for a longword access when specified as longword The specified address must be a multiple of four Note that longword data is only valid as the size o
92. To our customers Old Company Name in Catalogs and Other Documents On April 1 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 1 2010 Renesas Electronics Corporation Issued by Renesas Electronics Corporation http www renesas com Send any inquiries to http Awww renesas com inquiry 2CENESAS 10 11 12 Notice 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 gra
93. accecc cee ee eee eae steehee here eeeeee OK 07 Beker Encik Test SOMA csnnAdddscsee seis VERSA RARE SERA ES OK 9 G A Monitor Function OT BUN ieee SSS A isa iacicidadadadday ggg gh ggg gh dub bi bibs bi bi bi bi bs RRR RES OK 02 VG CDOWN sg EEANN by bri b b ERRET EE OK 03 WOGLE 15s ct c5 raraicg vate too ce ooh at st shal EEANN ea eset thts totes E Beda teeta te OK TSJ TIMEOUT sapinii aaa EEEE sas E E EEEE S OK 10 G A Parallel RAM Monitor 01 PRAM Monitor BYTE sessioon o n netter eee SSS SEES ERS OK 02 PRAM Monitor WORD 1064ee4edes ced ee ee ee 44 44 44 eee SS OK 03 PRAM Monitor LONG WORD cosse hee ke eG NUNES ESOS OK 04 PRAM Monitor ERAM CSO 8Bit LONG WORD OK 05 PRAM Monitor ERAM CS1 16Bit WORD OK 06 PRAM Monitor ERAM CS2 32Bit BYTE 2 0 OK 07 PRAM Monitor ERAM CS3 32Bit LONG WORD OK 11 G A Trace Function Od SPREE BRACE oc doe ee eee etl hd hh AR Soe ee eee oes a a Sele BRR e eee OK 02 Teano SCOP riiai ooo OSE RARE RUN OE ee ee OK Or SAME SCAM AAEE EANAN ENNER tiated ad nies plat ste Gian ate OK 04 Trace Suppress 2 ccc sss esc s sees seeds cesses es ese eeeeeeecs sis OK 057 Singe TRACE 2s susih o 2 Sic24 cee e ie fe ed ae eee Rigas aT eieiei ial eS Gd Siar OK 06 Sequential Trace StOp 2 cacccsdaeaare ered dasaeeceakeeraaaae OK 07 TEM Overt low TRACE 2 5 Ad AARARAE ES eee ee ROME
94. ain program e To step through all statements in the change function in a single step select Step Over from the Debug menu or click the Step Over button on the toolbar Figure 4 24 Step Over Button 00001038 void main void 00001034 while 1 00001042 tutorial Li 00001054 void tutorial void long j int i class Sample p_sam 5 x RR sy xB Type FFFFE400 long 10 0000105 p_sam new Sample 00001066 for 0 i lt 10 i B R PE A R 0 H 0000794b FFFFE400 long 0000107a j j R 1 H 000059e2 FFFFE404 long R 2 H 0000446b FFFFE408 long 0000107 ali j R 3 H 000041c6 FFFFE40C long l R 1 00001090 e p_sam gt sort a 4 H OO003 54 FFFFE410 long 0000109a p_sam gt change a R 5 H 00002781 FFFFE414 long R 6 H OO0O1cfb FFFFE418 long 000010a4 gt p_sam gt s0 a 0 R 7 H 0000167e FFFFE41 long o00010aa p_sam gt si a 1 P 00001090 p_sam gt s2 a 2 R 8 REE FFFFE420 long 00001006 p_sam gt s3 a 3 R 9 H OODOOffG FFFFE424 long o00010be p_sam gt s4 a 4 H O000000a R14 int 000010c2 p_sam gt s5 a 5 000010c8 p_sam gt s 6 000010ce p_sam gt s7 a 7 000010d4 p_sam gt s8 a 8 000010da p_sam gt s9 a 9 000010e0 delete p_sam TTP watchs A watchz J watchs A watcha 7 Figure 4 25 High performance Embedded Worksh
95. all the break conditions that have been set Uncheck Free Trace on the Condition page of the Trace Acquisition Properties dialog box otherwise the free trace mode will be selected 2 Select 1 from the list box on the Condition page of the Trace Acquisition Properties dialog box and then click Edit The Trace Acquisition Condition Channel 1 dialog box is displayed Select the Trace Stop radio button in the After Condition Match group box on the Action page Acquisition Condition Channel 1 Interrupt Count Delay Action Address Data Bus Area Probe m After Condition Match e j DECE E Combination with the next Bang channel Acquisition Condition C None Address aD nd lo Im m Output Trigger J Enable output trigger Figure 4 41 Trace Acquisition Condition Channel 1 Dialog Box Trace Stop 115 RENESAS 3 An address must be set as the condition Uncheck Don t Care on the Address page of the Trace Acquisition Condition Channel 1 dialog box Then use the Editor window to refer to the address on the line that includes a i j within the tutorial function and enter this address in the Start edit box In this example enter H 0000107C This completes the setting of the address Click the OK button to close the Trace Acquisition Condition Channel 1 dialog box 116 Figure 4 42 Trace Acquisition Condition
96. and written in two bus cycles A data condition is only valid for a longword access when specified as word An address condition is only valid for a longword access when specified as a multiple of two Word access Word data is read and written in a single bus cycle A data condition is only valid for a word access when specified as word Any multiple of two is a valid address condition Byte access Byte data is read and written in a single bus cycle A data condition is only valid for a byte access when specified as byte Any address condition whether an even or odd address is valid 8 bit bus area 136 All accesses are done in bytes in this area a longword is accessed in four byte cycles and a word in two byte cycles Any address condition whether an even or odd address is valid A data condition is only valid when specified as byte RENESAS 5 6 Trace Functions 5 6 1 Displaying the Trace Information e The same hardware resource is used for acquisition of time stamps and the IRQ signals in the trace function Accordingly the trace contents differ depending on the Selection of the trace contents setting in the Trace Acquisition Properties dialog box Table 5 7 Trace Contents Setting Description When Timestamp is selected Acquires and displays timestamp in 32 bits The IRQ signals are not acquired When IRQ7 0 all indications is Acquires and displays the IRQ signals The time stamp is selected displaye
97. are extracted for display from the acquired trace information The content of the trace buffer is not changed by extraction of function calls Using this function for the result of the free trace or the trace information that includes function calls allows the user to know the order of function calls 65 RENESAS 3 9 Analyzing Performance Use the performance analysis function to measure the rate of execution time The performance analysis function does not affect the realtime operation because it measures the rate of execution time in the specified range by using the circuit for measurement of hardware performance included in the emulator Select one of the following five modes according to the purpose of measurement Table 3 1 Mode Available Measurement Modes Description Purpose Time Of Specified Range Measurement Measures the execution time and execution count in the specified range Measurement of time taken for processing of functions except for that required for child functions called from the functions Start Point To End Point Measurement Measures the execution time and execution count between the specified addresses Measurement of time taken for processing of functions Start Range To End Range Measurement Measures the execution time from a specified range to another specified range Measurement of execution time spent from calling of any of sequential subroutines to calling of
98. area where the emulator is to be used Make sure that the internal cooling fans on the sides of the emulator must be at least 20 cm 8 away from walls or other equipment Keep out of direct sunlight or heat Refer to section 3 1 Environmental Conditions Use in an environment with constant temperature and humidity Protect the emulator from dust Avoid subjecting the emulator to excessive vibration Refer to section 3 1 Environmental Conditions Protect the emulator from excessive impacts and stresses Before using the emulator s power supply check its specifications such as power voltage and frequency When moving the emulator take care not to vibrate or otherwise damage it After connecting the cable check that it is connected correctly For details refer to section 2 Preparation before Use Supply power to the emulator and connected parts after connecting all cables Cables must not be connected or removed while the power is on For details on differences between the target MCU and the emulator refer to section 3 5 Support of the Target MCU RENESAS 1 2 Emulator Hardware Components The emulator consists of an E6000H station and an evaluation chip board By installing a user system interface board option on your host computer the emulator can be connected in the same package as the device PC interface option includes a PC interface board PCI bus and PC card bus a LAN adapter connected with the network a
99. at any time without notice Target User of the Emulator Product This emulator product should only be used by those who have carefully read and thoroughly understood the information and restrictions contained in the user s manual Do not attempt to use the emulator product until you fully understand its mechanism It is highly recommended that first time users be instructed by users that are well versed in the operation of the emulator product 2tENESAS LIMITED WARRANTY Renesas warrants its emulator products to be manufactured in accordance with published specifications and free from defects in material and or workmanship Renesas at its option will repair or replace any emulator products returned intact to the factory transportation charges prepaid which Renesas upon inspection determine to be defective in material and or workmanship The foregoing shall constitute the sole remedy for any breach of Renesas warranty See the Renesas warranty booklet for details on the warranty period This warranty extends only to you the original Purchaser It is not transferable to anyone who subsequently purchases the emulator product from you Renesas is not liable for any claim made by a third party or made by you for a third party DISCLAIMER RENESAS MAKES NO WARRANTIES EITHER EXPRESS OR IMPLIED ORAL OR WRITTEN EXCEPT AS PROVIDED HEREIN INCLUDING WITHOUT LIMITATION THEREOF WARRANTIES AS TO MARKETABILITY MERCHANTABILITY FITNESS
100. ator PCI Card Driver m Details Interface Pci x Channel Emulator PCI Card Interface X Configuration Configure Figure 3 3 Driver Details Dialog Box Driver Selects the driver that connects the High performance Embedded Workshop and the emulator Details Sets the details of the driver being connected Interface The name of the interface to be connected This should not be changed in this emulator Channel Channel for the selected interface This should not be changed in this emulator Configuration Driver setting Configure A dialog box for setting will be displayed when the driver supports the configuration dialog Note that this item is not available with this emulator Change driver in start up Checking this box selects the driver when the emulator is connected the next time 19 RENESAS 3 1 4 Opening the Memory Mapping Dialog Box Selecting Setup gt Emulator gt Memory Resource or clicking the Emulator Memory Resource toolbar button d opens the Memory Mapping dialog box From To Mapping FD7FFF User Guarded OOFD8000 OOFDBFFF On Chip Guarded OOFDCOOO OOFF3FFF User Guarded OOFF4000 OOFFFFFF On Chip Read write Reset i 4MB Emulation RAM fitted Ram Bases 0 count 1 at H 00000000 size H 100000 1 not used 2 not used 01000000 OFFFFFFF User Guarded 3 not used Close Target Device Configuration
101. atus RENESAS The user can see the cause of the break that occurred last time in the Status window e Select Status from the CPU submenu of the View menu or click the Status toolbar button After the Status window is displayed open the Platform sheet and check the Status of Cause of last break Item Status Connected To SH7046 E6000H Emulator CPU SH 2 E6000H H UDI USB Driver CPU SH7145M Mode 3 Clock source 10MHz JTAG Clock 10MHz Clock Mode 0 Write Protect area write None Guard Protect area access None Cause of last break Software Break RunTime Count 00h00min00s000ms254us800ns Method of RunTime Count Go to Break 4 Memory Platform A Events 7 Figure 4 9 Status Window Note The items that can be displayed in this window differ depending on the product For the items that can be displayed refer to section 3 Debugging or the online help 91 RENESAS 4 7 Reviewing Breakpoints The user can see all the breakpoints set in the program in the Event window e Select Eventpoints from the Code submenu of the View menu or click the Eventpoints toolbar button B The Event window is displayed Select the Software sheet TT f d A X Type Software Enable PC 00001090 tutorial cpp 45 Break ja x TTP software Aon Chip A On Emulator Fi Figure 4 10 Event Window The popup menu opened by clicking the Event window with th
102. ayed If necessary click the Yes button to save a session After saving a session the High performance Embedded Workshop exits High performance Emb A Session Session XXXX_XXXX_Xxxx_ Emulator has been modified do you want to save it No Cancel Figure 2 13 Session has been modified Message Box RENESAS Section 3 Debugging This section describes the debugging operations and their related windows and dialog boxes 3 1 Setting the Environment for Emulation The method for setting the environment for emulation is described here This environment must be set correctly before debugging is started 3 1 1 Opening the Configuration Properties Dialog Box Selecting Setup gt Emulator gt System or clicking the Emulator System toolbar button EI opens the Configuration Properties dialog box SH 7046 E6000H Configuration Properties emm A me ooo owe SS fine SO Figure 3 1 Configuration Properties Dialog Box General Page 15 RENESAS General page Device Selects the target MCU to be emulated See the hardware manual for details Mode Selects the operating mode of the target MCU Clock Selects the speed of the input clock of the target MCU Select one of the followings Emulator Clock x MHz Clock signal of the emulator x 4 6 8 10 or 12 5 Target Clock signal from the user system Xtal Crystal oscillator
103. bal Strategic Communication Div Renesas Solutions Corp 2005 Renesas Technology Corp All rights reserved Printed in Japan Renesas Tech nology Corp Sales Strategic Planning Div Nippon Bldg 2 6 2 Ohte machi Chiyoda ku Tokyo 100 0004 Japan 2CENESAS RENESAS SALES OFFICES Refer to http www renesas com en network for the latest and detailed information http www renesas com Renesas Technology America Inc 450 Holger Way San Jose CA 95134 1368 U S A Tel lt 1 gt 408 382 7500 Fax lt 1 gt 408 382 7501 Renesas Technology Europe Limited Dukes Meadow Millboard Road Bourne End Buckinghamshire SL8 5FH United Kingdom Tel lt 44 gt 1628 585 100 Fax lt 44 gt 1628 585 900 Renesas Technology Shanghai Co Lid Unit2607 Ruijing Building No 205 Maoming Road S Shanghai 200020 China Tel lt 86 gt 21 6472 1001 Fax lt 86 gt 21 6415 2952 Renesas Technology Hong Kong Ltd 7th Floor North Tower World Finance Centre Harbour City 1 Canton Road Tsimshatsui Kowloon Hong Kong Tel lt 852 gt 2265 6688 Fax lt 852 gt 2730 6071 Renesas Technology Taiwan Co Ltd 10th Floor No 99 Fushing North Road Taipei Taiwan Tel lt 886 gt 2 2715 2888 Fax lt 886 gt 2 2713 2999 Renesas Technology Singapore Pte Lid 1 Harbour Front Avenue 06 10 Keppel Bay Tower Singapore 098632 Tel lt 65 gt 6213 0200 Fax lt 65 gt 6278 8001 Renesas Technology Korea Co Ltd Kukje C
104. 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 Computers
105. cense under any intellectual property rights or any other rights belonging to Renesas Technology Corp or a third party Renesas Technology Corp assumes no responsibility for any damage or infringement of any third party s rights originating in the use of any product data diagrams charts programs algorithms or circuit application examples contained in these materials All information contained in these materials including product data diagrams charts programs and algorithms represents information on products at the time of publication of these materials and are subject to change by Renesas Technology Corp without notice due to product improvements or other reasons It is therefore recommended that customers contact Renesas Technology Corp or an authorized Renesas Technology Corp product distributor for the latest product information before purchasing a product listed herein The information described here may contain technical inaccuracies or typographical errors Renesas Technology Corp assumes no responsibility for any damage liability or other loss rising from these inaccuracies or errors Please also pay attention to information published by Renesas Technology Corp by various means including the Renesas Technology Corp Semiconductor home page http www renesas com When using any or all of the information contained in these materials including product data diagrams charts programs and algorithms please be sure
106. cquisition Properties dialog box has the pages Condition and Other 50 RENESAS 1 Condition page Trace Acquisition Proper Condition Other Ux Combination r Sequential Trace Stop ies eos eon ees ees leon ine J ResetPoint Delay m Run time count between trigger outputs M Use From 7 to 2 From 3to4 From 5to6 From 7to8 Back IV Free trace Reset Reset All Cancel Apply Figure Sequential Trace Stop 3 27 Trace Acquisition Properties Dialog Box Condition Page Use this option to set a sequential trace stop by using channels 1 to 7 The sequential trace stop function allows trace acquisition to stop when the conditions of several channels are satisfied in the specified order Two to seven pass points and one reset point are selectable as sequential trace stop conditions The conditions are satisfied in the order of 1 to 7 To use a sequential trace stop select the checkbox of the channel To set a reset condition select the Reset Point checkbox Channel 8 is used for a reset condition When a reset condition is satisfied all the sequential trace stop conditions that have been satisfied will be cleared and the emulator starts checking the first condition again When a sequential trace stop is enabled no setting is available for the channels out of 1 to 7 that are not used for the sequential trace stop function Run
107. d by default Specifies the second pointer to measure the difference Displays the results of calculation Calculates the difference between the specified two points and display its result in the Timestamp Difference list Clears all the results in the Timestamp Difference list Closes the dialog box All the results in the Timestamp Difference list are cleared 63 RENESAS 3 8 13 Analyzing Statistical Information Choose Statistic from the popup menu to open the Statistic dialog box and analyze statistical information under the specified conditions St ic r Statistic Analysis ltem kNone gt x Start End Result Figure 3 33 Statistic Dialog Box Statistic Analysis Setting required for analysis of statistical information Default Sets a single input value or character string Range Sets the input value or character string as a range Item Sets the item for analysis Start Sets the input value or character string To set a range the start value must be specified here 64 RENESAS End Specify the end value if a range has been set only available when Range has been selected Set Adds a new condition to the current one New Creates a new condition Result Obtains the result of statistical information analysis Clear Clears all conditions and results of statistical information analysis Close Closes this dialog box All t
108. d channel Reset All Clears the settings made for all of the channels 43 RENESAS The user can set more complex break conditions in the On Emulator Break Channel n dialog box by a combination of conditions provided on pages Address Data Bus Area Probe Interrupt and Count On Emulator Break Channel 1 Figure 3 25 On Emulator Break Channel n Dialog Box 44 RENESAS Address Bus Area Don t Care Address Range Outside Range Sets data conditions Don t Care Value Use mask Except this value Access Size Position Long Word Byte Access type Bus State Area Sets address conditions It is also possible to specify a label as the address value Selects no address bus condition Select this button to set the address bus value specified in Start as the break condition A break occurs in the range of the address bus values specified from Start start address to End end address Select this option to generate a break with an address bus outside the range set in Range The address range of a function can be set by Start and End For details refer to section 5 10 Input Format Selects no data bus condition Sets a data bus value Sets mask conditions Set the mask bits if Use mask is selected Masked bits satisfy this break condition regardless of their values Sets a valu
109. d with the lower 16 bits fixed to 0 e When the user clock system clock signal b has been selected for Time measurement unit in the Trace acquisition dialog box the time stamp is displayed for 32 bits in hexadecimal 5 6 2 Specifying Trace Acquisition Conditions e The trace will stop several cycles after a condition is satisfied e Six or more bus cycles are required between pass points of sequential trace stop conditions and reset condition e Six or more bus cycles are required between the start and end of measurement when 1 2 3 4 or 5 6 is specified in Run time count between trigger outputs of the Trace Acquisition Properties dialog box e Fifteen or more bus cycles are required between the start and end of measurement when 7 8 is specified in Run time count between trigger outputs of the Trace Acquisition Properties dialog box e Six or more bus cycles are required from the start of execution to satisfaction of a trace stop mode condition e A sequential break or a trace stop may be incorrect when the user program is executed after the specified address condition has been applied as the PC address to start execution e The Point to Point trace mode is not available when channel 1 is used for the performance analysis function 5 6 3 Searching for a Trace Record e When the range for searching is specified in the General page a PTR value to end the search can be specified in the Start PTR option and a P
110. depend on the selected debugging platform Table 5 1 Selectable Target Platform Debugging Platform Description SH7046 E6000H Emulator CPUSH 2 The SH7046 SH7047 SH7144 or SH7145 group microcomputers can be emulated 5 3 Displaying and Modifying the Contents of Memory 5 3 1 Displaying and Modifying the Contents of Memory during Execution The emulator accesses memory in the following three ways to display and modify the contents of memory during user program execution Table 5 2 Access Types for Displaying and Modifying Contents of Memory Period Access Type Description Suspended Display Modification Monitor function Automatically updates the display of the None Enabled Disabled memory contents without stopping the user program execution Parallel access Temporarily stops the user program Short Enabled Enabled function execution Short break Temporarily stops the user program Long Enabled Enabled function execution These access types have the following characteristics Table 5 3 Characteristics of Displaying and Modifying Contents of Memory Access Type Target Window Target Memory Area Monitor function Realtime update of display in the Monitor Specified eight points or up to 256 bytes of window and in the Watch window when the _ the areas that the user program is allowed to monitor function is used access Parallel access Windows that display the memory contents On chip ROM and emulation memory area f
111. der 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
112. dress 0 1 2 3 4 5 6 7 8 9 A B C D E F Value OOFFB400 00 OO 79 4B OO OO 59 E2 OO OO 44 6B OO OO 41 c6 yK Dk a OOFFB410 00 OO 3F 54 OO OO 27 81 OO OO ic FB OO OO 16 TE 2T me Figure 3 15 Monitor Window During user program execution the display is updated according to the setting value of the auto update interval Note Select Refresh from the popup menu when data is not displayed correctly after changing the address or content of memory 3 5 2 Changing the Monitor Settings Selecting Monitor Setting from the popup menu of the Monitor window displays the Monitor Setting dialog box which allows the settings to be changed Colors the size of accesses and the display format can be easily changed from Color or Access of the popup menu 3 5 3 Temporarily Stopping Update of the Monitor During user program execution the display of the Monitor window is automatically updated according to the auto update interval Select Lock Refresh from the popup menu of the Monitor window to stop the update of display The characters in the address section are displayed in black and the update of display is stopped Selecting Lock Refresh again from the popup menu cancels the stopped state 3 5 4 Deleting the Monitor Settings Selecting Close from the popup menu of the Monitor window to be deleted closes the Monitor window and deletes the monitor settings 3
113. dress H oo000000 K End Address H o0000000 End Address H o0000000 Common Settings of Performance PA1 8 Address Control Mode PC Time Measurement Unit 20ns Figure 3 42 Called Count Of Specified Range Measurement Settings Range Name The name of the range to be measured Range The range for the Called Count Of Specified Range Measurement Start Address Start address End Address End address Call Range The range for the Called Count Of Specified Range Measurement As the call range specify the start and end addresses of the selected subroutine Start Address Start address End Address End address Measures the number of times the range specified as the call range is called from the range specified by the start and end addresses The execution time in the specified range can be measured with Time Of Specified Range Measurement mode As the call range specify the start and end addresses of the selected subroutine RENESAS 3 9 3 Starting Performance Data Acquisition Executing the user program clears the result of previous measurement and automatically starts measuring the rate of execution time according to the conditions that have been set Stopping the user program displays the result of measurement in the Performance Analysis window 3 9 4 Deleting a Measurement Condition Select Reset from the popup menu with a measurement condition selected to delete the condition 3 9 5 Deleting A
114. dress Range Trace Acquisition Condition None Address Selects a trace stop Selects an address range trace Selecting this option and checking Combination with the next channel allows an address range conditional trace Selects a conditional trace Select this option if you do not want to take any of the actions listed above This is useful for a trigger output or execution time measurement Sets the start and end addresses of the range in the address range trace address range conditional trace or Point to Point trace 55 RENESAS Start Set the start address End Set the end address al The address range of a function can be set by Start and End Output Trigger Outputs a trigger after the satisfaction of a trace condition Address Sets address conditions Data Sets data conditions Bus Area Sets access type bus status and read write cycle conditions Probe Sets the levels high or low of the external probe signals PRB1 to PRB4 as the condition Interrupt Sets the levels high or low of the IRQ and NMI signals as the condition Count Sets a satisfaction count condition Delay Sets the number of bus cycles delayed after the satisfaction of a trace condition This function allows you to check the trace information before after any of the specified conditions are satisfied When Don t Care has been selected there is no delay Notes 1 The settings to be made on pages
115. e following procedures must be added or modified Table 5 11 Notes on Operating the Tutorial Program 4 6 Executing the Reset the target MCU before executing the program Refer to section 4 14 Program Resetting the Target MCU for how to reset the target MCU 4 12 3 Executing the In this product after execution of Step Out execution stops at the statement where Step Over Command the sort function is called Before executing the Step Over command execute the Step In command once so that the execution stops at the statement where the change function is called 5 12 Memory Map 5 12 1 Emulation Memory 1 The emulator manages areas in the memory blocks shown in figures 5 1 and 5 2 Emulation memory and user memory cannot coexist in a single block 2 When emulation memory is used in 50 MHz operation one or more cycles are required as wait state cycles for access to those areas to which emulation memory is allocated When emulation memory is used refer to the table below and set the number of wait cycles for the bus state controller External Operating Frequency Number of Required Wait Cycles 50 MHz One or more 40 MHz or lower 0 5 12 2 Controlling Memory Map The memory map is divided into the 128 kbyte 1 Mbyte or 2 Mbyte blocks in each CS area The accessing attribute can be changed in a unit of each block For the size of blocks used for each CS area refer to figure 5 1 or 5 2 This emulator incorporates the
116. e local variables in the function currently pointed to by the program counter along with their values Note however that the Locals window is initially empty because local variables are yet to be declared i H 0000000a R14 int ap sam Oxffffe3d8 R13 class Sample Figure 4 19 Locals Window The user can click mark at the left side of class instance p_sam in the Locals window to watch all the elements View the elements of class instance p_sam before and after the execution of the sort function and check that the random data is sorted in the descending order 98 RENESAS 4 12 Stepping Through a Program The High performance Embedded Workshop provides a range of step menu commands that allow efficient program debugging Table 4 2 Step Options Menu Command Description Step In Executes each statement including statements within functions Step Over Executes a function call in a single step Step Out Steps out of a function and stops at the statement following the statement in the program that called the function Step Steps the specified times repeatedly at a specified rate 4 12 1 Executing the Step In Command The Step In command steps into the called function and stops at the first statement of the called function e To step through the sort function select Step In from the Debug menu or click the Step In button on the toolbar ee Figure 4 20 St
117. e longer than one measurement resolution time If the interval is shorter than that the interval itself is included in the measured time e In Time Of Specified Range Measurement measurement stops when an instruction is fetched outside the specified range In Start Point To End Point Measurement and Start Range To End Range Measurement measurement stops when the specified end condition is satisfied When the same addresses are specified for these modes the time measured in Time Of Specified Range Measurement is longer than that measured in Start Point To End Point Measurement or Start Range To End Range Measurement e Execution time is measured by using address bus values in prefetch cycles If the end address condition is specified at an address near the instruction following a branch instruction or delayed slot instruction correct time cannot be measured Check the bus trace display for the operation after the branch instruction prefetch cycle and specify the end address condition at the address in a prefetch cycle which will not be executed by the branching e Channel 1 is not available for performance analysis when the Point to Point trace mode is selected e The resolution for the performance analysis function can be set in Timer Resolution of the Configuration Properties dialog box If the clock counter value is set as the resolution the value shown in RUN TIME and MAX MIN TIME will be that of the clock counter displayed in
118. e other than that has been specified as the data bus condition Selects the data access size Sets a data bus value as a number The position of the valid data bus is specified None 4n Upper word 4n 2 Lower word 4n Upper byte of the upper word 4n 1 Lower byte of the upper word 4n 2 Upper byte of the lower word 4n 3 Lower byte of the lower word Sets access type bus status and read write cycle conditions Sets access type conditions When Don t Care has been selected no access type condition can be set Sets bus status conditions When Don t Care has been selected no bus status condition can be set Sets area conditions When Don t Care has been selected no area condition can be set On chip ROM Selects the on chip ROM area as the condition On chip RAM Selects the on chip RAM area as the condition On chip I O Selects the on chip I O area as the condition 45 RENESAS External Selects an external area where no emulation memory is allocated as the condition Emulator Selects an external area where emulation memory is allocated as the condition Read Write Sets read write conditions When Don t Care has been selected no read write condition can be set Probe Sets the levels high or low of the external probe signals PRB1 to PRB4 as the condition When Don t Care has been selected the level of the selected probe signal cannot be set as the condition
119. e program has halted with the message Break Software Break in the status bar Notes When the source file is displayed after a break a path of the source file may be inquired The location of the source file is as follows OS installation drive Workspace Tutorial E6000H 7046 S ource The directory mentioned above cannot be specified depending on the version of the software In such cases specify the following directory instead High performance Embedded Workshop installation destination directory Tools Renesas DebugComp Platform E6000H 7046 Source 89 RENESAS 24 00001038 void main void 25 26 0000103a while 1 27 00001042 tutorial 28 29 30 gyal 00001054 void tutorial void 32 33 long j 34 int i aS class Sample p_sam 36 37 0000105 p_sam new Sample 38 00001066 for i 0 i lt 10 i 39 0000106e j rand 40 00001076 ari lt Dri 41 0000107a j j 42 43 0000107c alij j 44 45 00001090 p_sam gt sort a 46 0000109a p_sam gt change a 47 48 000010a4 p_sam gt sO a 0 49 o000010aa p_sam gt si a 1 50 000010b0 p_sam gt s2 a 2 51 000010b6 p_sam gt s3 a 3 52 000010be p_sam gt s4 a 4 53 o000010c2 p_sam gt s5 a 5 54 000010c8 p_sam gt s6 a 6 55 000010ce p_sam gt s7 a 7 56 000010d4 p_sam gt s8 a 8 57 000010da p_sam gt s9 a 9 58 000010e0 delete p_sam 59 tutorial cpp Figure 4 8 Editor Window Break St
120. e required to correct the interference at his own expense Vill RENESAS Preface Thank you for purchasing the E6000H emulator CAUTION Read this manual before using the emulator product Incorrect operation or connection will damage the user system the emulator product and the user program The E6000H emulator is an efficient software and hardware development support tool for application systems using the microcomputer developed by Renesas Technology Corp The E6000H emulator can either be used without a user system for developing and debugging software or connected via a user system interface cable to a user system for debugging user hardware The emulator provides the following features 1 Realtime emulation of the MCU 2 Efficient debugging enabled by variable break functions and a mass storage trace memory 128 kcycles 3 Parallel access with a command execution during emulation for example e Trace data display e Emulation memory display and modification 4 Performance analysis Measurement of subroutine execution time and count for evaluating the execution efficiency of user programs 5 Graphical User Interface by the High performance Embedded Workshop that runs on Windows operating systems High performance Embedded Workshop is a Graphical User Interface intended to ease the development and debugging of applications written in C C programming language and assembly language Its aim is to provide a
121. e right hand mouse button allows the user to set or change breakpoints define new breakpoints and delete enable or disable breakpoints 92 RENESAS 4 8 Referring to Symbols The Label window can be used to display the information on symbols in modules Select Label from the Symbol submenu of the View menu The Label window is displayed so that the user can refer to the addresses of symbols in modules a Xx WE BP Address Wame 00000000 00000010 00000400 00000404 00000408 oo00040c 00000410 00000414 00000418 0000041 00000420 00000424 00000428 0000042 00000430 00000434 00000438 00000043C 00000440 00000444 00000448 0000044 0000044E 00000450 _RESET Vectors _INT_ Vectors _INT_Illegal_code _INT_Illegal_slot _INT_CPU_Address _INT_DTcC_Address _INT_NMI _INT_User_Break _INT_H_UDI _INT_TRAPA32Z _INT_TRAPA33 _INT_TRAPA34 _INT_TRAPA35 _INT_TRAPA36 _INT_TRAPA37 _INT_TRAPA38 _INT_TRAPA39 _INT_TRAPA40 _INT_TRAPA41 _INT_TRAPA42Z _INT_TRAPA43 _INT_TRAPA44 zerodiv _INT_TRAPA4S gt Figure 4 11 Label Window RENESAS 93 4 9 Viewing Memory When the label name is specified the user can view the memory contents that the label has been registered in the Memory window For example to view the memory contents corresponding to __main in byte size e Select Memory from the CPU submenu of the View menu or click the View Memory toolbar button B t
122. easured value includes an error e Cycle displays a decimal value of the counter for measurement of execution time The resolution for the counter for measurement of execution time can be set in Timer Resolution of the Configuration Properties dialog box The expression for the execution time of each function is as follows Execution time Value of the Cycle item x Value of Time Resolution e To enable the profiling function Enable read and write on the fly must be unchecked in the Configuration Properties dialog box 5 10 Input Format 5 10 1 Entering Masks Address bus conditions and data bus conditions can be input with masks Addresses can be masked in 1 3 or 4 bit units When a bit is masked it always satisfies the condition To specify a mask for an address bus condition specify the mask value in the Mask area The mask for data conditions is similarly specified in the Mask area To specify any further mask specify 1 for the digits to be ignored Examples of mask specification are listed below Table 5 9 Address Mask Specification Input Value Mask Unit Example Masked Bits Binary 1 bit B 00000111 Masks bits 0 to 2 Octal 3 bits 0 000017 Masks bits 0 to 3 Hexadecimal 4 bits H 07FF Masks bits 0 to 10 139 RENESAS 5 11 Tutorial Program 5 11 1 Notes on Operating the Tutorial Program To operate the High performance Embedded Workshop according to the description of section 4 Tutorial th
123. ecified between the start and end addresses and then stops with a detected program prefetch out of the specified range Measurement can be restarted with a detected program prefetch in the specified range The execution count is incremented every time the program is prefetched at the end address of the specified range The execution time measured does not include the time spent while being called from the specified range 70 RENESAS 2 Start Point To End Point Measurement Performance An rtie 2 x Measurement Method PA1 Start Point To End Point Measurement Range Name PA amp 1 Point Start Address H o0000000 Hl End Address H o0000000 Time Out Action Disable fA Common Settings of Performance PA1 8 Address Control Mode PC Time Measurement Unit 20ns Figure 3 39 Start Point To End Point Measurement Settings Range Name The name of the range to be measured Point The range for the Start Point To End Point Measurement Start Address Address to start measurement End Address Address to end measurement Time Out Action The action to take when a timeout or count out occurs Disable Disables setting of a timeout or count out value Enable Stops the user program execution when a timeout or count out occurs Trace Stop Stops trace acquisition when a timeout or count out occurs This is only available for channel 1 Time Out The timeout value to finish measur
124. ed area when the monitor window is opened Color Sets the method to update monitoring and the attribute of colors Change Indicator Selects how to display the values that have changed during monitoring available when Reading the Initial Value has been selected No change No color change Change Color is changed according to the Foreground and Background options Gray Those data with values that have not been changed are displayed in gray Appear A value is only displayed after changed Foreground Sets the color used for display available when Change has been selected Background Sets the background color available when Change has been selected Mayfly A check in this box selects restoration of the color of those data which have not been updated in a specified interval to the color selected in the Background option The specified interval is the interval for monitor acquisition available when Change Gray or Appear has been selected Detail Sets the items specific to the emulator History Displays the previous settings Notes 1 In this emulator odd addressees cannot be specified as the start addresses for monitoring 2 Selection of the foreground or background color may not be available depending on the operating system in use After setting clicking the OK button displays the Monitor window 31 RENESAS monitor monitor1 OOFFB400 g g fis z Bye sci x Ad
125. ement When the minimum time for measurement is 160 ns 40 ns or 20 ns enter the value as follows Example 1h 2min 3s 123ms 456us 789ns If the CPU operating mode is target enter a hexadecimal number in 10 digits Example 123456789A A break occurs every time a value measured in the specified range exceeds the timeout value not the total time This is only available for channel 1 71 RENESAS Count The count up value used in measurement of the execution count A break occurs every time the execution count exceeds the count up value This is only available for channel 1 Measures the execution time and the execution count in the range between start address and end address Starts measurement with a detected program prefetch at the start address and then stops with a detected program prefetch at the end address The execution count is incremented every time the program is prefetched at the end address of the specified range The execution time measured includes the time spent while being called from the specified range When either from one to four points is selected the maximum and minimum time in the specified range can be measured 72 RENESAS 3 Start Range To End Range Measurement Performance An perties 2 i xi Figure 3 40 Start Range To End Range Measurement Settings Range Name The name of the range to be measured Start Range The start range for the Start Range To End Range
126. emulation mode e Events sheet Displays information about the current event breakpoint status including resource information Note The items that can be set in this window depend on the emulator in use For details refer to the online help RENESAS 27 3 4 Reading and Displaying the Emulator Information Regularly Use the Extended Monitor window to know the changing information on the emulator no matter the user program is running or halted Note The extended monitor function does not affect the execution of the user program since it monitors the user system or the signal output from the target MCU in the emulator by using the emulator s hardware circuit 3 4 1 Opening the Extended Monitor Window Selecting View gt CPU gt Extended Monitor or clicking the Extended Monitor toolbar button E displays this window The interval of updating the display is approximately 1 000 ms during user program execution or 5 000 ms while breaking respectively Extended Monitor E Item Value l User RES Inactive User NMI Active User BREQ Inactive User WAIT Inactive User HSTBY Inactive User BACK Inactive User MRES Inactive User FWP Inactive User IRQ O 11111111 User VCC Ignore User PYCC Ignore User Target Not Connected Eva Chip Board Attached Coverage Board Attached Running status Break User Break Trace Count 131072 Trace Timestamp OverFlow None Target Mode Ignore Target ClockMode Ignore Tar
127. emulator use the realtime trace buffer which can store the information of up to 128 k bus cycles The content of this buffer which is constantly updated during execution is displayed in the Trace window Select Trace from the Code submenu of the View menu or click the Trace toolbar button amp to display the Trace window 5 x PTR Address Code0 Code1 Data R W SZ Status Area Probes NMI IRQ Timestamp Timestamp Difference Source Label Figure 4 38 Trace Window When trace information is displayed in the Trace window clicking the right hand mouse button on the Trace window displays a popup menu Select Clear from this menu to clear the trace information The following sections give an overview of the trace functions and the settings 112 RENESAS 4 16 1 Displaying Trace Information by the Free Trace Function The free trace function allows continuous acquisition of trace information from the start of user program execution to the occurrence of a break 1 All break conditions must be deleted Clicking the right hand mouse button on the Trace window displays a popup menu Select Acquisition from this menu to display the Trace Acquisition Properties dialog box Ensure that Free Trace is checked and then click the Close button 21x Condition Other Combination r Sequential Trace Stop IT ResetPoint Delay m Run time count between trigg
128. enter Bldg 18th FI 191 2 ka Hangang ro Yongsan ku Seoul 140 702 Korea Tel lt 82 gt 2 796 3115 Fax lt 82 gt 2 796 2145 Renesas Technology Malaysia Sdn Bhd Unit 906 Block B Menara Amcorp Amcorp Trade Centre No 18 Jalan Persiaran Barat 46050 Petaling Jaya Selangor Darul Ehsan Malaysia Tel lt 603 gt 7955 9390 Fax lt 603 gt 7955 9510 Colophon 4 0 SH7046 E6000H Emulator User s Manual 2CENESAS Renesas Electronics Corporation 1753 Shimonumabe Nakahara ku Kawasaki shi Kanagawa 211 8668 Japan REJ10J1116 0400
129. ep In Button 99 RENESAS T2 00002000 Sample Sample il 00002002 13 00002014 s0 0 14 00002018 31 0 15 0000201a s2 0 16 000020i1c 33 0 17 0000201e 34 0 18 00002020 35 0 19 00002022 s6 0 20 00002024 s7 0 21 00002026 s8 0 22 00002028 s9 0 23 24 25 00002032 void Sample sort long a 26 27 long t 28 int i ja KE gap 29 30 0000203a gap 5 31 0000203c while gap gt 0 32 00002040 for k 0 k lt gap Kk 33 00002046 for i k gap i lt 10 i i gap 34 00002052 for j i gap j gt k j j gap 35 0000205a if a j gt a lj gap 36 00002074 t alj 37 0000207e a j a j gap 38 00002096 alj gap t 39 40 else 41 break 42 43 44 45 o00020b6 gap gap 2 46 47 4 tutorial cpp sort cpp Figure 4 21 Editor Window Step In e The highlighted line moves to the first statement of the sort function in the Editor window 100 RENESAS 4 12 2 Executing the Step Out Command The Step Out command steps out of the called function and stops at the next statement of the calling statement e To step out of the sort function select Step Out from the Debug menu or click the Step Out button in the toolbar Figure 4 22 Step Out Button in 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 0000
130. er Performance form Analysis ance Shift Ctrl P Opens the Performance Analysis window Profile Shift Ctrl F Opens the Profile window Menu Option Shortcut Toolbar Button Remarks Debug Debug Sessions Opens the Debug Sessions dialog box to list add or remove the debug session Debug Settings Opens the Debug Settings dialog box to set the debugging conditions or download modules Reset CPU font i Resets the target hardware and sets the PC to the reset vector address Go F5 Starts executing the user program at the current PC Reset Go Shift F5 Resets the target hardware and executes the user program from the reset vector address Go To Cursor fur me Starts executing the user program at the current PC until the PC reaches the address indicated by the current text cursor position Set PC To Cursor Sets the PC to the address at the row of the text cursor Run Launches the Run Program dialog box allowing the user to enter the PC or PC breakpoint during executing the user program Display PC Shift Ctrl Y Opens the Editor or Disassembly window at the address of the PC 148 RENESAS Table A 1 GUI Menus cont Menu Option Debug Step In F11 cont Shortcut Toolbar Button ii Remarks Executes a block of user program before breaking
131. er D 5 in the Count edit box Note The content of this dialog box differs depending on the product For details on each product refer to section 3 Debugging or the online help On Chip Bre B 2 x Address Data BusArea Count Action Address Address Only H or Otor B a mask is 1 and a nomask is 0 Figure 4 37 On Chip Break Channel 4 Dialog Box e Click the OK button Then click the Close button on the Breakpoint Properties dialog box The on chip breakpoint that has been set is displayed in the Event window Note The items that can be displayed in this window differ depending on the product For the items that can be displayed refer to section 3 Debugging or the online help Close the Event window Then select Reset Go from the Debug menu to stop the tutorial program at on chip breakpoints The program runs and then stops at the breakpoint that has been set The cause of a break can be checked in Cause of last break of the Status window Refer to the Watch window for the value of variable i The value is 4 indicating that the break occurred after the condition had been satisfied five times Then delete the on chip breakpoint Clicking the right hand mouse button on the Event window displays a popup menu Select Delete All from this menu to delete all the on chip breakpoints 111 RENESAS 4 16 Trace Functions The trace functions of the
132. er System 3 5 Support of the Target MCU 3 5 1 Memory Space 3 5 2 Low Power Consumption Mode Sleep Software Standby and Hardware Standby cccseceseeseseesseseeeeseeeee 52 3 5 3 Interrupts 3 5 4 Control Input Signals _RES _BREQ and _WAIT 3 5 5 Bus State Controller BSC 3 5 6 Watchdog Timer WDT 3 5 7 A D Converter 3 5 8 Emulator State and On Chip Modules 3 5 9 Pin Functions a 3 5 10 Different Initial Values of Registers in the Emulator seeeeeeeeeeeeeeeererreeee Section 4 Diagnostic Test Procedure 4 1 System Set Up for Diagnostic Program Execution 4 2 Test Item of the Diagnostic Program 4 3 Diagnostic Test Procedure Using the Diagnostic Program RENESAS Debugger Part Section 1 OVSRVICW erreira SEEEN RERS ASEA AEE TaT Section 2 Preparation before USO cessicccecsessistesesecssvscetovasnesnusdoncsasnedtodsoseseeeces 2 1 Method for Activating High performance Embedded Workshop 2 1 1 Creating a New Workspace Toolchain Not Used 2 1 2 Creating a New Workspace Toolchain Used 2 1 3 Selecting an Existing Workspace 2 2 Connecting the Emulator 2 3 Re connecting the Emulator 2 4 Ending the Emulator Section 3 DEDUS SMG orenen ein eeri iian a d GASAREN aS 3 1 Setting the Environment for Emulation 3 1 1 Opening the Configuration Properties Dialog Box 3 1 2 Settings Associated with the Pin Function Controller 3 1 3 Selecting the Interface
133. er outputs l Use From toz From 3 to 4 From 5to 6 From to8 Beck IV Free trace Figure 4 39 Trace Acquisition Properties Dialog Box Free Trace 113 RENESAS 2 Set a software breakpoint at the address on the line that has p_sam gt sO0 a 0 within the tutorial function refer to section 4 15 1 Software Break Function 3 Select Reset Go from the Debug menu Execution stops when the break condition is satisfied and the Trace window then displays the trace information eS A e e Ww FO PTR Address Code0 Code1 Data R W SZ Status Area Probes NMI IRQ Timestamp 00010 00002130 RTS NOP 000b0009 RD L IF ROM Ti 1 0000h000mint 00009 OTH 1111 1 O000h000mint 00008 ffffffdo 00000000 RD L DAT RAM 1111 1 0000h000mint 00007 000010a4 DATA W H 0000 00006262 RD L IF ROM 1111 1 0000h000mint 00006 OTH 1111 T O000h000mint 00005 000010a8 2d22d615 RD L IF ROM 1111 T 0000h000mint 00004 OTH 1111 1 OO000h000minC 00003 OTH 1111 1 0000h000mint 00002 1111 1 0000h000mint 1111 1 O0000h000minC 1 114 Figure 4 40 Trace Window Free Trace RENESAS 4 16 2 Displaying Trace Information by the Trace Stop Function While the trace stop function is in use acquisition of trace information stops when a specified condition is satisfied The user can check the program flow by the trace information without breaking the user program execution 1 Delete
134. er system interface cable turn on the power of the emulator and re initiate the High performance Embedded Workshop If the problem is not solved contact us and describe the error occurrence in detail Main Board not Support XX XX XX Emulator is switched off or not connected The emulator power is not turned on or the user system interface cable is not connected Exit the High performance Embedded Workshop re connect the user system interface cable turn on the power of the emulator and re initiate the High performance Embedded Workshop If the problem is not solved contact us and describe the error occurrence in detail Emulation Board not Support XX XX XX Emulator is switched off or not connected The emulator power is not turned on or the user system interface cable is not connected Exit the High performance Embedded Workshop re connect the user system interface cable turn on the power of the emulator and re initiate the High performance Embedded Workshop If the problem is not solved contact us and describe the error occurrence in detail EVA chip Board not Support XX XX XX Emulator is switched off or not connected The emulator power is not turned on or the user system interface cable is not connected Exit the High performance Embedded Workshop re connect the user system interface cable turn on the power of the emulator and re initiate the High performance Embedded Workshop If the problem
135. ession Therefore if you enter the expression pc in the Set Address dialog box the Editor or Disassembly window will display the current PC address It allows the offset of the current PC to be displayed by entering an expression with the PC register plus an offset e g PC 0x100 26 RENESAS 3 3 Viewing the Current Status Choose View gt CPU gt Status or click the View Status toolbar button see the current status of the debugging platform to open the Status window and Item Status Target Device Configuration 00000000 System Memory Resources Program Name tor_cpu Tutorial abs tor_cpu Tutorial abs tor_cpu Tutorial abs tor_cpu Tutorial abs 00040000 FFFF8000 FFFFCOOO FFFFEOOO Emulation RAM Module OOO3FFFF FFFF7FFF FFFFBFFF FFFFDFFF FFFFFFFF A 1024 kB B 1024 kB c 1024 kB D 1024 kB Memory Loaded Area oooo0000 00000577 00000800 000008 53 00001000 00001617 00002000 00002137 Internal ROM Reserved Area Internal IO Reserved Area Internal RAM To Memory A Platform A Events Figure 3 11 Status Window The Status window has following three sheets e Memory sheet Displays information about the current memory status including the memory mapping resources and the areas used by the currently loaded object file e Platform sheet Displays information about the environment for emulation typically including CPU type and
136. f an access Word access Word data is read and written in a single bus cycle The specified address must be a multiple of two Word data is only valid as the size of an access Byte access Byte data is read and written in a single bus cycle A data condition is only valid for a byte access when specified as byte Any address condition both an even and odd address are valid 135 RENESAS 5 5 3 On Emulator Break e A break will occur several cycles after a condition is satisfied e The address bus and data bus conditions are satisfied on the bus cycles where the values on the address bus or data bus match Consider the following points when setting these conditions 32 bit bus area Longword access Longword data is read and written in a single bus cycle A data condition is only valid for a longword access when specified as longword An address condition is only valid for a longword access when specified as a multiple of four Word access Word data is read and written in a single bus cycle A data condition is only valid for a word access when specified as word An address condition is only valid for a word access when specified as a multiple of two Byte access Byte data is read and written in a single bus cycle A data condition is only valid for a byte access when specified as byte Any address condition whether an even or odd address is valid 16 bit bus area Longword access Longword data is read
137. family H85 H8 300 Tool chain z Figure 2 3 New Project Workspace Dialog Box Workspace Name edit box Enter the new workspace name Project Name edit box Enter the project name When the project name is the same as the workspace name it needs not be entered Directory edit box Enter the directory name in which the workspace will be created Click the Browse button to select a directory CPU family combo box Select the target CPU family Other list boxes are used for setting the toolchain the fixed information is displayed when the toolchain has not been installed Click the OK button RENESAS 3 Select the target platform of the session file The following dialog box is displayed New Pre tep 7 2 x Myy E6000H Emulator GPU nnnn Maco E6000H Emulator GPU mmmm Target type all Targets 7 lt Back Finish Cancel Figure 2 4 New Project Step 7 Dialog Box The target platform for the session file used when the High performance Embedded Workshop is activated must be selected here Check the box against the target platform and then click the Next button RENESAS 4 Set the configuration file name The configuration file saves the state of High performance Embedded Workshop except for the emulator JH Emulator C Configuration name Debue_yyyy_E6000H_E mulator_GP r Detail options Figure 2 5 New Project
138. get Clock Ignore Pin Counts 80 Figure 3 12 Extended Monitor Window 28 RENESAS 3 4 2 Selecting Items to be Displayed Selecting Properties from the popup menu displays the Extended Monitor Configuration dialog box ded Monitor Configuration Update millsecond o Running 1000 Break 5000 Lx Settings User RES Inactive User NMI Active User BREQ Inactive User WAIT Inactive User HSTBY Inactive User BACK Inactive User MRES Inactive User FWP Inactive Figure 3 13 Extended Monitor Configuration Dialog Box This dialog box allows the user to set the items to be displayed in the Extended Monitor window Note The items that can be set in this window depend on the emulator in use For details refer to the online help RENESAS 3 5 Displaying Memory Contents in Realtime Use the Monitor window to monitor the memory contents during user program execution In the Monitor function the realtime operation is retained since the bus monitoring circuit of the emulator sets the read write signal of the MCU as a trigger and holds the address bus and data bus values to update the displayed contents of the memory Up to eight points or 256 bytes in total can be set by using the eight monitoring channels on the bus monitoring circuit It is possible that a part or all of monitoring ranges is overlapped Notes 1 Monitoring is impossible for an area such as an on chip t
139. he results displayed in the Result list will be cleared This dialog box allows the user to analyze statistical information concerning the trace information Set the target of analysis in Item and the input value or character string by Start and End Click the Result button after setting a condition by pressing the New or Add button to analyze the statistical information and display its result in the Result list Note In this emulator only PTR can be set as a range Each of other items must be specified as a character string In analysis of statistical information character strings are compared with those displayed in the Trace window Only those that completely match are counted Note however that this test is not case sensitive The number of blanks will not be cared either 3 8 14 Extracting Function Calls from the Acquired Trace Information To extract function calls from the acquired trace information select Function Call from the popup menu The Function Call Display dialog box will be displayed Function Call Display Setting Enable to display trace information with function call only C Disable OK Cancel Figure 3 34 Function Call Display Dialog Box Setting Selects whether or not to extract function calls Enable Extracts function calls Disable Does not extract function calls When Enable is selected only the cycles that include function calls
140. his window displays the calling relation for the function specified in the List sheet or Tree sheet in the Profile window The specified function is displayed in the middle the calling function on the left side and the called function on the right side Values beside the calling and called functions show the number of times the function has been called Right clicking on the mouse within the window displays a popup menu Supported menu options are described in the following sections e View Source Displays the source program or disassembled memory contents for the address of the function on which the cursor is placed when the right hand mouse button is clicked If the cursor is not placed on a function when the right hand mouse button is clicked this menu option is displayed in gray characters e View Profile Chart Displays the Profile Chart window for the specific function on which the cursor is placed when the right hand mouse button is clicked If the cursor is not placed on a function when the right hand mouse button is clicked this menu option is displayed in gray characters e Enable Profiler Toggles acquisition of profile data When profile data acquisition is active a check mark is shown to the left of the menu text e Clear Data Clears the number of times functions are called and profile data Data in the List sheet and Tree sheet in the Profile window are also cleared 81 RENESAS e Multiple View Tf the
141. ibes how to use the emulator functions by using a tutorial program provided with the emulator 5 Software Specifications and Notes Specific to This Product This section describes software specifications and notes regarding the emulator 6 Error Messages This section describes the contents of error messages that may occur while the emulator is in use and solutions to them RENESAS RENESAS Section 2 Preparation before Use 2 1 Method for Activating High performance Embedded Workshop To activate the High performance Embedded Workshop follow the procedure listed below 1 Connect the emulator to the host computer 2 Connect the user system interface cable to the connector of the emulator if you use the user system interface cable This is not necessary when you do not use the user system interface cable Turn on the emulator Be sure to turn on the user system before supplying power to the emulator if you use the user system 3 Activate the High performance Embedded Workshop from Programs in the Start menu 4 The Welcome dialog box is displayed OK Cancel Administration C Browse to another project workspace Figure 2 1 Welcome Dialog Box Create a new project workspace radio button Creates a new workspace Open a recent project workspace radio button Uses an existing workspace and displays the history of the opened workspace Browse to another project work
142. ill be displayed Figure 4 16 Add Watch Dialog Box e Enter variable i to Variable or expression edit box and click the OK button The Watch window will now also show the int type variable i FFFFE400 ilong 10 H O000000a R14 int A gt f Watcha 4 watche A watchs A Watcha Figure 4 17 Watch Window Displaying the Variable 96 RENESAS The user can click mark at the left side of array a in the Watch window to watch all the elements a FFFFE400 long 10 R 0 H OD0041c6 FFFFE400 long R 1 H O000167e FFFFE404 long R 2 H 00002781 FFFFE408 long R 3 H 0000446b FFFFE40 long R 4 H 0000794b FFFFE410 long R 5 H OO00015fb FFFFE414 long R 6 H O000059e2 FFFFE418 long R 7 H O0001cfbh FFFFE41 long R 8 H OO003 54 FFFFE420 long R 9 H OOOOOff6 FFFFE424 long a H o000000a R14 lint Aef Watcha 4 watch2 Watcha A Watcha Figure 4 18 Watch Window Displaying Array Elements RENESAS 97 4 11 Displaying Local Variables The user can display local variables in a function by using the Locals window For example we will examine the local variables in the tutorial function which declares local variables j i and p_sam e Select Locals from the Symbol submenu of the View menu The Locals window is displayed The Locals window shows th
143. imer counter where no internal write signal is generated to update a value 2 The procedure to display or modify the contents of memory differs depending on the product If the display of memory contents is updated during execution of the user program realtime emulation may not be available For details refer to section 5 3 Displaying and Modifying the Contents of Memory 3 5 1 Opening the Monitor Window To open the Monitor window select View gt CPU gt Monitor gt Monitor Setting or click the Monitor toolbar button E3 to display the Monitor Settings dialog box Monitor Setting Name monitori r Options Address Size byte H o020 x Access Format BYTE ASCII x IV Auto Refresh at rate ms D 00500 IV Beading the Initial Value r Color Change Indicator Change MH Foreground E Background V Mayfly m Detail DETAIL NOT SUPPORTED m History Figure 3 14 Monitor Setting Dialog Box 30 RENESAS Name Decides the name of the monitor window Options Sets monitor conditions Address Sets the start address for monitoring Size Sets the range for monitoring Access Sets the access size to be displayed in the monitor window Auto Refresh at rate Sets the interval for acquisition by monitoring 500 ms at minimum Reading the Initial Value Selects reading of the values in the monitor
144. ing the Initial Value check box e Set the parameters in the Color group box as follows oS a Select Change from the Change Indicator combo box b Select red and white in the Foreground and Background combo boxes respectively c Check the Mayfly check box Note Depending on the operating system in use the foreground and background colors may not be selectable Monitor Setting Monitor Setting Name monitori r Options Address HFFFFE400 gl Size byte Access Format eyte esen o d JV Auto Refresh at rate ms poso S JV Beading the Initial Value r Color Change Indicator Change X Foreground oe Background gt ii M Mayfly m Detail DETAIL NOT SUPPORTED Detall m History H FFFFE 400 H 20byte BYTE ASCII Change Mayfly Y Figure 4 61 Monitor Setting Dialog Box Setting Completed 130 RENESAS 3 Click the OK button to open the Monitor window monitor monitor FFFFE400 g fis z Exe sci z Address 40 A1 2 3 4 5 6 7 8 9 A B C D E F FFFFE400 00 OO OF F6 OO OO 15 FB 00 OO 16 7E OO OO ic FB FFFFE410 00 OO 27 81 OO 00 3F 54 00 OO 41 c OO OO 44 6B Figure 4 62 Monitor Window 4 Select Reset Go from the Debug menu When the contents of the address range changes by execution the updated values are in red i e the color that wa
145. ings of E6000H System clock 10 0 MHz Clock mode Clock mode 3 JTAG clock 10 0 MHz Host computer CPU Pentium IV 1 5 GHz PC interface PCI interface 5 3 3 Monitor Function e Up to eight points or 256 bytes in total can be specified for the monitor function e The monitor function is implemented by eight 32 byte hardware channels The address range specified for one channel must be aligned to a 32 byte boundary two channels should be used to specify a range across a 32 byte boundary Accordingly when multiple ranges are specified across 32 byte boundaries the total specifiable size is less than 256 bytes e When monitor function conditions are set or modified during user program execution the program is not executed in realtime e When Access Size and Display Format are modified during user program execution the program is not executed in realtime 134 RENESAS 5 4 Executing Your Program 5 4 1 Step Execution Break conditions are ignored during step execution but trigger pulses will be output 5 5 Event Functions 5 5 1 Software Breakpoints A software breakpoint is realized by replacing the instruction at the specified address with a special instruction Accordingly it can only be set to the area including the emulation RAM Note that it cannot be set to the following addresses Addresses whose memory content is H 0000 Do not modify the contents of the software breakpoints addresses by the user program
146. is not solved contact us and describe the error occurrence in detail Can t initialize G A registers An error occurred during the initialization of the emulator Exit the High performance Embedded Workshop re connect the user system interface cable turn on the power of the emulator and re initiate the High performance Embedded Workshop If the problem is not solved contact us and describe the error occurrence in detail There is no effective clock source A valid clock source cannot be found Connect a valid clock source This mode can not specify 144 The state of mode pins for the target board is incorrect Initiation is only possible in mode 4 Set the mode pins correctly RENESAS Table 6 1 Error Messages at Initiation cont Error Message Description and Solution Can t find firmware file There is an error in the file that is required at emulator initiation Exit the High performance Embedded Workshop Firmware open Error re connect the user system interface cable turn on the Firmware Download Error power of the emulator and re initiate the High performance Firmware Name Error Embedded Workshop If the problem is not solved contact us and describe the error occurrence in detail Failed to receive a firmware Initiation of the emulator firmware has failed Exit the High initialization command performance Embedded Workshop re connect the user system interface cable turn on the power of the
147. isplay the Input Function Range dialog box Enter the function name sort in the Function edit box in this dialog box and then click the OK button The addresses for the function Sample sort long will now be set in the Start Address and End Address edit boxes Input Function Range Eunction Sample sort long Cancel Figure 4 57 Input Function Range Dialog Box 127 RENESAS Note The addresses figured out in the Input Function Range dialog box are just for reference In some cases the end address of a function may be incorrect Check the last instruction of the function in the Disassembly window to correct the value set in End Address so that it will be the address of the last instruction in general the last instruction of a function is a RTS instruction A label name or an expression can be entered instead of an address value in boxes where an address should be entered 6 Click the OK button to display the contents that has been set for line 1 of the No column in the Performance Analysis window This completes the settings for measuring the time within the specified range 9 Peston A EEE a Ma Bes MEE I Mo None Condition Rabe ROMSSINE WAS SMINEPIME Count 0 2 10 20 230 40 50 25 1 PAL Range 00002032 H OODO2OCC O Oh OOmin 00s 000m ONDua OOOns 0 2 3 4 5 6 7 8 i mE 2j Figure 4 58 Performance Analysis Dialog Box Setting Completed
148. ity Operating 35 to 80 RH no condensation Storage 35 to 80 RH no condensation Vibration Operating 2 45 m s max Storage 4 9 m s max Transportation 14 7 m s max AC input power Voltage 100 V to 240 V AC Frequency 50 60 Hz Power consumption 75 W Ambient gases There must be no corrosive gases present RENESAS 17 3 2 Emulator External Dimensions and Mass Figures 3 1 shows the external dimensions and mass of the E6000H emulator External dimensions of the E6000H emulator station 222 0 Extomal dimensions of the evaluation chip board 160 Mass of the emulator 3 4 kg Unit mm Tolerance 21 0mm Figure 3 1 External Dimensions and Mass of the Emulator 18 RENESAS 3 3 User System Interface Circuit 3 3 1 User System Interface Circuit The circuits that interface the MCU in the emulator to the user system include buffers and resistors When connecting the emulator to a user system adjust the user system hardware compensating for FANIN FANOUT and propagation delays The AC timing values when using the emulator are shown in table 3 2 Note The values with the emulator connected in table 3 2 are measurements for reference and are not guaranteed values Table 3 2 Bus Timing when Using the Emulator Bus Clock 50 0 MHz MCU Specifications ns Values with Emulator Connected ns Item Min Max Min Max tRDS 15 16 tACC tcyc x n 2 35
149. ject is moved from its original path the source file may not be automatically found In this case a source file browser dialog box is displayed to allow you to manually locate the source file 3 2 1 Downloading a Program A load module to be debugged must be downloaded To download a program select the load module from Debug gt Download or select Download from the popup menu opened by clicking the right hand mouse button on the load module in Download modules of the Workspace window Note Before downloading a program it must be registered to the High performance Embedded Workshop as a load module 3 2 2 Viewing the Source Code To view a source file s code double click on its icon in the file tree or right click on the source file and select the Open option on the pop up menu The Editor window is displayed Tutorial cpp k m fel x Balal 000102e void tutorial void long j int i class Sample p sam 0001032 p_sam new Sample 0001050 for i O7 i107 i lt 000103 j rand 0001044 if j lt Oyi 0001046 j S32 0001048 gt ali j 0001058 p_sam gt sort a 0001066 p_sam gt change a 000106e p_sam gt sO a 0 0001072 p_sam gt s1 a 1 0001076 p_sam gt s2 a 2 Ad Figure 3 6 Editor Window 22 RENESAS In this window the following items are shown on the left as information on lines e Ist column Line Number column A line number for the source
150. king the right hand mouse button on the Event window displays a popup menu Select Delete All from this menu to delete all the event points that have been set Clicking the right hand mouse button on the Trace window displays a further popup menu Select Clear from this menu to clear the trace information 123 RENESAS 4 17 Stack Trace Function The emulator uses the information on the stack to display the function call history Notes 1 This function can be used only when the load module that has the Dwarf2 type debugging information is loaded Such load modules are supported in H8S H8 300 C C compiler V4 0 or later 2 For details on the stack trace function refer to the online help e Double click the S W Breakpoints column in the sort function and set a software breakpoint 11 00002000 Sample Sample 12 00002002 ak 00002014 s0 0 14 00002018 81 0 15 0000201a s2 0 16 o00020ic 33 0 17 o000201e 34 0 18 00002020 s5 0 19 00002022 s6 0 20 00002024 s7 0 rant 00002026 s8 0 22 00002028 s9 0 23 24 als 00002032 void Sample sort long a 26 an long t 28 int i J K gap 29 30 o000203a gap 5 fal 0000203 while gap gt 0 jf 32 00002040 for k 0 k lt gap k 33 00002046 for i k gap i lt 10 i i gap 34 00002052 for j i gap j gt k j j gap 35 0000205a P ifia j gt a j gap 36 00002074 t alj aie o000207e a j a j gap 38 00002
151. le conditions can be selected here Don t care Detects no bus condition when this box is checked Setting Detects the specified bus condition Area Selects the area being accessed Don t care Detects no area condition when this box is checked Setting Detects the specified area condition not available when Don t care has been checked Probes Sets a probe signal condition multiple conditions can be selected here Don t care Detects no probe signal condition when this box is checked Setting Detects the specified probe signal condition Don t care Detects no selected probe signal condition High The status of the probe signal is high Low The status of the probe signal is low IRQ Sets an IRQ signal condition Don t care Detects no IRQ signal condition when this box is checked Setting Detects the specified IRQ signal condition Don t care Detects no selected IRQ signal condition 61 RENESAS High The status of the IRQ signal is high Low The status of the IRQ signal is low Timestamp Sets the time stamp condition Don t care Detects no time stamp value when this box is checked Setting Detects the specified time stamp value Point Specifies a single time stamp Range Specifies a time stamp range From Enter a single time stamp value or the minimum value of the time stamp range The format is as follows hour h minute min second s millisecond ms microsecond us
152. le without Renesas prior written consent Other Important Things to Keep in Mind 1 Circuitry and other examples described herein are meant merely to indicate the characteristics and performance of Renesas semiconductor products Renesas assumes no responsibility for any intellectual property claims or other problems that may result from applications based on the examples described herein 2 No license is granted by implication or otherwise under any patents or other rights of any third party or Renesas Figures Some figures in this user s manual may show items different from your actual system Limited Anticipation of Danger Renesas cannot anticipate every possible circumstance that might involve a potential hazard The warnings in this user s manual and on the emulator product are therefore not all inclusive Therefore you must use the emulator product safely at your own risk Ill 2tENESAS SAFETY PAGE READ FIRST e READ this user s manual before using this emulator product e KEEP the user s manual handy for future reference Do not attempt to use the emulator product until you fully understand its mechanism DEFINITION OF SIGNAL WORDS gt This is the safety alert symbol It is used to alert you to potential personal injury hazards Obey all safety messages that follow this symbol to avoid possible injury or death A DANGER DANGER indicates an imminently hazardous situation which if not avoided will
153. lect Registers Page 17 RENESAS Pin Select Registers page Option Description IRQO Sets the pins PA2 PB2 PD16 HIGH that correspond to the IRQO signal IRQ1 Sets the pins PA5 PB3 PD17 HIGH that correspond to the IRQ1 signal IRQ2 Sets the pins PA8 PB4 PD18 HIGH that correspond to the IRQ2 signal IRQ3 Sets the pins PA9 PB5 PD19 HIGH that correspond to the IRQ3 signal IRQ4 Sets the pins PB6 PD20 HIGH that correspond to the IRQ4 signal IRQ5 Sets the pins PB7 PD21 HIGH that correspond to the IRQ5 signal IRQ6 Sets the pins PB8 PD22 HIGH that correspond to the IRQ6 signal IRQ7 Sets the pins PB9 PD23 HIGH that correspond to the IRQ7 signal BREQ Sets the pins PA13 PA18 PB7 HIGH that correspond to the BREQ signal BACK Sets the pins PA15 PA19 PB6 HIGH that correspond to the BACK signal WAIT Sets the pins PA7 PA17 PB8 PE17 HIGH that correspond to the WAIT signal Note The initial values for all of these settings are HIGH When signals are specified as HIGH the emulator displays HIGH regardless of the state of the signals Note that this has no effect on the pin state of the target MCU 18 RENESAS 3 1 3 Selecting the Interface to be Connected Checking Change driver in start up on the Configuration Properties dialog box allows a selection of the driver next time the emulator is connected Driver Emul
154. line e Enable Profiler Toggles acquisition profile data When profile data acquisition is active a check mark is shown to the left of the menu text 79 RENESAS e Not trace the function call Stops tracing function calls while profile data is acquired This menu is used when acquiring profile data of the program in which functions are called in a special way such as task switching in the OS To display the relation of function calls in the Tree sheet of the Profile window acquire profile data without selecting this menu In addition do not select this menu when optimizing the program by the optimizing linkage editor using the acquired profile information file e Find Displays the Find Text dialog box to find a character string in the Function column Search is started by inputting a character string to be found in the edit box and clicking Find Next or pressing the Enter key e Clear Data Clears the number of times functions are called and profile data Data in the Profile window s List sheet and the Profile Chart window are also cleared e Output Profile Information Files Displays the Save Profile Information Files dialog box Profiling results are saved in a profile information file pro extension The optimizing linkage editor optimizes user programs according to the profile information in this file For details of the optimization using the profile information refer to the manual of the optimizing
155. ll Measurement Conditions Choose Reset All from the popup menu to delete all the conditions that have been set 76 RENESAS 3 10 Profiling Function 3 10 1 Enabling the Profile Choose View gt Performance gt Profile to open the Profile window Choose Enable Profiler from the popup menu of the Profile window The item on the menu will be checked 3 10 2 Specifying Measuring Mode You can specify whether to trace functions calls while profile data is acquired When function calls are traced the relations of function calls during user program execution are displayed as a tree diagram When not traced the relations of function calls cannot be displayed but the time for acquiring profile data can be reduced To stop tracing function calls choose Disable Tree Not traces function call from the popup menu in the Profile window a check mark is shown to the left of the menu item When acquiring profile data of the program in which functions are called in a special way such as task switching in the OS stop tracing function calls 3 10 3 Executing the Program and Checking the Results After the user program has been executed and execution has been halted the results of measurement are displayed in the Profile window The Profile window has two sheets a List sheet and a Tree sheet 77 RENESAS 3 10 4 List Sheet e Ena Show Functions Variables JE a Function Variable Addre g
156. n are stored and sorts them in the ascending order e The change function then sorts the array which was sorted in ascending order by the sort function in descending order The file tutorial cpp contains the source code for the tutorial program The file Tutorial abs isa compiled load module in the Dwarf2 format Notes 1 After recompilation the addresses may differ from those given in this section 2 This section describes general usage examples for the emulator For the particular specifications of each product refer to section 3 Debugging or the online help 3 The operation address of Tutorial abs attached to each product differs depending on the product Replace the address used in this section with the correct address in each product after checking that it is placed on the corresponding line of the source program 4 In this tutorial the SH7046 E6000H emulator is taken as an example File paths or the appearance of figures differ depending on the product 83 RENESAS 4 2 Running the High performance Embedded Workshop Open a workspace by following the procedure listed in section 2 1 3 Selecting an Existing Workspace Select the following directory OS installation drive Workspace Tutorial E6000H 7046 Note The directory mentioned above cannot be specified depending on the version of the software In such cases specify the following directory instead High performance Embedded Workshop installation destination direct
157. nanosecond ns To Enter the maximum value of the time stamp range The format is the same as that in From Set filtering conditions and then press the OK button This starts filtering according to the conditions Clicking the Cancel button closes the Trace Filter dialog box which holds the settings at the time when the dialog box was opened In filtering only the trace information that satisfies one or more filtering conditions set in the above pages will be displayed in the Trace window Filtering conditions can be changed several times to analyze data because the content of the trace buffer is not changed by filtering 62 RENESAS 3 8 12 Calculating the Difference in Time Stamping Select Timestamp Difference from the popup menu to calculate the time difference between the two points selected by the result of tracing in acquisition of time stamp information r Select 2 line First PTR 32764 Second PTR fo Timestamp difference information Timestamp Difference 0000h 00min 000s 0O3ms 897us 875ns Get Difference Clear u x Select 2 line First PTR Second PTR Timestamp Difference Get Difference Clear OK Figure 3 32 Timestamp Difference Dialog Box Select trace records to calculate the time stamp difference Specifies the first pointer to measure the difference The pointer of the line selected on the Trace window is displaye
158. nctoved sddnessbsadevessbicdeosss 48 3 8 2 Acquiring Trace Information 3 8 3 Specifying Trace Acquisition Conditions 3 8 4 Searching for a Trace Record 3 8 5 Clearing the Trace Information 3 8 6 Saving the Trace Information in a File 3 8 7 Viewing the Editor Window 3 8 8 Trimming the Source 3 8 9 Temporarily Stopping Trace Acquisition 3 8 10 Restarting Trace Acquisition 0 0 3 8 11 Extracting Records from the Acquired Information 3 8 12 Calculating the Difference in Time Stamping 3 8 13 Analyzing Statistical Information 3 8 14 Extracting Function Calls from the Acquired Trace Information 3 9 Analyzing Performance 3 9 1 Opening the Performance Analysis Window 3 9 2 Setting Conditions for Measurement 3 9 3 Starting Performance Data Acquisition 3 9 4 Deleting a Measurement Condition 3 9 5 Deleting All Measurement Conditions 3 10 Profiling Function 3 10 1 Enabling the Profile 3 10 2 Specifying Measuring Mode 3 10 3 Executing the Program and Checking the Results 3 10 4 List Sheet 3 10 5 Tree Sheet 3 11 Profile Chart Window Section4 Tuto tial cisccscccevscsscsseitetiessiisacsnessssncenootaeseosdsacestaassatstasssstavssessesasssssss 83 4 1 Introduction S 4 2 Running the High performance Embedded Workshop 84 4 3 Downloading the Tutorial Program 85 4 3 1 Downloading the Tutorial Program 4 3 2 Displaying the Source Pr
159. nd a USB adapter connected with the USB interface By connecting the emulator to the host computer via those interfaces the High performance Embedded Workshop can be used for debugging For details on PC interface boards available for PCI bus and PC card bus specifications LAN adapter and USB adapter refer to their description notes USB cable USB adapter option option e pC PC interface PC interface cable cable option option Network LAN adapter option PC interface cable option Ee See __ PC interface board option E6000H station pi ar Evaluation chip board fo User system interface board 2 IC socket User system Figure 1 1 Emulator Hardware Components RENESAS 1 2 1 E6000H Station Components A Part of Photos may be Different from Real Appearances The names of the components on the front rear panel of the E6000H station are listed below Front Panel Es000H INAS Figure 1 2 E6000H Station Front Panel a POWER lamp Is lit up while the E6000H station is supplied with power b RUN lamp Is lit up while the user program is running RENESAS Rear Panel a o b Figure 1 3 E6000H Station Rear Panel a Power switch Turning this switch to I input supplies power to the emulator E6000H station and evaluation chip board b AC power connector For an AC 100 V to 240 V power supply c PC
160. ndow Select View gt Code gt Eventpoints or click the Eventpoints toolbar button to open the Event window a I X Type Ay software On Chip A On Emulator 7 Figure 3 19 Event Window The Event window has the following three sheets Software sheet Displays the settings made for software breakpoints It is also possible to set modify and cancel software breakpoints On Chip sheet Displays or sets on chip breakpoints On Emulator sheet Displays or sets on emulator breakpoints Note For notes on event points refer o section 5 5 Event Functions 37 RENESAS 3 7 1 Setting a Software Breakpoint Use the Software sheet on the Event window to display change or add settings for software breakpoints Select Add or Edit from the popup menu displayed on the Software sheet The Breakpoint Properties dialog box the Software Break page will appear Software Break On Chip Break On Emulator Break r Sequential Break lm i gt 21 354 Count Address Range Break F Range 4 3 F Range 24 r Run time count between trigger outputs F From 3 to 4 Back Figure 3 20 Breakpoint Properties Dialog Box Software Break Page 38 RENESAS To add a new software breakpoint select an empty line from the list box on the Software Break page and click the Edit button To change existing settings select the software breakpoi
161. nfiguration file saves the state of High performance Embedded Workshop except for the emulator JH Emulator C Configuration name Debue_ yyyy_E6000H_Emulator_CP r Detail options Figure 2 9 New Project Step 8 Dialog Box If multiple target platforms were selected in the New Project Step 7 dialog box shown in figure 2 9 set the configuration file name for each of them each time clicking the Next button to proceed to the next target Setting of the configuration file name is the end of the emulator settings Complete the creation of a new workspace according to the instructions on the screen This activates the High performance Embedded Workshop 5 After the High performance Embedded Workshop has been activated connect the emulator However it is not necessary to connect the emulator immediately after the High performance Embedded Workshop has been activated Select either of the following two ways to connect the emulator connecting the emulator after the setting at emulator activation or without the setting at emulator activation For details on the connection of the emulator refer to section 2 2 Connecting the Emulator 11 RENESAS 2 1 3 Selecting an Existing Workspace 1 In the Welcome dialog box that is displayed when the High performance Embedded Workshop is activated select Browse to another project workspace radio button and click the OK button Cancel
162. nnecting the evaluation chip board to the user system check that the emulator and the user system are turned off Connect the UVCC to the user system power The emulator monitors and determines whether the user system is turned on or off by the UVCC pins HS7046EPH60H pins 48 50 52 VCC 54 56 58 60 62 and 64 PVCC on the user system interface connector UCN2 Accordingly after connecting the user system to the emulator be sure to supply power to the VCC pins Otherwise the emulator assumes that the user system is not connected When the user system is connected check that the power of the user system is supplied to these pins RENESAS 3 5 Support of the Target MCU 3 5 1 Memory Space The MCU has a 4 Gbyte memory space in its architecture On Chip ROM Area Access to the on chip ROM area The emulator includes substitute RAM for the MCU s on chip ROM The substitute RAM is accessed if an attempt is made to access the on chip ROM The on chip ROM area access differs between user program execution and the emulator commands Only read access is enabled during execution of the user program A break occurs if the on chip ROM area is written to However if write access to the on chip ROM area has been selected in the Configuration dialog box both reading and writing are enabled For access with emulator functions Memory window or loading read and write are always enabled The on chip ROM area is read in one state and
163. nt that you want to change from the list box and click the Edit button The Software Break dialog box is displayed H 00001000 Figure 3 21 Software Dialog Box Address Page Specify the breakpoint s address in the Address edit box and click the OK button 39 RENESAS 3 7 2 Setting an On Chip Breakpoint Use the On Chip sheet on the Event window to display change or add settings for on chip breakpoints Select Add or Edit from the popup menu displayed on the On Chip sheet The Breakpoint Properties dialog box the On Chip Break page will appear 2x Software Break On Chip Break On Emulator Break r Sequential Break Diol 2dr er 4 Count Address Range Break I Range 4 3 Range 2 1 m Run time count between trigger outputs I From 3to 4 Do n Reset Reset AIl Close Q Apply ancel Figure 3 22 Breakpoint Properties Dialog Box On Chip Break Page Sequential Break Address Range Break Use this item to specify a sequential break consisted of on chip breakpoints A sequential break allows breaking the program when the conditions of several channels are satisfied sequentially Two to four points can be selected for this function The conditions are satisfied from 1 to 4 in order Check a box to use the sequential break function select 3 to use two points 2 to use th
164. nted 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
165. nternal clock 4 MHz Emulator internal clock Crystal Oscillator A crystal oscillator is not supplied with the emulator Prepare and use one that has the same frequency as that of the user system When using a crystal oscillator as the target MCU clock source the frequency range must be from 5 0 to 12 5 MHz CAUTION Always switch OFF the emulator and user system before connecting or disconnecting the CRYSTAL OSCILLATOR Otherwise the USER PROGRAM will be LOST Follow the procedure listed below to install the crystal oscillator 1 Check that the emulator power switch is turned off Check that the power LED is not lit 2 Attach the crystal oscillator into the terminals on the evaluation chip board figure 2 4 3 Turn on the user system power and then the emulator power Then the crystal oscillator will be automatically set This function will allow the execution of the user program at the operating frequency of the user system even when the user system is not connected to the emulator 13 RENESAS Enlarged Crystal oscillator Crystal oscillator terminals Evaluation chip board Figure 2 4 Installing the Crystal Oscillator External Clock Follow the procedure listed below to select the external clock Check that the emulator power switch is turned off Check that the power LED is not lit Connect the evaluation chip board to the user system and supply a clock through the EXTAL pin from the
166. o L S Host computer Figure 1 6 System Configuration Using a PC Interface Board Network E6000H emulator co PCIF f AS ee Host computer PC interface cable Figure 1 7 System Configuration Using a LAN Adapter RENESAS Host computer USB adapter USB cable PC interface cable E6000H emulator PCIF Figure 1 8 System Configuration Using a USB Adapter RENESAS Section 2 Preparation before Use 2 1 Description on Emulator Usage This section describes the preparation before use of the emulator Figure 2 1 is a flowchart on preparation before debugging with the emulator CAUTION Read this section and understand its contents before preparation Incorrect operation will damage the user system and the emulator The USER PROGRAM will be LOST Reference Connect the emulator Described in this section Set up the emulator on each OS See the E6000H emulator setup guide I Start debugging See the Debugger Part Figure 2 1 Emulator Preparation Flowchart RENESAS 2 2 Emulator Connection 2 2 1 Connecting the User System A WARNING Always switch OFF the emulator and user system before connecting or disconnecting any CABLES Failure to do so will result in a FIRE HAZARD and will damage the user system and the emulator or will result in PERSONAL INJURY The USER
167. o open the Format dialog box Enter _main in the Begin edit box and f in the End edit box respectively and select Byte in the Format combo box Display Address eas Display Address Lmain al Scroll Start Address foooooca Scroll End Address FFFFFFF 7 al Cancel Figure 4 12 Format Dialog Box e Click the OK button The Memory window showing the selected area of memory is displayed 6 00 8 2 te Address Label Register 0 1 2 3 4 5 6 7 B 9 4A B C D E 00001038 main 4F 22 El 01 60 13 88 OO 89 05 BO 07 OO 09 El 00001048 60 13 88 OO 8B F9 4F 26 OO OB OO 09 2F D6 2F 00001058 4F 22 7F F4 E4 OO D3 26 43 OB OO 09 6D 03 EE 00001068 El OA 3E 13 89 10 D3 23 43 OB OO 09 62 03 42 00001078 89 00 62 2B D4 20 66 E3 65 63 45 08 60 53 04 00001088 7E O1 El OA 3E 13 8B EE DS 1B 64 D3 D3 1B 43 00001098 00 09 pS 19 64 D3 D3 1A 43 OB OO 09 D6 16 62 00001048 2D 22 D 15 52 61 1D 21 D6 13 52 62 1D 22 DE 00001088 52 63 1D 23 D 10 52 64 1D 24 D6 OF 52 65 1D 25 Rc Rd 000010c6 D6 OD 52 66 1D 26 D6 OC 52 67 1D 27 D6 OA 52 68 Rf amp Rg 00001008 1D 28 D6 09 52 69 1D 29 64 D3 D3 OA 43 OB OO 09 Ri d 000010E8 7F Oc 4F 26 6E F6 6D F6 OO OB OO 09 OO OB OO 09 Osn m 000010F8 00 oO 20 OO oO OO 12 28 FF FF E4 OO OO 00 20 32 00001108 00 00 20 cE OO OO 11 B4 2F 16 2F 26 2F 36 2F 46 00001118 2F 56 2F 66 D1 12 D2 13 AO 08 ES OO 63 16 64 16 00001128 AO 02 00 09 23 52 73 04 34 36
168. ocket for each package to the user system After checking the location of pin 1 on the IC socket apply epoxy resin adhesive to the bottom of the IC and fasten it to the user system before soldering 2 Soldering IC Socket After fastening solder the IC socket to the user system Be sure to completely solder the leads so that the solder slops gently over the leads and forms solder fillets Use slightly more solder than the MCU Connection Using the HS7046ECH61H AWARNING Always switch OFF the emulator and user system before connecting or disconnecting any CABLES Failure to do so will result in a FIRE HAZARD and will damage the user system or emulator or result in PERSONAL INJURY Also the USER PROGRAM will be LOST Notes 1 For more details on the HS7046ECH61H refer to the user s manual supplied with the emulator 2 This user system interface board can only be used in combination with the specified QFP socket 1C149 080 017 B5 Install the FP 80Q IC socket IC149 080 017 B5 manufactured by YAMAICHI ELECTRONICS Co LTD on the user system to connect the emulator Since the pin arrangement is the same as that of the actual MCU refer to the hardware manual Figure 3 9 shows the connection of the HS7046ECH61H figure 3 10 shows the size restrictions for the installed components of the HS7046ECH61H and figure 3 11 shows the recommended mount pad dimensions of the user system IC socket 28 RENESAS Evaluation
169. 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 anti crime 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 un
170. og box Click the Close button on this dialog box 6 Set a software breakpoint at the address on the line that has delete p_sam within the tutorial function H 000010E0 in this example for details refer to section 4 15 1 Software Break Function 7 Select Reset Go from the Debug menu Execution stops when the break condition is satisfied and the Trace window then displays the following contents PTR Data SZ Status Area Probes NMI IRQ Timestamp 00011 ffffe400 OOOOOff6 WR L DAT RAM 1111 1 0000h000mint 00010 1111 1 0000h000mint 00009 iiri 1 0000h000mint 00008 ffffe400 OOOOOff6 RD L DAT RAM 1111 1 0000h000mint 00007 ffffe400 oooooff6 RD L DAT RAM 1111 1 0000h000mint 00006 1111 1 0000h000mint 00005 1111 1 0000h000mint 00004 ffffe400 OOO0Off6 RD L DAT RAM 1111 1 0000h000mint 00003 ffffe400 0000794b WR L DAT RAM 1111 1 0000h000mint 00002 iii 1 0000h000mint 00001 1111 1 0000h000mint ffffe400 0000794b Figure 4 45 Trace Window Conditional Trace 118 RENESAS 4 16 4 Statistics The number of times the on chip RAM has been written to can be included in the acquired trace information a 2 3 4 Delete all the break conditions that have been set Click Reset All on the Condition page of the Trace Acquisition Properties dialog box to cancel trace conditions Check Free Trace on the Condition page of the Trace Acquisition Properties dialog box
171. ogram 4 4 Setting a Software Breakpoint 4 5 Setting Registers 4 6 Executing the Program 4 7 Reviewing Breakpoints 4 8 Referring to Symbols 4 9 Viewing Memory 4 10 Watching Variables 4 11 Displaying Local Variables 4 12 Stepping Through a Program 4 12 1 Executing the Step In Command 4 12 2 Executing the Step Out Command 4 12 3 Executing the Step Over Command 4 13 Forced Breaking of Program Executions 4 14 Resetting the Target MCU 4 15 Break Function 4 15 1 Software Break Function 4 15 2 On Chip Break Function 4 16 Trace Functions 4 16 1 Displaying Trace Information by the Free Trace Function RENESAS 4 16 2 Displaying Trace Information by the Trace Stop Function woe LIS 4 16 3 Displaying Trace Information by the Conditional Trace Function 118 4 16 4 Statistics 119 4 16 5 Function Calls 4 17 Stack Trace Function 4 18 Performance Analysis Function 4 18 1 Time Of Specified Range Measurement 4 19 Monitor Function 4 20 What Next 0 0 Section5 Software Specifications and Notes Specific to This Product 133 5 1 Supported Hardware 5 2 Debugging Platform 5 3 Displaying and Modifying the Contents of Memory 5 3 1 Displaying and Modifying the Contents of Memory during Execution 5 3 2 Reference Values for Parallel Access Function Termination Period 5 3 3 Monitor Function 5 4 Executing Your Program 5 4 1
172. ong i H 000a R2 lint AE watchs f watcha A watch A Watcha Figure 3 18 Watch Window The R mark shows that the value of the variable can be updated during user program execution It is possible to recognize the method for updating the value during user program execution according to the color of the R mark Blue outline R The address of the variable is within the range that has been set for the monitoring function and the data is readable by using the monitoring function Blue R An updated value of the data at this location has been read by the monitoring function Black outline R The address of the variable is outside the range that has been set for the monitoring function and the data is not readable by using the monitoring function Black R A value has been updated by reading the normal data 35 RENESAS Notes 36 1 This function can be set per variable or per element or body for structures of data The color of an R in the Name column changes according to the monitoring settings A variable that is allocated to a register cannot be selected for monitoring The procedure to display or modify the contents of memory differs depending on the product If the display of memory contents is updated during execution of the user program realtime emulation may not be available For details refer to section 5 3 Displaying and Modifying the Contents of Memory RENESAS 3 7 Using the
173. onitored on the emulator and the product MCU Table 3 8 Pin Functions Pin Name Emulator SH7046F SH7047F SH7144F SH7145F _RES Yes Yes Yes Yes Yes NMI Yes Yes Yes Yes Yes _IRQO Yes Yes Yes Yes Yes _IRQ1 Yes Yes Yes Yes Yes _IRQ2 Yes Yes Yes Yes Yes _IRQ3 Yes Yes Yes Yes Yes _IRQ4 Yes No No Yes Yes _IRQ5 Yes No No Yes Yes _IRQ6 Yes No No Yes Yes _IRQ7 Yes No No Yes Yes _WAIT Yes No Yes Yes Yes _BREQ Yes No Yes Yes Yes _HSTBY Yes No Yes No No When the emulator monitors the status of multiplexed pins IRQO to IRQ7 WAIT and BREQ the corresponding ports must be correctly set on the Pin Select Registers page of the Configuration Properties dialog box 54 RENESAS 3 5 10 Different Initial Values of Registers in the Emulator Note that the emulator initializes some general or control registers whenever the system is activated or the MCU is reset by commands Table 3 9 Initial Values of Registers in the MCU and the Emulator Emulator Register Name Power On Reset Reset CPU MCU Reset PC Power on reset vector Power on reset vector Power on reset vector PC value PC value PC value RO to R14 H 00000000 Value before reset Undefined R15 SP Power on reset vector Power on reset vector Power on reset vector SP value SP value SP value SR H 000000FO H 000000FO H 00000XFX GBR H 00000000 Value before reset Undefined VBR H 00000000 H 00000000 H 00000000 MACH H
174. op Window Step Over The data of variable a displayed in the Watch window is sorted in the descending order 102 RENESAS 4 13 Forced Breaking of Program Executions The High performance Embedded Workshop can force a break during the execution of a program e Cancel all the breakpoints e To execute the remaining sections of the tutorial function select Go from the Debug menu or the Go button on the toolbar Figure 4 26 Go Button e The program goes into an endless loop To force a break during execution select Halt from the Debug menu or the Halt button on the toolbar Figure 4 27 Halt Button 4 14 Resetting the Target MCU Resetting the target MCU initializes the on chip I O registers and makes the program counter jump to the address set in the reset vector e To reset the target MCU select Reset CPU from the Debug menu or the Reset CPU button on the toolbar Figure 4 28 Reset CPU Button e To execute the user program immediately after a reset select Reset Go from the Debug menu or the Reset Go button on the toolbar Figure 4 29 Reset Go Button Note This tutorial program is executable from the reset vector 103 RENESAS 4 15 Break Function The emulator provides break functions by software breaks on chip breaks and on emulator breaks Software breakpoints on chip breakpoints and on emulator breakpoints can be set in the High
175. ormation 3 Select Function Call from the popup menu displayed by clicking the right hand mouse button on the Trace window The Function Call Display dialog box will be displayed Function Call Display 1 2 x Setting Enable to display trace information with function call only Disable Figure 4 50 Function Call Display Dialog Box 4 Click the Enable radio button and then the OK button Only the information on function calls is now displayed in the Trace window aloj xj PTR Data R W SZ Status Area Probes WHI IR Source 00 mek 04125 d20ee410 RD L IF ROM 1111 1 set vbr void char PowerON Reset PC 02333 00001038 4 f22e101 RD L I ROM 1111 1 void main void main 02325 00001054 Zid zteb RD L Ir ROM 1111 1 void tutorial void tutorial 02314 QUU0Z0U0 41222448 RD L IF ROM 1111 1 Sample Sample Semple Sample 02205 00001000 7Fffed s0b R TL IF ROM 11121 1 char abrk unsiqned long size _sbrk L 1 01588 00002032 0N092fc6 RD 1r Rom 1111 void Sample sort long a Sanple sort long Figure 4 51 Trace Window Function Calls 5 To return the display in the Trace window to its previous state follow the procedure in 3 to display the Function Call Display dialog box Click the Disable button and then the OK button 6 Delete the event points that have been set and clear the trace information Clic
176. ory Tools Renesas DebugComp Platform E6000H 7046 Tutorial Then select the file indicated below RE Look in tuoi ss ck Ee Debug_sh7046_e6000h_emulator_cpu Source Tutorial hws Files of type HEW Workspaces hws Cancel Figure 4 1 Open Workspace Dialog Box 84 RENESAS 4 3 Downloading the Tutorial Program 4 3 1 Downloading the Tutorial Program Download the object program to be debugged e Select Download module from Tutorial abs of Download modules Tutorial Tutorial 4 C source file dbsct c 2 sbtk c E C source file FS fesetprg cpp E sort cpp E tutorial cpp Download modules 0 a SJ Dependencie Download module E sbik h Download module debug data only sort h Unload module stacksct Configure View lv Allow Docking Hide Figure 4 2 Downloading the Tutorial Program RENESAS 85 4 3 2 Displaying the Source Program The High performance Embedded Workshop allows the user to debug a user program at the source level e Double click Tutorial cpp under C source file 12 Tutorial ie Tutorial 3 2 C source file 00001038 void main void dbsct c E intpra c 0000103a while 1 resetprg c 00001042 tutorial sbrk c vecttble Eg C source file sort c
177. pace Name edit box Enter the new workspace name Project Name edit box Enter the project name When the project name is the same as the workspace name it needs not be entered Directory edit box Enter the directory name in which the workspace will be created Click the Browse button to select a directory CPU family combo box Select the target CPU family Tool chain combo box Select the target toolchain name when using the toolchain Otherwise select None Project type list box Select the project type to be used Notes When Demonstration is selected in the emulator note the followings The Demonstration is a program for the simulator attached to the H8S H8 300 compiler package or the SuperH RISC engine C C compiler package To use the generated source file delete the printf statement in the source file RENESAS 3 Make the required setting for the toolchain When the setting has been completed the following dialog box is displayed ax Miy E6000H Emulator CPU nnnn Micox E6000H Emulator GPU mmmm Target type All Targets 7 lt Back Finish Cancel Figure 2 8 New Project Step 7 Dialog Box The target platform for the session file used when the High performance Embedded Workshop is activated must be selected here Check the box against the target platform and then click the Next button RENESAS 4 Set the configuration file name The co
178. performance Embedded Workshop environment and the build and the debugging functions common to the High performance Embedded Workshop products refer to the High performance Embedded Workshop user s manual This manual does not intend to explain how to write C C or assembly language programs how to use any particular operating system or how best to tailor code for the individual devices These issues are left to the respective manuals Microsoft MS DOS Windows Windows NT are registered trademarks of Microsoft Corporation Visual SourceSafe is a trademark of Microsoft Corporation IBM is a registered trademark of International Business Machines Corporation All brand or product names used in this manual are trademarks or registered trademarks of their respective companies or organizations Document Conventions This manual uses the following typographic conventions Table 1 Typographic Conventions Convention Meaning Menu gt Menu Option Bold text with gt is used to indicate menu options for example File gt Save As FILENAME C Uppercase names are used to indicate filenames enter this string Used to indicate text that must be entered excluding the quotes Key Key Used to indicate required key presses For example CTRL N means press the CTRL key and then whilst holding the CTRL key down press the N key gt When this symbol is used it is always located in the left hand margin The
179. pp 00001054 void tutorial void E tutorial cpp d 3 2 Download modules long j 4 Tutorial abs dnt i 3 Dependencies class Sample p sam 0000105 p_sam new Sample 00001066 for i O7 i lt 10 i J 0000106e j randi 00001076 if j lt 0 0000107a a EE o000107 ali j 00001090 p_sam gt sort a 0000109a p_sam gt change a 000010a4 p_sam gt s0 a 0 000010aa p_sam gt s1 a 1 000010b0 p_sam gt s2 a 2 000010b6 p_sam gt s3 a 3 o00010be p_sam gt s4 a 4 o000010c2 p_sam gt s5 a 5 000010c8 p_sam gt s6 a 6 000010ce p_sam gt s7 al 7 00001004 p_sam gt s6 a 6 000010da p_sam gt s9 a 9 000010e0 delete p sam S3 tutorial pp Figure 4 3 Editor Window Displaying the Source Program e Select a font and size that are legible if necessary Initially the Editor window shows the start of the user program but the user can use the scroll bar to scroll through the user program and look at the other statements 86 RENESAS 4 4 Setting a Software Breakpoint A software breakpoint is a simple debugging function The Editor window provides a very simple way of setting a software breakpoint at any point in a program For example to set a software breakpoint where the sort function is called e Select by double clicking the S W Breakpoints column on the line containing the sort function call
180. r full No action hd Time measurment unit 20ns na Selection of the trace contents Timestamp x Suppress M DMAC DTC P AUD Cancel Apply Figure 3 28 Trace Acquisition Dialog Box Other Page When trace buffer full Selects an action to take when the trace buffer becomes full No action Overwrites the oldest information in the trace buffer Stop trace Stops trace acquisition without stopping the user program execution Stop execution and trace Stops the user program execution Time measurement unit Selects the minimum time unit for the time stamping of the bus trace information 52us Time stamping is in minimum time units of 52 us 1 6us Time stamping is in minimum time units of 1 6 us 20ns Time stamping is in minimum time units of 20 ns Clock Time stamping is in terms of the number of bus clock cycles i e is synchronized with the cycles of the system clock signal 6 Clock 2 Time stamping is in terms of the number of bus clock cycles i e is synchronized with 1 2 cycle of the system clock signal Clock 4 Time stamping is in terms of the number of bus clock cycles i e is synchronized with 1 4 cycle of the system clock signal 53 RENESAS Clock 8 Time stamping is in terms of the number of bus clock cycles i e is synchronized with 1 8 cycle of the system clock signal Selection of the trace contents Selects whether or not to displa
181. ree points and 1 to use four points Selecting a combination of channels specifies the break range Select either of the followings 4 3 Channels 4 and 3 are used to specify the break range 2 1 Channels 2 and 1 are used to specify the break range Run time count between trigger outputs 40 Measures the time between two points by using channels 3 and 4 After channel 3 has been satisfied the time is measured when channel 4 is satisfied The result is displayed in RunTime Count on the Platform sheet of the Status window RENESAS Back Puts the setting back to the previous state at the time the dialog box has been displayed List box Displays the current settings for each of the channels R shown as the channel number indicates that a reset point is set for a sequential break If no setting has been made for a channel only the channel number is displayed here When a channel is used for the sequential break function S is displayed next to the channel number Edit Clicking this button opens the On Chip Break Channel n dialog box n channel number which allows the user to set a break condition for a selected channel Reset Clears the settings made for the selected channel Reset All Clears the settings made for all of the channels The user can set more complex break conditions in the On Chip Break Channel n dialog box by a combination of conditions provided on pages Address Data Bus Area
182. result in death or serious injury A WARNING WARNING indicates a potentially hazardous situation which if not avoided could result in death or serious injury A CAUTION CAUTION indicates a potentially hazardous situation which if not avoided may result in minor or moderate injury CAUTION CAUTION used without the safety alert symbol indicates a potentially hazardous situation which if not avoided may result in property damage NOTE emphasizes essential information lt RENESAS AWARNING Observe the precautions listed below Failure to do so will result in a FIRE HAZARD and will damage the user system and the emulator product or will result in PERSONAL INJURY The USER PROGRAM will be LOST 1 2 Carefully handle the emulator product to prevent receiving an electric shock because the emulator product has a DC power supply Do not repair or remodel the emulator product by yourself for electric shock prevention and quality assurance Always switch OFF the emulator and user system before connecting or disconnecting any CABLES or PARTS Always before connecting make sure that pin 1 on both sides are correctly aligned Supply power according to the power specifications and do not apply an incorrect power voltage Use only the provided AC power cable Use only the specified type of fuse 7tENESAS Warnings on Emulator Usage Warnings described below apply as long as you use this emulator
183. rom the popup menu displayed by clicking the right hand mouse button on the header column hides that column To display the hidden column select the column from the said popup menu again 49 RENESAS 3 8 3 Specifying Trace Acquisition Conditions The capacity of the trace buffer is limited When the buffer becomes full the oldest trace information is overwritten Setting the trace acquisition condition allows acquisition of useful trace information and effective use of the trace buffer There are the following types of trace acquisition conditions Free trace Acquires trace information continuously from the start of the user program execution to the occurrence of a break only when no trace acquisition condition is set Sequential trace stop Specifies the order of trace acquisition conditions to be satisfied and stops trace acquisition when all of the conditions are satisfied It is possible to set up to seven pass points and one reset point No break will occur even when the trace acquisition stops Trace stop due to trace buffer overflow Stops trace acquisition when the trace buffer in the emulator station overflows No break will occur even when the trace acquisition stops Trace stop Stops trace acquisition when the specified conditions are satisfied In this mode trace acquisition stops without stopping the user program execution Up to 12 points can be set independently as trace stop conditions No break will occur even when the
184. s window the current monitoring condition is checked and the new monitoring condition is added edited and deleted in succession Selecting multiple monitoring conditions enables a temporary stop of update hiding and deletion Name Address M monitor2 H OOFFBO80 M monitort H OOFFBO _heap_area Edit Lock Refresh Hide Remove Close Add Edit Hide UnHide Remove Close 34 Figure 3 17 Windows Select Dialog Box Adds a new monitoring condition Changes the settings of the selected Monitor window disabled when selecting multiple items Lock Refresh Unlock Refresh Automatically updates or stops updating the display of the selected Monitor window Displays or hides the selected Monitor window Removes the selected monitoring conditions Closes this dialog box RENESAS 3 6 Looking at Variables This section describes how you can look at variables in the source program 3 6 1 Watch Window You can view any value in the Watch window o R 8 FFB400 long 10 R 0 H O000041c6 FFB400 long R 1 H O0000167e FFB404 long R 2 H O00002781 FFB408 long R 3 H O0000446b FFB4O0C long R 4 H O000794b FFB410 long R 5 H O00015fb FFB414 long R 6 H O000059e2 FFB418 long R 7 H O0001icfbh FFB41c ilong R 8 H OO003 54 FFB420 long R 9 H OOO00ff6 FFB424 l
185. s given are listed below The User external memory and Emulator emulation memory attributes can be modified e User Read write Selects an external area that is readable writable e User Read only Selects an external area that is write protected e User Guarded Selects an external area that is access prohibited e Emulator Read write Sets readable writable emulation memory as an external area e Emulator Read only Sets write protected emulation memory as an external area e Emulator Guarded Sets access prohibited emulation memory as an external area e No access Area Space that includes no memory Emulation memory can be used as replacement of a ROM or flash memory on the user system When the user program accesses to an access prohibited area or writes to a write protected area a break occurs due to the illegal access The user can set the Configuration Properties dialog box so that an illegal access will cause a break Accesses to memory with the debugging function in use as in the Memory window are available regardless of the attribute that has been selected Note The setting cannot be changed in the single chip mode 21 RENESAS 3 2 Downloading a Program This section describes how to download a program and view it as source code or assembly language mnemonics Note After a break has occurred the Editor window displays the location of the present program counter PC In most cases for example if an Elf Dwarf2 based pro
186. s selected in the Foreground and Background combo boxes Values will be displayed in black if they have not been updated or a certain period of time has elapsed since the last update monitor monitor FFFFE400 g 2 fie z Bye scn x OO562ms 0 1 2 3 4 5 6 7 8 9 A B 4C D E F FFFFE400 00 OO OF c2 00 OO 48 45 00 00 4A 90 00 OO 42 E2 FFFFE410 00 OO 3F Fi OO OO 31 SB OO OO 1E 98 OO OO 1A as Figure 4 63 Monitor Window during Execution 5 After you have finished checking the states in the Monitor window select Halt Program from the Debug menu to halt the program s execution 4 20 What Next In this tutorial some of the main features of the emulator and the High performance Embedded Workshop operation have been given By using the emulation functions provided by the emulator a high level debugging is possible The conditions caused by hardware and software can be accurately classified and the users can investigate the problems effectively 131 RENESAS 132 RENESAS Section 5 Software Specifications and Notes Specific to This Product This section describes the software specifications and notes specific to the E6000H emulator 5 1 Supported Hardware This emulator software is specialized for the SH7046 E6000H emulator HS7046EPH60H 5 2 Debugging Platform The following debugging platform can be selected in this emulator The target MCUs to be emulated
187. space radio button Uses an existing workspace this radio button is used when the history of the opened workspace does not remain In this section we describe the following three ways to start up the High performance Embedded Workshop e Create a new project workspace a toolchain is not in use e Create a new project workspace a toolchain is in use e Browse to another project workspace The method to create a new workspace depends on whether a toolchain is or is not in use Note that this emulator product does not include a toolchain Use of a toolchain is available in an environment where the H8S H8 300 series C C compiler package or the SuperH RISC engine C C compiler package has been installed For details on this refer to the manual attached to the H8S H8 300 series C C compiler package or the SuperH RISC engine C C compiler package RENESAS 2 1 1 Creating a New Workspace Toolchain Not Used 1 In the Welcome dialog box that is displayed when the High performance Embedded Workshop is activated select Create a new project workspace radio button and click the OK button Figure 2 2 Welcome Dialog Box RENESAS 2 Creation of anew workspace is started The following dialog box is displayed Projects Debugger only xxxx E6000H Properties Workspace Name sample Project Name sample Directory C Hen2 sa mple Browse GPU
188. t connection will damage the probe or connector When an external probe is connected to the emulator probe connector on the E6000H evaluation chip board s rear panel it enables external signal tracing and multibreak detection Figure 2 3 shows the external probe connector External probe connector External probe Pin No Probe Name Signal Name Note 1 1 Probe input 1 Synchronous break 2 2 Probe input 2 input pin 3 3 Probe input 3 4 4 Probe input 4 5 G GND GND connection pin 6 TUV Trigger output Trigger mode output pin 7 G GND GND connection pin 8 T5V RUN or break High level output at RUNSTEP output Figure 2 3 External Probe Connector RENESAS 2 2 4 Selecting the Clock This emulator supports three types of clock for the target MCU a crystal oscillator attached on the evaluation chip board external clock input from the user system and the emulator internal clock The clock is specified with the Configuration dialog box This emulator can use a clock source p running at up to 50 0 MHz four times the external clock frequency of 12 5 MHz as the MCU clock input Select one of the followings Target External clock clock signal supplied from the user system to the EXTAL pin 4 0 to 12 5 MHz Xtal Crystal oscillator 5 0 to 12 5 MHz 12 5 MHz Emulator internal clock 10 MHz Emulator internal clock 8 MHz Emulator internal clock 6 MHz Emulator i
189. t the setting at emulator activation Connect the emulator by simply switching the session file to one in which the setting for the emulator use has been registered Edit View Project Options Build Tools Window Help Oca S somloTo oe las a2 e ial IR Art Er lAe6 s a Er E ag 5 sample B E C source file E sbrk c Ready e H 7 Figure 2 12 Selecting the Session File In the list box that is circled in figure 2 12 select the session file name including the character string that has been set in the Target name text box in figure 2 9 New Project Step 8 dialog box The setting for using the emulator has been registered in this session file Selecting Debug gt Connect connects the emulator 13 RENESAS 2 3 Re connecting the Emulator When the emulator is disconnected re connection is possible by using the following methods Select Debug gt Connect or click the Connect toolbar button to re connect the emulator Note When re connecting the emulator the load module must be registered to the High performance Embedded Workshop beforehand 2 4 Ending the Emulator The emulator can be exited by using the following two methods a Canceling the connection of the emulator being activated Select Debug gt Disconnect or click on the Disconnect toolbar button b Exiting the High performance Embedded Workshop 1 Select File gt Exit 2 A message box is displ
190. tem 2 Emulation Board Access 0 Error s 3 Evaluation Board Access 0 Error s 4 Basic Function 0 Error s 5 GO to BREAK Time Measurement 0 Error s 6 Emulation Monitor 0 Error s 7 G A Break Function 0 Error s 8 G A Performance Analysis Function 0 Error s 9 G A Monitor Function 0 Error s 10 G A Parallel RAM Monitor 0 Error s 11 G A Trace Function 0 Error s 12 Combination 0 Error s 13 Parallel Access 0 Error s 14 PC Coverage 0 Error s 64 RENESAS Debugger Part RENESAS RENESAS Section Overview The Debugger Part includes the following information Table 1 1 Debugger Part Contents Section Title Content 2 Preparation before Use This section starts with creation of a workspace and ends with connection to the emulator 3 Debugging This section describes this emulator s peculiar debugging operation and the associated windows and dialog boxes Refer to the High performance Embedded Workshop user s manual about High performance Embedded Workshop common functions as below Preparations for Debugging Viewing a Program Operating Memory Displaying Memory Contents as Waveforms Displaying Memory Contents as an Image Modifying the variables Viewing the I O Memory Looking at Registers Executing Your Program Viewing the Function Call History Debugging with the Command Line Interface Elf Dwarf2 Support Looking at Labels 4 Tutorial This section descr
191. th either the normal clearing function or with the break condition satisfaction forced break and the program breaks When restarting after a break the user program will restart at the instruction following the SLEEP instruction e Trace Trace information is not acquired in these modes e Memory access with emulator functions For information on displaying and modifying the contents of memory in the sleep and software standby modes refer to section 5 4 Displaying and Modifying the Contents of Memory 3 5 3 Interrupts During execution and step execution the user can interrupt the MCU During halting emulation break mode the interrupt source is retained The mode transits the interrupt processing immediately after emulation is restarted 3 5 4 Control Input Signals _RES _BREQ and _WAIT The MCU control input signals are RES _BREQ and __WAIT The _RES signal is only valid when emulation has been started with normal program execution i e the RES signal is invalid when emulation has been started with step execution While emulation is being halted break the input of the _RES signal to the MCU is not possible The input of the _RES signal during execution or step execution is disabled by a setting in the Configuration Properties dialog box The _BREQ and _WAIT signals are always valid during emulation or emulation halted break The input of those signals is disabled by a setting in the Configuration Properties dialog box
192. the High performance Embedded Workshop application Format Views Configure fonts colors keywords and so on for the window Radix Hexadecimal 5 Uses a hexadecimal for displaying a radix in which the numerical values will be displayed and entered by default Decimal E Uses a decimal for displaying a radix in which the numerical values will be displayed and entered by default Octal Uses an octal for displaying a radix in which the numerical values will be displayed and entered by default Binary 5 Uses a binary for displaying a radix in which the numerical values will be displayed and entered by default Emu System lator z Memory Resource Opens the Configuration Properties dialog box allowing the user to modify the emulator settings Opens the Memory Mapping dialog box allowing the user to view and edit the emulator s current memory map 150 RENESAS Appendix B Command Lines Table B 1 lists the High performance Embedded Workshop commands Table B 1 High performance Embedded Workshop Commands No Command Name Abbreviation Function i a Comment 2 ADD FILE AF Adds a file to the current project 3 ANALYSIS AN Enables or disables performance analysis 4 ANALYSIS_RANGE AR Sets or displays a performance analysis range 5 ANALYSIS_
193. the USER PROGRAM will be LOST Notes 1 For more details on the HS7144ECH61H refer to the user s manual supplied with the emulator 2 This user system interface board can only be used in combination with the specified QFP socket 1C149 112C15333 0B Install the FP 112B IC socket IC149 112C15333 0B manufactured by YAMAICHI ELECTRONICS Co LTD on the user system to connect the emulator Since the pin arrangement is the same as that of the actual MCU refer to the hardware manual Figure 3 15 shows the connection of the HS7144ECH61H figure 3 16 shows the size restrictions for the installed components of the HS7144ECH61H and figure 3 17 shows the recommended mount pad dimensions of the user system IC socket 34 RENESAS Evaluation chip board Screws M2 0 x 12 mm with flat washers Figure 3 15 Connection Using the HS7144ECH61H Evaluation chip board nAn 8 B mnr 2 CEET a g 22222222222212 IID f ies f IC socket Unit mm User system IC149 112C15333 0B manufactured by Tolerance 0 5 mm YAMAICHI ELECTRONICS Co LTD Figure 3 16 Restrictions on Component Installation 35 RENESAS Figure 3 17 Recommended Mount Pad Dimensions of the User System IC Socket 36 25 60 min lt lt al 20 80 max lt i P 0 65 x 27 17 55 0 10 m al 0 10 0 6
194. time count between trigger outputs Free trace Back Selects channels for use in execution time measurement Clicking Use allows measurement of time in tracing There are four types of channel combinations consisted of those for the start and the end of measurement 1 2 3 4 5 6 and 7 8 Selects the free trace mode When Free trace is enabled any trace acquisition condition set will be ignored Puts the setting back to the previous state at the time the dialog box has been displayed 51 RENESAS List box Edit Reset Reset All 52 Displays the current settings for each of the channels If no setting has been made for a channel only the channel number is displayed here When a channel is used for the sequential trace stop function S is displayed next to the channel number When a reset condition for a sequential trace stop is enabled R is displayed next to channel 8 PtoP is for use in the Point to Point trace UNUSED is displayed next to the channel number if that channel is not available Clicking this button opens the Trace Acquisition Condition Channel n dialog box n channel number or PtoP which allows the user to set a break condition for a selected channel Clears the settings made for the selected channel Clears the settings made for all of the channels RENESAS 2 Other page Trace Acquisition Proper a 2x Condition Other When trace buffe
195. to be Connected 3 1 4 Opening the Memory Mapping Dialog Box 3 1 5 Changing the Memory Map Setting 3 2 Downloading a Program 3 2 1 Downloading a Program 3 2 2 Viewing the Source Code 3 2 3 Viewing the Assembly Language Code 3 2 4 Modifying the Assembly Language Code 3 2 5 Viewing a Specific Address 3 2 6 Viewing the Current Program Counter Address 3 3 Viewing the Current Status 3 4 Reading and Displaying the Emulator Information Regularly 3 4 1 Opening the Extended Monitor Window 3 4 2 Selecting Items to be Displayed 3 5 Displaying Memory Contents in Realtime 3 5 1 Opening the Monitor Window 3 5 2 Changing the Monitor Settings 3 5 3 Temporarily Stopping Update of the Monitor 3 5 4 Deleting the Monitor Settings 3 5 5 Monitoring Variables 3 5 6 Hiding the Monitor Window 3 5 7 Managing the Monitor Window 3 6 Looking at Variables 3 6 1 Watch Window 3 7 Using the Event Points 3 7 1 Setting a Software Breakpoint 3 7 2 Setting an On Chip Breakpoint 3 7 3 Settings an On Emulator Breakpoint 3 7 4 Editing Event Points 3 7 5 Modifying Event Points 3 7 6 Enabling an Event Point 3 7 7 Disabling an Event Point 3 7 8 Deleting an Event Point 3 7 9 Deleting All Event Points 3 7 10 Viewing the Source Line for an Event Point 3 8 Viewing the Trace Information 3 8 1 Opening the Trace Window c s deccscsecssesessccscsssecsastpsesaiese
196. tor PLATFORM 28 COVERAGE_DISPLAY CVD Displays coverage information 29 COVERAGE_CLEAR CVC Initializes coverage information 30 COVERAGE_SET CVS Sets or modifies coverage information 151 RENESAS Table B 1 High performance Embedded Workshop Commands cont No Command Name Abbreviation Function 31 DEFAULT_OBJECT_ DO Sets the default object program format FORMAT 32 DEVICE_TYPE DE Selects a device type to emulate 33 DISASSEMBLE DA Disassembles memory contents 34 EMULATOR_CLOCK ECK Selects the clock rate of the target MCU for the emulator 35 ERASE ER Clears the Command Line window 36 EVALUATE EV Evaluates an expression 37 EXMONITOR_DISPLAY EXMD Displays the content of the expansion monitor 38 EXMONITOR_SET EXMS Selects whether or not to display the items in the expansion monitor 39 EXMONITOR_ EXMSR Sets the time to update the expansion monitor during SETRATE emulation or a break 40 FILE_LOAD FL Loads an object program file 41 FILE_SAVE FS Saves memory to a file 42 FILE_UNLOAD FU Unloads a file 43 FILE_VERIFY FV Verifies file contents against memory 44 GENERATE_MAKE_ GM Creates a makefile to be built outside the High FILE performance Embedded Workshop 45 GO GO Executes user program 46 GO_RESET GR Executes user program from reset vector 47 GO_TILL GT Executes user program until temporary breakpoint 48 HALT HA Halts the
197. trace acquisition stops Address range trace Acquires trace information of instructions or operands accessed in the range subroutine between the start and end addresses Note that however when the selected subroutine calls another subroutine no trace information will be acquired from the called subroutine Up to 12 points can be set independently as the address ranges Conditional trace Only acquires trace information from the points where the specified conditions are satisfied Up to 12 points can be set independently as the conditions Address range conditional trace Accesses instructions or operands in the range subroutine between the start and end addresses and only acquires trace information in the bus cycles that satisfy the conditions This mode is a combination of address range trace and conditional trace Up to six points can be set independently as the address ranges with conditions Point to Point trace Acquires trace information from the satisfaction of the address condition set as a start condition to that of the address condition set as an end condition Execution time measurement Measures execution time between two points by using the trace acquisition conditions Trigger output Outputs a pulse from trigger pins when the specified conditions are satisfied The trace acquisition condition is set in the Trace Acquisition dialog box that is displayed by selecting Acquisition from the popup menu The Trace A
198. uch as gt TM7046 PCI S RET steps 1 to 14 will be repeatedly executed To stop the execution enter Q Notes 1 lt Drive gt is a drive name for the CD ROM drive 2 Do not remove the CD R from the CD ROM drive during test program execution 60 RENESAS The following messages are displayed during the test There are 14 steps in this test when a PCI interface board is used the time for the test will be about three minutes Message E6000H SH7046 Emulator Tests Vx x xx xxx Doading GEIER saarnat eRe ee es OK Use PCI Tnitialiging driver sassccaceseseaeee ee eles OK Searching for interface card OK Checking emulator is connected OK Emulator board information Main board ID H 0 Normal started at Wed Jan 22 09 43 43 2003 Emulation board ID Description Test program start message x x shows the version number Shows that the PC interface board is correctly installed in the host computer Shows that the E6000H emulator is correctly connected to the host computer H 002 Shows the ID number of the E6000H emulator Shows the time when the diagnostic program has started k k k NORMAL TEST Press Q to stop COUNT 0001 1 Main Board Access 01 Registers Initial Value Check 02 04 OK 02 Registers WELES VEELE YS ais sis sis sig cce aca e 4 4 4 e aeee e eea OK 03 DERAN Address Decode Tutib ccccceeedeeeacansnaceappeaesaeaeee SKIP 04
199. unction 9 G A Monitor Function Test for the G A monitoring function 10 G A Parallel RAM Monitor Test for the G A parallel RAM monitoring function 11 G A Trace Function Test for the G A trace function 12 Combination Test for combination of each function 13 Parallel Access Test for the parallel access function 14 PC Coverage Test for the PC coverage function RENESAS 59 4 3 Diagnostic Test Procedure Using the Diagnostic Program Insert the CD R HS7046EPH60S8R supplied with the E6000H into the CD ROM drive of the host computer move the current directory to lt Drive gt Diag with a command prompt and enter one of the following commands according to the PC interface board used to initiate the diagnostic program 1 PCI bus interface board HS6000EICO1H or HS6000EIC02H gt TM7046 PCI RET 2 PC card interface HS6000EIP01H gt TM7046 PCCD RET 3 LAN adapter HS6000ELNO1H gt TM7046 ELN RET 4 USB adapter HS6000EIU01H or HS6000EIU02H gt TM7046 USB RET The High performance Embedded Workshop must be installed before the test program is executed Be sure to initiate the diagnostic program from lt Drive gt Diag Do not initiate it from a directory other than lt Drive gt Diag such as gt lt Drive gt Diag TM7046 PCI RET If the diagnostic program is initiated when the current directory is not lt Drive gt Diag the diagnostic program will not operate correctly When S is added to the command line s
200. unction other than the Monitor window Short break Windows that display the memory contents On chip RAM on chip I O and user memory function other than the Monitor window area 133 RENESAS Notes 1 If the setting in the Watch window allows a realtime update of a value by reading the normal data access types will be different depending on the target memory area that has been set 2 The parallel access or short break function cannot be used to display or modify the memory contents while in the sleep mode or standby mode 3 When the parallel access function or short break function is in use the program is not executed in realtime 5 3 2 Reference Values for Parallel Access Function Termination Period Table 5 4 shows the reference value for displaying and modifying the memory contents during user program execution Table 5 4 Suspension of Program Execution Reference Values Period Suspended Access Type Condition Short break Read Displaying 256 bytes in the on chip RAM 3 5 ms Reading a longword from the on chip RAM 1 8 ms Write Writing a longword to the on chip RAM 1 8 ms Parallel access Read Reading a longword from the emulation 220 ns memory Write Writing a longword to the emulation memory 220 ns Auto update Memory Execution of the user program does not stop Table 5 5 shows the environment in which these measurements were obtained Table 5 5 Measurement Environment Item Setting Sett
201. up menu displayed by clicking the right hand mouse button on the header column hides that column To display the hidden column select the column from the said popup menu again 68 RENESAS 3 9 2 Setting Conditions for Measurement Conditions for measurement can be displayed and changed in the Performance Analysis window Select a point where a condition is to be set and then select Set from the popup menu to display the Performance Analysis Properties dialog box Select either from the following five modes as the condition by the Measurement Method option Table 3 3 Conditions for Measurement Measurement Method Measurement Method Option Time Of Specified Range Measurement Start Point To End Point Measurement Start Range To End Range Measurement Access Count Of Specified Range Measurement Called Count Of Specified Range Measurement Set a condition for measurement according to the mode being selected The parameters to be set depend on the modes The Performance Analysis Properties window has a support function to enter the address range of a function automatically if the name of the function is entered to set an address range Entering a function name in the Input Function Range dialog box displayed by clicking the button on the Performance Analysis Properties dialog box automatically enters the address range of the function Input Function Range Eunction Sample
202. user system Turn on the user system power and then the emulator power The external clock will then be automatically Emulator Internal Clock Specify an emulator internal clock in the Configuration dialog box Reference When the emulator system program is initiated the emulator automatically selects the MCU clock source according to the following priority 1 User system s clock when an external clock is supplied from the user system 2 Crystal oscillator when attached to the evaluation chip board 3 Emulator internal clock RENESAS 2 2 5 Connecting the System Ground CAUTION Separate the frame ground from the signal ground at the user system When the frame ground is connected to the signal ground and the emulator is then connected to the user system the emulator will malfunction The emulator s signal ground is connected to the user system s signal ground via the evaluation chip board In the E6000H station the signal ground and frame ground are connected figure 2 5 At the user system connect the frame ground only do not connect the signal ground to the frame ground If it is difficult to separate the frame ground from the signal ground in the user system ground the frame to the same outlet as the 100 V to 240 V power supply of the emulator station figure 2 6 so that the ground potentials become even Signal line E6000H station Evaluation User system Signal ground
203. utes Note that this file cannot be reloaded into the Trace window Note In filtering of trace information the range to be saved cannot be selected All the trace information displayed in the Trace window after filtering will be saved Select a filtering range on the General page in the Trace Filter dialog box if you want to save the selected range For details on the filtering function refer to section 3 8 11 Extracting Records from the Acquired Information 3 8 7 Viewing the Editor Window The Editor window corresponding to the selected trace record can be displayed in the following two ways e Select a trace record and choose View Source from the popup menu e Double click a trace record The Editor or Disassembly window opens and the selected line is marked with a cursor 3 8 8 Trimming the Source Choose Trim Source from the popup menu to remove the white space from the left side of the source When the white space is removed a check mark is shown to the left of the Trim Source menu To restore the white space choose Trim Source while the check mark is shown 3 8 9 Temporarily Stopping Trace Acquisition To temporarily stop trace acquisition during execution of the user program select Halt from the popup menu This stops trace acquisition and updates the trace display Use this method to check the trace information without stopping execution of the user program 3 8 10 Restarting Trace Acquisition To
204. utton or pressing the Esc key will close the dialog box without modifying the memory contents Note The assembly language code being displayed is the current memory content If the memory contents are changed the Assembler dialog box and the Disassembly window will show the new assembly language code but the source file displayed in the Editor window will be unchanged This is the same even if the source file contains assembly codes 3 2 5 Viewing a Specific Address When you are viewing your program in the Disassembly window you may wish to look at another area of your program s code Rather than scrolling through a lot of code in the program you can go directly to a specific address Select Set Address from the popup menu and the dialog box shown in figure 3 10 is displayed Address man a Cancel Figure 3 10 Set Address Dialog Box Enter the address in the Address edit box and either click on the OK button or press the Enter key A label name can also be specified as the address When an overloaded function or a class name is entered the Select Function dialog box opens for you to select a function 3 2 6 Viewing the Current Program Counter Address Wherever you can enter an address or value into the High performance Embedded Workshop you can also enter an expression If you enter a register name prefixed by the hash character the contents of that register will be used as the value in the expr
205. vent window is displayed e The software breakpoint that has been previously set must be deleted Click the Software sheet of the Event window with the right hand mouse button and select Delete All from the popup menu to delete all the software breakpoints that have been set e Click the On Chip tab of the Event window e Click the Event window with the right hand mouse button and select Add from the popup menu e The Breakpoint Properties dialog box On Chip Break page is displayed Breakpoint Prope Software Break On Chip Break On Emulator Break m Sequential Break Bi soe we Count Address Range Break I Range 4 3 Range 2 1 m Run time count between trigger outputs I From 3to 4 ma Fs Reset Reset All Close Cancel Apply Figure 4 36 Breakpoint Properties Dialog Box On Chip Break Page e Select 4 in the list box and click the Edit button The On Chip Break Channel 4 dialog box is displayed 110 RENESAS e Make the following settings in the group boxes on the Address page Uncheck the Don t Care checkbox Then use the Editor window to refer to the address on the line that has a i j within the tutorial function and enter this address in the Address edit box In this example enter H 0000107C e Make the following settings in the boxes on the Count page Uncheck the Don t Care checkbox Ent
206. written to in six states Flash memory The emulator does not support the flash memory Capacitance between on chip ROM and on chip RAM In this emulator note that the capacitance between on chip ROM and on chip RAM differs from that of the product MCU The display of the Status window applies to the product MCU Table 3 6 Capacitance between On Chip ROM and On Chip RAM Item Emulator Product MCU Capacitance of on chip ROM 1 Mbyte Refer to the MCU s hardware H 00000000 to H 0000FFFF manual Capacitance of on chip RAM 16 kbytes H FFFF0000 to H FFFF3FFF 16 kbytes H FFFFCOO0 to H FFFFFFFF On Chip I O Area If an attempt is made to access the on chip I O area the on chip I O area in the MCU installed in the emulator is accessed To break the user program when the on chip I O area is written to or accessed use the hardware break or internal break External Memory Area The MCU s external memory area can be set with all memory attributes that the emulator supports 51 RENESAS 3 5 2 Low Power Consumption Mode Sleep Software Standby and Hardware Standby For reduced power consumption the MCU has sleep software standby and hardware standby modes Hardware Standby Mode Since the _HSTBY signal from the user system is not input to the MCU in the emulator the emulator does not support this mode Sleep and Software Standby Modes e Break The sleep and software standby modes can be cleared wi
207. y time stamps IRQs or executed instructions Time stamp Displays IRQs if the level of any of IRQ7 0 is low This allows any 32 bit time stamp information to be displayed IRQ7 0 all indications Displays the status of IRQ7 0 in bit units Lower 16 bits of time stamps are fixed to 0 Suppress Acquires no DMAC DTC cycles or AUD cycles 54 RENESAS 3 Trace Acquisition Condition Channel n dialog box Use this dialog box to set pass points and a reset point for a sequential trace stop and conditions in the address range trace address range conditional trace conditional trace Point to Point trace execution time measurement and a trigger output ce Acquisition Condition Channel 1 Interrupt Count Delay Action Address Data Bus Area Probe m After Condition Match ak 3 ombination with the n C None C Address Range Trace in C Acquisition Condition channel Address m Output Trigger J Enable output trigger Cancel Apply Figure 3 29 Trace Acquisition Condition Channel n Dialog Box The Trace Acquisition Condition Channel n dialog box has pages Action Address Data Bus Area Probe Interrupt Count and Delay The user can make more complex settings by a combination of conditions provided on these pages Action After Condition Match Selects an action to take when a condition is satisfied Trace Stop Ad

Download Pdf Manuals

image

Related Search

Related Contents

Samsung AS18WJWE/XAP Manual de Usuario  KWB-408 Installation and Parts Manual  HP LaserJet Enterprise P3015 User Guide Manual  JVC AV-28BK5ECB User's Manual  Winwedgeソフトウエア取扱説明書  

Copyright © All rights reserved.
Failed to retrieve file