Home
Hitachi Microcomputer Development Environment System SH Series
Contents
1. H 007FFFFF H 00800000 H 008FFFFF H 00900000 H OO9FFFFF H 00A00000 H1OOAFFFFF H 00B00000 HOOBFFFFF __ H OODFFFFF H 00E00000 t HOOFFFFFF H 01000000 H 013FFFFF H 01400000 H 017FFFFF H 01800000 H 01BFFFFF H 01C00000 H O1FFFFFF H 00000000 H 0001 FFFF H 00020000 H 0003FFFF H 00040000 H 0005FFFF H 00060000 H 0007FFFF H 00080000 H 0009FFFF H 000A0000 H OOOBEFFF H 000C0000 H 000DFFFF H 000E0000 H 000FFFFF H 00100000 H 0011 FFFF H 00120000 H 0013FFFF H 00140000 H 001 5FFFF H 00160000 H 0017FFFF H 00180000 H 0019FFFF H 001A0000 H 001BFFFF H 001C0000 H 001DFFFF H 001E0000 H 001FFFFE SBO 128kB SB1 128kB SB2 128kB SB3 128kB SB4 128kB SB5 128kB SB6 128kB SB7 128kB SB8 128kB SB9 128kB SB10 128kB SB11 128kB SB12 128kB SB13 128kB SB14 128kB SB15 128kB Figure 4 5 Memory Block in Extended Mode without ROM Rev 1 0 06 02 page 48 of 84 RENESAS H 00000000 On chip H OOO1FFFF ROM 128kB i H 00020000 Reserved MEE H 00200000 H OO1FFFFF 2MB 128kB __ 777 H 0021FFFF H 00200000 H 00220000 H 0023FFFF Cso 2MB H 00240000 H 003FFFFF KA i O HOOOSEFFF H 00400000 H 00260000 H O04FFFFF H 0027FFFF H 00500000 H 00280000 H 007FFFFF H 00SFFFFF H 0029FFFF H 00800000 lt HO0600000 H 002A0000 S HOO6FFFFF HOO2BEEE
2. 95 or Windows 98 2 2 1 Setting Up the PC Interface Board e Start Windows 95 or Windows 98 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 Computer Properties View Resources Reserve Resources C Interrupt request IRQ Direct memory access DMA Input output 1 0 Memon Setting Hardware using the setting sl 00000000 OOOSFFFF Unavailable for use by devices DOOAFFFF Super VGA OOOBZFFF Unavailable for use by devices OO0BFFFF Super YGA sl OOOCO000 OOOC7FFF Unavailable for use by devices 00000000 O00D3FFF Unavailable for use by devices OOOEOO0OO OOC3FFFF Unavailable for use by devices OOFEOOOO OOFFFFFF Unavailable for use by devices Figure 2 1 Computer Properties Dialog Box Before Setting A memory area that is not listed in the dialog box can be assigned to the PC interface board Table 2 1 lists the address ranges that can be set by the switch on the rear panel of the PC interface board 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 Re
3. e Change the line so that it reads as shown below DEVICE C WINDOWS EMM386 EXE 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 X D800 DBFF e Save the CONFIG SYS file 2 2 3 Modifying the SYSTEM INI File e Add the following line to the 386enh section in the SYSTEM INT file EMME xclude 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 SYSTEM INT file and exit the SYSEDIT e Restart the host computer This ensures that Windows will not use this block of memory You are ready to connect up the E6000 emulator and run the HDI to check communication to it 2 3 Setting Up the PC Interface Board on WindowsNT 4 0 The PC interface board uses the ISA bus slot and therefore the host computer must have a spare ISA bus slot This section describes the general procedure for installing the PC interface board in the host computer For details refer to the manual of your host computer Starting WindowsNT e Execute Start Programs Administrative Tools Common WindowsNT Diagnostics e Click the Memory button in th
4. 9 MTUCTGI3A request BurstMode word ogoogo NNN 1 Enable channel O000003ca EndAddress 000003d0 DMATCRO Count 000003d6 CHCRO CR 1 000003dc DMAOR Ox0001 000003e2 typedef union 1 struct _ Break Event channel 1 C NN Figure 4 31 Stopping the Program by a Breakpoint The status bar will display Break Event channel 1 to indicate that the break was caused by satisfaction of the event condition Rev 1 0 06 02 page 72 of 84 RENESAS 4 9 Using the Trace Buffer The trace buffer allows you to look back over previous MCU cycles to see exactly what the MCU was doing prior to a specified event 4 9 1 Displaying the Trace Buffer You can specify the address accessed by the program to use the trace buffer to look back to see what accesses took place e Open the Trace window by choosing Trace Window from the View menu or click the Trace Window button in the toolbar If necessary scroll the window down so that you can see the last few cycles The Trace window is displayed as shown in figure 4 32 Data R W Area Status Clock Probes Irq 1111 1111 11 11114 111Ll 11 1111 1111 11 1111 11 1111 11 1111 11 1111 11 1111 11 1111 11 b IE 1 000003b0 62f37203 Prog ffffffd8 00001b02 Data 000003b4 6020cb04 Prog 000003b8 z 220063f3 Prog ffffffdf 20 Data 000003bec 73036030 Prog ffffffdf 24 Data 000003c0 cb012300 Prog ffffffdf Data 1111 11 1111 11 1111
5. 11 1111 11 Prog 02 d ord Data 00001 000003c 5 212253f3 Prog 400000 ffffffec 000006e0 Data eS HAAHAHHHEHE Total Records 273 no filter Find Filter Snapshit Halt Clear Find Next Acquisition Restart Save Figure 4 32 Trace Window e If necessary adjust the width of each column by dragging the column dividers on either side of the labels just below the title bar In cycle 00003 you can see that address H 3c4 has been accessed Rev 1 0 06 02 page 73 of 84 RENESAS 4 9 2 Setting a Trace Filter Currently the Trace window shows all the MCU cycles e Click Filter to display the Trace Filter dialog box Trace Filter Ed General Bus Area Signals Iype Address r Cuck C DontCare Address Range Patten IV Search AddressLo 364 e AddessHi fase I Outside Range Data Compare r Direction Use Mast I Compare Aw C Read C Write Either Figure 4 33 General Panel in Trace Filter Dialog Box This allows you to define a filter to restrict which cycles are displayed in the trace buffer e If necessary click General to show the General panel e Select Pattern in the Type section e Inthe Address section click Range and type H 364 in the Address Lo field and H 3e2 in the Address Hi field e Click Bus Area to display the Bus Area panel e Set Bus State to Instruction Fetch Rev 1 0 06 02 page 74 of 84 RENESAS Trace
6. The HDI allows you to view a program at source level and in assembly language mnemonic e Choose Program Window from the View menu or click the Program Window button in the toolbar You will be prompted for the C source file corresponding to the object file you have loaded Open Lookin Stud AAA e a Callmain c Is Initsect c File name ftutorial c Files of type C C Source Files c7 7 Cancel Address Open on fp E Address Source Figure 4 9 Open Dialog Box e Select tutorial c and click OK to display the program window Rev 1 0 06 02 page 52 of 84 RENESAS s tutorial c Of Address Break Code 00000318 mask set MemTomMemDMAO C CLONG JQName DestinationAddress Count BurstMode 0000031 Size 00000336 startcMTimer 0000033a sleep 0000033c startmtu ANOAAAAAg lanni ya 4 Figure 4 10 Tutorial Program Window e If necessary choose Font option from the Customize submenu on the Setup menu to choose a font and size suitable for your host computer Initially the program window opens showing the beginning of the main program but you can scroll through the program with the scroll bars to see the definitions and include statements 4 5 Using Breakpoints The simplest debugging aid is the PC break which lets you halt execution when a particular point in the program is reached You can then examine the state of the MCU and memory at that point in the program 4 5 1
7. e Choose Memory Window from the View menu or click the Memory Window button in the toolbar e Enter Name in the Address field and set Format to ASCII Open Memory Window x ddress Name Format ASCII Space Memory onee Figure 4 17 Open Memory Window Dialog Box Rev 1 0 06 02 page 60 of 84 RENESAS e Clicking OK opens the Memory window showing the specified area of memory and enables to check the contents of the memory block ASCII Memory _Name Figure 4 18 Memory Window ASCII 4 6 2 Watching Variables As you step through a program it is useful to be able to watch the values of variables used in your program to verify that they change in the way that you expected For example set a watch on the char variable Name declared at the beginning of the program using the following procedure e Scroll up in the program window until you see the line const char Name 0x100 Hitachi Ltd e Click to position the cursor to the left of Name in the program window e Click in the program window with the right mouse button to display a pop up menu and choose Add Watch Rev 1 0 06 02 page 61 of 84 RENESAS The Watch window will display the variable Watch Window Figure 4 19 Watch Window After Adding Variables You can double click the symbol to the left of any symbol in the Watch window to expand it and display the individual elements in the array Watch Window I
8. Filter General Bus Area Signals Area mej Pie EL o OF Chip REM Eon Chipia Cache Jo Emulation s2 bit Jo Emulation 16 Bit J Emulation 8 Bit fa aae abt fa raae 1B bit To Terget B bit T Don t Care M Don t Care Cancel APPI Help Figure 4 34 Bus Area Panel in Trace Filter Dialog Box e Click OK to save the trace filter In the Trace window only the cycles in which the MCU accessed address range H 364 to H 3e2 are displayed Trace A Data R w Area Status Clock Probes Irq 0000038c 62137202 00000398 4 50f162F3 0000039c 9125d316 000003a0 430b0009 000003a4 50f662f3 000003a8 9120d313 O000003ac 430b0009 000003b0 6237203 000003b4 6020cb04 000003b8 220063f3 000003bc 73036030 000003c0 cb012300 000003c4 f 52749112 RPP ROM 1111 11 Total Records 26 of 273 Find snapshot Halt Clear Find Next Acquisition Restart Save Figure 4 35 Showing Trace Buffer Contents Rev 1 0 06 02 page 75 of 84 RENESAS 4 10 Measuring the Performance By using the performance analysis function in the HDI you can measure the performance of a program The results are displayed as a histogram or as percentages 4 10 1 Selecting the Measurement Conditions Select the conditions for measurement as follows e Select Performance Analysis Window from the View menu or click the Performance Analysis Window button in the toolbar and open the Performance Analysis di
9. The break can also optionally be delayed by up to 65535 bus cycles 1 2 4 Timing You can set up two events and then measure the execution time of the program between the activation of the first event and second event Rev 1 0 06 02 page 3 of 84 RENESAS 1 3 Hardware Features 1 3 1 Memory The E6000 emulator provides standard emulation memory as the substitute for on chip ROM memory and on chip RAM memory When a device type or device mode without an on chip ROM or on chip RAM is selected the standard emulation memory is disabled When debugging with only the E6000 emulator and the user program and data are stored in an external address space an optional SIMM memory module must be used The optional SIMM memory modules can be separately purchased The emulation memory can be mapped in units to any number of separate memory blocks in the MCU address space according to table 1 1 Each memory block can be specified using the Memory Mapping function as user Target or emulator SIMM memory module and in each case the access can be specified as read write read only or guarded Table 1 1 Emulation Memory Type High speed emulation memory Low speed emulation memory HS6000EMS21H 128 kbyte x 4 area 512 kbyte x 4 area HS6000EMS22H 512 kbyte x 12 area The definition of each type of memory is as follows Table 1 2 Memory Types Memory Type Description On chip Uses the MCU on chip memory Target Accesses the user s
10. can download the object program you want to debug 4 4 1 Loading the Object File First load the Sysrof format object file as follows e Choose Load Program from the File menu or click the Load Program button in the toolbar e Select the file tutorial abs in the tutorial directory and click OK Load Object File Look in ja Tutorial x aI ed EE Tutorial abs File name fT utorial abs Files of type Sysrof or ELF DWARF Files abs 7 Cancel Offset Space fo Memory E Source File Path Old Path pe Replace Path Figure 4 7 Load Object File Dialog Box e The file tutorial abs is created only when the HDI is installed in the default directory If the HDI is installed in another directory the file tutorial abs is created when the file tutorial bat is executed Modify tutorial bat or tutorial sub according to the system environment Rev 1 0 06 02 page 50 of 84 RENESAS When the file has been loaded the message box shown in figure 4 8 displays information about the memory areas that have been filled with the program code Module name C Hdi_7010 Tutorial T utorial abs Areas loaded 00000000 00000103 00000240 00000301 00000304 O00005E9 OOOOOSCC OOOOOZEF OOOOOSEC OOOOOEC3 Figure 4 8 HDI Information Message Box e Click OK to continue The program has been loaded into the on chip ROM Rev 1 0 06 02 page 51 of 84 RENESAS 4 4 2 Displaying the Program Listing
11. displayed Rev 1 0 06 02 page 25 of 84 RENESAS e The dialog box to confirm whether to start uninstallation will be displayed Uninstall Hitachi Debugging Interface for E6000 SH Perform Uninstall You are now ready to uninstall the Hitachi Debugging Interface for E6000 SH from your system Press the Finish button to perform the uninstall Press the Back button to change any of the uninstall options Press the Cancel button to exit the uninstall Cancel Figure 2 20 Perform Uninstall Dialog Box e To start uninstallation click Finish e To cancel uninstallation click Cancel e To go back to the Select Uninstall Method dialog box click Back When uninstallation is successfully completed the directories and files created by the installer are deleted Note 1 Any subdirectory or file that you have created in the HDI directory will not be deleted by the uninstaller 2 When rollback was not performed backup directory and files will not be deleted Rev 1 0 06 02 page 26 of 84 RENESAS 2 7 Troubleshooting 2 7 1 Faulty Connection If the following message box appears during initialization the PC interface board was not able to detect the E6000 emulator E6000 Platform AN Driver Error Emulator is switched off or not connected Unable to restore previous configuration for E6000 ISA Driver Will attempt to set default values instead Figure 2 21 Faulty Connection Message This indicates e Power
12. following short cuts in the program group you specified by default Hdi File Edt View Be EET B ack Forward Up Address E enutProgramstHDI 7 HDI for E6000 Uninstall HDI 2010 for E6000 2 objectfs Figure 2 13 HDI Program Group These short cuts have the following functions HDI for E6000 SH7010 is the HDI software Uninstall HDI for E6000 SH7010 will remove HDI and its associated files if you need to uninstall it at any stage Rev 1 0 06 02 page 19 of 84 RENESAS 2 4 2 Checking the System The next step is to run the HDI software to check that the E6000 emulator is working correctly e Switch on the E6000 emulator and check that the red LED is illuminated e Select HDI for E6000 SH7010 from the Start menu t Accessories gt FA Intermet Explorer gt PA HDI for E6000 SH7010 StartUp gt 39 Uninstall HDI for E6000 SH7010 gt HS MS DOS Prompt 2 Windows Explorer b Figure 2 14 HDI Start Menu Rev 1 0 06 02 page 20 of 84 RENESAS With everything set up correctly the HDI window will be displayed and the following messages will be shown in the status bar at the bottom of the window Downloading firmware Setingmemorymap MMI Figure 2 15 HDI Start Up Messages Finally the status bar will display Link up to indicate that everything is set up correctly and the HDI window will be displayed as shown below Rev 1 0 06 02 page 21 of 84 RENESAS FA Hitac
13. page boundaries anywhere in the user area For details on SIMM Memory Module refer to the user s manual provided with the SIMM Memory Module Table 3 1 Emulation Memory Type High speed emulation memory Low speed emulation memory HS6000EMS21H 128 kbyte x 4 area 512 kbyte x 4 area HS6000EMS22H 512 kbyte x 12 area 3 3 1 Optional SIMM Memory Module Configuration The configuration of the optional SIMM memory module is controlled by the mapping RAM Opening the Memory Map dialog box allows you to check which optional SIMM memory module if any is installed 3 4 Hardware Interface All signals are directly connected to the MCU in the E6000 emulator with no buffering with the exception of those listed in the Supplementary Information 3 4 1 Signal Protection on the E6000 Emulator All signals are over under voltage protected by use of diode arrays The only exceptions being the AV and Vref All ports have pull up resistors except for analog port All V pins on the cable head assembly are connected together with the exception of the AV oc pin and are then monitored by the E6000 emulator to detect powered user system hardware presence Rev 1 0 06 02 page 33 of 84 RENESAS 3 4 2 User System Interface Circuits The interface circuit between the MCU in the E6000 emulator and the user system has a signal delay of about 8 ns due to the user system interface cable and it includes pull up resistors Therefore high impedance
14. semiconductor products Hitachi assumes no responsibility for any intellectual property claims or other problems that may result from applications based on the examples described herein 2 No license is granted by implication or otherwise under any patents or other rights of any third party or Hitachi Figures Some figures in this user s manual may show items different from your actual system Limited Anticipation of Danger Hitachi cannot anticipate every possible circumstance that might involve a potential hazard The warnings in this user s manual and on the E6000 emulator are therefore not all inclusive Therefore you must use the E6000 emulator safely at your own risk Rev 1 0 06 02 page III of V RENESAS SAFETY PAGE READ FIRST READ this user s manual before using this E6000 emulator KEEP the user s manual handy for future reference Do not attempt to use the E6000 emulator until you fully understand its mechanism DEFINITION OF SIGNAL WORDS gt This is the safety alert symbol It is used to alert you to potential personal injury hazards Obey all safety messages that follow this symbol to avoid possible injury or death A DANGER DANGER indicates an imminently hazardous situation which if not avoided will result in death or serious injury A WARNING WARNING indicates a potentially hazardous situation which if not avoided could result in death or serious injury A CAUTION CAUTION indicates a potent
15. set by Timer and Timer and the run time timer s resolution is decided by the Timer Resolution option in the target Configuration dialog box When using a small resolution e g 20 ns for a long time measurement the inaccuracy may be large Select the timer resolution suitable for the length of measurement time Rev 1 0 06 02 page 56 of 84 RENESAS 4 5 3 Examining Registers While the program is halted you can refer to the contents of the MCU registers These are displayed in the Registers window e Choose Registers Window from the View menu or click the Registers Window button in the toolbar amp Registers OF x FFFFS86B0 OOOOOOO1 FFFF86c4 FFFF86CC OOOOOSEO 00200000 00000100 00000001 OOOOOOOO OOOOOOOO 00000000 00000000 00000000 00000000A 00000000 FFFFFFF8 00000336 0000 T 00000000 00000000 00000000 00000000 00000334 Figure 4 14 Registers Window As expected the value of the program counter PC is the same as the highlighted statement H1336 Note The values of the other registers may differ from those shown in the above figure You can also change the registers from the Registers window For example to change the value of the PC e Double click PC in the Registers window The Register PC dialog box allows you to edit the value Rev 1 0 06 02 page 57 of 84 RENESAS Register PC H 336 a E Double fioat Figure 4 15 Register Dialog Box e Edit the val
16. signals will be pulled up to the high level When connecting the E6000 emulator to a user system adjust the user system hardware to compensate for propagation delays The following diagrams show the equivalent circuit examples of the interface signals The interface circuits depend on the MCU type For details refer to the supplementary information supplied together with the E6000 emulator Rev 1 0 06 02 page 34 of 84 RENESAS General Ports O User system interface cable Figure 3 6 User System Interface Circuit for General Ports Mode Pins MD3 MD2 MD1 and MD0 WAIT NMI and STBY The WAIT and NMI signals are input to the MCU through the emulator control circuit The rising falling time of these signals must be 8 ns V or less The STBY signal and mode pins are only monitored The CPU mode depends on the HDI settings Emulator control O User system Circuit interface cable Figure 3 7 User System Interface Circuit for MD2 MD1 MD0 WAIT NMI and STBY RES Emulator control O User system Circuit interface cable Figure 3 8 User System Interface Circuit for RESET Rev 1 0 06 02 page 35 of 84 RENESAS Analog Port Control Signals O Analog User system VO port interface cable User system interface cable Figure 3 9 User System Interface Circuit for Analog Port Control Signals IRQO IRQ7 The IRQO to IRQ7 signals are input to the MCU and also to the trace acquiring circuit Therefore the rising a
17. supply not connected to the E6000 emulator or the emulator not switched on Check the power LED on the E6000 emulator e The PC interface cable is not correctly connected between the PC interface board and the E6000 emulator 2 7 2 Communication Problems The following message box indicates that the HDI was not able to set up the E6000 emulator correctly E6000 Platform N Driver Error Cannot locate ISA interface card Unable to restore previous configuration for E6000 ISA Driver Will attempt to set default values instead Figure 2 22 Communication Problem Message Rev 1 0 06 02 page 27 of 84 RENESAS This indicates e The memory area reserved in the CONFIG SYS file does not match the inteerface switch setting on the rear panel of the PC interface board e Selected area of memory is in use by another application Rev 1 0 06 02 page 28 of 84 RENESAS Section 3 Hardware This section explains how to connect the E6000 emulator to a user system 3 1 Connecting to the User System To connect the E6000 emulator to a user system proceed as follows e Connect the user system interface cable head to the user system e Plug the cable body into the E6000 emulator e Plug the cable body into the cable head For details of these steps refer to the User System Interface Cable User s Manual Figure 3 1 gives details of the connectors provided on the E6000 emulator PC interface board connector User syst
18. the Session Before exiting it is good practice to save your session so that you can resume with the same E6000 emulator and HDI configuration at your next debugging session e Choose Save Session from the File menu e Choose Exit from the File menu to exit HDI 4 12 What Next This tutorial has introduced you to some of the key features of the E6000 emulator and their use in conjunction with the HDI By combining the emulation tools provided in the E6000 emulator you can perform extremely sophisticated debugging allowing you to track down hardware and software problems efficiently by precisely isolating and identifying the conditions under which they occur For details on HDI operation refer to the Hitachi Debugging Interface User s Manual supplied separately Note For details on each function refer to the online help Online help can be displayed by clicking the help key or F1 button on each window or dialog box Rev 1 0 06 02 page 80 of 84 RENESAS Appendix A Command Line Functions This section lists the E6000 emulator command line functions Command Type General HDI general commands Specific Commands specific to the E6000 emulator For HDI general command line functions refer to the Hitachi Debugging Interface User s Manual or the on line help For E6000 specific commands refer to the on line help To display the on line help enter the following in the Command Line window helpA lt command gt l
19. us 4 us 8 us or 16 us At 20 ns the maximum time that can be measured is about six hours and at 16us the maximum time is about 200 days 1 1 4 Performance Analysis The E6000 emulator provides functions for measuring the performance of a program The performance of the specified program range can be displayed either as a histogram or in percentage form A timer resolution of 20 ns 40 ns or 160 ns can be selected In addition the execution count of the specified program range can be measured 1 to 65535 12 Complex Event System CES In most practical debugging applications the program or hardware errors that you are trying to debug occur under a certain restricted set of circumstances For example a hardware error may only occur after a specific area of memory has been accessed Tracking down such problems using simple PC breakpoints can be very time consuming The E6000 emulator provides a very sophisticated system for giving a precise description of the conditions you want to examine called the complex event system This allows you to define events which depend on the state of a specified combination of the MCU signals The complex event system provides a unified way of controlling the trace break and timing functions of the E6000 emulator 1 2 1 Event Channels The event channels allow you to detect when a specified event has occurred The event can be defined as a combination of one or more of the following Rev 1 0 0
20. user system before starting up the E6000 emulator A voltage follower circuit is implemented on the E6000 emulator which allows the user system voltage level from the user system to be monitored This monitored voltage level is automatically supplied to the logic on the E6000 emulator and is derived from the E6000 emulator power supply unit This means that no power is taken from the user system board If no user system interface cable is connected to the E6000 emulator the E6000 emulator will operate at a specified voltage and all clock frequencies will be available to the user If the user system interface cable is attached the E6000 emulator will match the voltage supplied to the user target in all cases i e even when the user V_ is below the operating voltage for the MCU You must be careful not to select an invalid clock frequency When the E6000 emulator is connected to the user system and the user system is turned off the voltage follower circuit output voltage level is O V In this case the E6000 emulator will not operate correctly You can set a user V threshold in the range Vcc max 0 V by using the E6000 emulator configuration dialog box If the user V drops below this threshold the User System Voltage in the System Status window will display Down otherwise OK is displayed Rev 1 0 06 02 page 38 of 84 RENESAS User Vcc level User Vcc threshold E6000 Vcc level User Vecc threshold User system
21. 0 emulator taking care to insert it straight and push it firmly into place Cable body Cable head User system interface cable Figure 3 4 Plugging User System Interface Cable Body to E6000 Emulator 3 1 3 Plugging the User System Interface Cable Body into the Cable Head Plug the cable body into the cable head connected to the user system hardware Rev 1 0 06 02 page 31 of 84 RENESAS 32 Power Supply 321 AC Adapter The AC adapter supplied with the E6000 emulator must be used at all times 3 2 2 Polarity Figure 3 5 shows the polarity of the power supply plug 5 V Outside x GND Inside Figure 3 5 Polarity of Power Supply Plug 3 2 3 Power Supply Monitor Circuit The E6000 emulator incorporates a power supply monitor circuit which only lights the red LED when a voltage higher than 4 75 V is supplied If this LED does not light you should check the E6000 emulator voltage level An input voltage less than 4 75 V could indicate that enough current cannot be supplied to the E6000 emulator Note Use the provided AC adapter for the E6000 emulator Rev 1 0 06 02 page 32 of 84 RENESAS 33 SIMM Memory Module E6000 emulator optional SIMM memory modules are available which provide emulation memory for user code without needing a user system The optional SIMM memory modules are available in different memory size but all are partitioned into the areas as shown in table 3 1 These banks can be relocated on
22. 2K Slow 2 Unused 512K Clan Lead F1 DIK Cancel Apply Figure 4 4 Emulator Configuration Dialog Box Memory Map Table 4 2 lists the three memory types available in the E6000 emulator Table 4 2 Memory Types Memory Type Description On chip Not displayed Target Accesses the memory on the user system hardware Emulator Accesses the optional SIMM memory module Rev 1 0 06 02 page 46 of 84 RENESAS Table 4 3 lists the three access types Table 4 3 Access Types Access Type Description Read write RAM Read only ROM Guarded No access allowed For this tutorial we can use the default mapping but you can edit the mapping as follows Note The memory map of internal ROM internal RAM internal I O and reserved area differ depending on the target MCU For details refer to the hardware manual of the MCU Rev 1 0 06 02 page 47 of 84 RENESAS H 00000000 H 001FFFFF H 00200000 H 003FFFFF H 00400000 H 007FFFFF H 00800000 H OOBFFFFF H 00C00000 H OOFFFFFF H 01000000 H 01FFFFFF H 02000000 H FFFF7FFF H FFFF8000 H FFFFBFFF H FFFFCO00 H FFFFE7FF H FFFFE800 H FFFFFFFF DRAM 16MB Reserved 4GB 32kB On chip VO 16kB Reserved 10kB On chip RAM 6kB 1 1 H 002FFFFF H 00300000 H 003FFFFF H 00400000 H OO4FFFFF H 00500000 H OOSFFFFF H 00600000 H 006FFFFF 4100700000
23. 6 02 page 2 of 84 RENESAS e Address or address range e Address outside range e Data with an optional mask e Read or Write or either e MCU access type e g DMAC and instruction prefetch e MCU access area e g on chip ROM and on chip RAM e A signal state on one or more of the four external probes e A certain number of times that the event must be triggered e Delay cycles after an event Up to eight events can be combined into a sequence in which each event is either activated or deactivated by the occurrence of the previous event in the sequence For example you can cause a break if an I O register is written to after a specified area of RAM has been accessed 1 2 2 Range Channels The range channels can be set up to be triggered on a combination of one or more of the following e Address or address range inside the range e Data with an optional mask e Read or Write or either e MCU access type e g DMAC and instruction prefetch e MCU access area e g on chip ROM and on chip RAM e A signal state on one or more of the four external probes e Delay cycles after an event The complex event system can be used to control the following functions of the E6000 emulator 1 2 3 Breaks You use breaks to interrupt program execution when a specified event or sequence of events is activated For example you can set up a break to halt execution when the program reads from one address and then writes to another address
24. 8 Make Backups Dialog BOX se se see ee ee RA GR Gee Gee Ge ee ee ee ee ee ee ee Re ee 16 Figure 2 9 Select Backup Directory Dialog BOX esse sees see see se ee ee ee Se SR Ge RA Re Re ee ee 17 Figure 2 10 Installing Dialog BOX oie see see se ee ee ee ee Se Se Re GR RA GRA Re Ge ee Ge ee ee ee ee 17 Figure 2 11 Insert New Disk Dialog BOX iese ee ee ee se ee Ge RA GR GR Ge ee Ge ee ee ee ee Se ee 18 Figure 2 12 Select Program Manager Group Dialog BOX iese see ee es ee ee ee Ge ee ee ee ee 18 Figure 2 13 HDI Program Group ou cece see e ee ee Ge ee E Se Ge GR Re GR GRA ee Gee ee ee ee 19 Figure 2 14 SIDES EE EE EE RE EE EE Eas 20 Figure 2 15 HDI Start Up Messages cece see se ee ee ee ee Se Se SR RA GRA Re Ge ee be ee ee ee ee 21 Figiite 216 HDI WIndOW set eona geed Ed gees ese eek sae gee es EE E boeg eg geed 22 Figure 2 17 Start Menu Uninstaller iese se ee ee ee GR Re ee GR Re Ge GR Re ee GR RA ee ee Re ee 23 Figure 2 18 Select Uninstall Method Dialog Box see see see se ee ee ee AR Re RR RA RA ee ee 24 Figure 2 19 Perform Rollback Dialog BOX see ee ee ee ee Ge AR RA RA Re ee ee Re ee ee ee ee 25 Figure 2 20 Perform Uninstall Dialog BOX se see see ee ee ee Gee ee Ge ee ee ee ee ee Re ee Re ee 26 Figure 2 21 Faulty Connection Message iese se see ee ee GR Re Gee Gee Ge ee ee ee ee ee ee Re ee Re ee 27 Figure 2 22 Communication Problem Message se se ee ee RA Re Ge ee Ge ee ee ee ee ee ee 27 Figure 3 1 E6000 Emulato
25. BLE DA General Disassembles and displays a program ERASE ER General Clears the contents of the Command Line window EVALUATE EV General Evaluates an expression FILE LOAD FL General Loads an object program file FILE SAVE FS General Saves memory contents in a file FILE_VERIFY FV General Verifies memory contents against file contents GO GO General Executes a user program GO_RESET GR General Executes a user program from the reset vector GO_TILL GT General Executes a user program until a temporary breakpoint HALT HA General Stops user program execution HELP HE General Displays the help message for the command line or the command INITIALISE IN General Initializes the platform INTERRUPT IR General Validates invalidates interrupt on the platform this command is not supported for some products LOG LO General Manipulates the logging file Rev 1 0 06 02 page 82 of 84 RENESAS Table A 1 Command List cont Abbrevia Command Command Name tion Type Description MAP_DISPLAY MA General Displays the memory map information MAP_LOCATE ML Specific Displays memory mapping information MAP_SET MS Specific Sets memory mapping MEMORY_DISPLAY MD General Displays memory contents MEMORY_EDIT ME General Modifies memory contents MEMORY_FILL MF General Fills the memory with the specified data MEMORY_MOVE MV General Moves a memory block MEMORY_TEST MT General Tests a memo
26. Configuring the Platform ees sees see see cee ee se ee ee ee Ge SR e a RA Re Gee Ge ee ee 44 4 32 Mapping the ve AE ER EE EE 46 44 Downloading the Tutorial Program esse se see ee ee ee ee ee ee ee ee ee Re RA RA ee Gee ee 50 4 41 Loading the Object File iii isi BE see SS ee SE Ee SR Oe ors Ee Ge Bek soe ee SN GEK 50 4 4 2 Displaying the Program Listing esse sees see see se ee ee ee Re AR Re ER RA RA Re ee ee 52 4 5 Usmg oi ee in ER EE EE EEk 53 451 Setitis a PC Break iese sie EE eL EKS Ee ARE DENS Ke Ee ee ENE ee ee DER AG be bees se Es er bee 53 452 Executme the Program sesse es is Ee Gees ek ge dee GE EE Le Gee ee eed Ge eke se Ee EE Ne 54 4 5 3 Examining REgIS ETS AR EE N EE EE ES 57 4 54 Reviewing the BreakpOintS ese se ee se ee RA Ge Gee ee ee ee ee RR RA ee 59 4 6 Examining Memory and Variables eise see ee ee ee Gee Ge ee ee ee ee Re RA RA ee Gee ee 60 46 Viewing Memory RE EE EE OE 60 4 62 Watching Variables ie RES Gegee Ge TEE DE ee bi bees 61 4 7 Stepping Through a Program esse sees see see se ee ee ee ee Se Se Re GR RA GRA Re Gee ee Ge ee ee ee ee 63 MAN Go EE pesiin Aona E a E EET 63 4 7 2 Stepping Over a Function oo eee cee cseeeeeeeeeeeeeeeeeeeeesecesecaecaecaecseeeaeeeneeees 66 4 7 3 Displaying Local Variables see se ee ee ee Se Se Se RR RA GRA Gee Gee Ge ee ee ee ee 67 4 8 Using the Complex Event System see see see ee ee Gee Gee Ge ee ee ee ee ee Re RA ee ee Gee ee 68 4 8 1 Defi
27. E6000 EMULATOR THE USE OF ANY E6000 EMULATOR OR ITS DOCUMENTATION EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES EXCEPT AS EXPRESSLY STATED OTHERWISE IN THIS WARRANTY THIS E6000 EMULATOR IS SOLD AS IS AND YOU MUST ASSUME ALL RISK FOR THE USE AND RESULTS OBTAINED FROM THE E6000 EMULATOR Rev 1 0 06 02 page II of V RENESAS State Law Some states do not allow the exclusion or limitation of implied warranties or liability for incidental or consequential damages so the above limitation or exclusion may not apply to you This warranty gives you specific legal rights and you may have other rights which may vary from state to state The Warranty is Void in the Following Cases Hitachi shall have no liability or legal responsibility for any problems caused by misuse abuse misapplication neglect improper handling installation repair or modifications of the E6000 emulator without Hitachi s prior written consent or any problems caused by the user system All Rights Reserved This user s manual and E6000 emulator are copyrighted and all rights are reserved by Hitachi No part of this user s manual all or part may be reproduced or duplicated in any form in hard copy or machine readable form by any means available without Hitachi s prior written consent Other Important Things to Keep in Mind 1 Circuitry and other examples described herein are meant merely to indicate the characteristics and performance of Hitachi s
28. F 100700000 H 002C0000 H OOBFFFFF H 002DFFFF H 00C00000 H 00800000 H 002E0000 H 008FFFFF H 002FFFFF H 00900000 H 00300000 H OOFFFFFF H O09FFFFF H 0031FFFF H 01000000 lt H 00A00000 E H 00320000 S59 286 DRAM 16MB SBO 128kB SB1 128KB SB2 128kB SB3 128KB SB4 128KB SB5 128KB SB6 128KB SB7 128KB SB8 128KB H OOAFFFFF H 0033FFFF lt H 00B00000 H 00340000 H 01FFFFFF H 0035FFFF H 02000000 H 00360000 H 0037FFFF H 00380000 H OODFFFFF H 0039F FFF H 00E00000 GADE i 128KB Reseed H 003BFFFF H 003C0000 H 003DFFFF H 01000000 H 003E0000 H FFFF7FFF _H 003FFFFF H FFFF8000 On chip O H FFFFBFFF 16kB H 013FFFFF HFFFFCOOO H 01400000 Reserved 12kB H FFFFEFFF H FFFFF000 On chip RAM H FFFEFFFF as SB10 128kB SB11 128kB SB12 128kB SB14 128kB SB15 128kB H 01BFFFFF H 01C00000 LB15 4MB H 01 FFFFFF Figure 4 6 Memory Block in Extended Mode with ROM e Do not modify memory allocation in the Emulator Configuration Dialog Box e Click OK to close the dialog box The device type operating mode and memory map settings have completed Rev 1 0 06 02 page 49 of 84 RENESAS 4 4 Downloading the Tutorial Program After the E6000 emulator is set up you
29. P se RE ER be OER ER De ee se EE Re Sr AE DIER Es Re 7 2 1 oo ER ER EE ME EE EAE ESS 7 2 2 Setting Up the PC Interface Board on Windows 95 or Windows 98 ee see ee 8 2 2 1 Setting Up the PC Interface Board iese see see se ee ee ee Se Se Ge AA Gee ee ee 8 2 22 Modifying the CONFIG SYS File esse ee ee ee Ge Se ER RA Rd Ge ee ee ee 10 2 2 3 Modifying the SYSTEMLINI File oo iese esse see se ee ee se ee ee se eke Gee ee eke ge GR Ge ek Ge ee ek ee 11 2 3 Setting Up the PC Interface Board on WindowsNT 4 0 ccccsscssesssscesesseseesessesceseaneeceneass 11 24 Installing the HDI Software scccss csscsecesscssocsesssensesceatnsonsesseseosescessasesersessegevsntssneeedevacess 14 2 4 1 HDI Installation Procedure oo eee ee ee se ee ee Ge Gee Ge ee ee ee ee Re RR ee ee 14 EN Checking ES RR EE EEE Ey 20 25 VEE RE ER EE EA EE N N OR EE NE RE 22 2 6 Uninstalling the HDI Software iese sesse ee ee ee ee Se SR GR RA Re Gee Gee Ge ee ee ee ee ee ee 23 27 ER RE EE EE EE Or 27 RNENSE oe N EE 27 2 72 Communication Problems ese ee se se Ge ek Ge Gee ee ee ee ee Se Se Re GR ee ee 27 Sections Ne iek EE RE RE OE EE 29 3 1 Connecting to the User System oo ese ee se Ge ee RA GRA Gee Gee Ge ee ee ee ee Se Se EERE ETEN 29 3 1 1 Example of Connecting the User System Interface Cable Head to the User System30 3 1 2 Plugging the User System Interface Cable Body into the E6000 Emulator 31 3 1 3 Plugging the User System Interface Cable Body in
30. PRC p 000004 d2 IPRG CwORDJOXxOOfO 000004 d8 IPRE WORD JOxOOFF 000004 de IPRH WORD IOxfO00 000004e4 pragma interrupt dmacO_interrupt 00000500 void dmacO_interrupt void Figure 4 22 Program Window after Executing the Step In Command 2 Exit the function and back to the next statement in the main program by choosing Step Out from the Run menu or clicking the Step Out button Rev 1 0 06 02 page 64 of 84 RENESAS Address H 31c will be highlighted showing that the emulator has exit from the function Se tutorial_c Of A 00000318 Break mask set MemToMemDMAOC LONG amp Name DestinationAddress Count BurstMode 00000336 startCMTimer 0000033a sleep 0000033c startmtu 00000340 sleep Figure 4 23 Program Window after Executing the Step Out Command Rev 1 0 06 02 page 65 of 84 RENESAS 4 7 2 Stepping Over a Function The Step Over command executes a function without single stepping through the body of the function and stops at the next statement in the main program e Choose Step Over from the Run menu or click the Step Over button in the toolbar The program executes the MemToMemDMAO function and stops at the beginning of the next address H 336 SG tutorial c Of A 00000318 Break mask set MemToMemDMAO LONG amp Name DestinationAddress Count BurstMode oo00031c Size 0000033a sleep 0000033c startmtu 00000340 sleep Figure 4 24 P
31. Pablo 4 3 Access Types AE EE 47 Table44 Step Commands sseni nna dines tin tow dite Ee ER Abe ee EE nasa eie dee Rees 63 Table A 1 Ao LE EE RE EE OE ceseisescasceaces 81 Rev 1 0 06 02 page vii of vii RENESAS Section 1 Introduction The E6000 emulator is an advanced realtime in circuit emulator which allows programs to be developed and debugged for the SH series microcomputers The E6000 emulator can either be used without a user system for developing and debugging software or connected via a user system interface cable to a user system for debugging user hardware The E6000 emulator works with the Hitachi debugging interface HDI an interface program based on Microsoft Windows operating system This provides a powerful range of commands for controlling the emulator hardware with a choice of either fully interactive or automated debugging 1 1 Debugging Features 11 1 Breakpoints The E6000 emulator provides a comprehensive range of alternative types of breakpoints to give you the maximum flexibility in debugging applications and user system hardware Hardware Break Conditions Type 1 and Type 2 Up to 12 break conditions can be defined using the event and range channels in the complex event system CES For more information about the hardware break conditions see section 1 2 Complex Event System CES On chip Breakpoint Type 3 In target ROM three breakpoints on chip break can be set Program Breakpoint
32. Setting a PC Break The program window provides a very simple way of setting a PC break For example set a PC break at address H 336 as follows e Double click in the Break column on the line containing address H 336 Rev 1 0 06 02 page 53 of 84 RENESAS se tutorial c Code ie maing 00000318 mask_set MemToMemDMAO LONG amp Name DestinationAddress Count BurstMode 0000031c Size 0000033a sleep 0000033 startmtu 00000340 sleep 00000342 forG DIT 00000346 watchDogTimer_RUN 0000034a sleep Figure 4 11 Setting a Breakpoint The word Break will be displayed there to show that a PC break is set at that address Although not performed in this tutorial double clicking repeatedly in the Break column can change the display in the cyclic order shown below to set the event for measuring the execution time between events Timer start time measurement Timer stop time measurement point to point trace Trace start trace Trace temporarily stop trace or trace stop TrSt op stop trace When Trace is followed by Trace trace is resumed However when Trace is followed by TrStop trace will not resume even after T race appears Blank Break gt Timer gt Timer gt Trace gt Trace gt TrStop Blank gt 4 5 2 Executing the Program To run the program from the address pointed to by the reset vector e Choose Go Reset from the Run menu or click the Go Reset button in
33. 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 www renesas com inguiry sTENESAS 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 gran
34. ading outside internal ROM Cancel Apply Help Figure 4 3 Emulator Configuration Dialog Box General T NMI e Set up the options as shown in table 4 1 Table 4 1 Configuration Options Option Value Depending on Evaluation Chip Device SH7017 Mode 2 with on chip ROM Clock mode PLL ON x 1 Clock rate 10 MHz Clock divisor 1 Timer resolution 125 ns User system voltage monitoring level 3 00 V User VCC Threshold All other options Default Rev 1 0 06 02 page 45 of 84 RENESAS 4 3 2 Mapping the Memory After you have selected the device and mode in the Configuration Dialog Box the HDI automatically maps the E6000 emulator memory for the device and mode you have selected e To display the current memory map click the Memory Map tag The dialog box shown in figure 4 4 is displayed Emulator Configuration x General Memory Map m Mapping Areas 00200000 0021FFFF Emu Rw ia Target 00220000 OO23FFFF Emu Aw 00240000 OO25FFFF Emu Rw Emulator 00260000 OO27FFFF Emu Rw 00280000 0029FFFF Emu 00240000 002BFFFF Emu Read Write 002C0000 OO2DFFFF Emu 002E0000 002FFFFF Emu Bead Only 00300000 0031FFFF Emu 00320000 0033FFFF Emu Guarded 01000000 00340000 OO35FFFF Emu Emulator Memory Blocks 01400000 Fast 1 00200000 0021FFFF Fast 2 00220000 0023FFFF Fast 3 00240000 0025FFFF Fast 4 00260000 0027FFFF Slow 1 Unused 51
35. al value you should type as part of a command bold Names of menus menu commands buttons dialog boxes and windows that appear on the screen Trademarks Microsoft MS MS DOS Windows and WindowsNT are registered trademarks of Microsoft Corporation in the United States and or in other countries IBM is a registered trademark of International Business Machines Corporation This manual assumes the operating environment to be the English version of Microsoft Windows 98 operating system Rev 1 0 06 02 page ii of vi RENESAS Contents Section 1 ie ei eie OE RR e aS 1 LI en SEINE DS in EE EA EE EE NR RO 1 11 1 Break pout RE EE ER EE Ee 1 EEN ER OE OE RO AO ans 1 1 1 3 Execution Time Measurements cece ee ee ee ee ee ee ee ee ee ee ER RA ee 2 1 1 4 Performance Analysis esse ese se ee GR Ge GR RA ee GR AA ee GRA ee AA ee RA ee ee 2 12 Complex Event System CES ii sussies eise sels eke Fb ae ES SE Ee Be eke Ee ie eb ese ee see GR Ge Ee see Bee EER BE 2 EA ide EURO RE N EO OE ONE OE N 2 PA et DERE RE RE N N EE N 3 IE RE AE AE N 3 Ek ii N EE RE NE EO EE S 3 1 3 Hardware Features OE EER OR EE NEE RE N 4 MSL ER EE EE N EE 4 F32 Clocks EER EA EE aot isi ated Ne OE oe ae 5 1 33 PrODGS MS ER OR OR E EE N 5 1 3 4 Environment CondiHONS eise ee se ee ee ee RA Gee Ge Ge ee ee ee ee ee ee ar ee 6 1 3 5 Emulator External Dimensions and Weight eise sees se ese ee ee ee Se ee ee Re Rd ee 6 Section 2 Setting
36. all options Press the Next button to continue f Automatic C Custom Figure 2 18 Select Uninstall Method Dialog Box e To automatically uninstall the HDI select the Automatic radio button and click Next e To select the files to delete select Custom and click Next e To cancel uninstallation click Cancel Rev 1 0 06 02 page 24 of 84 RENESAS When backup files were made at installation the dialog box to confirm whether to roll back the backup files will be displayed Uninstall Hitachi Debugging Interface for E6000 SH Perform Rollback You selected to backup files that were replaced during the installation Selecting a rollback will return your computer to the state it was before the last installation or upgrade of this software by restoring any backed up files You should only perform a rollback if no other applications have been installed after the installation for this software Only the last installation or upgrade will be removed Yes f No Figure 2 19 Perform Rollback Dialog Box e To perform rollback select the Yes radio button and click Next e To not perform rollback select the No radio button and click Next e To cancel uninstallation click Cancel e To go back to the Select Uninstall Method dialog box click Back Notes 1 By performing rollback the backup files are restored 2 If no backup files have been made or if no backup files are found the Perform Rollback dialog box will not be
37. alog BOX iese esse esse ese ee ee Se GR RA GRA Re Gee ee ee ee 60 Figure 4 18 Memory Window ASCII ese ee se ee ee ee ee ee ee ee ee Re RA ee ee Gee ee 61 Figure 4 19 Watch Window After Adding Variables see see see se ee ee ee Se ee ee Rd ee 62 Figure 4 20 Watch Window Symbol Expansion 0 0 0 0 eceeceessecesecseeeeeeeeeeeseceaeceesaeeeeeeenens 62 Figure 4 21 Program Window after Executing the Step In Command 1 eee 63 Figure 4 22 Program Window after Executing the Step In Command 2 eects 64 Figure 4 23 Program Window after Executing the Step Out Command eee se ee 65 Figure 4 24 Program Window after Executing the Step Over Command eee 66 Figure 4 25 Program Window after Executing the Step In Command 4 eects 67 Figure 4 26 Displaying Local Variables 00 esse ee se ee ee ee Se Re AR RA ERA Gee Gee be ee ee ee ee ee 68 Figure 4 27 Displaying Local Variables Elements in an Array esse ses sees see se ee ee ee See ee 68 Figure 4 28 Select Event Type Dialog BOX ooo cece ee ee ee Re RA ER Gee ee be ee ee ee ee ee 69 Figure 4 29 Breakpoint Event Properties Dialog BOX se se ee ee ee ee ee Ge ee ee ee ee ee 70 Figure 4 30 Breakpoints Window csscs sccscsssctescesebtestsssersncsenseistssnseserssenncndsonsvoneseesbipsoeesbeaess 71 Figure 4 31 Stopping the Program by a Breakpoint iss see see see se ee ee ee Ad Ge ee ee ee ee 72 Bipuire 432 Trace Window RR ER N ER EE 73 Figure 4 33 G
38. alog box e Click the Conditions button and open the Performance Analysis Conditions window e After clicking No 1 in the Performance Analysis Conditions click the Edit button and open the Performance Analysis Properties dialog box Rev 1 0 06 02 page 76 of 84 RENESAS The following dialog box will be displayed to allow selection of the measuring conditions Performance Analysis Properties tTime Of Specified Range Measurement Figure 4 36 Selecting the Conditions for Measurement e Select Time Of Specified Range Measurement from the Measurement Method and select the performance analysis condition for specified range measurement e Input Analysis as the Range Name e Input address H 3fc as the Start Address and address H 428 as the End Address e Click OK to select the conditions This completes the selection Rev 1 0 06 02 page 77 of 84 RENESAS In the Performance Analysis Conditions window the conditions selected in the Performance Analysis Properties dialog box are displayed Performance Analysis Conditions x Address Control Mode Time Measurement Unit PC 160 ns Prefetch C 40 ns C 20 ns C CPU Clock No Condition 1 Analysis Range H O000003FC H 00000428 2 Edit Delete Del All Cancel Help Figure 4 37 Displaying the Measurement Conditions e Click OK to set the measurement conditions Now the performance of the execution in the address range H 3fc
39. ample For another type of E6000 emulator change the file and directory names to the target ones 2 4 1 HDI Installation Procedure e Start the host computer e Close all other applications that are running e Insert HDI installation disk 1 into the floppy disk drive of the host computer e Choose Run from the Start menu e Type A setup exe and click OK L Lx Type the name of a program folder or document and Windows will open it for vou Open fa setup exe gt Cancel Browse BE Es Ee EE EE Figure 2 4 Run Dialog Box This runs the HDI installer and the following Welcome dialog box will be displayed This program will install the Hitachi Debugging Interface for E6000 onto your computer Press the OK button to start the installation You can press the Cancel button if you do not want to install this software Cancel Figure 2 5 HDI Installer Welcome Dialog Box e Click OK to proceed with the installation Rev 1 0 06 02 page 14 of 84 RENESAS The following dialog box displays the Read Me file for the version of the HDI you are installing Figure 2 6 Read Me Dialog Box e Read the Read Me file for any important information concerning the installation and then click OK to proceed Rev 1 0 06 02 page 15 of 84 RENESAS The following dialog box then allows you to select a directory in which to install HDI Select Destination Directory x HDI for E6000 will be
40. ata TRACE_SEARCH TS Specific Searches for trace data USER_SIGNALS US Specific Enables or disables user signals Rev 1 0 06 02 page 84 of 84 RENESAS
41. ct standards or specifications before 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 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 thi
42. e 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 the host computer do not restart it and turn off the power switch e Using a small screwdriver rotate the switch in the rear panel of the PC interface board so that the arrow points to the number corresponding to the memory area you have selected e Remove the cover from the host computer and install the PC interface board in a spare ISA slot e Replace the host computer cover e Connect the PC interface cable between the PC interface board and the PC IF connector on the E6000 emulator Press each plug firmly home until it clicks into position e Switch on the host computer Starting WindowsNT in the Administrator Mode e Install the HDI Software as described in section 2 4 Installing the HDI Software e Execute Start Programs Hdi Setup ISA bus Board If the DOS prompt window does not open open the DOS prompt window first move to the directory where the HDI has been installed then execute SETUPISA EXE Rev 1 0 06 02 page 13 of 84 RENESAS 2 4 Installing the HDI Software This section describes how to install the HDI software by using the SH7010 E6000 for ex
43. e MS DOS Prompt AA Windows Explorer Eh Settings Figure 4 1 HDI Start Menu 4 2 1 Selecting the Target Platform The HDI has extended functions for supporting multiple target platforms and if your system is set up for more than one platform you will first be prompted to choose the target platform Note that you can change the target platform at any time by choosing Select Platform from the Setup menu If you have only one platform installed this menu option will not be available The tutorial selects the E6000 SH7016 7017 Emulator Rev 1 0 06 02 page 42 of 84 RENESAS When the emulator has been successfully set up the Hitachi Debugging Interface window will be displayed with the message Link up in the status bar Pi Hitachi Debugging Interface Tutorial E6000 SH7010 Emulator Menu bar Fie Edit View Bun Setup Tools Window Help Tool bar eleja MESIE Ea a A JENN od ed kta La Fe Fa Fa ee Ga i Help button Status bar IFor Help press F1 NUM Figure 4 2 Hitachi Debugging Interface Window For the key features of HDI see Hitachi Debugging Interface User s Manual For the functions specialized for the E6000 emulator refer to the on line help Menu Bar Gives you access to the HDI commands for setting up the E6000 emulator and using the HDI debugging functions Toolbar Provides convenient buttons as shortcuts for the most frequently used menu commands Status Bar Displays the status of t
44. e Resource tab and in the following form make a note of the upper memory areas that have already been used Rev 1 0 06 02 page 11 of 84 RENESAS jo o ya T be oo aa A e E ee va EE 2 fe f Wwa oo Bedi S F S bB T e Shut down WindowsNT Starting the Host Computer in Setup Mode For details on the setup mode refer to the manual of your host computer e Check which upper memory areas have already been used The memory areas being used should be the same as those checked for WindowsNT above e Define 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 o HCoooo HCSFFF 4 H D0000 HDSFFF 8 HEO000 HESFFF_ 1 HC4000 HCZFFF 5 HD4000 HD7FFF 9 HE4000 HETEFF 2 HCsoo0 HCBFFF e HD8000 HOBFFF A HE8000 HEBFFF 3 Hccooo HEFFFF 7 HOcooo HoFFFF B HEC000 HEFFFF Note 4 is the setting at shipment Rev 1 0 06 02 page 12 of 84 RENESAS If the Intel P amp P BIOS disk is supplied with the host computer define the memory area as follows e Start the 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 fil
45. e between the PC interface board and the PC IF connector on the E6000 emulator Press each plug firmly home until it clicks into position e Switch on the host computer e Open the Computer Properties dialog box and check that the memory area you have selected is listed as System Reserved Computer Properties View Resources Reserve Resources Interrupt request RO irect memory access DMA C Inpul uutput 120 i i Hardware using the setting OOOSFFFF Unavailable for use by devices DOOAFFFF Super YGA OOOBZFFF Unavailable for use by devices DOOBFFFF Super VGA OOOCZFFF Unavailable for use by devices OOODZFFF Unavailable for use by devices 2 000D8000 OOODBFFF System Reserved OOOEOOOO OOC3FFFF Unavailable for use by devices Figure 2 3 Computer Properties Dialog Box After Setting 22 2 Modifying the CONFIG SYS File Prevent the memory area for the PC interface board being accessed by another program as follows e Select Run from the Start menu e Type SYSEDIT and click OK 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 Section 2 2 3 Modifying the SYSTEM INI File e Locate the line in the CONFIG SYS file that reads DEVICE C WINDOWS EMM386 EXE Rev 1 0 06 02 page 10 of 84 RENESAS
46. e board must be inserted into the host computer The PC interface board is a memory mapped board and before inserting it you first need to reserve a block of memory addresses for use by the board This ensures that other programs do not inadvertently use the PC interface hardware The allocated memory area must not overlap memory already allocated to other board If attempted the PC interface board and the E6000 emulator product will not operate correctly At shipment the memory area of PC interface board is allocated to the address range from H DO000 to H D3FFF When using Microsoft Windows 95 or Microsoft Windows 98 operating system refer to section 2 2 Setting Up the PC Interface Board on Windows 95 or Windows 98 When using Microsoft WindowsNT operating system refer to section 2 3 Setting Up the PC Interface Board on WindowsNT 4 0 2 1 Package Contents The E6000 emulator is supplied in a package containing the following components e E6000 emulator e 5V and 5A E6000 emulator power supply AC adapter e Test program disk e HDI installation disks e External probes e Supplementary Information e SH Series E6000 Emulator User s Manual this manual e Hitachi Debugging Interface User s Manual Rev 1 0 06 02 page 7 of 84 RENESAS Before proceeding you should check that you have all the items listed above and contact your Supplier if any are missing 22 Setting Up the PC Interface Board on Windows
47. ectory you want to use and click OK The installer then copies the HDI files to the specified directory Installing Copying Microsoft C Library C AWINDOWS SYSTEM Mfc42 dll EE 32 Figure 2 10 Installing Dialog Box Rev 1 0 06 02 page 17 of 84 RENESAS When first disk 1 installation is completed the installer displays this dialog box Insert New Disk Fi Place installation disk 2 into the floppy Cancel drive and press the OK button Source Pathname Figure 2 11 Insert New Disk Dialog Box e Insert installation disk 2 and press the OK button e Inthe same way insert the next installation disk according to the dialog box message and press the OK button In the installation procedure specify the target communication interface according to the dialog box message After the necessary files have been copied the following dialog box allows you to specify the program group for the HDI icons st Start Menu Group Please select the Start Menu Group that you would like to place the Hitachi Debugging Interface for E6000 series icons into You can select from an existing group or create a new one Group Name HDI Accessories StartUp Figure 2 12 Select Program Manager Group Dialog Box e Select an existing group or enter the name of a new group and click OK to proceed This completes the HDI installation Rev 1 0 06 02 page 18 of 84 RENESAS The installer creates the
48. ell Ge ep ee aan se ed Ee bee ed 42 Figure 4 2 Hitachi Debugging Interface Window sesse ese ee ee Se ee GR GRA GRA Gee Gee ee ee ee 43 Figure 4 3 Emulator Configuration Dialog Box General ee ee se se se ee cess cee Gee se ee ee 45 Figure 4 4 Emulator Configuration Dialog Box Memory Map iese se see ees see Gee ee ee ee 46 Figure 4 5 Memory Block in Extended Mode without ROM see se see ee ee ee ee ee ee ee 48 Figure 4 6 Memory Block in Extended Mode with ROM iese ese ese ee se see Ge Ge ke Gee Gee ee 49 Figure 4 7 Load Object File Dialog BOX wo ee ee ee se Se GR RA RA RA Ge ee Ge ee ee ee ee ee ee 50 Figure 4 8 HDI Information Message BOX esse sees see see se ee ee ee Se Se GR Re GR GRA Re Gee ee ee ee 51 Figure 4 9 Open Dialog BOX se ee ee ee ee ke a E E E E ee ee 52 Figure 4 10 Tutorial Program Window ese ese se see se ee GRA Gee Gee Ge ee ee ee ee Se Se Re ee Re ed ee 53 Figure 4 11 Setting Breakpoint sis is EE Ee ERG ES es did eines neni SR Dee ED Ee GE RED Ee 54 Figure 4 12 Program Break AE EE EE N AE ER N N EE 55 Figure 4 13 System Status WindOW iese see ee ee ee ee ee Re ee ee ee Ge Se Re GR GRA GRA Gee Gee ee ee ee 56 Figure 4 14 Registers WINdOW iseer sees benede Ee GEE Dee Ge ee ee Bee se EG Ee be be Ee Dee 57 Figure 4 15 Register Dialog BOX EE N EE niiair Eoi 58 Figure 4 16 Breakpoints WindOW ue iese ee ee ee ee ee ee Re ee ee ee Se Se tikin RA RA Re Gee tat 59 Figure 4 17 Open Memory Window Di
49. em interface cable connector Power connector External probe a On off switch connectors Case screw Case screw Figure 3 1 E6000 Emulator Connectors Rev 1 0 06 02 page 29 of 84 RENESAS 3 1 1 Example of Connecting the User System Interface Cable Head to the User System Screw x2 Screw x2 User system interface cable head Figure 3 2 Example of Connecting User System Interface Cable Head to User System e Ensure that all power is off to the E6000 emulator user hardware and associated equipment e Insert the cable head into the socket on the user system hardware Depending upon the package it may be possible to orientate this cable head in any position on the socket so care should be taken to correctly identify pin 1 on the E6000 emulator and socket when installing e Screw the cable head to the socket with the screws provided Progressively tighten the screws in the sequence shown in figure 3 3 until all are finger tight QO QO Figure 3 3 Sequence of Screw Tightening Note Be careful not to over tighten the screws as this may result in contact failure on the user system hardware or damage the cable head Where provided use the solder lugs on the QFP socket to provide extra strength to the E6000 emulator user system connection Rev 1 0 06 02 page 30 of 84 RENESAS 3 1 2 Plugging the User System Interface Cable Body into the E6000 Emulator Plug the cable body into the E600
50. eneral Panel in Trace Filter Dialog BOX iese se se se ee Gee ee Ge ee ee ee ee ee 74 Figure 4 34 Bus Area Panel in Trace Filter Dialog BOX eee se ee ee ee Se ee Re RR RA 75 Figure 4 35 Showing Trace Buffer Contents 00 0 0 eee see se ee ee ee Se SR GR Re GR GRA RA ee ee ee ee 75 Figure 4 36 Selecting the Conditions for Measurement iese eee se ee ee ee Ge ee ee ee ee 71 Figure 4 37 Displaying the Measurement ConditiOnS iese see eee see see ee se ee ee ee ee ee ee 78 Figure 4 38 Displaying the Analysis Results 1 oo ese ee se ee ee RA ER Gee Gee Ge ee ee ee ee ee 79 Figure 4 39 Displaying the Analysis Results 2 eise ese ee se ee ee RA RA Gee Gee be ee ee ee ee ee 79 Rev 1 0 06 02 page vi of vii RENESAS Tables Table 1 1 Emulation Memory 00 eee eeeceeeceeneeceeeeeesseceeeesnaeceeeecnaeceseeesaaeceeereneeceeeesaaeesaes 4 Table 1 2 Memory Types is EE SEEN ERK e civic Ene EE Re E eke ek Geek Ee bee REG AGE ee Eg 4 Table 1 3 Environment ConditOnS cece see se ee ee ee Re Re RA RA Re Gee ee be ee ee ee ee 6 Table 2 1 Address Map of PC Interface Board and Memory Switch Setting 9 Table 3 1 Emulation Memory seseris rinore ee Ge Se Re GR RA GRA Re E E ee 33 Table 3 2 Initial Value Differences between MCU and E6000 Emulator uw see sees see ee 40 Fable 4 1 Configuration Options issciseeveseacedscdveddecacucegucsene SR LERE Fe DER EES age Ee conus see oerein 45 Table 4 2 Memory Types EE EE N N 46
51. ep Out from the Run menu to return to the main program or click the Step Out button in the toolbar and return to the main program 4 8 Using the Complex Event System So far in this tutorial we have monitored the behavior of the program by observing the contents of an area of memory in the Memory window or the values of variables in the Watch and Locals windows Rev 1 0 06 02 page 68 of 84 RENESAS Sometimes the action of a program is too complex to allow us to do this Using the emulator s complex event system you can detect the timing when a program accesses address H 3c4 4 8 1 Defining an Event Using the Complex Event System Now define an event using the complex event system to monitor a part of the program as follows e Choose Breakpoint Window from the View menu to display the Breakpoints window or click the Breakpoint Window button in the toolbar e Click Add to define a new breakpoint The Select Event Type dialog box allows you to define the event type Select Event Type C PC Break Detector Figure 4 28 Select Event Type Dialog Box Select Typel Full and click Add The Breakpoint Event Properties dialog box allows you to define the breakpoint s properties Rev 1 0 06 02 page 69 of 84 RENESAS Breakpoint E vent Properties x General Bus Area Signals Action Address Direction C Read Address Lo Ho Address Hi Ho G Fi outside Range Either C Write m Da
52. er 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 E
53. ffice 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 und
54. he E6000 emulator For example progress information about downloads snapshots of address bus in run mode Help Button Activates context sensitive help about any feature of the HDI user interface Rev 1 0 06 02 page 43 of 84 RENESAS 4 3 Setting up the E6000 Emulator Before downloading a program to the E6000 emulator you first need to set up the target MCU conditions The following items need to be configured The device type The operating mode The clock source The user signals The memory map The following sections describe how to set up the E6000 emulator as appropriate for the tutorial program 4 3 1 Configuring the Platform To set up the target configuration Choose Configure Platform from the Setup menu to set up the conditions for the selected platform The following dialog box will be displayed Rev 1 0 06 02 page 44 of 84 RENESAS Emulator Configuration Ea General Memory Map CPU Driver Device SHyO17 Emulator ISA Driver Mode Mode 2 ROM Enabled Change Clock Mode PLL ON 1 z Heaister Checking R r Emulator Clocks J Stack Pornter Clock Rate 10MHz X Jo Praarar Counter Clock Divisor 1 v Signal Enable Resulting CPU clock rate 10 00MHz T Reset Timer Resolution 125ns v r User YCC Threshold 300 HE m Memory Access Software read write on the fly Break on access error I Disable during sleep IV Hardware parallel access lV Wam if downlo
55. hi Debugging Interface E6000 SH7010 Emulator File Edit View Run Setup Tools Window Help Bel Eli HSH eE 2 Figure 2 16 HDI Window 2 5 What Next The E6000 emulator is now correctly set up and ready for use We recommend you work through section 4 Tutorial to familiarize yourself with the key features of the E6000 emulator and to learn how to use the E6000 emulator to develop and debug programs for the MCU Rev 1 0 06 02 page 22 of 84 RENESAS 2 6 Uninstalling the HDI Software This section describes how to uninstall the HDI software on Windows 95 or Windows 98 for example e Select Uninstall HDI for E6000 SH7010 from the Start menu J Accessories gt b JA Intemet Explorer Favorites gt 2 JHDI for E6000 SH7010 StartUp Le i Uninstall HDI for E6000 SH7010 N Documents p MS DOS Prompt J Windows Explorer Eh Settings Figure 2 17 Start Menu Uninstaller Rev 1 0 06 02 page 23 of 84 RENESAS The uninstaller is initiated and the following dialog box will be displayed Uninstall Hitachi Debugging Interface for E6000 SH Select Uninstall Method Welcome to the Hitachi Debugging Interface for E6000 SH uninstall program You can choose to automatically uninstall this software or to choose exactly which changes are made to your system Select the Custom button to select which modifications are to be made during the uninstall Select the Automatic button for the default uninst
56. ially hazardous situation which if not avoided may result in minor or moderate injury CAUTION CAUTION used without the safety alert symbol indicates a potentially hazardous situation which if not avoided may result in property damage NOTE emphasizes essential information Rev 1 0 06 02 page IV of V RENESAS AWARNING Observe the precautions listed below Failure to do so will result in a FIRE HAZARD and will damage the user system and the emulator product or will result in PERSONAL INJURY The USER PROGRAM will be LOST 1 Do not repair or remodel the emulator product by yourself for electric shock prevention and quality assurance 2 Always switch OFF the E6000 emulator and user system before connecting or disconnecting any CABLES or PARTS 3 Always before connecting any CABLES make sure that pin 1 on both sides are correctly aligned 4 Supply power according to the power specifications and do not apply an incorrect power voltage Use only the provided power cable Rev 1 0 06 02 page V of V RENESAS About This Manual This manual explains how to set up and use the E6000 Emulator for the SH series microcomputers It is the Debugging Platform User s Manual for all SH series E6000 emulators For detailed specifications on each E6000 emulator refer to the supplementary information supplied with the E6000 emulator Section 1 Introduction gives a rapid introduction to the system s facili
57. installed into the following directory If vou would like to install it into a different directory drive use the browse list below Note that if you install to a different directory you will have to recompile the tutorial Destination Directory C SHDI_ 7010 Figure 2 7 Select Destination Directory Dialog Box e Click OK to install into the default directory C HDI_7010 or specify an alternative directory and click OK When a directory other than the default directory is specified file tutorial abs will not be installed The following dialog box then asks you whether backups should be made for files replaced by the installation Make Backups This installation can create backup copies of all files replaced during the installation Do you want to create backups of the replaced files Figure 2 8 Make Backups Dialog Box e Click Yes to save any files that may be replaced as part of the installation recommended or No if you do not want to make a backup Rev 1 0 06 02 page 16 of 84 RENESAS If you chose Yes the following dialog box allows you to specify the backup directory Select Backup Directory x The files replaced during the installation will be placed into the following directory If you would like the files placed into another directory please edit the pathname below Destination Directory C HDI ZOTOMBACKUP Co gu7010 Figure 2 9 Select Backup Directory Dialog Box e Enter the dir
58. interface cable removed Figure 3 14 Voltage Level Monitoring Example for Vcc 3 3 V RENESAS Rev 1 0 06 02 page 39 of 84 3 5 Differences between MCU and E6000 Emulator When the E6000 emulator is initialized or the system is reset there are some differences in the initial values in some of the general registers between the MCU and E6000 emulator as shown in table 3 2 Table 3 2 Initial Value Differences between MCU and E6000 Emulator Status Register E6000 Emulator MCU Power on and reset PC Reset vector value Reset vector value command RO to R14 H 00000000 Undefined R15 SP Reset vector value Reset vector value SR HOOOOOOFO l0 to l bits are 1 10 to I3 bits are 1 Reserved bit is 0 Others are undefined PR H 00000000 Undefined VBR H 00000000 H 00000000 GBR H 00000000 Undefined MACH H 00000000 Undefined MACL H 00000000 Undefined Others Value before reset Undefined Please refer to the supplied supplementary information for details of the protection circuit used on the I O ports of the E6000 emulator 3 5 1 A D Converter and D A Converter Due to the use of a user system interface cable there is a slight degradation in the A D and D A conversion than that quoted in the Hardware Manual for the MCU being emulated Rev 1 0 06 02 page 40 of 84 RENESAS Section 4 Tutorial The following describes a sample debugging session designed to introduce the main features of the E6000 emulator
59. ion puts the maximum effort into making semiconductor products better and more reliable but there is always the possibility that trouble may occur with them Trouble with semiconductors may lead to personal injury fire or property damage Remember to give due consideration to safety when making your circuit designs with appropriate measures such as i placement of substitutive auxiliary circuits ii use of nonflammable material or iii prevention against any malfunction or mishap Notes regarding these materials 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 It is therefore recommended
60. lectronics 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 RENESAS RenesasTechnology Corp Cautions Keep safety first in your circuit designs 1 Renesas Technology Corporat
61. nd falling time of these signals must be within 8 ns v or shorter User system interface cable User system interface cable connected by cable head Emulator control circuit Figure 3 10 ITIRQO IRQ7 User System Interface Circuit Rev 1 0 06 02 page 36 of 84 RENESAS 3 4 3 Clock Oscillator Figure 3 11 shows the oscillator circuit example that has been implemented on the E6000 emulator cable head O E6000 emulator Figure 3 11 Oscillator Circuit 3 4 4 External Probe EXT Trigger Output An 8 pin connector marked EXT on the right under the user system interface cable connector on the E6000 emulator case accommodates four external probe inputs and two trigger outputs The pin assignment of this connector is shown in figure 3 12 OOOOOOOO 1 2 3 4 Tuvec T5v Probe Trigger output Figure 3 12 External Probe Connector The interface circuit for the external probes 1 4 is shown in figure 3 13 HD151015 O External probes 1 4 Figure 3 13 Interface Circuit for External Probes 1 4 The trigger output is controlled by event channel 8 and is active low The trigger output is available as either T5V within the range from 2 5 V to 5 V does not depend on the user Vr level or TUV c the user Ve level Rev 1 0 06 02 page 37 of 84 RENESAS 3 4 5 Voltage Follower Circuit CAUTION 1 Do not connect the user system interface cable to the E6000 emulator without user system connection 2 Turn on the
62. ning an Event Using the Complex Event System iese se sees ee ee eke ee ee ee 69 4 9 Using the Trace ES OE ORE EE EN 73 4 9 1 Displaying the Trace Buffer cece ee se ee ee ee ee Se Re RR RA Re ee ee ee 73 4 0 2 Setting a Trace Filter sesse SERS BURG SEE ESE KERS ASE KEES An Ese dk ee SP nee Se EN Sk e Ee Ee ee ge ee 74 4 10 Measuring the Performance eee cee ee ee ee ee AA ri iesi 76 Rev 1 0 06 02 page iv of vii 4 10 1 Selecting the Measurement ConditiOnS ee ee ee se se ee RA Re Ge ee ee ee 76 4 10 2 Displaying the Analysis Results i e ese se se se ee ee RR RA Re Gee ee Ge ee ee ee ee 79 4 11 Saving the Session OE EE RE EE EE NE 80 4 12 What Next EE N EE OE N EE NE EE N 80 Appendix A Command Line Functions esse esse se se ee ee Re ee ee 81 Figures Figure 2 1 Computer Properties Dialog Box Before Setting see se see ee se ee ee ee see 8 Figure 2 2 Edit Resource Setting Dialog BOX ese se se se Ge ee GR Re Gee ee Ge ee ee ee ee ee ee 9 Figure 2 3 Computer Properties Dialog Box After Setting ese ee ee ee ee be ee ee ee ee 10 ot Rum Dialog io AE EE ER OE EN 14 Figure 2 5 HDI Installer Welcome Dialog BOX iese see se see see se ee ee ee ee ee ee Re ee Re ee 14 Figure 2 6 Read Me Dialog BOX iese es Er TEKSE EDE es Ee ee Ke Reede bee Ke eN eek ee geed eek ke Eed SEE Ee RR EER EPE 15 Figure 2 7 Select Destination Directory Dialog BOX ee ee ee ee ee Se ee RA GR Gee Gee se ee ee 16 Figure 2
63. of x Figure 4 20 Watch Window Symbol Expansion Rev 1 0 06 02 page 62 of 84 RENESAS 4 7 Stepping Through a Program The E6000 emulator provides a range of options to perform step execution by executing an instruction or statement at a time The alternative step commands listed in table 4 4 are provided Table 4 4 Step Commands Command Description Step in Executes every statement including statements within functions Step Over Executes a function call in a single step Step out Exits a function and stops at the next statement of the calling program Step Allows you to step repeatedly the specified number of times 4 7 1 Single Stepping e Set aPC break at H 318 e Select Go Reset from the Run menu or click the Go Reset button in the toolbar gi The statement of mask_set will be highlighted SG orial c MIE tut A static void startcMTimer voidj static void startmtu void static void mask_set void static void watchDogTimer_RUN void void main MenmToMemDMAOC CLONG J amp Name DestinationAddress Count BurstMode 0000031c Size Figure 4 21 Program Window after Executing the Step In Command 1 Rev 1 0 06 02 page 63 of 84 RENESAS e Choose Step In from the Run menu or click on the Step In button in the toolbar to step through the mask set statement ry EE c Iof x E 000004ac 000004b8 R W 000004be 1 Fi static void mask set 000004cc I
64. pplied together with the emulator 1 3 3 Probes External probe EXT can be connected to the E6000 emulator to make use of signals from other parts of your user system hardware and can be used to trigger the complex event system depending on whether the probe signal is low or high Rev 1 0 06 02 page 5 of 84 RENESAS 1 3 4 Environment Conditions Observe the conditions listed in table 1 3 when using the E6000 emulator Table 1 3 Environment Conditions Item Specifications Temperature Operating 10 to 35 C Storage 10 to 50 C Humidity Operating 35 to 80 RH no condensation Storage 35 to 80 RH no condensation Ambient gases No corrosive gases AC Power supply voltage 100 V to 240 V AC 50 60 Hz 0 6 A max User system voltage UVcc Depends on the target MCU within the range 2 7 V to 5 5 V 1 3 5 Emulator External Dimensions and Weight Item Specifications Dimensions 219 x 170 x 54 mm Weight 1 000 g Rev 1 0 06 02 page 6 of 84 RENESAS Section 2 Setting Up This section explains how to e Set up the PC interface board HS6000EII0O1H separately purchased e Set up the E6000 emulator e Install the HDI software and use it to check correct operation of the entire system To use another interface board such as a PC card PCMCIA refer to the user s manual for that interface board The E6000 emulator communicates with the HDI through the PC interface board and therefore the PC interfac
65. r Connectors esse ese see ee ee ee Gee Gee Gee ee be ee ee ee ee ee Re ee 29 Figure 3 2 Example of Connecting User System Interface Cable Head to User System 30 Figure 3 3 Sequence of Screw Tightening esse sees see se ee ee ee Ge SR GR RA Re Gee ee ee ee 30 Figure 3 4 Plugging User System Interface Cable Body to E6000 Emulator esse esse esse ese 31 Figure 3 5 Polarity of Power Supply Plug iese esse ee see ee Se GR RA Re Gee ee ee Ge ee ee ee See ee 32 Figure 3 6 User System Interface Circuit for General Ports eee cee eee ee ee ge ee ee ee ee 35 Figure 3 7 User System Interface Circuit for MD2 MD1 MDO WAIT NMI and STBY 35 Figure 3 8 User System Interface Circuit for RESET 0 eee eee ee ee ee ee cece cee ee ee ge ee ee ee ee 35 Figure 3 9 User System Interface Circuit for Analog Port Control SignalS eee 36 Figure 3 10 IRQO IRQ7 User System Interface Circuit eee se see ee RR Re Gee ee ee ee 36 Figure 3 11 Oscillator Circuits ees Ee SEE ED se AE Ee Ee GOU Ee GE DEE GR dee GE Pe be Dee REG NES 37 Figure 3 12 External Probe Connector esse se se see ee ee GR Gee Gee iare ee ee ee ee ee ee ee Re ee ee 37 Figure 3 13 Interface Circuit for External Probes 1 4 se se se ee ee ee ee ee Re ee ee ee ee 37 Rev 1 0 06 02 page v of vii RENESAS Figure 3 14 Voltage Level Monitoring Example for Vcc 3 3 V iese se ee se se ee ee ee 39 Figure 4 1 HDI Start Menu sissies Ge Ee Gee Eg Ge ein
66. rogram Window after Executing the Step Over Command Rev 1 0 06 02 page 66 of 84 RENESAS 4 7 3 Displaying Local Variables You can display local variables of a function using the Local Variables window For example we will examine the local variables in the function startCMTimer e Choose Step In from the Run menu to start executing the function st art CMTimer or click the Step In button in the toolbar one time id SE torial c lol a A int xl 4 int CK 2 b WORD w CompareMatchTimerRegister CompareMatchTimerRegister CR 000003fe CR w 0 00000402 CR b IE 0000040c CR b CK ANAANALOS HORTON 4 Figure 4 25 Program Window after Executing the Step In Command 4 e Open the Locals window by choosing Local Variable Window from the View menu Initially the Locals window will not show correct values because the local variables declarations have not yet been executed e Choose Step In from the Run menu or click the Step In button in the toolbar to perform step execution one time ry Rev 1 0 06 02 page 67 of 84 RENESAS The Locals window will now show the local variables and their values Locals Figure 4 26 Displaying Local Variables e Double click the symbol to the left of the variable CR in the Locals window to display the individual elements of the array CR Locals Ox 4 Oxfffffff4 D O Figure 4 27 Displaying Local Variables Elements in an Array e Choose St
67. ry block MEMORY_UPDATE MU Specific Updates windows related to memory MODE MO Specific Sets or displays the MCU mode QUIT QU General Terminates the HDI RADIX RA General Sets a radix for input value REGISTER_DISPLAY RD General Displays the MCU register values REGISTER_SET RS General Sets the MCU register values RESET RE General Resets the MCU SLEEP General Delays command execution STEP ST General Performs single step execution in instruction unit or source line unit STEP OUT SP General Step out of the current function STEP OVER SO General Performs step over execution STEP_RATE SR General Set rate for multiple steps RENESAS Rev 1 0 06 02 page 83 of 84 Table A 1 Command List cont Abbrevia Command Command Name tion Type Description SUBMIT SU General Executes an emulator command file SYMBOL ADD SA General Adds a symbol SYMBOL CLEAR SC General Deletes a symbol SYMBOL LOAD SL General Loads a symbol information file SYMBOL SAVE SS General Saves a symbol information file SYMBOL VIEW SV General Displays a symbol TEST EMULATOR TE Specific Tests the E6000 emulator hardware TIMER Tl Specific Sets or displays the timer minimum measurement unit for execution time measurement TRACE TR General Displays trace data TRACE_ACQUISITION TA Specific Sets or displays trace acquisition information TRACE_COMPARE TC Specific Compares trace data TRACE_SAVE TV Specific Saves trace d
68. s PC Breakpoints Up to 256 program breakpoints can be defined These program breakpoints are set by replacing the user instruction by a BREAK instruction 1 1 2 Trace The E6000 emulator incorporates a powerful realtime trace facility which allows you to examine MCU activity in detail The realtime trace buffer holds up to 65535 bus cycles and it is continuously updated during execution The buffer is configured as a rolling buffer which can be stopped during execution and read back by the host computer without halting emulation The data stored in the trace buffer is displayed in both source program and assembly languages for ease of debugging However if trace filtering is used only assembly language can be displayed Rev 1 0 06 02 page 1 of 84 RENESAS The buffer can be set up to store all bus cycles or just selected cycles This is called trace acquisition and uses the complex event system CES to select the parts of the program you are interested in see section 1 2 Complex Event System CES for more information It is also possible to store all bus cycles and then just look at selected cycles This is called trace filtering 1 1 3 Execution Time Measurements The E6000 emulator allows you to measure the total execution time or to measure the time of execution between specified events in the complex event system You can set the resolution of the timer to any of the following values 20 ns 125 ns 250 ns 500 ns 1 us 2
69. s document or Hitachi semiconductor products IMPORTANT INFORMATION READ FIRST e READ this user s manual before using this E6000 emulator e KEEP the user s manual handy for future reference Do not attempt to use the E6000 emulator until you fully understand its mechanism E6000 emulator Throughout this document the term E6000 emulator shall be defined as the E6000 emulator user system interface cable PC interface board and optional SIMM memory module produced only by Hitachi Ltd excluding all subsidiary products The user system or a host computer is not included in this definition Purpose of the E6000 emulator This E6000 emulator is a software and hardware development tool for systems employing the Hitachi microcomputer SH series hereafter referred to as MCU This E6000 emulator must only be used for the above purpose Improvement Policy Hitachi Ltd including its subsidiaries hereafter collectively referred to as Hitachi pursues a policy of continuing improvement in design functions performance and safety of the E6000 emulator Hitachi reserves the right to change wholly or partially the specifications design user s manual and other documentation at any time without notice Target User of the E6000 emulator This E6000 emulator should only be used by those who have carefully read and thoroughly understood the information and restrictions contained in the user s manual Do not attempt to
70. sportation 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 C G D mh on lt D D sTENESAS SH Series E6000 Emulator User s Manual Renesas Microcomputer Development Environment System Renesas Electronics Rev 1 0 2002 07 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 produ
71. t command gt Command name or its abbreviation Table A 1 Command List Abbrevia Command Command Name tion Type Description General Comments ACCESS AC General Sets operation for invalid access ANALYSIS AN Specific Enables or disables the performance analysis range ANALYSIS RANGE AR Specific Sets or displays the performance analysis range ANALYSIS RANGE DELETE AD Specific Cancels the performance analysis range ASSEMBLE AS General Assembles a program ASSERT General Checks conditions BREAKPOINT EVENT BP EN Specific Sets a breakpoint or an event BREAKPOINT CLEAR BC Specific Clears a breakpoint or an event EVENT_CLEAR EC BREAKPOINT_DISPLAY BD Specific Displays breakpoints or events EVENT_DISPLAY ED BREAKPOINT_ENABLE BE Specific Enables or disables a breakpoint EVENT ENABLE EE or an event BREAKPOINT SEGUENCE BS Specific Defines or clears a breakpoint or EVENT_SEQUENCE ES event sequence RENESAS Rev 1 0 06 02 page 81 of 84 Table A 1 Command List cont Abbrevia Command Command Name tion Type Description CLOCK CK Specific Sets the CPU clock rate in the E6000 emulator CLOCK_MODE CM Specific Sets and displays clock mode CLOCK_DIVISOR CD Specific Sets and displays clock divisor CONFIGURE_PLATFORM CP Specific Sets and displays configuration option DEVICE_TYPE DE Specific Selects the target device in the E6000 emulator DISASSEM
72. ta Compare Detector 1 Use Mest Value pmo v C Bite f Wt rd eS isng z Enabled I Compare Mest H FF Bute LL CLH C HL C HH Cancel Apply Help Figure 4 29 Breakpoint Event Properties Dialog Box e Select Address in the Address Section and enter the address H 3c4 into the Address Lo box as a condition e Click OK to define the breakpoint This will cause a break whenever address H 3c4 is accessed either for a read or a write Rev 1 0 06 02 page 70 of 84 RENESAS The Breakpoints window shows the new event you have defined Breakpoints olx yme Type main osteo Les CM AL Program eis 1 of 256 PC breakpoints in use 1 of 8 type 1 full events in use 0 of 4 type 2 events in use 0 of 3 type 3 events in use Figure 4 30 Breakpoints Window e Select the line of the address H 00000318 in the Breakpoints window and click Delete to delete the PC breakpoint set in address H 318 e Select Go Reset from the Run menu or click the Go Reset button in the toolbar to execute the program from the reset vector Rev 1 0 06 02 page 71 of 84 RENESAS Execution will stop at address H 3c4 FA Hitachi Debugging Interface Tutorial E6000 SH7010 Emulator Iof xi Fie Edt View Run Setup Tools Window Help Bel alee lala Elle eE a Default all bits to 0 00000370 00000374 00000380 Q000038c 00000398 000003a4 000003b0 000003ba INC Source mode INC Destination mode
73. ted 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 b
74. 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 for tran
75. the toolbar ca Rev 1 0 06 02 page 54 of 84 RENESAS The program will be executed up to the PC break you inserted and the statement will be highlighted in the program window to show that the program has halted SE tutorial c OO x Code 00000318 mask_set MemToMemDMAO LONG J amp Name DestinationAddress Count BurstMode 0000031c Size 0000033a sleep 0000033c startmtu ANQOAIAG clann Na 4 Figure 4 12 Program Break The message Break PC Break is displayed in the status bar to show the cause of the break You can also see the cause of the last break in the System Status window e Choose Status Window from the View menu or click the Status Window button in the toolbar Rev 1 0 06 02 page 55 of 84 RENESAS System Status Connecte C Hdi_7010 Tutorial Tutorial hds c Hdi_7010 Tutorial Tutorial abs Ae SH7016 7017 Emulator Emulator ISA Driver Brea SH7O017 Mode 2 ROM Enabled 3 Rate 10MHZ Multiplier 1 Divisor 1 10 OOMHZ OH OM OS 47 375usS OH OM OS 0 OOOuS PC Break OK Inactive Inactive Not Connected OOOOOOOO OOO1FFFF FFFFFOOO FFFFFFFF 64K trace V1 SH7O10 VO 6 5 Mb sie 0 E6 7010 1 0 Figure 4 13 System Status Window The Cause of last break line shows that the break was a PC break The Run Time Count line shows that the user program executing time from user program start to break is 47 375 us The timer resolution of the event time
76. ties including an overview of the main emulation features provided by the E6000 emulator and the Hitachi debugging interface HDI software that provides access to them Section 2 Setting Up describes how to set up the E6000 emulator and prepare it for use in conjunction with the Hitachi Debugging Interface HDI Section 3 Hardware explains how to connect the E6000 emulator to an external user system Section 4 Tutorial then introduces each of the E6000 emulator s main features by showing how to load and debug a simple C program The tutorial program is supplied on disk so that you can follow the steps on your own system to learn first hand how it operates Assumptions This manual assumes that you already have a working knowledge of the procedures for running and using programs for MS DOS and Microsoft Windows operating system This manual also assumes that the operating environment is the English version of Microsoft Windows 98 operating system running on the IBM PC Related Manuals e Supplementary Information e Hitachi Debugging Interface User s Manual e User System Interface Cable User s Manual e PC Interface Board User s Manual e SIMM Memory Module User s Manual Rev 1 0 06 02 page i of vii RENESAS Conventions This manual uses the following typographical conventions Style Used for computer Text that you type in or that appears on the screen parameter A label representing the actu
77. to H 428 can be measured e Click Close and close the Performance Analysis dialog box e Open the Breakpoints window from the View menu and cancel all breakpoints by clicking the Del All button Then double click the Break column of the line that includes address H 34a and set a PC break e Select Go Reset from the Run menu or click the Go Reset button in the toolbar and execute the program from the beginning The program will stop at address H 34a Rev 1 0 06 02 page 78 of 84 RENESAS 4 10 2 Displaying the Analysis Results The performance analysis results are displayed as a histogram or as percentages e Select Performance Analysis Window from the View menu or click the Performance Analysis Window button in the toolbar and open the Performance Analysis dialog box Performance Analysis x No Nane Mode Rate 0 10 20 30 40 50 60 70 80 90 100 a 1 Analysis Range EEKE E EEEE E E E E EEEE EEE E E E E EEEE EE E E E EEEE EE E E E E EE EEE E Close Help Figure 4 38 Displaying the Analysis Results 1 The performance analysis results are displayed as a histogram and as percentages e Click Value Performance Analysis x No Nane Mode Rate RUN TIME 1 Analysis Range 93 OOH OOM O03S 355455 200uS coe ser Figure 4 39 Displaying the Analysis Results 2 The analysis results are displayed as percentages and as the actual time measured Rev 1 0 06 02 page 79 of 84 RENESAS 4 11 Saving
78. to the Cable Head 31 Rev 1 0 06 02 page iii of vii RENESAS 3 2 Power SUpply AE RR RE OR EE OE N EE NE 32 3 2 1 es EE RO EE OE NE N Rani EE onli 32 3 22 ii SE EE OE EO EE EE ES 32 3 2 3 Power Supply Monitor Circuit cece se se ee ee RA Re Gee ee be ee ee ee ee ee ee 32 3 3 SIMM Memory Module esse esse ese esse esse ee es be ee Se ees Ge ein bede Soe Se Ed ES Ee ee Se Ge ee ee 33 3 3 1 Optional SIMM Memory Module Configuration sees se esse ese ee Ge ee ee ee 33 EE ES din ar RE OE OE EA OE N 33 3 4 1 Signal Protection on the E6000 Emulator esse ese esse see ee ee ese ese ee ee ee ee ee 33 3 42 User System Interface Circuits suis ie esse ee Ede sede gees ERG oge RE ee gee Be ee eed gee eva 34 EN ok da Uile EE EE RE EE EE N 37 3 44 External Probe EXT Trigger Output oe see se see ees see Gee Gee Ge ee ee ee ee ee 37 3 4 5 Voltage Follower Circuiten es ee ee Be Be oe Ge see boe sed see Se ee Re ee Be ee see og 38 3 5 Differences between MCU and E6000 Emulator eee see ese ee ee ee ee se ee ge ee ee ee ee ee 40 3 5 1 A D Converter and D A Converter iese se se ee RA ee ee ee Ge ee ee ee ee ee ee 40 les lof Ah Ga EE OE dere 41 AN ie RE EE AE ica ded ais E REA ces AE E E ee RS 41 AD Starine IDEE EE EE HE MERE E N 42 42 1 Selecting the Target Platform 2 0 0 ee ee se Se ee RR RA GR Gee ee Ge ee ee ee ee 42 4 3 Setting up the E6000 Emulator sees se esse ee se ee ee Ge Se ee RA GRA ee Gee ee be ee ee ee ee 44 4 3 1
79. ue to H 31C the address of the previous statement and click OK The highlighted bar will move to the previous statement in the program window to show the new PC value e Choose Go from the Run menu or click the Go button in the toolbar to execute up to the breakpoint again Rev 1 0 06 02 page 58 of 84 RENESAS 4 5 4 Reviewing the Breakpoints You can see a list of all the breakpoints set in the program in the Breakpoints window e Choose Breakpoints Window from the View menu or click the Breakpoint Window button in the toolbar Breakpoints Eie aes POLE EE TUTORIAL c 40 cu 336 Program count 1 1 of 256 PC breakpoints in use 0 of 8 type 1 full events in use 0 of 4 type 2 events in use 0 of 3 type 3 events in use Figure 4 16 Breakpoints Window The Breakpoints window also allows you to enable or disable breakpoints define new breakpoints and delete breakpoints Before proceeding remove the breakpoint as follows e Highlight the breakpoint in the Breakpoints window and click Delete e Close the Breakpoints window Rev 1 0 06 02 page 59 of 84 RENESAS 4 6 Examining Memory and Variables You can monitor the behavior of a program by examining the contents of an area of memory or by displaying the values of variables used in the program 4 6 1 Viewing Memory You can view the contents of a block of memory in the Memory window For example to view the memory corresponding to the array Name in ASCII
80. use the E6000 emulator until you fully understand its mechanism It is highly recommended that first time users be instructed by users that are well versed in the operation of the E6000 emulator Rev 1 0 06 02 page of V RENESAS LIMITED WARRANTY Hitachi warrants its E6000 emulators to be manufactured in accordance with published specifications and free from defects in material and or workmanship Hitachi at its option will repair or replace any E6000 emulators returned intact to the factory transportation charges prepaid which Hitachi upon inspection determine to be defective in material and or workmanship The foregoing shall constitute the sole remedy for any breach of Hitachi s warranty See the Hitachi warranty booklet for details on the warranty period This warranty extends only to you the original Purchaser It is not transferable to anyone who subsequently purchases the emulator product from you Hitachi is not liable for any claim made by a third party or made by you for a third party DISCLAIMER HITACHI MAKES NO WARRANTIES EITHER EXPRESS OR IMPLIED ORAL OR WRITTEN EXCEPT AS PROVIDED HEREIN INCLUDING WITHOUT LIMITATION THEREOF WARRANTIES AS TO MARKETABILITY MERCHANTABILITY FITNESS FOR ANY PARTICULAR PURPOSE OR USE OR AGAINST INFRINGEMENT OF ANY PATENT IN NO EVENT SHALL HITACHI BE LIABLE FOR ANY DIRECT INCIDENTAL OR CONSEQUENTIAL DAMAGES OF ANY NATURE OR LOSSES OR EXPENSES RESULTING FROM ANY DEFECTIVE
81. used in conjunction with the Hitachi debugging interface HDI software Therefore the SIMM memory module must be installed in the E6000 emulator The tutorial is designed to run in the E6000 emulator s resident memory so that it can be used without connecting the E6000 emulator to a user system The tutorial assumes that the SH7010 E6000 is used When using another type of E6000 emulator change the file and directory names to your target ones 4 1 Introduction The tutorial is based on a simple C program Before reading this chapter e Set up the E6000 emulator from the HDI software See section 2 Setting Up You do not need to connect the E6000 emulator to a user system to use this tutorial e Make sure you are familiar with the architecture and instruction set of the MCU For more information refer to the Hardware Manual and the Programming Manual for the target MCU The tutorial program starts the Direct Memory Access Controller DMAC by the MTU and transfers Name Hitachi Ltd string to the memory start address Destination Address H 200000 The source program tutorial C and the object file in the Sysrof format tutorial abs are provided in the HDI installation disk Rev 1 0 06 02 page 41 of 84 RENESAS 4 2 Starting HDI To start the HDI e Select HDI for E6000 SH7010 from the Start menu Accessories gt J Internet Explorer gt ae Faroes gt FA StartUp b N Uninstall HDI for E6000 SH7010 eN Documents d b
82. ut 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 o
83. v 1 0 06 02 page 8 of 84 RENESAS Table 2 1 Address Map of PC Interface Board and Memory Switch Setting Address Range Switch Setting From H C0000 to H C3FFF From H C4000 to H C7FFF From H C8000 to H CBFFF From H CC000 to H CFFFF From H D0000 to H D3FFF at shipment From H D4000 to H D7FFF From H D8000 to H DBFFF From H DC000 to H DFFFF From H E0000 to H E3FFF From H E4000 to H E7FFF From H E8000 to H EBFFF From H ECO00 to H EFFFF OP Oo N OU BOD AO Define the memory area so that Windows 95 or Windows 98 does not use the area as follows e Click Memory in the Reserve Resources panel and click Add The Edit Resource Setting dialog box will be displayed Edit Resource Setting EIE3 Enter the beginning and ending values of the memory range you would like to reserve Start value Ds000 4 End value per 4 Figure 2 2 Edit Resource Setting Dialog Box e Enter the memory area addresses in Start value and End value e Shut down the host computer do not restart it and turn off the power switch e Using a small screwdriver rotate the switch in the rear panel of the PC interface board so that the arrow points to the number corresponding to the memory area you have selected e Remove the cover from the host computer and install the PC interface board in a spare ISA slot Rev 1 0 06 02 page 9 of 84 RENESAS e Replace the host computer cover e Connect the PC interface cabl
84. ystem memory Emulator Accesses the E6000 emulator SIMM memory module Rev 1 0 06 02 page 4 of 84 RENESAS The contents of a specified block of memory can be displayed using the Memory Window function The contents of memory can be modified at any time even during program execution and the results are immediately reflected in all other appropriate windows Note that the time taken to modify memory contents during program execution may differ depending on the settings but approximately has the following time reguirements 1 MCU on chip or ROM or emulator SIMM memory module The E6000 emulator modifies the memory contents by temporarily switching the memory bus to the emulator side without stopping the user program execution For both memory read and memory write accesses the HDI stores a maximum of 256 bytes of memory contents in the buffer Therefore the emulator uses the memory bus for up to 80 us 25 MHz on chip ROM 2 MCU on chip RAM or I O user system memory The E6000 emulator stops the user program execution then modifies the memory contents As stated above a maximum of 256 bytes of memory contents are accessed Therefore the user program stops for a maximum of 2 ms 25 MHz emulation memory 1 3 2 Clocks The clock can be specified as E6000 emulator internal clock or target clock The frequencies that can be specified as the emulation clock depend on the MCU For details refer to the supplementary information su
Download Pdf Manuals
Related Search
Related Contents
Encoder Firmware Philips ProTouch Garment Steamer GC660/05 Sumário Atos do Poder Judiciário Atos do Poder Epson CX7800 Start Here Card PaseoBebe.com 3-Vitesse Platine Vintage Mode d`emploi Krell Industries 400 Stereo Amplifier User Manual Copyright © All rights reserved.
Failed to retrieve file