Home

SH7060 E8000 Hitachi Debugging Interface User`s Manual

image

Contents

1. Directory Name File Name Contents Note setup exe Installer System E8000 sys System program for the SH7060 E8000 emulator System Shcenf706 sys Control program for the SH7060 E8000 emulator System Shdct706 sys Configuration file for the SH7060 E8000 emulator System diag sys Diagnostic and maintenance program System Setup cc Script file for automatic installation for IPW Drivers Pci 95 pcihei inf Setup information PCI For Windows 95 Windows 98 and Windows Me Drivers Pci 95 pcihei vxd Virtual driver PCI For Windows 95 Windows 98 and Windows Me Drivers Pci Nt pcihei sys System file PCI For Windows NT Drivers Pci 2000 pcihei sys System file PCI For Windows 2000 Drivers Pci 2000 pcihei2k inf Setup information PCI For Windows 2000 Drivers lsa Nt emulator sys System file ISA For Windows NT Drivers Pcmcia 95 ulepcc inf Setup information PCMCIA For Windows 95 and Windows 98 Drivers Pcmcia 95 ulepcc vxd Virtual driver PCMCIA For Windows 95 and Windows 98 Drivers Pcmcia Nt ulepccnt sys System file PCMCIA For Windows NT Drivers Pcmcia 2000 ulepcc2k sys System file PCMCIA For Windows 2000 Drivers Pcmcia 2000 ulepcc2k inf Setup information PCMCIA For Windows 2000 RENESAS Table 1 2 CD R Files cont Directory Name File Name Contents Notes Manuals Japanese HS6400DIIW5SU pdf Hitachi Debugging In
2. Emulation mode Emulation mode Normal normal execution default setting Memory access enable disable during execution Prohibit R W on the fly Enable no check Execution Mode1 page Program counter display interval Execution status display interval About 200 ms default setting Timer resolution The minimum time to be measured by Go command execution 1 6 us default setting Multi break function Enable the multi break of External probe No 1 Invalid default setting BREQ signal control Enable the BREQ signal input Valid default setting Execution Mode2 page Trigger output control 1 at break TRGU Option Upper radio button default setting Trigger output control 2 at break TRGB Option Upper radio button default setting e Set the above values for the CPU operating mode and clock mode and click the OK button e Start the HDI e After the HDI is started display the Configuration dialog box Set the emulation clock and click the OK button RENESAS 29 3 3 2 Setting the Memory Map In the next step allocate the emulation memory e Select Configure Map from the Memory menu to display the current memory map The Memory Mapping dialog box is displayed Memory Mapping x From To Mapping Target Device configuration System memory resources REMAINING EMULATION MEMORY B Large Block 0 53 3072 KI Short Block 0
3. Name of Window and Category Dialog box Description Related E8000 commands Break Break Sequence dialog Sets the software sequential BREAK_SEQUENCE condition box break with up to seven passing points and one reset point Break Condition A Each sets up to eight BREAK_CONDITION_A dialog box hardware break conditions BREAK _CONDITION_B Break Condition B BREAK_CONDITION_C dialog box Break Condition C dialog box Break Condition UBC Sets up to four UBC BREAK_CONDITION_UBC dialog box hardware break conditions Break Condition UBC Sets reset points for UBC BREAK_CONDITION_UBC Reset dialog box sequential break conditions Trace Trace window Displays the contents of the TRACE TRACE_SEARCH condition trace buffer TRACE_CONDITION_A TRACE_CONDITION_B TRACE_CONDITION_C TRACE_MODE Trace Acquisition Sets trace acquisition TRACE_CONDITION_A dialog box conditions and displays the TRACE _CONDITION_B setting state TRACE_CONDITION_C Trace Condition A Each sets up to eight TRACE_CONDITION_A dialog box acquisition conditions of the TRACE _CONDITION_B Trace Condition B trace information TRACE_CONDITION_C dialog box Trace Condition C dialog box Trace Filter dialog box Only displays the trace TRACE_SEARCH result that matches the conditions having been set up from among the results displayed in the Trace window Trace Find dialog box Searches the trace result TRACE_SEARCH which matches the cond
4. Ar40eng exe Acrobat Reader 4 0 installer Installed on your host computer by the installer English version 2 This is the Japanese version of the manual It cannot be installed by the installer 3 indicates a manual revision 4 This is the English version of the manual It cannot be installed by the installer 5 Use the Acrobat Reader to see PDF documents RENESAS Section 2 Installation 2 1 Installation Procedures The installation procedures for the HDI are described below 2 1 1 Setting up the Emulator Set up the emulator following instructions described in section 3 Preparation before Use in the SH7060 E8000 Emulator User s Manual on the CD R The file in the emulator system disk FD described in the SH7060 E8000 Hitachi Debugging Interface User s Manual is stored in the 7060 system directory on the CD R 2 2 Setting Up with Windows Operating Systems The following describes the setup procedure for Windows operating systems Since hardware is set up during installation the installation procedure may differ according to the operating system and interface used ISA PCI PCMCIA or LAN Proceed with installation according to the procedures for the environment in use To connect the host computer to the emulator either a PCI interface board HS6000EICO1H and HS6000EICO2H PC interface card HS6000EIPO1H PC interface board HS6000EII01H or a LAN adapter HS6000ELNO1H can be selected For d
5. Bancel APPI Figure 3 42 Break Dialog Box Break Condition UBC Page RENESAS Set break condition 2 of the sequential break conditions to Break Condition UBC2 and set break condition 1 to Break Condition UBC1 e Click the second line in the Condition list box to highlight it e Click the Edit button The Break Condition UBC2 dialog box will appear e Make the Don t Care check box in the Address page invalid e Select the Address radio button and enter the address H 3046 as the value in the Address edit box Break Condition UBC2 xi Address Data Bus State T ddress Ie I Don t Care Address C Prefetch address break before executing Prefetch address break after executing C Bus address C Y Bus address f Range Start H3046 End Ho f Non user mask C User mask Mast Figure 3 43 Break Condition UBC2 Dialog Box Condition 2 Address Page e Select Bus State to display the Bus State page 66 RENESAS Select Read radio button Break Condition UBC2 Figure 3 44 Break Condition UBC2 Dialog Box Condition 2 Bus State Page Click the OK button RENESAS 67 The Break dialog box is displayed and the second point display in the Condition list box changes from Empty to Enable Point Sequence Condition A Condition B Condition Condition UBC Condition Figu
6. Operating Environment IBM PCs and compatible machines that contain Pentium processors 300 MHz or faster is recommended Operating system Windows 95 Windows 98 Windows Me Windows NT 4 0 or Windows 2000 Minimum memory capacity for operation 32 Mbytes more than twice the size of the load module is recommended Display Resolution better than 800 x 600 SVGA is recommended Empty space in a hard disk Disk capacity required for installation 40 Mbytes or more Take the swap area into account when ensuring that there is enough space on your system more than four times the size of the memory is recommended Supported interfaces ISA bus slot not supported by Windows Me and Windows 2000 PCI bus slot PC card PCMCIA and LAN adapter conforming to IEEE802 3 with 10BASE T or 100BASE TX Pointing device such as a mouse A pointing device such as a mouse which can be connected to the host computer and is supported by Windows 95 Windows 98 Windows Me Windows NT 4 0 and Windows 2000 CD ROM drive Required for installation of E8000 emulator software or referring to the user s manual RENESAS 1 3 Content The CD R includes the E8000 Emulator Software and the user s manual for both SH7060 E8000 emulator See table 1 2 The directories described in the table are under the 7060 directory which is under the root directory Table 1 2 CD R Files
7. Restart the host computer Note Default settings start all the drivers selected as Drivers components after the activation of the host computer When the host computer is activated without a given card or an inappropriate driver is installed it is not possible to start the given driver The service control manager informs the user of the error but it causes no other problem When Using the PC Interface Board Refer to section 2 2 4 PC Interface Board Specifications ISA Bus Specifications and set the operating system environment and install the ISA bus interface board Log on as Administrator Install the provided software Select ISA Driver as the component Restart the host computer RENESAS When Using the LAN Adapter Log on as Administrator Install the provided software Select E8000 LAN Driver as the component Connect the LAN adapter to the target network and turn on the LAN adapter Select SH7060 E8000 Emulator Software Tools LAN Adapter Configuration from Start Programs and start the LAN Adapter Configuration Set the LAN adapter by LAN Adapter Configuration Turn off the LAN adapter and connect the LAN adapter to the target network and turn on the LAN adapter Then LAN adapter must be turned off even when the network is not changed Note When using a LAN adapter that has already been set it is unnecessary to set it again Use LAN Adapter Configuration to define only the host computer For de
8. _sort void sort long a Biles 38 Figure 3 14 Source Window Break State RENESAS The user can see the cause of the last break in the System Status window e Select Status from the View menu The System Status window is displayed System Status ioj x Item Status Connected To E8000 SH 060 Emulator CPU SH 060 Hode MCU Mode 2 CSO Area 32 bit bus Clock Mode Clock Mode Clock source Emulator Clock 15MHz Run status Break Cause of last break BREAKPOINT Figure 3 15 System Status Window The Cause of last break line shows that the cause of the break is the breakpoint 3 7 Reviewing Breakpoints The user can see all the breakpoints set in the program in the Breakpoints window e Select Breakpoints from the View menu The Breakpoints window is displayed Breakpoints lO Oy x Enable File Line tutorial c 3 00003036 Program x Figure 3 16 Breakpoints Window The Breakpoints window also allows the user to change breakpoints set new breakpoints and delete breakpoints e Close the Breakpoints window 39 RENESAS 3 8 Viewing Memory The user can view the contents of a memory block in the Memory window For example to view the memory contents corresponding to the main function in word size e Select Memory from the View menu input main in the Address edit box and set the Format co
9. 96 RENESAS e Select Graph to display the execution performance Performance Analysis Graph ojx Used 1 2 Z Display type Execution time ratio in graph form NO NAME MODE RATE 16 26 36 46 5 6 66 76 86 96 166 1 sort 11 D 6 6 2 change 11 D 6 8 3 4 5 6 7 8 TOTAL RUN TIME D G606H 66H GGS BEGGGGUS BEGNS E Figure 3 68 Performance Analysis Window before Program Execution The program is executed until address H 305e then it stops In this case the measurement results concerning the execution performance are displayed in the Performance Analysis window Performance Analysis Graph BEE Used 1 2 Display type Execution time ratio in graph form NO NAME MODE RATE We Ate e Noe il ator e e Uere 1 sort 11 D 9 2 xKKKK 2 change I Weer A ess TOTAL RUN TIME D OO00H 00M 00S 020097US 600NS Figure 3 69 Performance Analysis Window after Program Execution 97 RENESAS When Count is selected in the pop up menu the measurement result of the execution count is displayed Performance Analysis Count Figure 3 70 Performance Analysis Window Execution Count 98 RENESAS 3 17 Saving and Loading the Session The settings for the HDI window and dialog box at a given point can be saved as a session file By loading this session file when the HDI is started debugging can be resumed from the same point a
10. Figure 5 4 Diagnostic Program Termination 0 0 cece eceeceeeeceeecesecesecesecaecsaecaaecaeeeaeseeeeeetees RENESAS vii Tables Table 1 1 Table 1 2 Table 2 1 Table 2 2 Table 3 1 Table 3 2 Table 3 3 Table 3 4 Table 3 5 Table 3 6 Table 3 7 Table 3 8 Table 3 9 Table 3 10 Table 3 11 Table 3 12 Table 3 13 Table 3 14 Table 4 1 Table 4 2 Table 6 1 viii Operating Environment ss sesser iseer Eror EE EEr e ee EEEE ESEE EEr k reer ieis 2 CD R Files nieee oore e E E E a EE E EET ed E EEE 3 Contents of Emulator System Programs esseseesssesssreesssrseresrsreererreeresrerreserresresreetes 13 Types of Connection and Drivers ec eeecescesecesecesecesecaeecaeeeseseaeeseeeeseeseenseensees 14 Configuration of the Sample Program at Default Installation eee 25 Values to be Set in the Configuration Dialog Box eee eee csse cee eneeeneeeees 29 Memory ype keere ernea e yeast ve iteenedy Merk padtenes eeyenee gaan denned 30 Step Command 2 isis tech ctein ek ea wei She erie eee ee 45 Dialog Boxes for Setting Hardware Break Conditions eee eeeeeseceeeseeereeeees 53 Main Break Conditions eceeeeecceecesecesecesecssecaecaeecseeeseseaeseeeseeeseenseceseeseenaeenaes 54 Dialog Boxes for Setting Sequential Break Conditions sssssseesssresssreesserreresrrereresee 61 Main Sequential Break Functions 00 0 eee cee cseeeneeeeeeeeeeeeeeeeeesecesecsecsaecaeenaeaes 62 Main Trace Search Conditions 0 eee ee ceecesec
11. Memory in the Reserve Resources panel and click Add The Edit Resource Setting dialog box will be displayed e Enter the memory area addresses in Start value and End value and click OK e Shut down the host computer do not restart it and turn off the power switch 10 RENESAS e Power on the host computer e Check that the area selected in the Computer Properties dialog box are displayed as System Reserved in the list The next step prevents the memory area for the PC interface board being accessed by another program Modify the CONFIG SYS file Use the SYSEDIT program to edit the file e Select Run from the Start menu e Type SYSEDIT and click OK The SYSEDIT will start When EMM386 EXE is used in the CONFIG SYS file the CONFIG SYS file must be modified If the CONFIG SYS file is not used or if EMM386 EXE is not used even when the CONFIG SYS file is used go to the following procedure and modify the SYSTEM_INI file e Locate the line in the CONFIG SYS file that reads device C WINDOWS EMM386 EXE RAM e Change the line so that it reads as shown below device C WINDOWS EMM386 EXE RAM X aaaa bbbb Here aaaa is the upper four digits of Start value and bbbb is the upper four digits of End value For example for the switch set to 6 you would set the line to read device C WINDOWS EMM386 EXE RAM X D800 DBFF e Save the CONFIG SYS file The following is about modifying the SYSTEM_INI file e Add
12. button is clicked the diagnostic program is started and the following window is displayed 110 RENESAS DIAGNOSTIC PROGRAM Lx E8000 TEST amp MAINTENANCE PROGRAM DIAG SYS Version No x xx you hoc f 30006 Copyright C Hitachi LTD ox Please key in TEST PARAMETER OPERATOR TEST EXECUTE Y N COMMAND Figure 5 3 Diagnostic Program Start Up Window Display area Displays the diagnostic program test results COMMAND edit box For input of a diagnostic program operation command STOP button Stops the diagnostic program test and switches to the diagnostic program operation command input mode END button Terminates the diagnostic program and initiates the HDI 111 RENESAS 5 1 3 Diagnostic Program Termination To terminate the diagnostic program either click the END button or else click the STOP button to stop the test and then enter Q in the COMMAND edit box DIAGNOSTIC PROGRAM x COMMAND Figure 5 4 Diagnostic Program Termination 112 RENESAS Section 6 Error Messages 6 1 Error Messages The HDI outputs error messages to notify the user of operating errors The error messages output by the HDI are shown in table 6 1 Table 6 1 Error Messages Message Can not set target configuration Clock mode option Cause and Countermeasure A mode in which the emulator is not supported has been selected in Clock in the Configuration window Can not set target config
13. matches the search conditions in the Trace window Table 3 9 Main Trace Search Conditions Break Condition Address bus condition Address Description Searches for an item that matches the CPU address bus value Data bus condition Data Searches for an item that matches the CPU data bus value Access data size byte word or longword can be specified Bus state condition Bus amp Area There are three bus state condition settings Read write condition Searches for an item for which the RD or RDWR signal level of the CPU matches the specified conditions Bus state condition Searches for an item for which the conditions of CPU memory access cycle or vector fetch cycle match the specified conditions Area condition Searches for an item for which the memory space accessed in an CPU bus cycle matches the specified conditions External probe signal condition Probe Searches for an item for which an external probe signal PRB1 to PRB4 level matches the specified conditions Interrupt signal condition Interrupt Searches for an item for which the level of the NMI signal or the RESET signal matches the specified conditions Time condition Time Searches for an item for which the time stamp value or range matches the specified conditions e Click the mouse right button in the Trace window The popup menu is displayed e Click the Filter button 73 RENESAS The Trace Filt
14. 3 31 Step Over Buttons ccs cccccs sctecicnseacescs suns io noes des Eo aA EEEE a E 51 Figure 3 32 Source Window Step Over eesceeccecsseceereecsseceeeeecaeceeeeecaeceeneecaeceeeeesnaeeeees 51 Figure 3 33 Locals WindOw niera ee e a ie EEEE EE AA A EEEE SE 52 Figure 3 34 Breakpoints Window Before Hardware Break Condition Setting 55 Figure 3 35 Condition A Page Break Dialog BoX ce eescesnseesseceereeeeeceeeeeeneeceereeenaeeeees 56 Figure 3 36 Address Page Break Condition A1 Dialog BoX ceeeeeesceeneeeseeceeeeeenseeeeee 57 Figure 3 37 Bus State Page Break Condition Al Dialog Box sseesseeeseessesssersseesrrssresse 58 Figure 3 38 Break Dialog Box After Hardware Break Condition Setting eee 59 Figure 3 39 Breakpoints Window at Break Condition A Setting cee ceseeeseeceereeeneeeeees 60 Figure 3 40 Configuration Dialog Box at Sequential Break Condition Setting 0 000000 63 Figure 3 41 Breakpoints Window Before Sequential Break Condition Setting 64 Figure 3 42 Break Dialog Box Break Condition UBC Page eee ceeeeeseeceeereceteeeeneees 65 Figure 3 43 Break Condition UBC2 Dialog Box Condition 2 Address Page 66 Figure 3 44 Break Condition UBC2 Dialog Box Condition 2 Bus State Page 0 67 Figure 3 45 Break Dialog Box After Break Condition UBC2 Condition Setting 68 Figure 3 46 Breakpoints Window Afte
15. Highlight the second point of the Condition list box by clicking e Click the Edit button The Performance Analysis 2 dialog box is then displayed Set Performance Analysis 2 condition in the same way as that for Performance Analysis 1 e Click the Close button when the setting for Performance Analysis 1 2 is completed 95 RENESAS 3 16 3 Measuring the Subroutine Execution Time and Execution Count The subroutine execution time and execution count are compared between the sort and change functions after the program is executed from the first step to the last step of the main function e Set a software breakpoint in the Source window by double clicking the Break column at address H 305e The format for the measurement results displayed in the Performance Analysis window is selected to compare the subroutine execution time and execution count e Click the Performance Analysis window with the right button of the mouse to display the pop up menu The following display formats can be selected Table 3 14 Display Formats for Measurement Results Measurement Result Display Format Description Address Displays the list of subroutine addresses that have been set default Count Displays with numerical values the execution time and execution count of a subroutine that has been set Graph Displays with a graph the ratio of the subroutine execution time to the total execution time for the specified subroutine
16. PC Interface Card e Install the provided software Select PC Card Driver PCMCIA as the component e Install the PC interface card into the host computer e Hardware will be acknowledged and driver installation will start automatically e Select Search for the best driver for your device for driver installation and select Specify a location for the location e Specify lt Drive gt 7060 DRIVERS PCN95 for the location lt Drive gt is the CD ROM drive e Check that E6000 PC Card has been detected and complete driver installation When Using the PC Interface Board e Refer to section 2 2 4 PC Interface Board Specifications ISA Bus Specifications and set the operating system environment and install the ISA bus interface board e Install the provided software Select ISA Driver as the component Note An ISA driver to run under Windows Me is not available When Using the LAN Adapter e Install the provided software Select E8000 LAN Driver as the component e Connect the LAN adapter to the target network and turn the LAN adapter on e Select SH7060 E8000 Emulator Software Tools LAN Adapter Configuration from Start Programs to start the LAN Adapter Configuration e Set the LAN adapter by LAN Adapter Configuration e Turn the LAN adapter off and connect the LAN adapter to the target network and turn the LAN adapter on Then LAN adapter must be turned off even when the network is not changed RENESAS Note
17. Package V6 0 0r1 25 RENESAS 3 2 Running the HDI To run the HDI select the Hitachi Debugging Interface from the Start menu Accessories gt fm Programs b Y Documents gt k SHexxx E8000 Emula Tools StartUp gt Al Hitachi Debugging Interface Settings gt fe MS DOS Prompt Sh i QJ Windows Explorer AJ Era pa Help 2 Run Suspend Shut Down Figure 3 1 Start Menu 3 2 1 Selecting a Target Platform When the HDI is activated the HDI asks to select the current session platform Select the E8000 SH7060 Emulator Select Session Ed 8000 SHxxxx Emulator i Exit Previous session file Figure 3 2 Select Session Dialog Box When New Session is selected from the File menu a target platform can be changed at any time 26 RENESAS When the E8000 emulator has correctly been setup the HDI window is displayed together with the Link Up message at the status bar The main functions of the window are described on the next page Pag ace E8000 SHxxxx Emulator D Eile Edit View Bun Memory Setup Window Help O40 aaral 25s onrad Thom REA FUMa APP D aH gt Bx opel HAAD oree Oi A Figure 3 3 HDI Window Numbers in figure 3 indicate the following 1 Menu bar Indicates the HDI command menus for the use of the HDI 2 Toolbar Contains convenient buttons as shortcu
18. When using a LAN adapter that has already been set it is unnecessary to set it again Use LAN Adapter Configuration to define only the host computer For details on the usage of the LAN Adapter Configuration refer to the online help of the LAN Adapter Configuration 2 2 2 Setting Up the PC Interface Board on Windows NT 4 0 When Using the PCI Interface Board Exit from the operating system shut down the host computer and turn off the power switch Install the PCI interface board into the host computer Turn on the host computer Log on as Administrator Install the provided software Select PCI Card Driver as the component Restart the host computer When Using the PC Interface Card Exit from the operating system shut down the host computer and turn off the power switch Install the PC interface card into the host computer Turn on the host computer Log on as Administrator Install the provided software Select PC Card Driver PCMCIA as the component Check the values specified for use by the PC interface card before the information is requested during installation Select and start Administrative Tools Common Windows NT Diagnostics from Start Programs to check the current status of IRQ I O ports and memory in the resource panels and set values that will not cause contention with other devices Required resources are as follows one channel for IRQ H F bytes for I O ports H 4000 bytes for use as memory
19. faction DELAY Condition Condition Bus Condition Condition Count Condition Dialog Box Address Data State Probe Interrupt Count Delay Break Condition UBC1 O O O X X O X dialog box Break Condition O O O x x X X UBC2 3 4 dialog box Break Condition A O O O O O X X dialog box Break Condition B O O O O O O O dialog box Break Condition C O X O x x X X dialog box Notes 1 O Can be set in the dialog box X Cannot be set in the dialog box 2 Eight breakpoints can be set independently in each of the Break Condition A B C dialog boxes 3 The DELAY condition in the Break Condition B dialog box can be set for only Break Condition B7 53 RENESAS Table 3 6 Main Break Conditions Break Condition Address bus condition Address Description Breaks when the CPU address bus value matches the specified conditions Data bus condition Data Breaks when the CPU data bus value matches the specified conditions Byte word or longword can be specified as the access data size Bus state condition Bus State There are two bus state condition settings Read write condition Breaks when the RD or RDWR signal level of the CPU matches the specified conditions Bus state condition Breaks when the conditions of CPU memory access cycle or vector fetch cycle match the specified conditions External probe signal condition Probe Breaks when an external probe signal PRB1 to PRB4 level matches th
20. host computer with the Intel P amp P BIOS disk e Check the upper memory areas that have already been used with View System Resources e Add Unlisted Card with Configure Add Card Others e Click No in the dialog box displayed because there is no CFG file e Move to the Memory hex list box in the Configure Unlisted Card dialog box e Click the Add Memory button to display the Specify Memory dialog box e Enter a memory area range that is not used by any other device and that corresponds to one of the PC interface board switch settings e Save the file e Exit the current setup program e Shut down Windows NT 4 0 and turn off the host computer power switch e Turn on the host computer 2 3 Installing the System Program A description of the installation of the system program is given below The E8000 system program must be transferred to flash memory in the E8000 station The emulator cannot be used without the E8000 system program RENESAS The system programs are stored in SYSTEM under the HDI installation directory Table 2 1 is a list of system programs with descriptions Table 2 1 Contents of Emulator System Programs No File Name Contents of File 1 E8000 SYS System program for the emulator Controls the evaluation ship board and executes various commands such as for emulation Loaded to the memory of the emulator when the emulator system program is started up 2 SHDCT706 SYS MCU control
21. in the Trace window This message is also output when the HDI has no trace information to be displayed 113 RENESAS Table 6 1 Error Messages cont Message Hardware register read write check error Cause and Countermeasure An error was detected when the emulator hardware registers were tested Check whether the emulator is functioning normally Invalid version number in target configuration The current HDI version number is different from that when the session file was created Invalidate the lower version number System ID error An emulator different from that selected using the Select Platform dialog box is connected Check the emulator type Target internal error Commands cannot be issued to the emulator Wait for processing to finish User system not ready No clock has been detected The HDI is terminated Function information not found The function information input to the Input Function Range dialog box was not found Input the correct function name When specifying byte access for the data condition also specify an address condition 114 When the byte access condition is set for the data bus condition also set the address bus condition In this case the address range mask and Outside Range cannot be set for the address bus condition RENESAS
22. in the Condition list box by clicking e Click the Edit button 81 RENESAS The Trace Condition A1 dialog box is displayed Trace Condition Al Figure 3 56 General Page Trace Condition A1 Dialog Box e Select Trace Stop radio button as Mode in the General page e Select Address to display the Address page 82 RENESAS e Clear the Don t Care check box in the Address page e Select Address and input H 3044 as the value in the Start edit box Trace Condition Al xi General Address Data Bus State Probe Interrupt Address M Don t Care Address C Range Start H3044 HO Non user mask C User mask Cancel Apply Help Figure 3 57 Address Page Trace Condition A1 Dialog Box e Select Bus State to display the Bus State page 83 RENESAS e Select Read radio button Trace Condition Al Figure 3 58 Bus State Page Trace Condition A1 Dialog Box e Click the OK button 84 RENESAS The Trace Acquisition dialog box is displayed and the first point display in the Condition list box changes from Empty to Enable Trace Acquisition x Trace Mode Condition A Condition B Condition C Condition Edit Reset Reset All c Helo Apply Figure 3 59 Condition A Page Trace Acquisition Dialog Box This completes the settin
23. in the registry if it might be used by other HDIs If other HDIs will no longer start up because of uninstallation reinstall the other HDIs 2 6 2 Uninstalling the Acrobat Reader Only uninstall the Acrobat Reader if it is necessary Click Settings Control Panel from the Start menu Double click the Add Remove Programs icon Select Adobe Acrobat Reader x x from the list of applications installed on the tabbed page Install Uninstall and click the Add Remove button Follow the directions on the screen 23 RENESAS 24 RENESAS Section 3 Tutorial 3 1 Introduction The following describes the main functions of the HDI by using a sample program for sorting random data The sample program performs the following actions e The main function generates 10 pieces of random data to be sorted e The sort function sorts the random data in ascending order e The change function changes the data in descending order Table 3 1 shows the configuration of the sample program Table 3 1 Configuration of the Sample Program at Default Installation Item No Description of File File Name and Directory 1 HEW workspace file HEW HDI5 E8000 7060 TUTORIAL TUTORIAL HWS 2 ELF DWARF2 type HEW HDI5 E8000 7060 load module file TUTORIAL TUTORIAL DEBUG TUTORIAL ABS 3 Source file main HEW HDI5 E8000 7060 TUTORIAL TUTORIAL TUTORIAL C program Note This sample program is created by using the SuperH RISC engine C C compiler
24. line of the sort function in the Source window RENESAS 47 3 10 2 Executing Step Out Command The Step Out command steps out of the called function and stops at the next line that called the function in the program e To step out of the sort function select Step Out from the Run menu or click the Step Out button in the toolbar Figure 3 27 Step Out Button Hitachi Debugging interface tutorial E8000 SH7060 Emulator Eile Edit View Run Memory Setup Window Help jo smom sO aee M HL AP OHs RSAP ORES wy ER e 0 8 2 BA t inti tutorial c Address B 1 1 w H 00000722 0x003fffc8 H 00000aad 0x003fffcc H 00001e23 0x003fffd0 H 00002c7a 0x003fffd4 H 0000384d 0x003fffd8 H 000038e8 0x003fffdc H 0000612e 0x003fffe0 H 0000618c 0x003fffe4 H 00006abd 0x003fffe8 H 000075a4 0x003fffec H 986ca00a 0x003fffc0 O emme x co 00 u o oN a a o o _sort void sort long a hg ARF SR Pee long t int i j k gap a ay k O k lt gap kt LA Break STOP ADDRESS Figure 3 28 Source Window Step Out 48 RENESAS The data of array a displayed in the Watch window is sorted in ascending order e To execute two steps use the Step In command twice Al Hitachi Debugging Interface tutorial E8000 SH7060 Emulator E
25. mode UBC2 gt 1 from the Emulation mode combo box and click the OK button Configuration Emulator Clock 15MHz Sequential break mode UBC 2 gt 1 Figure 3 40 Configuration Dialog Box at Sequential Break Condition Setting Click the OK button 63 RENESAS An example is given below in which Break Condition UBC1 and Break Condition UBC2 of the sequential break conditions are set Set break conditions as follows Break condition 1 A break is executed when address H 3056 is accessed in a read cycle Break Condition UBC1 Break condition 2 A break is executed when address H 3046 is accessed in a read cycle Break Condition UBC2 After break condition 2 is satisfied and break condition 1 is satisfied in succession a program being executed will stop Then set the sequential break conditions e Select Breakpoints from the View menu The Breakpoints window is displayed e Click the mouse right button in the Breakpoints window The popup menu is displayed e Select Delete All to clear all the set break points e Display the popup menu again and click the Add button breakpoints oO O1 x File Line dress Figure 3 41 Breakpoints Window Before Sequential Break Condition Setting 64 RENESAS The Break dialog box will appear e To set sequential break conditions select Condition UBC and display the Condition UBC page
26. of the Break Condition Al hardware break conditions A break will occur when address H 3058 is accessed in a read cycle during the program execution Breakpoints el el ES Enable File Line Type tutorial c 3 00003036 Program tutorial c 43 00003058 Break Condition I E Figure 3 39 Breakpoints Window at Break Condition A Setting 60 RENESAS 3 13 Setting the Sequential Break Conditions The emulator has powerful sequential break functions In the HDI these sequential break conditions can be set by using dialog boxes The dialog boxes for setting sequential break conditions and the corresponding sequential break functions are described below Table 3 7 Dialog Boxes for Setting Sequential Break Conditions Function External Address Bus State Probe Interrupt Satis Bus DataBus Condition Signal Signal faction DELAY Condition Condition Bus Condition Condition Count Condition Dialog Box Address Data State Probe Interrupt Count Delay Break Condition UBC1 O O O X X O X dialog box Break Condition UBC2 O O O X X X X dialog box Break Condition UBC3 O O O X X X X dialog box Break Condition UBC4 O O O x X X x dialog box Break Sequence O X X X X X X dialog box Note O Can be set in the dialog box X Cannot be set in the dialog box 61 RENESAS Table 3 8 Main Sequential Break Functions Sequential Break Function Description Break Sequence A sequential break function us
27. program Controls the MCU on the evaluation chip board Loaded to the memory of the emulator when the emulator system program is started up 3 SHCNF706 SYS Configuration file for storing the MCU s operating mode and map information Loaded with the emulator system program 4 DIAG SYS Diagnostic and maintenance program Loaded to the memory of the E8000 station for maintenance The system programs are registered by using a dedicated E8000 E8000S system installation tool hereafter referred to as the ESI The procedure is described below To install the system programs use Auto Install or Custom Install mode Auto Install mode automatically installs all system program Custom Install mode allows flexibility in the installation of the system programs First Auto Install is described Turn on the E8000 station Select SH7060 E8000 Emulator Software Tools System Install Tool from Start Programs RENESAS Accessories A StartUp Favorites gt Hms pos Prompt Qy Windows Explorer N Documents 8000 Emulator Software gt a Tools gt LAN Adapter Configuration Pal Hitachi Debugging Interface 2 System Install Tool Help ER Settings nstall Tool EN Eind tier Bun amp Log Off i Shut Down Figure 2 1 Start Menu System Install Tool When the ESI has started up the Select Driver dialog box will be displayed Select the driver for the connection of the host computer and the E8000 Emu
28. set by PA5 Performance O O X X X Analysis 6 dialog box PA6 Performance O O O O O If PA8 is set Analysis 7 dialog 3 4 and 5 box PA7 cannot be set by PA7 Performance O O X X X Analysis 8 dialog box PA8 Note O Can be set in the dialog box X Cannot be set in the dialog box RENESAS 87 Table 3 13 Subroutine Measurement Mode Subroutine Measurement Mode Subroutine time measurement mode 1 Description Measures the execution time and count of the subroutine defined by the address condition according to the setting of Performance Analysis 1 to 8 Measurement starts when an address within the specified range is prefetched halts when an address outside the specified range is prefetched and restarts when an address within the specified range is prefetched again The subroutine execution count is incremented every time the subroutine end address is fetched The execution time of subroutines called from the specified subroutine is not included in the measurement results For Performance Analysis 1 only a timeout value and a limit count value can be specified in addition to the address condition Subroutine time measurement mode 2 Measures the execution time and count of the subroutine defined by the address condition according to the setting of Performance Analysis 1 to 8 Measurement starts when the start address is prefetched and halts when the end address is prefetched The subroutine execution co
29. the following line to the 386Enh section in the SYSTEM INI file EMMExclude aaaa bbbb Here aaaa is the upper four digits of Start value and bbbb is the upper four digits of End value For example for the switch set to 6 you would set the line to read EMMExclude D800 DBFF e Save the SYSTEMLINI file and exit the SYSEDIT e Restart the host computer Setting Up the PC Interface Board on Windows NT 4 0 The description given below is about setting up the PC interface board on Windows NT 4 0 RENESAS For the installation of the PC interface board to the ISA bus slot refer to the manual of your host computer This section describes the general procedure for installing the PC interface board in the host computer Log on to the host computer as Administrator Check which upper memory areas have already been used Start Windows NT 4 0 e Execute Start Programs Administrative Tools Common Windows NT Diagnostics e Click the Memory button in the Resource tab and in the following form make a note of the upper memory areas that have already been used e Exit Windows NT 4 0 e Register the memory area for the PC interface board Select one of the memory areas that correspond to the following PC interface board switch settings and no other devices can access the selected memory area If the Intel P amp P BIOS disk is supplied with the host computer register the memory area as follows e Start the
30. window is sorted in descending order 51 RENESAS 3 11 Displaying Local Variables The user can display local variables in a function using the Locals window For example the local variables in the main function which declares five local variables a j i min and max will be examined e Select Locals from the View menu The Locals window is displayed Initially the Locals window is empty because local variables have not yet been declared e Select Step In from the Run menu to execute one more step The Locals window will now show the local variables and their values Locals Of oO x O03fffc8 OxO03fffe 0x003fff Figure 3 33 Locals Window e Double click the symbol to the left of array a in the Locals window to display the elements of array a e Refer to the elements of array a before and after the execution of the sort function and confirm that random data is sorted in ascending or descending order 52 RENESAS 3 12 Setting the Hardware Break Conditions The emulator has powerful hardware break functions In the HDI these hardware break conditions can be set by using dialog boxes The dialog boxes for setting hardware break conditions and the corresponding break conditions are described below Table 3 5 Dialog Boxes for Setting Hardware Break Conditions Function Address Bus State External Interrupt Satis Bus DataBus Condition Probe Signal Signal
31. 0 Breakpoints Window with Break Conditions Canceled ceeeeeseceeeeeenteeeeee 89 Figure 3 61 Performance Analysis Window Initial State 00 eee eeeeceeseceereeeneecetreeeneeens 90 Figure 3 62 PA Page Performance Analysis Dialog BOX cescseseceeneeceeeeeeneeceeeeeneecees 91 Figure 3 63 General Page Performance 1 Dialog BOX eee eesceeeeeceenceceteeeeneeceseeeennecees 92 Figure 3 64 Address Page Performance 1 Dialog BOX cee eeeceeneecsseceeneeceseceeeeecnaeeesees 93 Figure 3 65 Input Function Range Dialog BOX 0 eee eceeceeeceeeceseceseceneceaecssecaeecaeeeneeees 93 Figure 3 66 Address Page after the Address of the sort Function is Specified 94 Figure 3 67 PA Page Performance Analysis Dialog BoX ceeceessecesrecsseceeeeeceeeeeneeenees 95 Figure 3 68 Performance Analysis Window before Program Execution c ceeeeeeeseeeeee 97 Figure 3 69 Performance Analysis Window after Program Execution cesseceeneeeneeees 97 Figure 3 70 Performance Analysis Window Execution Count ceccceesseceeeeeseneeceereeeeneees 98 Figure 5 1 Example of Target File Display cece eceeceeeeceeseeseceseceneceaeceaecseecaeesaeseaeeeeeees 109 Figure 5 2 Diagnostic Program Start Up Confirmation Dialog BOX eee eee eee eeee cee eneeeee 110 vi RENESAS Figure 5 3 Diagnostic Program Start Up Window 0 cccessecesecesecssecneeceecneeeeeeeeeeeeeeseenseenees
32. 3 0000 KB an X RAM AREA FFFF8000 FFFF8FFF Y RAM AREA FFFFAOOO FFFFAFFF INTERNAL I O FFFFOOOOFFFFISFF Map type Memory 7 Edit Add Beset Reset All Help Figure 3 5 Memory Mapping Dialog Box Before Setting The emulator can specify any memory area to the following five memory types Table 3 3 Memory Type Memory Type Description USER AREA Read Only Write protected user memory area USER AREA Guarded Access inhibited user memory area EMULATION AREA Emulation memory area EMULATION AREA Read Only Write protected emulation memory area EMULATION AREA Guarded Access inhibited emulation memory area 30 RENESAS When the Add button is clicked the Add Memory Mapping dialog box is displayed Add Memory Mapping x Memory Mapping From H o000000d Io H 003FFFFF Setting EMULATION AREA 7 Cancel Help Figure 3 6 Add Memory Mapping Dialog Box For this tutorial allocate the memory area of addresses ranging from H 00000000 to H 003FFFFF as an emulation memory area e Set the From and To edit boxes to H 00000000 and H 003FFFFF respectively set the Setting combo box to EMULATION AREA and click the OK button The Memory Mapping dialog box will now show the modified ranges 31 RENESAS Memory Mapping Ed From To Mapping Target Device configuration System memory resources REMAINING EMULATION MEMO
33. A 2000 for the location lt Drive gt is the CD ROM drive e Check that E8000 E6000 PC Card has been detected and complete driver installation When Using the LAN Adapter e Log on as Administrator e Install the provided software Select E8000 LAN Driver as the component e Connect the LAN adapter to the target network and turn on the LAN adapter e Select SH7060 E8000 Emulator Software Tools LAN Adapter Configuration from Start Programs and start the LAN Adapter Configuration e Set the LAN adapter by LAN Adapter Configuration e Turn off the LAN adapter and connect the LAN adapter to the target network and turn on the LAN adapter Then LAN adapter must be turned off even when the network is not changed Note When using a LAN adapter that has already been set it is unnecessary to set it again Use LAN Adapter Configuration to define only the host computer For details on the usage of the LAN Adapter Configuration refer to the online help of the LAN Adapter Configuration 2 2 4 PC Interface Board Specifications ISA Bus Specifications A PC interface board HS6000EIIO1H ISA bus specifications is available for use as the interface for communications between the emulator and the HDI The PC interface board is a memory mapped board the memory area to be used by the PC interface board must be defined in the emulation memory before the PC interface board is placed in an unused expansion slot Otherwise programs may accide
34. DITION__ BCD Displays hardware breakpoints BREAK_CONDITION_ DISPLAY break conditions that have A B C been set 3 BREAKCONDITION_ BCE Enables or disables hardware BREAK_CONDITION__ ENABLE breakpoints break conditions A B C that have been set 4 BREAKCONDITION_SET BCS Sets hardware breakpoints BREAK_CONDITION__ break conditions that have A B C been set 5 BREAKSEQUENCE _ BSC Clears software sequential BREAK_SEQUENCE CLEAR breakpoints that have been set 6 BREAKSEQUENCE _ BSD Displays software sequential BREAK_SEQUENCE DISPLAY breakpoints that have been set 7 BREAKSEQUENCE _ BSE Enables or disables software BREAK_SEQUENCE ENABLE sequential breakpoints that have been set 8 BREAKSEQUENCE_SET BSS Sets software sequential BREAK_SEQUENCE breakpoints 9 BREAKPOINT BP Sets software breakpoints BREAK 10 BREAKPOINT_CLEAR BC Clears software breakpoints that BREAK have been set 11 BREAKPOINT_DISPLAY BD Displays software breakpoints BREAK that have been set 12 BREAKPOINT ENABLE BE Enables or disables software BREAK breakpoints that have been set 13 CLOCK CK Selects a CLOCK signal used by CLOCK the SH7060 105 RENESAS Table 4 2 HDI Commands cont Related E8000 No Command Abb Function Commands 14 DEVICE_TYPE DE Displays the CPU type currently None selected 15 END END Returns to a user program END execution state when the emulator enters the parallel mode due to trace condition satisfaction 16
35. E NS 37 3T REVIEWS Break Poms snesen cecscelsss seodpsdsevech desavt are eenean Eno eE ra a Sa He SPSK R e 39 3 8 Viewing Memor ni ane n a AR E aie ieee he ee Ses 40 3 9 Watching Vartablesy ii ic sn testes hands co sthneve cand Hcaseecab eed Gas oieee db v e e eE AIKE NEEE KESE NiS 42 RENESAS 3 10 Stepping Through a Program 5 isc c scicsscescestscessdesssesecd seduce detssacteccsones gpbsasesehsstebisescessseessens 45 3 10 1 Executing Step In Command ce eeeeeeeeeceeeceseceseceseceaecsaecsaecneseaeeeaeees 47 3 10 2 Executing Step Out Commando eee ce eeceeeceseceeceseceaeceaecaaesaeseneeeeeees 48 3 10 3 Executing Step Over Command 00 eee eceeceeeceeeeeecesecaecaecaeecaeeeeeeeeeees 50 3 11 Displaying Local Variables cise scsecccseosessessessvecbevseaas sd eeens ao er eae INRE ie heege ae r eS 52 3 12 Setting the Hardware Break Conditions sesseeeesseeseeesesseesesreerssrerrssrrrenresrenreserrreserrenresee 53 3 13 Setting the Sequential Break Conditions sssesssseeseseeesssesersresreresreerrsrerreserrenresreneseeerses 6l 3 14 Displaying and Searching for Trace Information eessssessseeessereerssrsreeresreerrsrrrreserreeresre 72 3 14 1 Displaying Trace Information cece eeeeeeeceeeeesecesecesecaecseecaeesaeseaeeeneees 72 3 14 2 Searching for Trace Information eee ee ceeeceeeeeseceseceaeceaecaeecaeeeneeeaeee 73 3 15 Setting the Trace Acquisition Conditions 0 eee cee csecseeeeeeeeeeeeeeeeesee
36. EXECUTION_MODE EM Sets debugging conditions EXECUTION_MODE during user program execution 17 GO_OPTION GP Sets the emulation mode during GO user program execution 18 ID ID Displays an emulator type anda ID version number 19 MAP_SET MS Sets emulator memory map MAP 20 MODE MO Selects emulator mode MODE 21 MOVE_TO_RAM MR Stores a user program on ROM MOVE_TO_RAM into RAM 22 PERFORMANCE _ PA Displays program execution PERFORMANCE _ ANALYSIS state ANALYSIS1 to 8 23 PERFORMANCE_CLEAR PC Clears performance conditions PERFORMANCE _ that have been set ANALYSIS1 to 8 24 PERFORMANCE_SET PS Sets performance conditions PERFORMANCE _ ANALYSIS1 to 8 25 STATUS STS Displays emulator state None information 26 TRACEACQUISITION TAC Clears trace conditions that have TRACE_CONDITION_ CLEAR been set A B C 106 RENESAS Table 4 2 HDI Commands cont Related E8000 No Command Abb Function Commands 27 TRACEACQUISITION_ TAD Displays trace conditions that TRACE_CONDITION_ DISPLAY have been set A B C 28 TRACEACQUISITION_ TAS Sets trace conditions that TRACE_CONDITION_ SET acquire trace information A B C 29 TRACE_DISPLAY TD Display the acquisition of trace TRACE information 30 TRACE_MODE TM Sets the trace information TRACE_MODE acquisition mode 31 TRACE_SEARCH TS Searches for information TRACE_SEARCH corresponding to acquired trace information 32 UBC_CLEAR UBC Clears UBC breakpoints that BREAK_CONDITION__ have been s
37. 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 To all our customers Regarding the change of names mentioned in the document such as Hitachi Electric and Hitachi XX to Renesas Technology Corp The semiconductor operations of Mitsubishi Electric and Hitachi were transferred to Renesas Technology Corporation on April 1st 2003 These operations include microcomputer logic analog and discrete devices and memory chips other than DRAMs flash memory SRAMs etc Accordingly although Hitachi Hitachi Ltd Hitachi Semiconductors and other Hitachi brand names are mentioned in the document these names have in fact all been changed to Renesas Technology Corp Thank you for your understanding Except for our corporate trademark logo and corporate statement no changes whatsoever have been made to the contents of the document and these changes do not constitute any alteration to the contents of the document itself Renesas Technology Home Page http www renesas com Renesas Technology Corp Customer Support Dept April 1 2003 7tENESAS Renesas Technology Corp Cautions Keep safety first in your circuit designs 1 Renesas Technology Corpo
38. RY Large Block 0 53 3072 KB Short Block 0 3 0000 KB Short Block 0 7 O0000000 001FFFFF a 256K bytes by 1 Block Unit Large Block 0 29 00200000 47FFFFFF Mbytes by 1 Block Unit x RAM AREA FFFFSOO0 FFFFSFFF Y RAM AREA FFFFAQOO FFFFAFFF INTERNAL 1 0 FFFFOOOO FFFFISFF cj M ap type 2 A Figure 3 7 Memory Mapping Dialog Box at Setting e Click the Close button of the Memory Mapping dialog box to close the dialog box 3 4 Downloading 3 4 1 Downloading the Tutorial Program Download the object program e Select Load Program from the File menu The Load Object File dialog box is displayed e Click the Browse button The Open dialog box is displayed e Select the file TUTORIAL ABS in the TUTORIAL directory and click the Open button 32 RENESAS Load Program hC an D HEW Hdi5 E 8000 yoood tutorial tutorial Debu Figure 3 8 Load Program Dialog Box Click the OK button in the Load Program dialog box RENESAS 33 When the file has been loaded the following dialog box displays information about the memory areas that have been filled with the program code Figure 3 9 HDI Dialog Box e Click the OK button 3 4 2 Displaying the Source Program The Source window displays the C C language source program set breakpoints execute the program and select variables so the user can debug a prog
39. Stops trace acquisition when the conditions specified by Trace Condition A B C are satisfied Specifiable conditions are Address bus condition Data bus condition Read write condition Bus state condition execution cycle System control signal BREQ External probe condition Satisfaction count DELAY condition Subroutine range trace Performs trace acquisition only for places that have been accessed within a subroutine specified by Trace Condition B and when the specified conditions have been satisfied at those places specifiable conditions are the same as those for range trace 79 RENESAS An example is given below in which trace stop mode in which address bus condition and read cycles for bus state condition are set is selected for Trace Condition A as the trace function e Click the mouse right button in the Trace window The popup menu is displayed e Click the Acquisition button to display the Trace Acquisition dialog box Trace Acquisition ply Bance Ey Figure 3 54 Trace Acquisition Dialog Box 80 RENESAS For trace acquisition conditions the Trace Acquisition dialog box pages required for the setting must be selected e Select Condition A to display the Condition A page Trace Mode Condition A Condition B Condition C Condition Apply Help Figure 3 55 Condition A Page Trace Acquisition Dialog Box e Highlight the first point
40. 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
41. YSTEMS m CONFIGURATION FILE pe FIRMWARE FILE c SHEW SHdi5 SES000 xxx SYSTEMS r DIAGNOSTIC FILE Figure 2 5 E8000 Load Files Dialog Box SH7060 Each check box corresponds to the combo box to its right Select the check box that corresponds to the files you wish to install Place the cursor on the combo box and click the Browse button When the Browse button is clicked the File Selection dialog box will be displayed Select the files to install If you decide not to install a file do not select the check box When the check box is not selected which means it is invalid the file will be grayed out and will not be installed Click the OK button The system program will be installed in the flash memory of the E8000 station The file name will be displayed in the status bar as each file is installed From here the description of Custom Install is the same as that of Auto Install Click Cancel to return to the Select Install dialog box For details on the error messages displayed during ESI operation refer to Troubleshooting in the ESI help file For help on the ESI select SH7060 E8000 Emulator Software Tools System Install Tool from the Start menu 2 4 Checking the Emulator The next step is to check that the emulator and the HDI are initiated correctly 18 RENESAS Turn on the emulator after confirming that the S7 and S8 DIP switches of SW1 on the emulato
42. broutine time measurement mode 1 radio button in the General page and enter the function name sort in the Name edit box e Select Address to display the Address page 92 RENESAS e Click the button in the Subroutine Address Performancel x General Address Time Out Count m Subroutine Address Start Ho m End H 0 Figure 3 64 Address Page Performance 1 Dialog Box The Input Function Range dialog box is displayed e Enter the function name sort in the Subroutine Address edit box e Click the OK button Input Function Range x Subroutine Address sort Cancel Figure 3 65 Input Function Range Dialog Box 93 RENESAS Address values are then displayed in the Start and End edit boxes in the Address page Performancel me E Figure 3 66 Address Page after the Address of the sort Function is Specified e Click the OK button 94 RENESAS The Performance Analysis dialog box is then displayed The indication of the first point in the Condition list box changes from Empty to Enable sort Performance Analysis x Pa Condition Edit Reset Reset All Apply Figure 3 67 PA Page Performance Analysis Dialog Box This completes the setting for the subroutine call count measurement mode in Performance Analysis 1 Next Performance Analysis 2 is set e
43. 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
44. ce Board HS6000EIC02H for the E6000 E8000 Emulator e Description Notes on Using the LAN Adapter HS6000ELNO1H for the E6000 E8000 Emulator e SH7060 E8000 Emulator Diagnostic Program Operation Manual For details on the related software manuals e Hitachi Debugging Interface User s Manual e Hitachi Embedded Workshop User s Manual e SuperH RISC engine C C Compiler User s Manual e SuperH RISC engine Cross Assembler User s Manual e H Series Linkage Editor Librarian Object Converter User s Manual e SuperH RISC engine C C Compiler Assembler Optimizing Linkage Editor For details on the SH7060 series microprocessor e SH7065 Hardware Manual e SH1 SH2 SH DSP Programming Manual Refer to section 2 Installation for details on HDI installation RENESAS In this user s manual the operating environment is assumed to be the English version on the IBM PC Notes 1 Microsoft Windows Windows 95 Windows 98 Windows Me Windows NT and Windows 2000 are registered trademarks of Microsoft Corporation in the United States and or in other countries 2 IBM PC is a registered trademark of International Business Machines Corporation in the United States 3 Pentium is a registered trademark of Intel Corporation in the United States 4 Adobe Acrobat and Acrobat Reader are registered trademarks of Adobe Systems Incorporated All product names and brand names used in this user s manual are tra
45. d click the OK button 43 RENESAS The Watch window will now also show the long type variable max Watch Window Oo OL x Value 0x003fffc8 long 10 max H 986ca00a 0x003fffc0 long Figure 3 22 Watch Window Displaying the Variable e Double click the symbol to the left of any variable in the Watch window to expand the variable and watch all the elements in the array Watch Window Of op x Name i a 0 H OO00618e O0x003fffc8 long 1 H 000038e8 0x003fffcec long 2 H O00075a4 Ox003fffd0 long 3 H O0006abd Ox003fffd4 long 4 H OO000722 Ox003fffd8 long 5 H 00001e23 0x003fffde long 6 H O000384d Ox003fffe0 long 7 H O0000aad Ox003fffe4 long 8 H O0002c7 a 0x003fffe8 long 9 H OOO0612e 0x003fffec long max H 986ca00a Ox003fffc0 long Figure 3 23 Watch Window Displaying Array Elements 44 RENESAS 3 10 Stepping Through a Program The HDI provides a range of step menu commands that allow efficient program debugging Table 3 4 Step Command Command Description Step In Steps through statements including those in a function Step Over Steps through the statements with a function call as one step Step Out Steps out of a function and stops at the next line that calls the function in the program Step Steps the specified counts repeatedly at a spec
46. demarks or registered trademarks of each company RENESAS Contents Section 1 OVET E Wiseni integrons u iii a i i EE dade buies 1 Tl OVETVIEW hsa aaea a N E ae tay a aes Ee reas E SEE S Eese 1 E a ES AnD i a E E E T 1 1 2 Operating Envito M n t sieisenco cons eo osiin ca senses oske KES Va oero EEIE ee DoST ESEA 2 1 3 Contentssiess secs r e nese E he Ae aaa E SEERE ES 3 Section 2 Installationen aE E E EER 5 2 1 Installation Procedures i oiicbscc8g esnie rene eeren o EE EE EEA EOE Ee 5 2 1b Setting up the Emulator ensi e a e E A A ER AN 5 2 2 Setting Up with Windows Operating Systems c cccsesssssssessesessesseseesesesessesseseesesteseeseaes 5 2 2 1 Setting Up the PCI Interface Board on Windows 95 Windows 98 or Wind OWS EO aceite cen hess hihi R REALS 6 2 2 2 Setting Up the PC Interface Board on Windows NT 4 0 ccccccccscssessesesteseeteanees 7 2 2 3 Setting Up the PC Interface Board on Windows 2000 ccscscssessessesestesteseenesee 8 2 2 4 PC Interface Board Specifications ISA Bus Specifications 0 0 0 eee 9 2 3 Installing the System Program sic ci0vs jesssesecesscessgesssescesoseesetevssescesssoesssu sees sdevcsvveesstepecoestoess 12 2A4 Checking the Emulators neeesser onoi ren ie aeree aeo cones a EE Eo ETTE EEEE dm hove a stove 18 2 3 Troubleshooting sisi sess ssecteistes At nestesiunes sessseslhviotes a okssaeevekibeg ek ssethhsiste heb sseeeassgs aseed 21 2 5 1 Connection Error o
47. 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
48. e eee aleam Cancel Disa sys Help Figure 2 3 E8000 Load Files Dialog Box SH7060 Click the OK button Installation of the system programs to the flash memory of the E8000 station will commence The file name will be displayed in the status bar as each file is installed Click Cancel to return to the Select Install dialog box When the registration is complete the System Install Completed dialog box will be displayed 16 RENESAS System Install Completed x E8000 System File Install was completed Press OK button to exit the application r SYSTEM FILE e SHE W SHdi5 E 8000 oce S S TEMSE S000 sys m CONFIGURATION FILE ESHEW Hdi5 EB000 7000S STEM Shenoxx sys M FIRMWARE FILE ESHEW HdE EBO00 7s0 SYSTEM Shdoboc sys DIAGNOSTIC FILE EAHEWAHGENEBO00 7 00 lt SYSTEM Diag sys Figure 2 4 System Install Completed Dialog Box SH7060 Click the OK button The installation of the system program to the flash memory of the E8000 station will be completed and the ESI will terminate Turn off the emulator s power switch Next Custom Install will be described When the Select Install dialog box has been displayed select the Custom Install radio button The E8000 Load Files dialog box will be displayed Add or modify files 17 RENESAS E8000 Load Files Ea Only Checked kind of files are installed m SYSTEM FILE Vv e WHEW SHdi5 SESO00S xxxS S
49. e specified conditions Interrupt signal condition Interrupt Breaks when the NMI signal level matches the specified conditions Satisfaction count Count Breaks when the above conditions have been satisfied the number of times specified in this condition A maximum count of 65 535 can be specified DELAY condition Delay 54 Breaks when the above conditions have been satisfied and the bus cycles specified in this condition have been executed A maximum of 32 767 bus cycles can be specified RENESAS An example is given below in which the address bus condition and read cycles for the bus state condition are set in Break Condition A as hardware break conditions e Select Breakpoints from the View menu The Breakpoints window is displayed e Click the mouse right button in the Breakpoints window The popup menu is displayed e Click the Add button Breakpoints oj x Enable File Line tutorial c 3 Type 00003036 Program gt I Figure 3 34 Breakpoints Window Before Hardware Break Condition Setting RENESAS 55 The Break dialog box is displayed For hardware break conditions the Break dialog box pages required for the setting must be selected e Select Condition A to display the Condition A page Empty Bancel AGB Figure 3 35 Condition A Page Break Dialog Box Up to eight breakpoints can be set independen
50. ed that customers contact Renesas Technology Corporation or an authorized Renesas Technology Corporation 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 Corporation 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 Corporation by various means including the Renesas Technology Corporation 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 to evaluate all information as a total system before making a final decision on the applicability of the information and products Renesas Technology Corporation assumes no responsibility for any damage liability or other loss resulting from the information contained herein Renesas Technology Corporation 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 Corporation or an authorized Renesas Technology Corporation product distributor when considering the use of a product contained herein for any specific purposes such as apparatus or systems f
51. efore final design purchase or use 3 Hitachi makes every attempt to ensure that its products are of high quality and reliability However contact Hitachi s sales office before using the product in an application that demands especially high quality and reliability or where its failure or malfunction may directly threaten human life or cause risk of bodily injury such as aerospace aeronautics nuclear power combustion control transportation traffic safety equipment or medical equipment for life support 4 Design your application so that the product is used within the ranges guaranteed by Hitachi particularly for maximum rating operating supply voltage range heat radiation characteristics installation conditions and other characteristics Hitachi bears no responsibility for failure or damage when used beyond the guaranteed ranges Even within the guaranteed ranges consider normally foreseeable failure rates or failure modes in semiconductor devices and employ systemic measures such as fail safes so that the equipment incorporating Hitachi product does not cause bodily injury fire or other consequential damage due to operation of the Hitachi product 5 This product is not designed to be radiation resistant No one is permitted to reproduce or duplicate in any form the whole or part of this document without written approval from Hitachi 7 Contact Hitachi s sales office for any questions regarding this document or Hitachi semic
52. ems arise For details on the use of the HDI refer to the Hitachi Debugging Interface User s Manual issued separately 100 RENESAS 4 1 Section 4 Function Windows and Dialog Boxes Table 4 1 shows the SH7060 E8000 HDI specific windows and dialog boxes For more information see the online help To see the online help select Index in the Help menu or click Help button in each dialog box Also the related commands in the SH7060 E8000 Emulator User s Manual are described in the online help Table 4 1 List of Windows and Dialog Boxes Name of Window and Category Dialog box Description Related E8000 commands Emulation System Status window Displays the set up CLOCK condition conditions and the program EXECUTION _MODE execution time of the GO MODE emulation associated functions in the emulator Configuration dialog box Sets the emulation CLOCK conditions in the emulator EXECUTION MODE GO MODE Break Breakpoints window Lists the all break conditions BREAK condition having been set up BREAK_SEQUENCE BREAK_CONDITION_A BREAK_CONDITION_B BREAK_CONDITION_C BREAK CONDITION UBC Break dialog box Displays the set up state of each break condition BREAK BREAK_SEQUENCE BREAK_CONDITION_A BREAK_CONDITION_B BREAK_CONDITION_C BREAK CONDITION UBC Breakpoint dialog box Sets up to 255 software breakpoints RENESAS BREAK 101 Table 4 1 List of Windows and Dialog Boxes cont
53. er dialog box then appears The filter conditions that limit the cycles to be displayed in the Trace window can be set e Select the Pattern radio button in Type Trace Filter Figure 3 50 General Page Trace Filter Dialog Box e Select Address to display the Address page 74 RENESAS e Clear the Don t Care check box in the Address page e Select Address and input address H 3048 as the value in the Start edit box Trace Filter x General Address Data Buse Area Probe Interrupt Time Address l Don t Care f Address Range Start H3048 Nonusermask C Usermask was Figure 3 51 Address Page Trace Filter Dialog Box e Select Bus amp Area to display the Bus amp Area page 75 RENESAS e Select Read radio button Trace Filter Figure 3 52 Bus amp Area Page Trace Filter Dialog Box e Click the OK button 76 RENESAS If trace information that matches the trace information search conditions is found the contents are displayed in the Trace window Trace 1 record no filter bel PC Code AB DB 00003042 MO L H 34 4 R15 R2 00003048 1f33e200 EXT Figure 3 53 Trace Window Trace Filter Results 77 RENESAS 3 15 Setting the Trace Acquisition Conditions The emulator has powerful realtime trace functions Trace information for up to 131 070 bus cycles can be ac
54. esecesecssecseecaeeeaeeseeeeeeeeeeesseeeenseenseenaes 73 Dialog Boxes for Setting Trace Acquisition Conditions eee eee eeeeeeeeeeeees 78 Main Trace Functions i ccs nenosene a ieo rieo a ee aKo oS en Ss 79 Dialog Boxes for Setting Subroutine Execution Time and Execution Count 87 Subroutine Measurement Mode eee eceecessceseceseceseceseceecseeeseseeeeeeeeeeeneenseenaes 88 Display Formats for Measurement Results 2 0 0 0 ce eeeecesecesecesecseeceeeneeeeeeeeeeeeeees 96 List of Windows and Dialog Boxes 00 0 e ee ceecesecesecssecseeceeeeaeeeseeeeeeeeeeeseeseeessenseenaes 101 HDE Commands renia sen e ea e ara a n To a vontteenedy ee 105 Error Messages eE E E E E E A Sees 113 RENESAS 1 1 Section 1 Overview Overview The HDI promotes efficient debugging of programs written in C C or assembly language in the environment using the emulator 1 1 1 Features The HDI has the following features High speed downloading of load module files A comprehensive set of break functions trace conditions and functions to set or edit memory maps are enabled by the HDI windows Large capacity trace information can be displayed a maximum of 64 k bus cycles are displayed on the window Command line functions command system for the HDI RENESAS 1 2 Operating Environment The HDI is provided on CD R The following shows the acceptable operating environments Table 1 1 Operating Environment Item Host computer
55. esecsecaecsaecnaesaes 78 3 16 Measuring the Subroutine Execution Time and the Execution Count eee 86 3 16 1 Displaying the Measurement Results of Subroutine Execution Time and Execution County rieres ee ereer ora sativa det oea DeSK EEEa Ea ESES ESEO DESET EES 90 3 16 2 Setting the Conditions of Subroutine Execution Time and Execution Count 91 3 16 3 Measuring the Subroutine Execution Time and Execution Count 96 3 17 Saving and Loading the Session 0 0 eee eee eeceeescesecesecesecesecsaecaeecaeeeseseaeseeeeeeeeeeeeeeaees 99 Bl 8 What NEXT Iesenii eet eosa tug vu deed Aa a aaea ac bev o a e a se EE E e 100 Section 4 PUNCHOM os occcissl aa stassssraleaiesciataeantestvagomsendanisamangnmeestoagisanemeasess 101 4 1 Windows and Dialog Boxes 00 0 eee ceecesecesecsseceecseeeseeeseeeeeseseseseeseeeseesaecsaecsaecnaessaeeaeeeas 101 4 2 Command Descriptions sise rnp o EE Iaa ea EESE EE EERE Eee 104 Section 5 Use of Diagnostic Prog tatthc 33 5 cesisdssqedsdivesdevagsecess Saspacasatesaedosheoecaoanees 109 5 1 Diagnostic Program Operation sseeseesseseseseeessseeeresesrrssesteerestreresrerrsestestesrentesreerssesreeresreet 109 SIl Target File Seting onoi rE Qed E at TEO EEE AEE E 109 5 1 2 Diagnostic Program Start Up eeseseensesscssscessessersseeseesneeseevenesonseonserssessens 110 5 1 3 Diagnostic Program Termination ee eee eeceescesecesecesecesecseecseeeseeeeeeeeeeeens 112 Section G Etror MESSAGes ai tierse pigos deny byassan
56. et UBC 33 UBC_DISPLAY UBD Displays UBC breakpoints that BREAK _CONDITION_ have been set UBC 34 UBC_ENABLE UBE Enables or disables UBC BREAK_CONDITION__ breakpoints that have been set UBC 35 UBC_SET UBS Sets UBC breakpoints BREAK_CONDITION_ UBC 107 RENESAS 108 RENESAS Section 5 Use of Diagnostic Program 5 1 Diagnostic Program Operation An E8000 emulator diagnostic program can be used on the HDI The installation procedure and operating details of diagnostic program are given in the SH7060 E8000 Emulator Diagnostic Program Operation Manual This section describes how to run the diagnostic program on the HDI 5 1 1 Target File Setting In HDI installation target file E8 706032 INT is created in the C WINDOWS directory This target file contains resource information indicating whether or not the diagnostic program is to be started when the HDI is initiated E8000 HDI TARGET Diagnostic Program Y Figure 5 1 Example of Target File Display Diagnostic Program Y Diagnostic Program Y is set in the default target file If the diagnostic program is not to be run change the setting as follows Diagnostic Program N 109 RENESAS 5 1 2 Diagnostic Program Start Up When the HDI is initiated the following dialog box is displayed This is immediately initiates the diagnostic program Do you want to initiate the diagnostic program Figure 5 2 Diagnostic Program Start Up Confirmation Dialog Box When the Yes
57. etails on the connection of the PC interface board ISA bus specifications refer to section 2 2 4 PC Interface Board Specifications ISA Bus Specifications or the user s manual For details on other connections refer to the related user s manual To install the provided software insert the CD R in the CD ROM drive If there are any applications running exit from them before installing the software Click Run from the Start menu The Run dialog box will be displayed Enter lt Drive gt 7060 setup exe and click the OK button lt Drive gt is the CD ROM drive Proceed with installation by following instructions provided by the install wizard RENESAS 2 2 1 Setting Up the PCI Interface Board on Windows 95 Windows 98 or Windows Me When Using the PC Interface Board e Install the provided software Select PCI Card Driver as the component e Exit the operating system shut down the host computer and turn off the power switch e Install the PCI interface board into the host computer e Turn on the host computer Hardware will be acknowledged and driver installation will start automatically e Select Search for the best driver for your device for driver installation and select Specify a location for the location e Specify lt Drive gt 7060 DRIVERS PCN95 for the location lt Drive gt is the CD ROM drive e Check that PCIHEI Rev has been detected and complete driver installation When Using the
58. f the PC Interface Board cece cee eseeereeeeeeeeeeeeenseensees 21 2 5 2 Connection Error of the Emulator eee eeceecesecse cece cneecneeeeeeeeeeseeesseneensees 22 226 Uninstallationss 32 05 08 ae oh pets heheh Se ee a a Rea E 23 2 64 Uninstalling SoftWare nnn sci esaaee east ene ae eee ene 23 2 6 2 Uninstalling the Acrobat Reader ic sssoisanteinwovaianonoudacsine own ans 23 S cton 3 F toral sisri an eea oa teat ovens toh Soe een keds 25 Sail MOM UCHON 2 5 55 120s es cpio tovavine ee RSean ba E Shia S Siieteebg reneses 25 3 27 Running the HDDs sirenen ee Eo Ter E TEE op EEEE A Tr EE ENTE s 26 3 2 1 Selecting a Target Platform osessenerererereererererersersrerersreresnerersesereersrerersreressese 26 3 3 Setting up the Emulators i ssesssessecsdvsksehssascaes sees se Esseen eea SEERE E E spvessgetabesdetceshsstedavasvensiees 28 3 3 1 Setting the Configuration Dialog BOX sessssesseesesssrssrerrsreesssrerrsserrrssesrreresreee 28 3 3 2 Setting the Memory Map 000 eee reret esap a rr E e Es 30 SAS DOWN Gadi gi senie babes dees ceed e i obs E A uk EEEE EE E E E E EE A E E iE eE 32 3 4 1 Downloading the Tutorial Program essesesseeeessereeresesresrrsrerresrrrenresrreresrenresenees 32 3 4 2 Displaying the Source Program esseseeeseiesesreesssrsrrsresresrrsrenresrerreresrrnresrenresenees 34 3 5 Setting the Software Bre kpointS srt eein ns a a SE ESE EERE 36 3 0 Executing the Prograf a keg a e R AE AS asain NR
59. g of the Trace Condition A1 trace acquisition conditions When the program is executed trace acquisition will stop when address H 3044 is accessed in a read cycle 85 RENESAS 3 16 Measuring the Subroutine Execution Time and the Execution Count The E8000 emulator has a function for measuring the ratio of the subroutine execution time to the total program execution time and a subroutine execution count In the HDI the conditions of the subroutine measurement time and execution count can be set in a dialog box and the measurement results can be displayed in the window The dialog boxes and the subroutine measurement modes are described in the following 86 RENESAS Table 3 12 Dialog Boxes for Setting Subroutine Execution Time and Execution Count Subroutine measurement mode 2 3 1 Subroutine Subroutine 4 5 Subroutine Time Time Access Area Subroutine Time Measure Measure Count Call Count Measure ment Mode mentMode Measurement Measure Dialog Box ment Mode 1 2 3 Mode ment Mode Remarks Performance O O O O O If PA2 is set Analysis 1 dialog 3 4 and 5 box PA1 cannot be set by PA1 Performance O O X X X Analysis 2 dialog box PA2 Performance O O O O O If PA4 is set Analysis 3 dialog 3 4 and 5 box PA3 cannot be set by PA3 Performance O O X X X Analysis 4 dialog box PA4 Performance O O O O O If PA6 is set Analysis 5 dialog 3 4 and 5 box PA5 cannot be
60. ified rate RENESAS 45 Before executing program stepping confirm that the program is executed up to the sort function line at address H 00003036 BP 00003000 void main void 26 long all0 min max 30 00003002 for i 0 i lt 10 i 31 0000300a j rand 32 00003012 if lt Of 00003016 j S 0000301a 0000303e min alQ 00003042 max al9 00003046 min 03 0000304a max 0 0000304e change a 00003056 min al9 0000305a max alQ 0000305e while 1 0000306c _sort void sort long a Figure 3 24 Source Window Step Execution 46 RENESAS 3 10 1 Executing Step In Command The Step In command steps into the called function and stops at the first line of the called function e To step into the sort function select Step In from the Run menu or click the Step In button in the toolbar Figure 3 25 Step In Button W tutorial c nann Address 34 0000303e 39 00003042 40 00003046 4 0000304a 42 0000304e 43 00003056 44 O000305a 45 0000305e 53 00003070 54 00003074 55 00003078 56 00003080 57 0000308c 58 00003098 59 O00030b0 60 O00030ba Gl 000030ce BP 00003036 Break long t int is ij ki gap gap 5 let ga for ap gt 0 k 0 k lt gap kt for i ktgap i for j i gap if alj alj alje 4 Figure 3 26 Source Window Step In The highlighted line moves to the first
61. ile Edit View un Memory Setup Window Help o saom i gt 2e RENTET S MR aec OAT Wee sie 08 2 MA tH Address BP 300a 3012 3016 30la 3036 Break 303e 3042 Da 3 D 000722 0x003fffc8 OO0aad 0x003fffcc OOle23 0x003fffd0 002c7a 0x003fffd4 00384d 0x003fffd8 0038e8 0x003fffde 00612e 0x003fffe0 00618c 0x003fffe4 006abd 0x003fffe8 0075a4 0x003fffec 0075a4 0x003fffc0 v mmmn x 0o 00 u o oN a ao o e o _sort void sort long a nma BR F1 SR gt Pee long t int i j k gap Ou k lt gap kt A Break STOP ADDRESS Figure 3 29 Source Window Step Out gt Step In The value of variable max displayed in the Watch window is changed to the maximum data value 49 RENESAS 3 10 3 Executing Step Over Command e Step Over command executes a line that calls a function as a single step e Before executing the Step Over command execute two steps up to a line that calls the change function by using the Step In command twice chi Debugging Interfac 8000 SH7060 Emulator Eile Edit View un Memory Setup Window Help aasal tose nase be eos IF ue xO03fffc8 long 10 000722 0x003fffc8 OOOaad OxO003fffee OOle23 Ox003fffd0 002c7a Ox003fffd4 00384d 0x003fffd8 1 w 0038e8 0x003fffdc 00612e 0
62. ing software breaks Up to seven pass breakpoint addresses and one reset point address can be set When all the breakpoint addresses that have been set are passed in sequence the program is stopped Break Condition UBC1 2 3 4 Sequential break functions by combining hardware break conditions i e Break Condition UBC1 2 3 and 4 The following combinations of conditions can be selected e Program execution is halted when conditions are satisfied in the order of UBC2 and UBC1 Sequential break mode UBC 2 gt 1 e Program execution is halted when conditions are satisfied in the order of UBC3 UBC2 and UBC1 Sequential break mode UBC 3 gt 2 gt 1 e Program execution is halted when conditions are satisfied in the order of UBC4 UBC3 UBC2 and UBC1 Sequential break mode UBC 4 gt 3 gt 2 gt 1 One reset point address can be set for each combination above After passing the reset point addresses these functions make sequential break conditions already passed so far invalid and resume checking break conditions from the first one 62 RENESAS An example is given below in which Sequential break mode UBC2 gt 1 is set as the sequential break function Before executing the program change the Configuration dialog box When not changing it the sequential break does not function e Select Configure Platform from the Setup menu The Configuration dialog box will appear e Select Sequential break
63. itions having been set up from among the trace results displayed in the Trace window 102 RENESAS Table 4 1 List of Windows and Dialog Boxes cont Name of Window and Category Dialog box Memory map Memory Mapping window Description Displays and edits the information about the emulation memory allocation Related E8000 commands MAP Edit Memory Mapping dialog box Add Memory Mapping dialog box Sets and modifies the information about the emulation memory allocation MAP Performance Performance Analysis condition window Displays the program execution state PERFORMANCE_ANALYSIS 1 8 Performance Analysis dialog box Sets eight performance conditions PERFORMANCE_ANALYSIS 1 8 Input Function Range dialog box Sets the address range of the function RENESAS None 103 4 2 Command Descriptions The SH7060 E8000 HDI specific commands are shown in table 4 2 For more information see the online help To see the on line help select Index in the Help menu or execute the HELP command from the Command Line window Example To open the on line help related to the BREAKPOINT command help BREAKPOINT RET 104 RENESAS Table 4 2 HDI Commands Related E8000 No Command Abb Function Commands 1 BREAKCONDITION_ BCC Clears hardware breakpoints BREAK_CONDITION__ CLEAR break conditions that have A B C been set 2 BREAKCON
64. lator from Driver Table 3 4 shows the types of connections and drivers Table 2 2 Types of Connection and Drivers Connection Contents of File When connecting the emulator to a PC interface Emulator ISA Driver board When connecting the emulator to a LAN adapter E8000 LAN Driver When connecting the emulator to a PCI Emulator PCI Card Driver interface board When connecting the emulator to a PC interface Emulator PC Card Driver card When Link up is displayed on the status bar the initiation of the ESI has been completed Select the Auto Install radio button in the Select Install dialog box The Browse for Folder dialog box will be displayed so select the directory where the system program is stored The default directory will be a directory under SYSTEM in the HDI installation directory RENESAS Browse for Folder Select Directory TS My Computer Hai 3 Floppy 4 E3 Win98us C a Hew Hdi5 E8000 na Da E a Tutorial hopci3 HEA My Documents E Program Files feed Rlecucled Figure 2 2 Browse for Folder Dialog Box When OK is clicked the E8000 Load Files dialog box will be displayed Check the file names for installation 15 RENESAS E8000 Load Files x Directory C AHEWAHdiSSE 80004 Poo SYSTEM SYSTEM FILE E8000 ys m CONFIGURATION FILE Shentboox sys FIRMWARE FILE Shdctocx sys r i pac
65. lays the following message box when the emulator cannot be detected E8000 Platform Driver Error Emulator is switched off or not connected Unable to set default configuration for Emulator ISA Driver Figure 2 12 Emulator Connection Error Message Box The following causes are possible e The AC power supply cable is not connected to the emulator or the emulator is not switched on e The PC interface cable is not correctly connected between the PC interface board and the emulator 22 RENESAS 2 6 Uninstallation 2 6 1 Uninstalling Software This section describes the procedure for uninstalling software Be sure to terminate all executing applications before uninstalling software Select Settings Control Panel from the Start menu Double click the Add Remove Programs icon Select SH7060 E8000S Emulator Software from the list of applications installed on the tabbed page Install Uninstall and click the Add Remove button Uninstall according to the directions on the screen The setup program is executed again to allow the modification correction or removal of the installed applications Select removal to uninstall applications Note Shared files may be detected during uninstallation Do not remove shared files if they might be used by other HDIs When Windows NT 4 0 is used you might be asked whether you want to remove information registered in the driver s registry Do not remove information registered
66. mbo box as Word Open Memory Window x Address main Format Word 7 Figure 3 17 Open Memory Window Dialog Box e Click the OK button 40 RENESAS The Word Memory window showing the specified area of memory is displayed Figure 3 18 Word Memory Window RENESAS 41 3 9 Watching Variables As the user steps through a program it is possible to watch the values of variables used in the program For example to check the contents of the long type array a declared at the beginning of the program use the following procedure e Click the left of array a displayed in the Source window to position the cursor e Click the Source window with the right mouse button and select Instant Watch from a pop up menu The following dialog box is displayed Add Watch Figure 3 19 Instant Watch Dialog Box e Click the Add Watch button to add a variable to the Watch window 42 RENESAS Watch Window io O x Value 0x003fffc8 long 10 Figure 3 20 Watch Window Displaying the Array The user can also add a variable to the Watch window by specifying its name e Click the Watch window with the right mouse button and select Add Watch from the pop up menu The following dialog box is displayed Add Watch x Varable o evpression zom Figure 3 21 Add Watch Dialog Box e Input variable max an
67. neeee 20 Status Bar during the HDI Initiation eee ee ceseceecese cess ceecaeeeaeseaeeeeeeeeeees 20 Status Bar at the HDI Initiation Completion eee eee eeceseceseceseenseeneeeaee 21 PC Interface Board Connection Error Message BOX cceseeseessecseeeseeeeeeeeeeneees 21 Emulator Connection Error Message BoX cceceeccesceseceecsseceeeceeeseeeseeeeeeeeees 22 Start Mnu ae e a siti eect Aah Sh ae Aneta a es 26 Select Session Dialog BOX ccs sccnsseessccsnvsenscbensssevscesnnesssncosevbenseoesbensseseonseesse 26 HD B80 6 pee oe oe ee ee 27 Configuration Dialog Box oc e cee eeeeeeeeeeeeeeeseeseceseceseceaeceaecsaecneecaeseneeeaeeeneees 28 Memory Mapping Dialog Box Before Setting eee cee cee cseecreeereeeeeeeeeees 30 Add Memory Mapping Dialog BOX eee cee cseereeeeeeeeeeeseesecesecaecsaesnaesaeeees 31 Memory Mapping Dialog Box at Setting 0 eee eeeeeeeeseceecesecseceeeneeens 32 Load Program Dialog BOX eee cesceseceeceseceeeseeeeeeeeeeeeeseeeseesecaecsaessaesaeeees 33 HDI Dialog Boxe ieetiejeotiy Siok Sean ee or hn ek eS Gels e Seek Gh eee 34 Open Dialog Box iron e aa Seed E ces echoed Seow ee Shee gentoo 35 Source Window Displaying the Source Program tee eeseeeeeeeeeeeeeeeees 36 Source Window Setting a Software Breakpoint eeceeseceeseceeeeeeeeeceteeeeneees 37 Reset Go Button 20 Ssccssclebtetsteceest ast eee dt E ets 37 Source Window Break State cccccccesse
68. nostic program figure 5 2 when Diagnostic Test Program has been selected in the component selection dialog box when the HDI was installed Click the Yes button to initiate the diagnostic program For details refer to section 5 Operating Procedure for the Diagnostic Program Link up appears on the status bar when the HDI and the emulator have successfully started up 20 RENESAS Figure 2 10 Status Bar at the HDI Initiation Completion When HDI is started for the first time after installation the following message box will be displayed The same message box is not displayed again 2 5 Troubleshooting 2 5 1 Connection Error of the PC Interface Board The HDI displays the following message box when the PC interface board for connecting to the emulator cannot be detected E8000 Platform y Driver Error Cannot locate ISA interface card Unable to restore previous configuration for Emulator ISA Driver Will attempt to set default values instead Figure 2 11 PC Interface Board Connection Error Message Box The following causes are possible e The memory area reserved in one or more of the following settings differs from the setting of the rear panel switch of the PC interface board Computer Properties dialog box CONFIG SYS file SYSTEM INI file e The selected memory area has already been used for another application 21 RENESAS 2 5 2 Connection Error of the Emulator The HDI disp
69. ntally use the area of memory required by the PC interface hardware RENESAS CAUTION Be careful not to allocate the PC interface board to a memory area to which other boards have been allocated If you fail to take care of this point correct operation cannot be guaranteed When the PC interface board is shipped the switch settings are for allocation to the address range from H D0000 to H D3FFF For details on installing the PC interface board refer to the SH7060 E8000 Emulator User s Manual and the Description Notes on Using the PC Interface Board HS6000EIIO1H Setting Up the PC Interface Board on Windows 95 or Windows 98 Description of setting up a PC interface board HS6000EII01H is given below taking settings under Windows 95 as an example e Start Windows 95 e Click the My Computer icon with the right mouse button and select Properties from the pop up menu The System Properties dialog box will be displayed e Double click the Computer icon in the Device Manager panel to open the Computer Properties dialog box e Click the Memory in the View Resources panel to display the memory resources Select one of the address ranges that is not listed in the Computer Properties dialog box For example if you select the range H D8000 to H DBFFF the corresponding switch number will be 6 Define the memory area so that Windows 95 does not use the area as follows e Click
70. 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
71. 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
72. onductor products IMPORTANT INFORMATION 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 CAUTION indicates a hazardous situation which if not avoided may result in minor or moderate injury to you or other people or may result in damage to the machine or loss of the user program It may also be used to alert against unsafe usage NOTE emphasizes essential information RENESAS Preface The SH7060 E8000 Hitachi Debugging Interface referred to as the HDI is a software tool that supports program development in an environment using an E8000 emulator for the Hitachi microprocessor SH7060 referred to as the emulator This manual is the Debugging Platform User s Manual which is a separate volume to the Hitachi Debugging Interface User s Manual and describes the HDI functions and its usage Read this manual and the following manuals before using the HDI For details on the emulator e SH7060 E8000 Emulator User s Manual e Description Notes on Using the PC Interface Board HS6000EI01H e Description Notes on Using the PC Card Interface HS6000EIPO1H for the E6000 E8000 Emulator e Description Notes on Using the PCI Interface Board HS6000EICO1H for the E6000 E8000 Emulator e Description Notes on Using the PCI Interfa
73. or transportation vehicular medical aerospace nuclear or undersea repeater use The prior written approval of Renesas Technology Corporation 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 Corporation for further details on these materials or the products contained therein tENESAS C 7 D mh on lt D D SH7060 E8000 Renesas Debugging Interface User s Manual Renesas Electronics Rev 2 0 2001 10 www renesas com Cautions 1 Hitachi neither warrants nor grants licenses of any rights of Hitachi s or any third party s patent copyright trademark or other intellectual property rights for information contained in this document Hitachi bears no responsibility for problems that may arise with third party s rights including intellectual property rights in connection with use of the information contained in this document 2 Products and product specifications may be subject to change without notice Confirm that you have received the latest product standards or specifications b
74. ouble click the BP column on the line containing the sort function call The word e Break will be displayed on the line containing the sort function to show that a software breakpoint is set at that address 36 RENESAS iff tutorial c ioj x Eine WAddeess BP Mabe POBURBO ER B long all0 min max long j int i 00003002 for i 0 i lt 10 i Jf 0000300a j rand 00003012 ifGi lt 0 i 00003016 J j 0000301a ali j 00003036 Break sort a 0000303e min alQ 00003042 max al9 00003046 min 0 O000304a max 0 0000304e change a 00003056 min al9 0000305a wax alO 0000305e while 1 0000306c _sort gola sort long a ay Figure 3 12 Source Window Setting a Software Breakpoint 3 6 Executing the Program e To execute the program select Reset Go from the Run menu or click the Reset Go button on the toolbar Figure 3 13 Reset Go Button The program will be executed up to the breakpoint that has been set and will then stop The line where the program has halted will be highlighted in the Source window 37 RENESAS Hf tutorial c Address 00003002 0000300a 00003012 00003016 0000301a 0000303e 00003042 00003046 0000304a 000030 4e 00003056 0000305a 0000305e 0000306c BP 00003000 Label Source main void main void long all0 min max long j int i s 8 o a x o o 3 nng nunn D
75. quired In the HDI trace acquisition conditions can be set by using dialog boxes The dialog boxes for setting trace acquisition conditions and the corresponding trace functions are described below Table 3 10 Dialog Boxes for Setting Trace Acquisition Conditions Function Subroutine Range Trace Subroutine Dialog Box Trace Trace Stop Range Trace Trace Condition A dialog box X O O X Trace Condition B dialog box O O O O Trace Condition C dialog box O O O X Note O Can be set in the dialog box X Cannot be set in the dialog box 78 RENESAS Table 3 11 Main Trace Functions Trace Functions Free trace Description Acquires trace information continuously from the start of execution of the user program until the program breaks If Trace Condition A B C is not set this mode is entered Subroutine trace Performs trace acquisition of instructions or operand accesses between the start address and the end address of the subroutine specified by Trace Condition B C If the specified subroutine calls other subroutines trace acquisition is not performed for the called subroutines Range trace Performs trace acquisition only for places where the conditions specified by Trace Condition A B C are satisfied Specifiable conditions are Address bus condition Data bus condition Read write condition Bus state condition execution cycle System control signal BREQ External probe condition Trace stop
76. r are turned on Select SH7060 E8000 Emulator Software Hitachi Debugging Interface from the Start menu S Accessories StartUp Favorites HS MS DOS Prompt QJ Windows Explorer AN Documents k Emulator Figure 2 6 Start Menu Initiating the HDI The Select Session dialog box will be displayed Select the target emulator name in the combo box then click the OK button Select Session E8000 SHxxxx Emulator z Exit Previous session file aoa Figure 2 7 Select Session Dialog Box 19 RENESAS When the HDI is started up for the first time a Driver Details dialog box will be displayed Use Driver to select the correct driver for the connected interface PC interface board PCI interface board PC interface card or LAN adapter and click the Close button Refer to table 2 2 Types of Connections and Drivers The example below is when the emulator is to be connected to the PC interface via the ISA bus Emulator ISA Driver i Interface ISA X Channel ao00 d3tf Configuration Configure Figure 2 8 Driver Details Dialog Box When ISA Bus Is Selected During the HDI initiation the following messages are shown on the status bar of the HDI window Driver Link up Check Start C NM Z ee Hardware Register Read Write amp System ID Check Start NUM a Figure 2 9 Status Bar during the HDI Initiation A message box will be displayed to ask whether to initiate the diag
77. r Sequential Break Condition Setting 69 Figure 3 47 Source Window at Execution Halt Sequential Break e eeeseeeseeceeeeeeneeee 70 Figure 3 48 Contents of System Status Window Sequential Break 0 eeseeeeseceeneeenteeee 71 Figure 3 49 Trace Window Free Trace Results cceeececssecesececsseceeneeceaeceeneecsaeeeeeeecnaeeesees 72 Figure 3 50 General Page Trace Filter Dialog BOX eeseeseceeseeceeeceeneeceeeeeeeecenreeeneeees 74 Figure 3 51 Address Page Trace Filter Dialog BOX 0 0 eee eeeceeeseeceeeeeeeeeceereeeneeceneeeeneeees 75 Figure 3 52 Bus amp Area Page Trace Filter Dialog BOX sseesseessesssesssesssessserssressressrsseesees 76 Figure 3 53 Trace Window Trace Filter Results ceecesscecsseceenceceseeeeeeeceaeeeeneecseeeseaeecses 71 Figure 3 54 Trace Acquisition Dialog BOX eseessesssesesseessseeersstsrrssrsresrrsrenrssrerrnseerrnrerrenreset 80 Figure 3 55 Condition A Page Trace Acquisition Dialog BOX cee eeeeeeeeeeeneeeeereeeeeeee 81 Figure 3 56 General Page Trace Condition A1 Dialog BOX 0 eee eeeeeseeceseeeneeeeereeeneeees 82 Figure 3 57 Address Page Trace Condition A1 Dialog BOX cee eesceereeeneeceeneeeneeeeeee 83 Figure 3 58 Bus State Page Trace Condition A1 Dialog BOX eee eeseeeseeeeneeceereeeneeeee 84 Figure 3 59 Condition A Page Trace Acquisition Dialog BOX e ec eeseeeeeeeeneceereeeneeeee 85 Figure 3 6
78. ram at the source level e Select Source from the View menu The Open dialog box is displayed 34 RENESAS Open 24x Stor A ee fem Figure 3 10 Open Dialog Box e Select the file tutorial c and click the Open button The Source window is displayed RENESAS 35 iff tutorial c iof x Address BP Label Source 00003000 main gold main void long all0 min max long j int i 00003002 for i 0 i lt 10 i 0000300a j rand Q 00003012 if j lt D 00003016 j j 0000301a p a0 j 00003036 sort a 0000303e min al0 00003042 max al9 00003046 min 0 0000304a max QO 000030 4e change a 00003056 min al9 0000305a max a 0 0000305e i while 1 0000306c _sort ote sort long a E r Figure 3 11 Source Window Displaying the Source Program e If necessary select the Font option from the Customize submenu on the Setup menu to select an easy to see font type and size Initially the Source window shows the beginning of the main program but the user can use the scroll bar to scroll through the window to see other statements in the program 3 5 Setting the Software Breakpoints A breakpoint is one of the debugging functions The Source window provides a very simple way of setting breakpoints For example to set a breakpoint at the sort function call e D
79. ration 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 1 placement of substitutive auxiliary circuits ii use of nonflammable material or iii prevention against any malfunction or mishap Notes regarding these materials 1 These materials are intended as a reference to assist our customers in the selection of the Renesas Technology Corporation product best suited to the customer s application they do not convey any license under any intellectual property rights or any other rights belonging to Renesas Technology Corporation or a third party Renesas Technology Corporation 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 Corporation without notice due to product improvements or other reasons Itis therefore recommend
80. re 3 45 Break Dialog Box After Break Condition UBC2 Condition Setting This completes the setting of break condition 2 Next Set break condition as follows e Highlight the first point in the Condition list box e Click the Edit button The Break Condition UBC1 dialog box is displayed Break condition 1 can be set in the same way as for break condition 2 e After setting break conditions 1 and 2 click the Close button 68 RENESAS Break Condition UBC1 and Break Condition UBC2 are displayed in Type in the Breakpoints window Breakpoints Ke el ES ile e Type tutorial c 43 00003056 Break Condition UBCI tutorial c 40 00003046 Break Condition UBC2 E Figure 3 46 Breakpoints Window After Sequential Break Condition Setting e Click the Reset Go button The program is executed until the conditions of Break Condition UBC1 are satisfied and then halts RENESAS 69 The following Source window is then displayed inei tutorial c Line Address 30 00003002 31 0000300a 32 00003012 33 00003016 35 0000301a 37 00003036 38 0000303e 39 00003042 40 00003046 41 0000304a 42 000030 4e 44 0000305a 45 0000305e 48 0000306c BP 24 00003000 abe Source main void main void long all0 min max long j int i _sort void sort long a L OLX Figure 3 47 Source Window at Execution Halt Sequential Break 70 RENESAS The u
81. s last time Select Save Session As from the File menu to save a session file The Save Session As dialog box is displayed Input a session file name and click the Save button Select Load Session from the File menu to load a session file Automatic saving and loading of a session file can be set in the HDI Options dialog box select Options in the Setup menu Select the Save session automatically radio button on the Session page to specify the automatic saving of a session file The file to save at the end of HDI sessions is displayed in the dialog box When a file name is specified session information is automatically saved in this file after each HDI session is ended Make the Load last session on startup check box on the Session page valid for automatic loading of session files Session information is loaded automatically from the specified file when the HDI session is ended Refer to the Hitachi Debugging Interface User s Manual issued separately for a detailed description of session settings and of the way to set them 99 RENESAS 3 18 What Next This tutorial has described the major features of the E8000 emulator and the use of the HDI Advanced debugging can be performed by combining the powerful emulation function of the E8000 emulator with the HDI This provides for an effective investigation of hardware and software problems by accurately isolating the conditions under which such probl
82. s shesacnacesngecsquadtumeteconaeaeadaane 113 Gul Error Message Sson renee seape sey chess detey es stcesbessees sess ceeschsvetesey supe eebeahevadeal pave dheogsesde cep seot 113 iv RENESAS Figures Figure 2 1 Figure 2 2 Figure 2 3 Figure 2 4 Figure 2 5 Figure 2 6 Figure 2 7 Figure 2 8 Figure 2 9 Figure 2 10 Figure 2 11 Figure 2 12 Figure 3 1 Figure 3 2 Figure 3 3 Figure 3 4 Figure 3 5 Figure 3 6 Figure 3 7 Figure 3 8 Figure 3 9 Figure 3 10 Figure 3 11 Figure 3 12 Figure 3 13 Figure 3 14 Figure 3 15 Figure 3 16 Figure 3 17 Figure 3 18 Figure 3 19 Figure 3 20 Figure 3 21 Figure 3 22 Figure 3 23 Figure 3 24 Figure 3 25 Figure 3 26 Figure 3 27 Figure 3 28 Figure 3 29 Start Menu System Install Tool ceeeesseceereeesseceseeeeseeceeeeeeneecereeeeeceeeeeeneeeees 14 Browse for Folder Dialog BOX eee ceececssecesceceseceeeeeceaeceeeeeceaeceeneecaeeeeneecaeeeses 15 E8000 Load Files Dialog Box SH7060 ce eesecesececsseceeneeceseceeneeceaeeeeneecaeeeees 16 System Install Completed Dialog Box SH7060 0 0 0 eescceeeeceeeneeeeseceeneeeeneeees 17 E8000 Load Files Dialog Box SH7060 cece eessseeseecsseceeeeeceaeceeeeecnaeeeeeeecnaeeeeee 18 Start Menu Initiating the HDI ce eee eseceeeceeneeceseeeeneeceeeeeneeceeeeeeneeceteeseneeees 19 Sel ct S ssi0n Dialos BOX nieren rerna a a ie e i 19 Driver Details Dialog Box When ISA Bus Is Selected 0 0 0 eee eeeeeeeseeceereee
83. scccsessececseececeesnececseaaeeeceeeeeeessneeeeneaaees 38 System Status Window iaoeo E aE EAEE E EEEE 39 Breakpoints WindOw creere eitean aea e re E TEE E EEE ETA E a as 39 Open Memory Window Dialog BOX sssessesseseeeseresesreerssresresrerreresrenrrsrenrssreerssee 40 Word Memory Window c cccesccesscecsseceeneecsseceeceecaeceeceecaeceseeecaeeeeaeecsaeeeeaeers 41 Instant Watch Dialog Boxy iasisiccisecose ti anna a aR 42 Watch Window Displaying the Array 0 0 eee eee csecseeeeseeeeeeeeeeeeeenseenseenaes 43 LAdd Watch Dialog Boxe scssss cdevseuessecitucs devccnsisiececasacechouvevevncuseveuneesdeedendgeeedgesvactas 43 Watch Window Displaying the Variable eccesesesseeceeeceeeeceseeeeeeecseeeeneees 44 Watch Window Displaying Array Elements c eesceeeceeseceereeeneeceteeeeneeees 44 Source Window Step Execution ceceessceeceessseceereecsaeceeeeeeaeceeeeeeeeceeeeeeneeens 46 Step In Button acct sites cies wisentenite Riel odes tae hthalat AE Ee 47 Source Window Step IN ea aara Ea sa Eer EAE EEE AAEE 47 Step Qut Buttona en E E E E TE R tea ees 48 Source Window Step Out s seserssesriserserisesiiosreesressesereiisiesireerisrrocersstseress ses 48 Source Window Step Out gt Step In sesesseseseseesesesesesrseresesrserssrrssrrssresseseresees 49 RENESAS Figure 3 30 Source Window Before Step Over Execution cesccescecseeceeeeecseeceeneeenaeeeeee 50 Figure
84. ser can see the cause of the last break in the System Status window The contents of the System Status window are as follows System Status Item Status Connected To E8000 SH 060 Emulator CPU SH7060 Node NCU Mode 2 CSO Area 32 bit bus Clock Mode Clock Mode 1 Clock source Emulator Clock 15MHz Run status Break Cause of last break BREAK CONDITION SB Figure 3 48 Contents of System Status Window Sequential Break RENESAS 71 3 14 Displaying and Searching for Trace Information 3 14 1 Displaying Trace Information Trace information can be displayed in the Trace window e Select Trace from the View menu The Trace window will be displayed e If necessary adjust the column width by dragging the column divider beside the label immediately below the title bar Cycle PC Code AB DB 000008 00003180 WO L R15 R2 OO3SfFFEE OO00000a 000007 00003182 CWP GE R3 R2 00003188 000b0009 000006 OO3sfffs8s 000000Da 00003184 BF H 3160 8 000005 00003186 ADD H 30 R15 0000318c 601b00c1 00003188 RTS 000004 00003056 000952fd 000003 0000318a NOP 00003058 1f2353f4 000002 00003056 MOY L H 34 4 R15 R2 0000305c 1f32a000 000001 003fffec 00000722 000000 ex EB00O aaa aa Figure 3 49 Trace Window Free Trace Results 72 RENESAS 3 14 2 Searching for Trace Information By setting specific search conditions it is possible to display only the trace information that
85. tails on the usage of the LAN Adapter Configuration refer to the online help of the LAN Adapter Configuration 2 2 3 Setting Up the PC Interface Board on Windows 2000 Support of the PC Interface Board The PC interface board is not supported in Windows 2000 When Using the PCI Interface Board Log on as Administrator Install the provided software Select PCI Card Driver as the component Exit from the operating system shut down the host computer and turn off the power switch Install the PCI bus interface board into the host computer Turn on the host computer Hardware will be acknowledged and driver installation will start automatically Select Search for a suitable driver for my device recommended for driver installation and select Specify a location for the location Specify lt Drive gt 7060 DRIVERS PCI 2000 for the location lt Drive gt is the CD ROM drive Check that E6000 PCI Card has been detected and complete driver installation When Using the PC Interface Card Log on as Administrator Install the provided software Select PC Card Driver PCMCIA as the component Install the PC interface card into the host computer Hardware will be acknowledged and driver installation will start automatically RENESAS e Select Search for a suitable driver for my device recommended for driver installation and select Specify a location for the location e Specify lt Drive gt 7060 DRIVERS PCMCI
86. terface PDF documents in ty user s manual Japanese Manuals Japanese HS7060EDD81HJ pdf SH7060 E8000 emulator user s PDF documents in Ba manual Japanese Manuals Japanese HS7060D8IW2SJ pdf SH7060 E8000 Hitachi PDF documents in ie Debugging Interface User s Japanese Manual Manuals Japanese HS7060TM81HJ Descriptive notes on the PDF documents in pdf 7 diagnostic program for the Japanese SH7060 E8000 emulator Manuals Japanese HS7060EBK81 Hu Descriptive notes on the PDF documents in Bal pdf 4 evaluation chip board Japanese HS7060EBK81H for the SH7060 E8000 emulator Manuals English HS7060EBK81HE pdf 4 SH7060 E8000 emulator user s manual PDF documents in English Manuals English HS7060D8IW2SJ pdf 2 SH7060 E8000 Hitachi Debugging Interface user s manual PDF documents in English Manuals English HS7060D8IW2SE pdf 4 SH7060 E8000 Hitachi Debugging Interface User s Manual PDF documents in English Manuals English HS7060EBK81HE Descriptive notes on the PDF documents in l pdf 4 evaluation chip board English HS7060EBK81H for the SH7060 E8000 emulator Manuals English HS7060TM81HE Descriptive notes on the PDF documents in pdf diagnostic program for the English SH7060 E8000 emulator Pdf_read Japanese Ar40jpn exe Acrobat Reader 4 0 installer Japanese version Pdf_read English Notes 1
87. tly for each of the Break Condition A B C hardware break conditions In the example one point is set for the Break Condition A hardware break conditions e Highlight the first point in the Condition list box e Click the Edit button 56 RENESAS The Break Condition A1 dialog box is displayed e Clear the Don t Care check box in the Address page e Select the Address radio button and input address H 3058 as the value in the Start edit box Break Condition A1 xi Address Data Bus State Probe Interrupt m Address Don t Care f Address C Range Start H3058 End HO Non user mask C User mask Figure 3 36 Address Page Break Condition A1 Dialog Box e Select Bus State to display the Bus State page RENESAS 57 e Select the Read radio button Break Condition Al Figure 3 37 Bus State Page Break Condition A1 Dialog Box e Click the OK button 58 RENESAS The Break dialog box is displayed and the first point display in the Condition list box changes from Empty to Enable Figure 3 38 Break Dialog Box After Hardware Break Condition Setting e Click the Close button RENESAS 59 The newly set hardware breakpoint is displayed in the Breakpoints window With this setting Break Condition A1 is displayed in Type in the Breakpoints window This completes the setting
88. ts of menu commands 3 Status bar Indicates the state of the emulator and progress information about downloading 4 Help button Activates the HDI on line help RENESAS 3 3 Setting up the Emulator The following CPU conditions must be set up before downloading the program e Device type e CPU operating mode e Clock mode e Operating clock e Execution operating mode e Memory map The following describes how to set up the tutorial program in the emulator 3 3 1 Setting the Configuration Dialog Box e Select Configure Platform from the Setup menu to set configuration The following dialog box is displayed Configuration General Execution Model Execution Mode2 CPU m Mode Mode mcu Mode 2 CSO Area 32 bit bus x Glock Mode Clock Mode 1 x Clock Emulator Clock 45MH2 Emulation mode Normal zl I Prohibit RAN on the fly Driver Emulator PCI Card Driver Ghange Cancel Epp Help Figure 3 4 Configuration Dialog Box 28 RENESAS Table 3 2 shows the options in the Configuration dialog box and the values to be set in the tutorial program Table 3 2 Values to be Set in the Configuration Dialog Box Page General page Option CPU operating mode Mode Value MCU Mode 2 CS0 Area 32 bit bus Clock mode Clock Mode Clock Mode 1 Emulation clock Clock Emulator Clock 15 MHz depends on the connection method being used
89. unt is incremented every time the subroutine end address is fetched The execution time of subroutines called from the specified subroutine is included in the measurement results For Performance Analysis 1 only a timeout value and a limit count value can be specified in addition to the address condition Subroutine time measurement mode 3 Starts measurement when an address in the start address range is prefetched and halts when an address in the end address range is prefetched according to the setting of Performance Analysis 1 3 5 7 The subroutine execution count is incremented every time lt end address range gt is passed Access area count measurement mode Counts the number of times the subroutine defined by lt start address gt and lt end address gt accesses the range specified by lt accessed area address range gt according to the setting of Performance Analysis 1 3 5 7 The subroutine execution time is measured using subroutine execution time measurement mode 1 Subroutine call count measurement mode 88 Counts the number of times the subroutine defined by lt subroutine name gt lt start address gt and lt end address gt calls the subroutine specified by lt called subroutine address range gt according to the setting of Performance Analysis 1 3 5 7 The subroutine execution time is measured using subroutine execution time measurement mode 1 RENESAS An example is described where subroutine time meas
90. uration CPU mode option A mode in which the emulator is not supported has been selected in CPU mode in the Configuration window Can not set target configuration Execution mode option A mode in which the emulator is not supported has been selected in Execution mode in the Configuration window Cannot use command when user program executing Command line input has been performed when a command cannot be issued to the emulator Wait for processing to finish Command timeout The HDI has timed out because no response has been received from the emulator after the HDI issued a command Terminate the HDI power on the emulator and restart the HDI Emulator command send receive check error Communication with the emulator was not performed correctly on HDI activation Terminate the HDI power on the emulator and restart the HDI If the illegal communication is not corrected inform a Hitachi sales representative or agency of the situation Emulator firmware not ready EMULATOR FIRMWARE NOT READY is output from the emulator Terminate the HDI and check whether the emulator is functioning normally Emulator timeout A timeout message has been detected from the emulator Terminate the HDI and check whether the emulator is functioning normally Failed to find matching trace record The HDI has failed to find trace information because there was no matching trace information to be displayed
91. urement mode 1 is set to Performance Analysis 1 and Performance Analysis 2 Set the conditions as follows to compare the execution time and execution count between the sort function and the change function in the main function Performance Analysis 1 Measures the execution time and execution count for the sort function Performance Analysis 2 Measures the execution time and execution count for the change function Before executing the program cancel the conditions that have been set for the sequential break function according to the following steps e Change the setting of the Emulation mode combo box in the Configuration dialog box to Normal Refer to section 4 1 Setting the Configuration Dialog Box e Select the Breakpoints from the View menu The Breakpoints window then appears e Click the mouse right button in the Breakpoints window The popup menu is displayed e Cancel all the breakpoints that have been set by selecting Delete All Breakpoints File Line Figure 3 60 Breakpoints Window with Break Conditions Canceled 89 RENESAS 3 16 1 Displaying the Measurement Results of Subroutine Execution Time and Execution Count The Performance Analysis window displays the measurement results of the subroutine execution time and execution count To display the measurement results set conditions for the subroutine execution time and execution count using the corresponding dialog box and e
92. x003fffe0 00618c 0x003fffe4 OOGabd 0x003fffe8 0075a4 OxO03fffec 000000 0x003fffc0 Break a EE E x OOAMNpowr o _sort void sort long a long t int i j k gap gap 5 while gap gt 0 oe Figure 3 30 Source Window Before Step Over Execution 50 RENESAS e To perform step execution for the statements in the change function at one time select Step Over from the Run menu or click the Step Over button in the toolbar E Figure 3 31 Step Over Button e Execute a line that calls the change function as a single step and stop execution at the next line BE Hitachi Debugging drterface tutorial E8000 SH7060 Emulator Eik Eile Edit View Run Memory Setup Window Help e cacal nesa ENRETE SR SBS OADTew wee e 08 2 TE 75a4 0x003fffc8 OO6abd 0x003fffce 00618c 0x003fffd0 00612e OxO03fffd4 0038e8 0x003fffd8 00384d 0x003fffde Break 002c7a 0x003fffe0 i OOle23 OxO003fffe4 OOOaad 0x003fffe8 000722 0x003fffec 000000 0x003fffc0 _sort void sort long a aa long t int i j k gap gap 5 while gap gt 0 Break STOP ADDRESS NUM Z Figure 3 32 Source Window Step Over When the last line of the change function is executed the data of array a which is displayed in the Watch
93. xecute a program using the Reset Go command e Select the Performance Analysis Window from the View menu The Performance Analysis window then appears Performance Analysis Address of x Not Used Display type Subroutine address list no information Figure 3 61 Performance Analysis Window Initial State 90 RENESAS 3 16 2 Setting the Conditions of Subroutine Execution Time and Execution Count The conditions of subroutine execution time and execution count can be set using the dialog box selected from the pop up menu in the Performance Analysis window e Click the Performance Analysis window with the right button of the mouse and select Edit from the pop up menu The Performance Analysis dialog box appears Performance Analysis x Pa Condition Figure 3 62 PA Page Performance Analysis Dialog Box e Highlight the first point of the Condition list box by clicking e Click the Edit button 91 RENESAS The Performance 1 dialog box is then displayed Performancel Ed General Address Time Out Count Subroutine time measurement mode 1 C Subroutine time measurement mode 2 Subroutine time measurement mode 3 C Access area count measurement mode Subroutine call count measurement mode Name sort Timeout break of Performance analysis Figure 3 63 General Page Performance 1 Dialog Box e Select the Su

Download Pdf Manuals

image

Related Search

Related Contents

C50 - Citizen  Samsung 226CW Lietotāja rokasgrāmata  Owner`s Manual - Encon Electronics  SIB Germany - Bedienungsanleitung Muster A4 neu  Manuel d`utilisation pour la presse transfert manuelle à casquette  Operating instructions  Electrolux EMMN121D2SMM User's Manual  FE-KXH05, FE-KXH07取扱説明書  Philips LR14P12FV/10 non-rechargeable battery  Philips Adapter CRP765  

Copyright © All rights reserved.
Failed to retrieve file