Home
SH7144F E10A Emulator User`s Manual
Contents
1. a LF Z7 A Insert into the PCMCIA TYPE II slot Y F t Connect to the Hitachi UDI port connector User system Figure 1 1 System Configuration with the Emulator PCMCIA Card Emulator Used RENESAS User system interface cable PCI card emulator SHxxxx na Insert into LV the PCI slot ASSEN User system Host computer PC rith PCI slot i Figure 1 2 System Configuration with the Emulator PCI Card Emulator Used The emulator provides the following features Excellent cost performance card emulator Compactness and low price are implemented using the PCMCIA interface or the PCI interface Realtime emulation Realtime emulation of the user system is enabled at the maximum operating frequency of the CPU Excellent operability Using the Hitachi Debugging Interface HDI on the Microsoft Windows 98 Microsoft Windows Me Microsoft Windows 2000 and Microsoft Windows NT operating systems enables user program debugging using a pointing device such as a mouse The HDI enables high speed downloading of load module files Various debugging functions Various break and trace functions enable efficient debugging Breakpoints and break conditions can be set by the specific window trace information can be displayed on a window and command line functions can be used Memory access during emulation During emulation the memory conte
2. Figure 3 49 Breakpoints Window After Sequential Break Condition Setting e Close the Breakpoints window e Set the program counter and stack pointer values PC H 800 and R15 H FFFFFFFC that have been set in section 3 8 Setting Registers in the Registers window Click the Go button 69 RENESAS The program runs and then stops at the condition specified under Break Condition 1 if TUTORIAL c MEE Address BP Labe Sourcen F 00003000 _main ae main void Jong a 10 min max long j int i 00003002 forg i 0 i lt 10 i Df 0000300a j rand 00003012 ifG lt Of 00003016 j j 0000301a a i j 00003036 sorta 0000303e min alo 00003042 max al9 00003046 min 0 0000304a max Q 0000304e change a 00003056 min a 9 0000305e 0000306c _sort void sort long a long t int i j k gap ANNN ANN aan fs Figure 3 50 Source Window at Execution Stop Sequential Break 70 RENESAS The System Status window displays the following contents System Status f o x Item Status Connected to SHxxxx ELOA Emulator E10A PCI Card Driver 4 CPU SH xxxx Run status Break Cause of last break BREAK CONDITION S1 Run_ time count O000hOOmin00s000ms Emulation mode Sequential break condition 2 1 Big endian AUD Figure 3 51 Displayed Contents of the System Status Window Sequential Break Note The items that can be displayed in this window differ according t
3. Click the Close button RENESAS 7 Supply power to the user system The subsequent procedures depend on the activation mode that was selected in step 5 2 5 1 SHxxxx E10A Emulator Mode This mode is used for debugging in the emulator 1 The HDI window is displayed and the dialog box is displayed as shown in figure 2 9 HDI N Please Reset the user system and press lt Enter gt Key Figure 2 9 Dialog Box of the RESET Signal Input Request Message 2 After the System Clock window appears input the system clock frequency This frequency value is used when writing and erasing flash memory in the emulator System Clock Please input System Clock Figure 2 10 System Clock Dialog Box 3 Set an eight digit hexadecimal ID code as a security code for the flash memory However FFFFFFFF cannot be set as the ID code Input the ID code when SHxxxx E10A Emulator is selected and the New registration check box is unselected on activating the HDI If the ID code is not matched the flash memory contents are erased RENESAS ID Code Please input ID Code Figure 2 11 ID Code Dialog Box 3 When Link up appears on the status bar the user and emulator programs have been downloaded to the flash memory and the HDI initialization is complete eee ri Figure 2 12 HDI Status Bar Notes 1 When the HDI is not linked up even if the above procedure has been executed the driver will not be set correctl
4. operating system This manual describes the functions and operating procedures of the E10A emulator Sections 1 to 5 describe common features of all types of E10A emulators Section 6 describes supplements to the E10A emulator Read section 1 1 Warnings carefully before using the emulator This manual consists of six sections The information contained in each section is summarized below e Section 1 Overview gives the emulator overview e Section 2 Preparation before Use gives instructions for first time users such as preparation before use and system connection e Section 3 Tutorial describes HDI operating examples e Section 4 Descriptions of Windows describes HDI windows for operating the emulator e Section 5 Command line Functions describes how to input HDI commands and command types e Section 6 SH7144F E10A Emulator Specifications describes the features of the E10A emulator for each MCU Section 7 describes the important information of the E10A emulator according to emulator products Read these sections before using the E10A emulator The HDI installation disks are provided by the CD R Refer to the descriptions in the manuals of the host computer or operating system RENESAS Related Manuals e SuperH RISC Engine C C Compiler Assembler Optimizing Linkage Editor User s Manual e Hitachi Debugging Interface User s Manual e Hardware Manual for each MCU e Programming Manual for each MCU Notes 1 I
5. 2 Empty setting of Break Condition 2 Edit button Changes the Break Condition settings selected in the Break Condition list box Clicking this button displays the Break Condition dialog boxes Reset button Clears the Break Condition settings selected in the Break Condition list box Reset All button Clears all Break Condition settings in the Break Condition list box Related Commands BREAKCONDITION_CLEAR command BREAKCONDITION_DISPLAY command BREAKCONDITION_ENABLE command BREAKCONDITION_SET command 97 RENESAS 4 2 4 Break Point Dialog Box Function This dialog box sets software breakpoints Window Breakpoint X Address Address Value H 00003054 Figure 4 9 Break Point Dialog Box Note The items that can be set in this window differ according to the product For the settings for each product refer to the online help 98 RENESAS Description The Break Point dialog box consists only of the Address page This dialog box sets address conditions and address areas The Address page options are as follows Table 4 10 Address Page Options Option Description Value edit box Sets a breakpoint address with a number or a symbol Clicking the OK button enables breakpoints to be set If the Cancel button is clicked this dialog box is closed without setting breakpoints Related Commands BREAKPOINT command BREAKPOINT_CLEAR command BREAKPOINT_DISPLAY co
6. BCD and BCE commands Breakpoints window Break and Break Condition dialog boxes 130 RENESAS 5 2 7 BREAKPOINT BP Description Sets software breakpoints Note The function will differ according to the devices used Format bp lt address gt Table 5 8 BREAKPOINT Command Parameters Parameter Type Description lt address gt Numerical value Breakpoint address When an odd address is set the address is rounded down to an even address Note The parameters for this command differ according to the product For the specifications of each product refer to the online help Examples To set a software breakpoint at address H 12C8 gt bp H 12C8 RET Related Items BC BD and BE commands Breakpoints window Break dialog box 131 RENESAS 5 2 8 BREAKPOINT_CLEAR BC Description Clears software breakpoints that have been set Format be lt address gt Table 5 9 BREAKPOINT_CLEAR Command Parameters Parameter Type Description lt address gt Numerical value Breakpoint address Notes When no parameters are set all software breakpoints are cleared Note The parameters for this command differ according to the product For the specifications of each product refer to the online help Examples To clear all breakpoints gt bc RET To clear software breakpoints whose address value is H 1000 gt be H 1000 RET Related Items BP BD and BE commands Breakpoints window Break dialog box
7. Break point list box Description Lists the software breakpoints currently being set The display contents are lt breakpoint address gt Add button Sets software breakpoints Clicking this button displays the Break Point dialog box Edit button Changes the software breakpoint selected in the Break point list box Clicking this button displays the Break Point dialog box Reset button Clears the software breakpoint selected in the Break Point list box Reset All button Related Commands BREAKPOINT command Clears all software breakpoints displayed in the Break Point list box BREAKPOINT_CLEAR command BREAKPOINT_ENABLE command BREAKPOINT_DISPLAY command 95 RENESAS 2 Condition Page Break Dialog Box Function This page displays the Break Condition settings These conditions can also be set or cleared in this page Window Figure 4 8 Condition Page Break Dialog Box Note The number of hardware break conditions differs according to the product For the number that can be specified for each product refer to the online help 96 RENESAS Description Table 4 9 Condition Page Options Option Description Break Condition list Displays the Break Condition settings box The display at system initiation is as follows When conditions are set Enable is displayed When no conditions are set Empty is displayed 1 Empty setting of Break Condition 1
8. Figure 2 16 Figure 2 17 Figure 2 18 Figure 2 19 Figure 2 20 Figure 2 21 Figure 2 22 Figure 2 23 Figure 3 1 Figure 3 2 Figure 3 3 Figure 3 4 Figure 3 5 Figure 3 6 Figure 3 7 Figure 3 8 Figure 3 9 Figure 3 10 Figure 3 11 Figure 3 12 Figure 3 13 Figure 3 14 Figure 3 15 vi System Configuration with the Emulator PCMCIA Card Emulator Used 1 System Configuration with the Emulator PCI Card Emulator Used 2 Emulator Preparation Flow Chart ccceeceescesecesecsecssecsseceecaeeseeeeeeseeeseneeeeeestens 7 Inserting the PCMCIA Card Emulator in the Host Computer s Slot 11 Inserting the PCI Card Emulator in the Host Computer s Slot eee 11 Connecting the User System Interface Cable to the User System when the 14 pin Straight Type Connector is Used 0 eee eeeesecesecesecneeeneeeneeees 13 User System Example c cscsesesseseeoeecosestersenesnsessesstensessseescessonesserentsoevesebessenss 14 Start Menu cceccccecssccccssssececssccecesseeeecsssaeeecseeeeesesaececseaaececseeeeeesaeeecsesaeeeseneeenas 15 Select Session Dialog BOX eeecesseeceseceeseeceeeeeeneeceseeeeneeceaeeeeaeeceaeeeeaeecneeeeneeces 16 E10A Driver Details Dialog BOX cece eesceceeeeeeneeceseeeeneeceseeeeaeeceaeeeeneecneeeeneeees 17 Dialog Box of the RESET Signal Input Request Message eee eeeee enero 18 System Clock Dialog Box ieee ee eceeseesecesecesecssecaeecaeecaeeseeseneeeeeeeeeeenseenaeenaes 18 TID Code Di
9. GO_OPTION command 87 RENESAS 2 E10A Driver Details Dialog Box Function Function When the Change button in the Driver group box is clicked on the General page in the Configuration dialog box the E10A Driver Details dialog box is displayed Driver E10A PC Card Driver X Details Interface PC Card v Channel E10A PC Card Interface Contiguration Configure Help Figure 4 4 E10A Driver Details Dialog Box Description Table 4 4 Options for the E10A Driver Details Dialog Box Option Description Driver combo box Selects the driver to connect the HDI with the emulator Selects E10A PC Card Driver to use the PCMCIA card emulator Selects E10A PCI Card Driver to use the PCI card emulator For details refer to section 6 5 1 Emulator Driver Selection Interface combo box Displays the interface name of the card emulator to be connected Selects PC Card to use the PCMCIA card emulator Selects PCI to use the PCI card emulator If the driver is not installed the PC Card or PCI is not displayed Channel combo box Displays the interface to which the board is connected 88 RENESAS 4 2 2 Breakpoints Window Function This window lists all break conditions that have been set Window Breakpoints f ol x 5 fe ak eon L 00003046 Brea condition 2 Figure 4 5 Breakpoints Window 89 RENESAS Description The Breakpoints
10. The address set in the value field of Breakpoint and the memory space are displayed Figure 3 36 Point Page Break Dialog Box After Software Breakpoint Setting e Click the Close button or the OK button in some emulator products 57 RENESAS The software breakpoint that has been set is displayed in the Breakpoints window Breakpoints Of x Figure 3 37 Breakpoints Window Software Breakpoint Setting To stop the tutorial program at the breakpoint the following procedure must be executed e Close the Breakpoints window e Set the program counter and stack pointer values PC H 00000800 and R15 H FFFFFFFC that have been set in section 3 8 Setting Registers in the Registers window Click the Go button The program runs and stops at the set breakpoint 58 RENESAS if TUTORIAL c Off x Address BP Labe Source 00003000 _main aie main void Torg a 10 min ong j int i 00003002 ki 0 1 lt 10 i Jf 0000300a rand 00003012 i lt an 00003016 0000301a 00003036 0000303e 00003042 00003046 0000304a 0000304e 0000305a 0000305e while anys 0000306c _sort void sort long a long t int i j k gap NNANNAZAFNA aan Re Figure 3 38 Source Window at Execution Stop Software Break The System Status window displays the following contents System Status ofj iol x Item Status Fonnected to SHxxxx ELOA Emulator E10A PCI Card Dr
11. The user program is utter of the continuously executed emulator becomes full 72 RENESAS 3 18 1 AUD Trace Function This function is operational when the AUD pin of the MCU is connected to the emulator The following is the procedure for setting the AUD trace function this function need not to be set in an emulator that does not support the AUD trace function 1 Select Trace from the View menu 2 Click the Trace window with the right mouse button and select Acquisition from the pop up menu to display the Trace Acquisition window 3 Select the Trace continue radio button in the Trace mode group box Trace Acquisition X Trace mode AUD mode Tra amp Trace stop AUD trace display range Start pointer D 255 End pointer po Cancel Apply Help Figure 3 52 Trace mode Window Note For a description of each option refer to table 3 4 Note The items that can be set in this window differ according to the product For the settings for each product refer to the online help The trace results are displayed in the Trace window after the program execution is completed 73 RENESAS The following is an example of the display in the SH7144F E10A emulator Trace 156 records no filter TYPE MNEMONIC DESTINATION MOY DESTINATION MOY DESTINATION MOY DESTINATION MOY DESTINATION MOY DESTINATION MOY DESTINATION MOY DESTINATION MOY DESTINA
12. Window Break condition 1 X Address Data Bus State Count Address I Don t Care Address C Only program fetched address Only program fetched address after Address H 00003044 Nonusermask User mask Mash Cancel Apply Help Figure 4 11 Address Page Break Condition 1 Dialog Box Note The items that can be set in this window differ according to the product For the settings for each product refer to the online help 104 RENESAS Description Table 4 13 Address Page Options BREAK_CONDITION1 to 4 Option Description Only program fetched Sets a break before prefetched address execution as break address radio button conditions Only program fetched Sets a break after prefetched address execution as break conditions address after radio button Address edit box Sets the address bus value with a number or a symbol Non user mask radio Sets no mask conditions button User mask radio button Sets mask conditions Mask edit box Sets the mask bits if User mask is selected For masked bits the break condition is satisfied regardless of the address values Note This page is displayed when the conditions of Break Condition 1 to Break Condition 4 are set Table 4 14 Address Page Options BREAK_CONDITION R Option Description Don t Care check box Does not set address conditions Address radio button Sets use of the normal address bus as
13. Window Trace Acquisition X Trace mode AUD mode AUD trace display range Start pointer D 255 End pointer D o Cancel Apply Help Figure 4 16 Trace mode Page Trace Acquisition Dialog Box Note This function differs according to the product For the specifications of each product refer to the section related to the trace functions in section 6 SHxxxx E10A Emulator Specifications or to the online help 114 RENESAS 4 2 9 System Status Window Function This window lists information such as conditions that have been set to the emulator and execution results Window System Status Item Status ao to SHxxx E10A Emulator E104 PCI Card Driverd4 SH xxxx Run status Break Cause of last break BREAK POINT Run time count 0000h00minO0s016ms Emulation mode Normal Big endian AUD Exist 4 h Session Platform Memory Events fo Figure 4 17 System Status Window Note The items that can be displayed in this window differ according to the product For the items that can be displayed refer to the online help 115 RENESAS The items listed in the following table are displayed in the System Status window Table 4 21 System Status Window Display Items Page Item Description Session Target System Always displays Connected Session Name Displays the session file name Program Name Displays the load module
14. connected with the emulator 172 RENESAS 25 Note on Downloading Program In the Load Program dialog box which is opened when Load Program is selected the verify function is invalid After downloading the program perform verify in the Verify S Record File with Memory dialog box which is opened when Verify is selected from the Memory menu 2 fon Support of Double Float Format In the following memory operations the double float format is not supported Fill Memory dialog box Search Memory dialog box MEMORY FILL command The Format specification in the Copy Memory dialog box is ignored Memory is copied in a byte unit 2 Note on Continuous Step Execution When the step is continuously executed by selecting Step from the Run menu do not use the BREAKPOINT because this may cause the HDI to abnormally operate 28 Note on Using the Run program Dialog Box When Run is selected from the Run menu to specify the stop address there is the following note When the breakpoint that has been set as Disable is specified as the stop address note that the breakpoint becomes Enable when the user program stops 29 When the user program is loaded in the CSO area by loading a session the program will not be correctly loaded if the bus size for CSO is illegal Set the bus size by using the BCR1 register then load the program again 30 Processing Time for Updating
15. stops before the branch destination instruction 163 RENESAS 6 5 3 Notes on Setting the Breakpoint Dialog Box 1 When an odd address is set the address is rounded down to an even address 2 A software break is accomplished by replacing instructions Accordingly it can be set only to the RAM area However a software break cannot be set to the following addresses An area other than the CSO areas and the internal RAM area An instruction in which Break Condition 3 is satisfied A slot instruction of a delayed branch instruction 3 During step execution software breakpoints are disabled 4 A condition set at Break Condition 3 is disabled when an instruction at a software breakpoint is executed Do not set a software breakpoint to an instruction in which Break Condition 3 is satisfied 5 When execution resumes from the breakpoint address after the program execution stops at a software breakpoint single step execution is performed at the address before execution resumes Therefore realtime operation cannot be performed 6 When a software breakpoint is set to the slot instruction of a delayed branch instruction the PC value becomes an illegal value Accordingly do not set a software breakpoint to the slot instruction of a delayed branch instruction 6 5 4 Notes on Using the JTAG Clock TCK When the JTAG clock TCK is used set the frequency to lower than that of the system clock 164 RENESAS 6 5 5 AUD Fu
16. 1 0 29 CK Output GND 30 GND E AUDRST nput 31 RES Output User reset GND 32 GND AUDMD nput 33 GND 3 Output GND 34 GND TCK nput 89 143 143 35 NC GND 36 GND Notes 1 Input to or output from the user system The slash means that the signal is active low The emulator monitors the GND signal of the user system and detects whether or not the user system is connected The AUD pin is multiplexed Therefore when the AUD function is used set the value for the port E control register in the pin function controller so that it is the function of the AUD pin When the AUD function is used set the value for the port D control register in the pin function controller so that it is the function of the AUD pin Al G Al G AUDATA1 O 23 TDI Input G Al G Al 2 O ao INJ o a A o nr Figure 6 3 Pin Arrangement of the Hitachi UDI Port Connector 36 Pins 151 RENESAS Notes 1 Handling of the TCK TMS TDI TDO TRST ASEBRKAK and DBGMD pins depends on the use conditions of the Hitachi UDI as follows a When the user system is used by connecting the emulator the TCK TMS TDI TDO TRST ASEBRKAK and DBGMD pins must be pulled up by a resistance of several kilo ohms The AUDATA3 to AUDATAO AUDSYNC and AUDMD pins must be pulled up by a resistance of several kilo ohms The resistor of the AUDCK pin must be terminated pulled up and pulled do
17. 107 Bus State Page Opwoms icc ccccetesssidesssstesessnsbisessnsvensvbnsodsspensceveorennead nnssdusepasaniesy gt 109 Count Page Options recoin serrin oero EE Saab E cates eaten 110 Trace Window Display Items scssssiceeossseereisriceressisiisrisisesnscurecorersreneosui is esrkss 112 Trace Acquisition Dialog Box Page Options eseessesesessresesreerrsrrrisererreserreer 113 System Status Window Display Items eee eee eeeeeeeeeeeeeeeeseesaeteetaeeees 116 ELOA HDI Commands ii 0sc cccsecceecdssceceestavencsisacasde onsvvtensdeeedticestbesens iaeiaiai 119 AUD_MODE Command Parameter ccccccccececesecececececececececececececececeeeeseseeeeee 120 AUD_TRACE Command Parameter ccccccccccececesecececececececeeeeececececeeeeseseeees 122 BREAKCONDITION_CLEAR Command Paramete cc00000eseeeeeeeseseeeneee 124 BREAKCONDITION_DISPLAY Command Parameter ccccccccceceeeeeeeeees 125 BREAKCONDITION_ENABLE Command Parameters cc000eeeeeeeeeseeeeeee 126 BREAKCONDITION_SET Command Parameters cccccccseseseeeseceseeeeeeeeees 128 BREAKPOINT Command Parameters cscceesceceseceececeeeceeneeceaceeeneecseeeeeneeceas 131 BREAKPOINT_CLEAR Command Parameters cccccceceseseseeeseceseseeeeeeeeeeees 132 BREAKPOINT_DISPLAY Command Parameter ccccccccecccececseeeeceeeseeseeeees 133 BREAKPOINT_ENABLE Command Paramete S cccccccceceseseseee
18. 132 RENESAS 5 2 9 BREAKPOINT_DISPLAY BD Description Displays software breakpoints that have been set Format bd Table 5 10 BREAKPOINT_DISPLAY Command Parameter Parameter Type Description None Example To display the software breakpoints that have been set gt bd RET H 00000110 enable H 0000011c disable H 00000250 enable Note The items displayed with this command differ according to the product For the display specifications of each product refer to the online help Related Items BP BC and BE commands Breakpoints window Break dialog box RENESAS 133 5 2 10 BREAKPOINT_ENABLE BE Description Enables or disables software breakpoints that have been set Format be lt address gt lt mode gt Table 5 11 BREAKPOINT_ENABLE Command Parameters Parameter Type Description lt address gt Numerical value Breakpoint address lt mode gt Keyword Enables or disables breakpoints Set either of the following keywords enable Enables breakpoints disable Disables breakpoints Examples To enable a software breakpoint at address H 1002 gt be H 1002 enable RET Notes 1 The parameters for this command differ according to the product For the specifications of each product refer to the online help 2 The items displayed with this command differ according to the product For the display specifications of each product refer to the online help Related Items BC BD and BP comma
19. 2 3 Note When using Windows 98 Windows Me or Windows 2000 be sure to install the HDI before putting the card emulator in place Host computer PC with the PCMCIA TYPE II slot PCMCIA card emulator Insert into the PCMCIA TYPE II slot Figure 2 2 Inserting the PCMCIA Card Emulator in the Host Computer s Slot PCI card emulator mr 000 Insert into the PCI slot E WED Host computer Figure 2 3 Inserting the PCI Card Emulator in the Host Computer s Slot Use the procedure described in section 2 4 to connect the emulator to the user system with the user system interface cable or to disconnect them when moving the emulator or the user system 11 RENESAS AWARNING When inserting the PCl card emulator note the following Failure to do so will damage the host computer 1 Turn off the host computer 2 Insert the emulator into the PCI slot in parallel 3 Screw in the emulator after checking the connector and cable positions 2 4 Connecting the Card Emulator to the User System 1 The Hitachi UDI port connector must be installed to the user system Table 2 1 shows the recommended Hitachi UDI port connector for the emulator Table 2 1 Recommended Hitachi UDI Port Connector Connector Type Number Manufacturer Specifications 14 pin connector 2514 6002 Minnesota Mining amp 14 pin straig
20. 2 indicate the following 1 Menu bar Gives the user access to the HDI commands for using the HDI debugger 2 Toolbar Provides convenient buttons as shortcuts for the most frequently used menu commands 3 Source window Displays the source program being debugged Status bar Displays the status of the emulator and progress information about downloading 5 Help button Activates online help about any features of the HDI user interface 30 RENESAS 3 4 Setting up the Emulator The clocks which are used for data communications must be set up on the emulator before the program is downloaded e JTAG clock TCK A communication clock for downloading data to the emulator except for acquiring AUD trace If its frequency is set too low the speed of downloading will be lowered If its frequency is set too high the upper limit for the device s TCK clock may be exceeded For details refer to section 6 5 4 Notes on Using the JTAG Clock TCK The following is a description of the procedure used to set the clocks 31 RENESAS 3 5 Setting the Configuration Dialog Box e Select Configure Platform from the Setup menu to set a communication clock The Configuration dialog box is displayed Configuration X General Mode Emulation mode Normal JTAG clock 41 25MHz x Flash memory synchronization Disse 0 Port D AUD not used Driver Change Cancel Apply Help Figure 3 3 Configuration D
21. 34 Source Window Displaying the Source Program ee ee eee eeeceeeeeeeeeeeeereesaee 35 Source Window Setting a Software Breakpoint ee seeecceeseeceeeceeeeeceereeeeeeees 36 Registers WindOw ccesccecsssceececssecesceeceseceeneecaeceeceecaeceeneecaeeeeeeecnaeceeneecnaeeeees 37 Register Dialog Box PC cirrosis irtee enr seene Es nea EE E E eas 38 G0 BUOM E S 39 Source Window Break Status cc ccccssccccssseeceeseececeeseeecssseeeesseeeeessseeeeseneees 39 System Status Window ccsccsssccssseessscesnsesssscsscseesssessnseessssvscsersnsesonsesssnene 40 Breakpoints WindOW ss iscccsecssesticesenessensseresectveesecesvecesenseberseaesesbeaseeneseeisagsbeeseeness 41 Open Memory Window Dialog BOX essssesssseessereesesreereresreeresreeresrerrssenreeresrreree 42 RENESAS Figure 3 16 Memory Window cc ececceesseescesecesecesecaecsaecseecaeesaeseeeseeeseeeeseseseeeaeesasesaeenaes 42 Figure 3 17 Instant Watch Dialog BOX ec eceeeeeeeeeeeeeeeeeseeeaecaecsaecaeecaeecaeeeeeseeeeeeeeaeeeas 43 Figure 3 18 Watch Window Displaying the Array ec eeeeeeseeseceseceeceaecsaeceecaeeeaeeeneeees 44 Figure 3 19 Add Watch Dialog Box eee eeeecseeceeeeeeeeeeeeeeeseeesecesecsaecaecsaecauecaeeeaeeeneeeas 44 Figure 3 20 Watch Window Displaying a Variable 0 0 0 eee ceeeeseeseceeeceeeceeeseeeeeeeeeeeeeees 45 Figure 3 21 Watch Window Displaying Array Elements 0 ceeeecesces
22. AUD_MODE AUM Sets AUD trace conditions AUD_TRACE AUT Displays trace information BREAKCONDITION_ BCC Clears hardware breakpoints that have been set CLEAR 4 BREAKCONDITION_ BCD Displays hardware breakpoints that have been set DISPLAY 5 BREAKCONDITION__ BCE Enables or disables hardware breakpoints that have ENABLE been set 6 BREAKCONDITION_ BCS Sets hardware breakpoints SET 7 BREAKPOINT BP Sets software breakpoints BREAKPOINT_CLEAR BC Clears software breakpoints that have been set BREAKPOINT_DISPLAY BD Displays software breakpoints that have been set 10 BREAKPOINT ENABLE BE Enables or disables software breakpoints that have been set 11 DEVICE_TYPE DE Displays device type currently selected 12 GO_OPTION GP Displays or sets the emulation mode during user program execution 13 JTAG_CLOCK JCK Displays or sets a JTAG clock TCK frequency 14 RAM_R RR Displays the specified address contents on the status bar during user program execution Reads the memory by using the RAM monitor function 15 RAM_W RW Writes the specified contents of the specified address to the memory Writes the memory by using the RAM monitor function 16 REFRESH RF Updates the HDI memory information to the latest contents 17 RESTART RST Restarts the emulator 18 STATUS STS Displays emulator state information Note Support for these commands varies with the product For the specifications of each product refer to th
23. Down Menu User s Manual This Manual View Menu Breakpoints O 3 11 3 17 1 4 2 4 6 5 5 Command Line O Disassembly O I O Area O Labels O Locals O 3 16 Memory O 3 12 Performance Analysis O Profile List O Profile tree O Registers O 3 9 Source O 3 7 2 Stack Trace O 3 20 Status O 3 10 3 17 1 4 2 9 Trace O 4 2 7 6 5 3 6 5 7 Watch O 3 13 Run Menu Reset CPU O Go O 3 10 Reset Go O Go to Cursor O Set PC To Cursor O Run O Step In O 3 14 1 Step Over O 3 14 3 Step Out O 3 14 2 Step O Halt O 80 RENESAS Table 4 1 HDI Window Menus and Related Manual Entries cont Menu Bar Memory Menu Pull Down Menu Refresh Hitachi Debugging Interface User s Manual This Manual Load Save Verify Test Fill Copy Compare Setup Menu Status bar Options Radix Customise Configure Platform Window Menu Cascade Tile Arrange Icons Close All Help Menu Index Using Help Search for Help on About HDI OQ O O 010 0101010100 010 0O 010 0000 O RENESAS 81 4 2 Descriptions of Each Window This section describes each window Figures in this section are used as examples Each E10A emulator type has explanatory notes Read section 6 SHxxxx E10A Emulator Specifications 4 2 1 Configuration Dialog Box Function This dialog box sets the emulation conditions of the
24. Eea EE E E ees 92 Point Page Break Dialog BOX ssessesssesseesssssessreesreesrrereserrsrrsrresrrssrrssenseeneesnee 94 Condition Page Break Dialog Box sssssseesssesseesesssessresesesrssresressrrssressreseeseessee 96 Break Point Dialog Box iscissi niina i i a i 98 Break Condition Dialog BOX sssesseessesssessseseseerssessressressresrrsetrresrrerrsrssresseesseesees 100 Address Page Break Condition 1 Dialog Box sesseesseessesseesreesrseessrrssrresreeees 104 Data Page Break Condition 1 Dialog BOX eee eeeceeeseeceneeeeneeceteeeeneeennees 106 Bus State Page Break Condition Dialog BOX cee eeeeeseeceseeeeneeceereeeneeeenees 108 Count Page Break Condition Dialog BoX cece eeeceeeeeeseceeeeecneeeeeeecnaeeenees 110 Trace Window eena E E EE E E E ES 111 Trace mode Page Trace Acquisition Dialog BOX sesseeseeeseeeeseeresresrsessresesee 114 System Status WindOW sicecssschscesseesscesveessencscescdessdesetssssasecendeasedessensodnesaeioaeaesesvencss 115 Connecting Ferrite Cote i 2 c cni nana wen aetna sie vas 149 Pin Arrangement of the Hitachi UDI Port Connector 14 Pins ceeeeeeeeeeeeeee 150 Pin Arrangement of the Hitachi UDI Port Connector 36 Pins ee ceeeeeeeeeeeneeee 151 Circuit between User Interface Connector 36 Pins and SH7144 or SH7145F 152 User System Interface Circuit HS7 144 KCMO1B ee eeeceeeseeceeeeeeneeeeteeeeneeesees 153 User System Interface Ci
25. Instant Watch from the pop up menu The following dialog box will be displayed Instant Watch X Add Watch Figure 3 17 Instant Watch Dialog Box 43 RENESAS e Click Add Watch button to add a variable to the Watch window Watch Window of x Value Oxffffffd4 Clong 10 Figure 3 18 Watch Window Displaying the Array The user can also add a variable to the Watch window by specifying its name e Click the Watch window with the right mouse button and select Add Watch from the pop up menu The following dialog box will be displayed Add Watch X Varable or evpression Cancel Figure 3 19 Add Watch Dialog Box e Input variable max and click the OK button 44 RENESAS The Watch window will now also show the int type variable max Watch Window O x Oxf FETT Fda oe cc ong H f6fb5F9c Oxf ffFF Figure 3 20 Watch Window Displaying a Variable The user can double click the symbol to the left of any variable in the Watch window to watch the all elements in array a Watch Window Figure 3 21 Watch Window Displaying Array Elements OxFFFFFFdd a PERRON H 00000000 0 a H 000053dc H 00002704 H 00005665 H OO000daa H 0000421F H 00003ead H 00004d1d H 00002f5a H 000020da H f6Fb5F9c t 1 4 RENESAS ALT EAS Oxffffffdc Oxffffffe0 Oxffffffe4 Oxffffffe8g Oxffffffec OxfffffffO Oxf
26. TUTORIALSTUTORIALSDEBUGST utorial abs Areas loaded 00000000 00000567 00000800 00000828 00001000 000011EF 00003000 00003188 Figure 3 5 HDI Dialog Box e Click the OK button to continue 33 RENESAS 3 6 2 Displaying the Source Program The HDI allows the user to debug a program on the source level e Select Source from the View menu The Open dialog box is displayed e Select the C source file that corresponds to the object file the user has loaded Lookin Tuoi i A A el yecttbl c a sbrk c a TUTORIAL c TUTORIAL c Files of ype C Files c inl b Cancel Figure 3 6 Open Dialog Box e Select tutorial c and click the Open button The Source window is displayed 34 RENESAS if TUTORIAL c _ O x Address BP Labe Source 00003000 _main yold maintvoid Jong a 10 min max long j int i 00003002 for i 0 1 lt 10 i Jf 0000300a j_ rand 00003012 Ifj lt of 00003016 j 1j 0000301a a i j 00003036 sorta 0000303e min a 0 00003042 max al9 00003046 min 0000304a max 0 0000304e change a 00003056 min a 9 0000305a max al0 0000305e while 1 0000306c _sort void sort long a long t int i j k gap Figure 3 7 Source Window Displaying the Source Program e If necessary select the Font option from the Customise submenu on the Setup menu to select a font and size that are legi
27. Table 5 7 Parameter lt datawidth gt Type Keyword BREAKCONDITION_SET Command Parameters cont Description Data bus access conditions Set one of the following keywords byte byte access word word access long longword access lt r w gt Keyword Bus cycle read write conditions Set either of the following keywords read read cycles write write cycles lt acCess gt Keyword Bus cycle access type dat execution cycles lt count gt Numerical value Set satisfaction count from 1 to H FFFF Note The parameters for this command differ according to the product For the specifications of each product refer to the online help RENESAS 129 Examples To set the following conditions for channel 1 hardware breakpoint lt addropt gt item An address bus value of H 1000 lt dataopt gt item DO bit of the byte access data is 0 lt r wopt gt item write cycle gt bes channel 1 address H 1000 data mask B Q byte direction write RET To set the following conditions for channel 2 hardware breakpoint lt addropt gt item Sets an address bus value of H 10000 during the program fetch cycles and breaks before execution gt bes channel 2 address H 10000 pc RET To set the following conditions for channel 2 hardware breakpoint lt accessopt gt item Execution cycles lt r wopt gt item Read cycles gt bes channel 2 access dat direction read RET Related Items BCC
28. This tutorial has described the major features of the emulator and the use of the HDI Sophisticated debugging can be carried out by using the emulation functions that the emulator offers This provides for effective investigation of hardware and software problems by accurately isolating and identifying the conditions under which such problems arise Further details on the use of the HDI can be found in the separately issued Hitachi Debugging Interface User s Manual 77 RENESAS 78 RENESAS Section 4 Descriptions of Windows 4 1 HDI Windows HDI window menu bars and the corresponding pull down menus are listed in table 4 1 Where a description of a menu is included in the Hitachi Debugging Interface User s Manual or in this manual a O mark or the relevant section number is shown Related commands in the E10A Emulator User s Manual are also shown Table 4 1 HDI Window Menus and Related Manual Entries Hitachi Debugging Interface Menu Bar Pull Down Menu User s Manual This Manual File menu New Session Load Session Save Session 2 6 Save Session As Load Program 3 7 1 Initialize Exit Edit Menu Cut Copy Paste Find O0 O 0O 0 O CO O 00O O O Evaluate 79 RENESAS Table 4 1 HDI Window Menus and Related Manual Entries cont Hitachi Debugging Interface Menu Bar Pull
29. To user system 74LVT244 AUDATA_ 3 0 AUDATA 3 0 AUDATA_O 3 0 AUDSYNC 74LVT125 AUDRST 74LVT125 74LVT125 YA OE Figure 6 10 User System Interface Circuit of the AUD Pin HS7144KCI02H 158 RENESAS 6 4 Differences between the SH7144F SH7145F and the Emulator e When the emulator system is initiated it initializes the general registers and part of the control registers as shown in table 6 2 When the emulator is not used the initial values of the actual SH7144F or SH7145F general register are undefined Table 6 2 Register Initial Values at Emulator Power On Register Initial value when the emulator is used RO to R14 H 00000000 R15 SP Value of the SP in the vector address table PC Value of the PC in the vector address table SR H 000000F0 GBR H 00000000 VBR H 00000000 MACH H 00000000 MACL H 00000000 PR H 00000000 e The emulator uses the Hitachi UDI do not access the Hitachi UDI e Low Power Modes Sleep Standby and Module Standby For low power consumption the SH7144F or SH7145F has sleep standby and module standby modes When the emulator is used the sleep mode can be cleared with either the normal clearing function or with the forced break Note that however if a command has been entered in standby mode or module standby mode no commands can be used from the emulator since the mode is cleared only with the normal clearing function Notes The memory must not be
30. accessed or modified in software standby mode 1 Do not set the MSTP2 or MSTP27 bit to 1 in the MSTCR2 register address H FFFF861E nor the RAME bit to 0 in the SYSCR register address H FFFF8618 since doing so may prevent the emulator from operating correctly 2 When the HS7144KCM02H or HS7144KCI02H is used do not set the following bits to 0 the MSTP3 bit in the MSTCR2 register address H FFFF861E and the AUDSRST bit in the SYSCR register address H FFFF8618 The AUD function cannot be used 159 RENESAS RESET Signal RES The RESET signal can be accepted during user program break when the peripheral modules are reset Since the PC SR and SP registers are not initialized reset them and execute the GO command when the user program is executed from the reset vector Note Do not break the user program when the RES BREQ and WAIT pins are being low A TIMEOUT error will occur The TIMEOUT error will also occur at memory access when the BREQ and WAIT pins are fixed low during break e Data Transfer Controller DTC The DTC operates even in the command wait state When a data transfer request is generated the DTC executes a DMA transfer e Interrupt All interrupts except for NMI are masked during user program break 160 RENESAS 6 5 The SH7144F E10A Emulator Functions In the SH7144F E10A emulator the realtime memory access function by using the RAM monitor function has been added The following functio
31. emulator Window Configuration X General Mode Emulation mode Normal JTAG clock 41 25MHz x Flash memory synchronization Disse Bf Port D AUD not used Driver Change Cancel Epp Help Figure 4 1 Configuration Dialog Box Note The items that can be set in this window differ according to the product For the settings for each product refer to the online help 82 RENESAS Description The Configuration dialog box consists of the General page listed in table 4 2 Table 4 2 Configuration Dialog Box Page Page Name Description General Sets and displays the emulation mode conditions Clicking the OK button sets the emulation conditions If the Cancel button is clicked this dialog box is closed without setting the emulation conditions RENESAS 83 1 General Page Configuration Dialog Box Function This page sets the emulator operation conditions displays the device name sets the emulation mode JTAG clock TCK flash memory synchronization port D and selects the driver Window Configuration X General Mode Emulation mode Normal JTAG clock fa 25MHz Flash memory synchronization Disse 0 Port D AUD not used Driver Change Cancel Apply Help Figure 4 2 General Page Configuration Dialog Box Note The items and displayed contents that can be set in this window differ according to the p
32. file name Platform Connected To Displays the name of the connected emulator and the selected driver name CPU Displays the target device name Run status Displays the execution status RUNNING Being executed Break Stopped Cause of last break Displays the cause of the emulator stopping at break In this example the cause of the stop is BREAK POINT Run time count Displays the program execution time The display format is h hours min minutes s seconds and ms milliseconds In this example 0000h00min00s016ms is displayed Emulator mode Displays the emulator operating mode setting information for Emulation Mode of the Configuration dialog box Big Endian Little Displays the endian state Big Endian or Little Endian In Endian this example Big Endian is displayed AUD Displays whether the AUD function can be used This item is displayed by the emulator with the AUD function Memory Loaded Memory Displays the loaded area of the load module Areas Events Resources Displays the usage states of BREAK POINT and Break Condition 116 RENESAS Section 5 Command line Functions 5 1 Table and Symbol Description This section describes the format used in section 5 2 Command Descriptions The descriptions of some commands are given over two or more pages 5 1 1 Format The input format for each command is as follows Characters shown in bold italics are to be input Parameters enclosed by can be omitted lt gt
33. have been set The display contents include a hardware breakpoint channel number enable or disable of the setting and setting conditions Format bed lt channel gt lt channel gt channel lt channel_number gt Table 5 5 BREAKCONDITION_DISPLAY Command Parameter Parameter Type Description lt channel_number gt Numerical value Hardware breakpoint channel number Note When lt channel gt is omitted all hardware breakpoints that have been set are displayed Examples To display all hardware breakpoint settings gt bcd RET Break Condition 1 Enable data 20 long Break Condition 2 Disable address 126 To display the hardware breakpoint set at channel 1 gt bcd channel 1 RET Break Condition 1 Enable data 20 long Note The items displayed with this command differ according to the product For the display specifications of each product refer to the online help Related Items BCC BCE and BCS commands Breakpoints window Break and Break Condition dialog boxes 125 RENESAS 5 2 5 BREAKCONDITION_ENABLE BCE Description Enables or disables hardware breakpoints that have been set Format bce lt channel gt lt mode gt lt channel gt channel lt channel_number gt Table 5 6 BREAKCONDITION_ ENABLE Command Parameters Parameter Type Description lt channel_number gt Numerical value Specifies hardware break channel number lt mode gt Keyword Enables or disables hardware break settings Set
34. in section 10 Selecting Functions in the Hitachi Debugging Interface User s Manual 13 Memory Save During User Program Execution Do not execute memory save verifying during user program execution 14 Performance Analysis Window This HDI does not support the Performance Analysis window described in section 13 7 Performance Analysis in the Hitachi Debugging Interface User s Manual 170 RENESAS 15 Load of Motorola S type Files This HDI does not support Motorola S type files with only the CR code H OD at the end of each record Load Motorola S type files with the CR and LF codes H 0DOA at the end of each record 16 Memory Window If the following memory contents are displayed they will be incorrect Word access from address 2n 1 Longword access from address 4n 1 4n 2 or 4n 3 17 Scrolling Window During User Program Execution Do not scroll the Memory and Disassembly windows by dragging the scroll box during user program execution This generates many memory reads causing the user program to stop execution until the memory reads have been completed 18 I O Registers window Display and modification e For each Watchdog Timer register there are two registers to be separately used for write and read Table 6 9 Watchdog Timer Registers Register Name Usage Register TCSR R Read Watchdog timer control status register TCNT R Read Watchdog timer counter RSTCSR R Read Re
35. interface circuit of the emulator HS7144KCMO1H JTAG controller EPF6016ATC144 2 To user system 74LVT244 ASEBRKAK Figure 6 5 User System Interface Circuit HS7144KCM01H 153 RENESAS The user system interface circuits of the emulator HS7144KCM02H are shown Figures 6 6 and 6 7 show the circuits of the Hitachi UDI pin and AUD pin respectively JTAG controller EPF6016ATC144 2 3Vcc To user system 10 KQ ASEBRKAK ASEBRKAK Figure 6 6 User System Interface Circuit of the Hitachi UDI Pin HS7144KCM02H 154 RENESAS AUD logic circuit EPF6024ATC144 2 To user system AUDATAT3 0 AUDATAT3 0 AUDSYNC AUDRST AUDMD Figure 6 7 User System Interface Circuit of the AUD Pin HS7144KCM02H 155 RENESAS Figure 6 8 shows the user system interface circuit of the emulator HS7144KCI01H JTAG controller EPF10K10QC208 3 To user system 74LVT244 7T4LVT244 74LVT244 74LVT125 AY ASEBRKAK YA Figure 6 8 User System Interface Circuit HS7144KCI01H 156 RENESAS The user system interface circuits of the emulator HS7144KCI02H are shown Figures 6 9 and 6 10 show the circuits of the Hitachi UDI pin and AUD pin respectively JTAG controller EPF10K10QC208 3 To user system 74LVT244 74LVT244 74LVT244 74LVT244 74LVT244 74LVT125 AY ASEBRKAK YA Figure 6 9 User System Interface Circuit of the Hitachi UDI Pin HS7144KCI02H 157 RENESAS AUD logic circuit EPF10K10QC208 3
36. menu opened by clicking the Breakpoints window with the right mouse button also allows the user to set or change breakpoints define new breakpoints and delete enable or disable breakpoints 41 RENESAS 3 11 Viewing Memory When the label name is specified the user can view the memory contents that the label has been registered in the Memory window For example to view the memory contents corresponding to the _main in word size e Select Memory from the View menu enter _main in the Address edit box and set Word in the Format combo box Open Memory Window X Address _main Format word 7 Figure 3 15 Open Memory Window Dialog Box e Click the OK button The Memory window showing the specified area of memory is displayed S Word Memory _ main ress Va 00003000 7424 00003006 9 00003000 9 00003012 30463 00003018 25586 OO000301E 29200 00003024 8978 00003024 12082 00003030 12579 00003036 25843 29712 Figure 3 16 Memory Window 42 RENESAS 3 12 Watching Variables As the user steps through a program it is possible to watch that the values of variables used in the user program are changed For example set a watch on the long type array a declared at the beginning of the program by using the following procedure e Click the left of displayed array a in the Source window to position the cursor e Click the Source window with the right mouse button and select
37. of the emulator RENESAS 147 Table 6 1 Components of the Emulator HS7144KCM01H HS7144KCM02H HS7144KCI01H or HS7144KCI02H Classi Quan fication Component Appearance tity Remarks Hard Card emulator 1 HS7144KCM01H ware HS7144KCMO01H J PCMCIA 14 pin type HS7144KCM02H Depth 85 6 mm Width 54 0 mm HS7144KCI01H or or Height 5 0 mm Mass 27 0 g HS ARSC HS7144KCM02H PCMCIA 36 pin type Depth 85 6 mm Width 54 0 mm Height 5 0 mm Mass 28 0 g HS7144KCI01H PCI 14 pin type Depth 144 0 mm Width 105 0 mm Mass 93 0 g HS7144KCI02H PCI 36 pin type Depth 122 0 mm Width 96 0 mm Mass 90 0 g User system interface 1 HS7144KCM01H cable PCMCIA 14 pin type Length 80 cm Mass 45 0 g HS7144KCM02H PCMCIA 36 pin type Length 30 cm Mass 55 0 g HS7144KCI01H PCI 14 pin type Length 150 cm Mass 86 0 g HS7144KCI02H PCI 36 pin type Length 80 cm Mass 69 0 g Ferrite core Countermeasure for EMI connected with the only for HS7144KCMO2H and user interface cable HS7144KCI02H Soft SH7144F E10A HS7144KCM01SR ware emulator setup HS7144KCM01Hu program HS7144KCMO01HE SH7144F E10A HS6400DIIW5SJ and Emulator User s HS6400DIIW5SE Manual and Hitachi provided on a CD R Debugging Interface User s Manual Note The EMI is an abbreviation of the Electrical Magnetic Interference 148 RENESAS In the HS7144KCM02H and HS7144KCI02H for EMI countermeasure use the ferrite c
38. on the status bar during user program execution The memory can be read by using the RAM monitor function a maximum of three addresses are displayed Format RR lt optionl gt lt option2 gt lt optionl gt lt option2 gt lt optionl gt lt option2 gt lt init gt lt option gt address lt address gt lt option2 gt size lt size gt Table 5 18 RAM_R Command Parameter Parameter Type Description lt address gt Numerical value Sets the address to be displayed on the status bar lt size gt Keyword Sets the size to be read B Byte size W Word size L Longword size lt init gt Keyword Clears the setting address I Clears the setting address Note When only lt option2 gt is omitted the address is read in a byte size When lt option1 gt lt option2 gt and lt init gt are omitted the current setting address is displayed Notes 1 While the memory is read by using the RAM monitor function at a fixed interval no trace is acquired 2 This command can be accepted during user program execution 143 RENESAS Examples To set the address to be displayed on the status bar gt rr address 00000100 size B address 00000102 size L To display the current setting address gt rxr RET address 00000100 size B address 00000102 size L To clear settings gt rr i RET 144 RENESAS 5 3 2 RAM_W RW Description Writes the specified contents in the specified address to the
39. system interface cable from the user system pull the tab on the connector upward 3 The range of frequencies that the Hitachi UDI operates at is different according to the devices used For details refer to section 6 5 4 Notes on Using the JTAG Clock TCK 4 Connect the Hitachi UDI signals from the Hitachi UDI port connector directly to the device 5 When developing user systems do not connect the TDI and TDO signals of the device to the boundary scan loop or separate them by using a switch figure 2 5 RENESAS 14 Hitachi UDI port TDI Co Gaia Boundary scan loop User system TDI Test data input TDO Test data output TAP Test access port Figure 2 5 User System Example RENESAS 2 5 System Check When the HDI program is executed check that the emulator operates correctly according to the following procedure 1 Check that the card emulator is inserted into the host computer 2 Connect the user system interface cable to the connector of the card emulator 3 Connect the user system interface cable to the Hitachi UDI port connector 4 Power on the host computer and select HDI for E10A SHxxxx gt Hitachi Debugging Interface from the Start menu S Accessories J Intemet Explorer _ Favorites StartUp HS MS DOS Prompt aN Documents J Windows Explorer Hitachi Debugging Interface Eh Settings Figure 2 6 Start Menu 15 RENESAS 5 Power on the user system and select the setting to
40. the Flash Memory Contents When the contents of the flash memory area is modified by the program loading memory window or memory command or when a software break is set a waiting time will be generated to write or read the flash memory before executing the user program The processing time for updating the flash memory contents will be about a maximum of 60 seconds under the following environments reference values Host computer 500 MHz Pentium III SH7144F 40 MHz system clock frequency 173 RENESAS 174 RENESAS
41. this document or Hitachi semiconductor products IMPORTANT INFORMATION READ FIRST e READ this user s manual before using this emulator product KEEP the user s manual handy for future reference Do not attempt to use the emulator product until you fully understand its mechanism Emulator Product Throughout this document the term emulator product shall be defined as the following products produced only by Hitachi Ltd excluding all subsidiary products e Emulator e User system interface cable The user system or a host computer is not included in this definition Purpose of the Emulator Product This emulator product is a software and hardware development tool for systems employing the Hitachi microcomputer This emulator product must only be used for the above purpose Limited Applications This emulator product is not authorized for use in MEDICAL atomic energy aeronautical or space technology applications without consent of the appropriate officer of a Hitachi sales company Such use includes but is not limited to use in life support systems Buyers of this emulator product must notify the relevant Hitachi sales offices before planning to use the product in such applications Improvement Policy Hitachi Ltd including its subsidiaries hereafter collectively referred to as Hitachi pursues a policy of continuing improvement in design performance and safety of the emulator product Hitachi reserves the ri
42. window displays breakpoint setting information The items listed in the following tables are displayed Table 4 5 Breakpoints Window Display Items Item Description Enable Displays whether the break condition is enabled or disabled BREAKPOINT e Break Condition o If the address is the same as the one that has been set to the BREAKPOINT the mark is e File Line Displays the file name and line number where the breakpoint is set Symbol Displays the symbol corresponding to the breakpoint address If no symbol has been defined for the address nothing is displayed Address Displays the address where the breakpoint is set Type Displays the break condition type as follows Break Point Software breakpoint Break Condition 1 to Break Condition 4 and Break Condition R Hardware break condition Note The types of break conditions differ according to the product For the specification of each product refer to the online help 90 RENESAS The pop up menu which is opened by clicking the right mouse button can be used to set change and clear breakpoints and to enable or disable break conditions The pop up menu functions are described in the following table Table 4 6 Breakpoints Window Pop up Menu Operation Menu Name Description Add Sets break conditions Clicking this button will display the Break dialog box enabling break conditions to be set Edit Changes break conditions Selec
43. your device Recommended radio button and then the Specify a location check box to select the path to be searched for drivers The location must be specified according to the emulator type as indicated below When using the PCI card emulator lt Drive gt DRIVERS PCI 95 When using the PCMCIA card emulator lt Drive gt DRIVERS PCMCIA 95 lt Drive gt is the CD ROM drive name RENESAS 2 2 2 Installing under Windows NT 4 0 Operating System 1 When the emulator is a PCI card 1 Shut the operating system down and turn off the power to the host computer 2 Insert the PCI card emulator in a slot on the host computer Refer to section 2 3 Connecting the Card Emulator to the Host Computer 3 Start the host computer and log on with an administrator level user name 4 Install the HDI For a component be sure to select PCI Card Driver There is a check box for selecting the type name of the product under the PCI Card Driver component Select the appropriate type name If the correct name is not selected the correct driver will not be installed and the emulator will not operate 5 Restart the host computer 2 When the emulator is a PCMCIA card 1 Shut the operating system down and turn off the power to the host computer 2 Insert the PCMCIA card emulator in the host computer s slot Refer to section 2 3 Connecting the Card Emulator to the Host Computer 3 Start the host computer and log on with an administrator l
44. 13 2 Executing Step Out Command The Step Out steps out of the called function and stops at the next statement of the calling statement e To step out of the sort function select Step Out from the Run menu or click the Step Out button in the toolbar Note It takes time to execute this function P Figure 3 24 Step Out Button m mre c 00003000 _main ale main void long a 10 min long j int i 00003002 ER 0 1 lt 10 i Jf 0000300a rand 00003012 i lt O 00003016 0000301a 00003036 00003042 00003046 0000304a 0000304e 00003056 0000305a 0000305e 0000306c _sort void sort long a long t int i j k gap NNANN ANN aan om Re Figure 3 25 HDI Window Step Out e The data of variable a displayed in the Watch window is sorted in ascending order 48 RENESAS e To execute two steps use Step In twice if TUTORIAL c Address BP Labe Source 00003000 _main ee maintvoid Tong a 10 max long j int 7 00003002 forf i 0 1 lt 10 i Jf 0000300a j_ rand 00003012 if Cj lt OL 00003016 0000301a 00003036 0000303e 00003042 0000304a 0000304e 00003056 0000305a 0000305e while 1 0000306c _sort void sort long a long t inti j k gap ANANANFN aan 5 Figure 3 26 HDI Window Step In gt Step In e The value of max displayed in the Watch window is changed to the maximum data value 49 RENESAS 3 13 3 Ex
45. BM PC isa registered trademark of International Business Machines Corporation 2 Microsoft Windows and Windows NT are registered trademarks of Microsoft Corporation in the United States and or other countries Microsoft Windows NT operating system is referred to as Windows NT in this user s manual Microsoft Windows 98 operating system is referred to as Windows 98 in this user s manual Microsoft Windows Millennium Edition operating system is referred to as Windows Me in this user s manual Microsoft Windows 2000 operating system is referred to as Windows 2000 in this user s manual 3 Adobe Acrobat and Acrobat Reader are registered trademarks of Adobe Systems Incorporated 4 Other brand and product names are registered trademarks of each company RENESAS Contents Section COV ERVIOW iiei torrie a REE EAER RERE 1 LI Waiho eocenie ee peat eTa EE nine sua ER e o OERE EE E EAE E E EARE EE 3 1 2 Environmental Conditions 5 c5ssscscisesessctsearesecpesenseantseesedpossnseigsazeseeseinnssondspasetpestbscgesonests 4 135 C mponehtsso eserinin Ee Er aon ERE alia Mul ce eis EEEE 6 Section 2 Preparation before Uses wasaszssdesaravaszeaconecs saconvsracsanedsaneceassaatoormeacenvazes 7 21 Bmulat r Prepatation esei ereere aeres oen Er er E N eS E AE AES ea Eare REES ET EEEE 7 2 2 HDI Installation sseni chee dich eee in rE EEE eA EE EE E OEE EEA EN E 8 2 2 1 Installing under Windows 98 and Wi
46. Contents shown in lt gt are set wow lt gt The parameter to the left of the sign is input in the format shown to the right This represents a non exclusive selection This represents an exclusive selection The command parameter details are described in the parameter table 5 1 2 Parameter Input Numerical Parameters A binary octal decimal or hexadecimal value a symbol or a formula can be input A symbol can contain up to 32 characters Terms in a formula are separated with operators such as or Keyword Parameters One of the bold characters given in the description column of the table can be input If a character string not shown in the description is input an error will occur Character String Parameters Character string parameters are used to input mask data or a file name In the mask data set a radix H hexadecimal or B binary at the top of a character string and set at the digit to be masked 117 RENESAS 5 1 3 Examples These are actual input examples For commands whose execution results in a specific display output an example of the display is given 5 1 4 Related Items Related E10A HDI commands abbreviations and dialog boxes are shown Refer to section 4 Descriptions of Windows 118 RENESAS 5 2 Command Descriptions The command list of the E10A emulator is shown below Table 5 1 E10A HDI Commands No Command Abb Function 1
47. ERAM FIRMWARE Figure 2 17 INVALID ASERAM FIRMWARE Dialog Box 4 If the driver is not correctly connected the following dialog box will be displayed Unable to restore the previous driver settings please choose another driver Figure 2 18 Unable to restore the previous driver settings Dialog Box The E10A Driver Details dialog box is displayed when the OK button is clicked Select the correct driver For details refer to section 6 5 1 Emulator Driver Selection 2 5 2 Writing SHxxxx E10A Flash memory Mode In this mode the emulator is used as a flash memory writer The following procedures apply when Writing SHxxxx E10A Flash memory is selected from the activation modes listed in the Select Session dialog box 1 The HDI window is displayed and the dialog box is displayed as shown in figure 2 19 HDI x IN Please Reset the user system and press lt Enter gt Key Figure 2 19 Dialog Box of the RESET Signal Input Request Message 21 RENESAS 2 After the System Clock window appears input the system clock frequency System Clock Please input System Clock Figure 2 20 System Clock Dialog Box 3 When the Load Program window appears specify a user program to be downloaded Click the Open button to start downloading Load Program Offset Ho MV Verify File name Cancel C HDI_E10A tutorial tutorialabs he Browse M Load only debugging information V Load stack inform
48. Electronics products or if you have any other inquiries Note 1 Renesas Electronics as used in this document means Renesas Electronics Corporation and also includes its majority owned subsidiaries Note 2 Renesas Electronics product s means any product developed or manufactured by or for Renesas Electronics To all our customers Regarding the change of names mentioned in the document such as Hitachi Electric and Hitachi XX to Renesas Technology Corp The semiconductor operations of Mitsubishi Electric and Hitachi were transferred to Renesas Technology Corporation on April 1st 2003 These operations include microcomputer logic analog and discrete devices and memory chips other than DRAMs flash memory SRAMs etc Accordingly although Hitachi Hitachi Ltd Hitachi Semiconductors and other Hitachi brand names are mentioned in the document these names have in fact all been changed to Renesas Technology Corp Thank you for your understanding Except for our corporate trademark logo and corporate statement no changes whatsoever have been made to the contents of the document and these changes do not constitute any alteration to the contents of the document itself Renesas Technology Home Page http www renesas com Renesas Technology Corp Customer Support Dept April 1 2003 2tENESAS Renesas Technology Corp Cautions Keep safety first in your circuit designs 1 Renesas Technology Corpo
49. FFF FFFA Oxf FFF FFFS Oxf FF FFF FCC i i t long long long 45 3 13 Stepping Through a Program The HDI provides a range of step menu commands that allow efficient program debugging Table 3 2 Step Option Menu Command Description Step In Executes each statement including statements within functions Step Over Executes a function call in a single step Step Out Steps out of a function and stops at the statement following the statement in the program that called the function Step Steps the specified times repeatedly at a specified rate 3 13 1 Executing Step In Command The Step In steps into the called function and stops at the first statement of the called function e To step through the sort function select Step In from the Run menu or click the Step In button in the toolbar H Figure 3 22 Step In Button 46 RENESAS 00003000 00003002 0000300a 00003012 00003016 0000301a 00003036 0000303e 00003042 00003046 0000304a 0000304e 00003056 0000305a 0000305e NANNANFA inei OL ee Iof x void main void Jong a 10 min long j int i for i 0 1 lt 10 i Jf j_ ran UTR lt Ot e min al max aLO while 1 long t int i j k gap aan S amp S Figure 3 23 Source Window Step In e The highlighted line moves to the first statement of the sort function in the Source window 47 RENESAS 3
50. I Card Driver 3 Shut the operating system down and turn off the power to the host computer 4 Insert the PCI card emulator in a slot on the host computer Refer to section 2 3 Connecting the Card Emulator to the Host Computer 5 Restart the host computer and log on with an administrator level user name The hardware is now recognized and the driver is automatically installed 2 When the emulator is a PCMCIA card 1 Log on with an administrator level user name 2 Install the HDI When a component is selected be sure to select PC Card Driver PCMCIA 3 Insert the PCMCIA card emulator in the host computer s slot Refer to section 2 3 Connecting the Card Emulator to the Host Computer 4 The hardware is now recognized and the driver is automatically installed Note When Found New Hardware Wizard is displayed select the Search for a suitable driver for my device recommended radio button and then the Specify a location check box to select the path to be searched for drivers The location must be specified according to the emulator type as indicated below When using the PCI card emulator lt Drive gt DRIVERS PCI 2000 When using the PCMCIA card emulator lt Drive gt DRIVERS PCMCIA 2000 lt Drive gt is the CD ROM drive name RENESAS 2 3 Connecting the Card Emulator to the Host Computer Insert the card emulator according to its type in a PCMCIA TYPE II slot or PCI slot on the host computer figures 2 2 and
51. NCLUDING 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 EMULATOR PRODUCT THE USE OF ANY EMULATOR PRODUCT OR ITS DOCUMENTATION EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES EXCEPT AS EXPRESSLY STATED OTHERWISE IN THIS WARRANTY THIS EMULATOR PRODUCT IS SOLD AS IS AND YOU MUST ASSUME ALL RISK FOR THE USE AND RESULTS OBTAINED FROM THE EMULATOR PRODUCT RENESAS State Law Some states do not allow the exclusion or limitation of implied warranties or liability for incidental or consequential damages so the above limitation or exclusion may not apply to you This warranty gives you specific legal rights and you may have other rights which may vary from state to state The Warranty is Void in the Following Cases 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 emulator product without Hitachi s prior written consent or any problems caused by the user system All Rights Reserved This user s manual and emulator product are copyrighted and all rights are reserved by Hitachi No part of this user s manual all or part may be reprod
52. RST input AUDATA3 input output AUDATA2 input output AUDATA input output and AUDATAO input output e Set 0 and 1 to the PAISMD1 and PAISMD0 bits in the PACRLI register respectively to select the CK output 165 RENESAS 1 Branch Trace Function When a branch occurs during user program execution the branch destination address is acquired When the next branch occurs while the trace information is being output the information is stopped and the next trace information is output The user program can be executed in realtime but some trace information will not be output Note After Trace stop is selected in AUD mode of the Trace mode page in the Trace Acquisition dialog box and the trace buffer of the emulator becomes full the trace information is not acquired The user program is continuously executed 2 Realtime Memory Access Function Realtime memory reading or writing is enabled during user program execution The specified memory address contents maximum three can be displayed on the status bar The memory contents can be changed by the command line and can be referenced in the Memory window Memory can be read or written as follows 1 When the Memory window is used Memory can be read or written during user program execution Open the address to be referenced in the Memory window At reference select Refresh from the Memory menu or issue the Refresh command in the command line window 2 When the comma
53. SAS Warnings on Emulator Usage Be sure to read and understand the warnings below before using this emulator Note that these are the main warnings not the complete list A WARNING Always switch OFF the host computer and user system before connecting or disconnecting any CABLES or PARTS Failure to do so will result in a FIRE HAZARD and will damage the user system and the emulator product or will result in PERSONAL INJURY The USER PROGRAM will be LOST CAUTION Place the host computer and user system so that no cable is bent or twisted A bent or twisted cable will impose stress on the user interface leading to connection or contact failure Make sure that the host computer and the user system are placed in a secure position so that they do not move during use nor impose stress on the user interface VI RENESAS Preface Thank you for purchasing the E10A emulator CAUTION READ section 2 Preparation before Use of this User s Manual before using the emulator product Incorrect operation will damage the user system and the emulator product This emulator is an efficient development tool for software and hardware of user systems based on Hitachi s original microprocessor The emulator operates using the Hitachi debugging interface hereafter referred to as the HDI which is the interface program that runs on Microsoft Windows 98 Microsoft Windows Me Microsoft Windows 2000 or Microsoft Windows NT
54. STINATION 000030F4 MOY DESTINATION 00308 MOV DESTINATION 003DEC MOV DESTINATION 003098 MOV DESTINATION 003DE4 Mov DESTINATION 003098 MOY DESTINATION O030F4 MOY DESTINATION 00306C MOY DESTINATION OO30EC MOY DESTINATION 003098 MOY DESTINATION O030F4 MOY DESTINATION 003086 MOY DESTINATION OO30EC MOY DESTINATION 003098 MOY DESTINATION O030F4 MOY DESTINATION 003086C MOY DESTINATION OO30EC MOY DESTINATION 003098 MOY DESTINATION O030F4 Mov DESTINATION 00303E Mov R15 R93 R15 R3 15 R3 R15 R3 R15 R3 15 R3 R15 R3 R15 R3 15 R3 SOSCTCSOSOCSCSOSCCSCSOCCOCOCCCOCOCCOCOCCOCOCCOCCOCC0D IP D D D D D D D D D D D D D D D D D D D D D D D D D D D D D D D D D D D D DES i i a i a a a a A A ere ree a A A ee A a a E A a A A A A a Figure 4 15 Trace Window Note The types of information and the number of branch instructions differ according to the product For the settings for each product refer to the online help 111 RENESAS Description This window displays the trace buffer contents The items listed in table 4 19 are displayed Table 4 19 Trace Window Display Items Item Description No Displays the number in ascending order as the trace stop point is 0 signed decimal IP Displays the instruction pointer signed decimal TYPE For the branch instruction trace displays the information type that is br
55. TCK TMS TDI TDO TRST ASEBRKAK and DBGMD pins depends on the use conditions of the Hitachi UDI as follows a When the user system is used by connecting the emulator the TCK TMS TDI TDO TRST ASEBRKAK and DBGMD pins must be pulled up by a resistance of several kilo ohms b When the user system is independently used without using the emulator and Hitachi UDI the TCK TMS TDI TDO TRST and ASEBRKAK pins must be pulled up by a resistance of several kilo ohms The DBGMD pin must be grounded 2 The RES signal in the user side is input to pin 84 of the SH7144F or pin 108 of the SH7145F Connect these pins to the Hitachi UDI port connector as the output from the user system 150 RENESAS Figure 6 3 shows the pin arrangement of the Hitachi UDI port connector 36 pins Edge of the board connected to the connector acs Hitachi UDI port connector VOO0O0000000 0000000 0 0 00000000 O00000000 21 59 37 61 Pin 1 mark 43 51 H Pattern inhibited area Unit mm Hitachi UDI port connector Top view f SH7144F SH7145F SH7145F Input SH7144F SH7145F Signal Pin No Pin No 4 Pin No 5 Note Signal Output Pin No Pin No Note UDCK O 53 109 65 19 TMS Input 85 138 ND 20 GND UDATAO 1 0 60 116 21 TRST Input ND 22 GND ND 24 GND UDATA2 1O 25 TDO Output ND 26 GND UDATA3 1 0 27 ASEBRKAK Output GND 28 GND AUDSYNC
56. TION MOY DESTINATION MOY DESTINATION MOY DESTINATION MOY DESTINATION MOY DESTINATION MOY DESTINATION MOY DESTINATION MOY DESTINATION MOY DESTINATION MOY DESTINATION MOY DESTINATION MOY DESTINATION MOY DESTINATION MOY DESTINATION MOY DESTINATION MOY DESTINATION MOY DESTINATION MOY DESTINATION MOY DESTINATION MOY DESTINATION MOY DESTINATION MOY DESTINATION MOY DESTINATION MOY DESTINATION MOY DESTINATION MOY DESTINATION MOY DESTINATION 00303E Mov C a D tt ee omg R15 R3 R15 R3 R15 R3 R15 R39 15 R3 SOSTTDOSCCCOSOSCCSCOCSCCOCOCCCOCOCCCOCCCOCOCCOCOCCO0RD eee ee i ee ee ee ee ee eee eee eee es ea eee E 1 hama a a E a E a E ae E a 0090 0900090 E e E e E ae E a E a E ae E e E a E ae E e E a E ae E e E a E a E ae E e E e E e E e E a E e Figure 3 53 Trace Window in the SH7144F E10A Emulator 74 RENESAS 3 19 Stack Trace Function The emulator uses the stack information to display the name of the calling function for a function at which the program counter is currently pointing Notes 1 This function can be used only when the load module with the Dwarf2 type debugging information is loaded 2 For details on the stack trace function refer to the online help e Double click the BP column in the sort function and set a software breakpoint if TUTORIAL c of x 0000305a max aLO 0000305e while 1 0000306c 2 void sortClong a l
57. To our customers Old Company Name in Catalogs and Other Documents On April 1 2010 NEC Electronics Corporation merged with Renesas Technology Corporation and Renesas Electronics Corporation took over all the business of both companies Therefore although the old company name remains in this document it is a valid Renesas Electronics document We appreciate your understanding Renesas Electronics website http www renesas com April 1 2010 Renesas Electronics Corporation Issued by Renesas Electronics Corporation http www renesas com Send any inquiries to http Awww renesas com inquiry 2CENESAS 10 11 12 Notice All information included in this document is current as of the date this document is issued Such information however is subject to change without any prior notice Before purchasing or using any Renesas Electronics products listed herein please confirm the latest product information with a Renesas Electronics sales office Also please pay regular and careful attention to additional and different information to be disclosed by Renesas Electronics such as that disclosed through our website Renesas Electronics does not assume any liability for infringement of patents copyrights or other intellectual property rights of third parties by or arising from the use of Renesas Electronics products or technical information described in this document No license express implied or otherwise is gra
58. after the execution of the sort function and confirm that random data is sorted in descending order 53 RENESAS 3 16 Break Function The emulator has software and hardware break functions With the HDI a software breakpoint can be set using the Breakpoints window and a hardware break condition can be set using the Break Condition dialog box An overview and setting of the break function are described below 3 16 1 Software Break Function The emulator can set up to 255 software breakpoints Other methods for setting a software breakpoint than in section 3 7 are described below e Select Breakpoints from the View menu The Breakpoints window is displayed e Click the Breakpoints window with the right mouse button and select Delete All from the pop up menu to cancel all the breakpoints that have been set Breakpoints 0 x Figure 3 33 Breakpoints Window Before Software Breakpoint Setting 54 RENESAS e Click the Breakpoints window with the right mouse button and select Add from the pop up menu The Break dialog box is displayed The Point page is displayed by default Figure 3 34 Point Page Break Dialog Box 55 RENESAS e Click the Add button to display the Breakpoint dialog box e Enter H 00003056 in the Value edit box Breakpoint H 0000305 Figure 3 35 Break Point Dialog Box e Click the OK button 56 RENESAS The Break dialog box is displayed
59. ak Condition 3 dialog box O o o o Break Condition 4 dialog box Oo o o oO Break Condition R dialog box Note O Can be set by clicking the radio button in the dialog box Table 6 6 lists the combinations of conditions that can be set with the BREAKCONDITION_SET command Table 6 6 Conditions Set with the BREAKCONDITION_SET Command Type Access Type Condition lt accessopt gt option Address Bus Condition Read or Write Condition lt r wopt gt option Channel lt addropt gt option Data Size Condition lt sizeopt gt option Break Condition 1 O O Break Condition 2 O O Break Condition 3 O O Break Condition 4 O O Break Condition R O Note O Can be set by the BREAKCONDITION_SET command 162 RENESAS Notes on Setting the Break Condition Dialog Box and BREAKCONDITION_SET Command 1 When Go to cursor Step In Step Over or Step Out is selected the settings of Break Condition 3 are disabled 2 Break Condition 3 is disabled when an instruction to which a BREAKPOINT has been set is executed Accordingly do not seta BREAKPOINT to an instruction which satisfies Break Condition 3 3 When a Break Condition is satisfied emulation may stop after two or more instructions have been executed 4 If aPC break before execution is set to the slot instruction after a delayed branch instruction user program execution cannot be terminated before the slot instruction execution execution
60. alog BOK ve cccesvesveecocesvencsexteterecasvsesbectoaneseetiacsscasvencsusntensheasthestansbess tend 19 ILADI Statis Bal ccicc coeccsckctises ict viess tance E es 19 H UDI Connector Disconnected Dialog BOX eeeceeseeeeseceeneeceeeeeeneesneeeteneees 19 Can not find RESET signal Dialog BOX 0 eee eee eeeeeeeeceeeceseeeseenaeenaeeaeeaes 20 Check the connection Dialog BOX 0 cee eeeeceesseceeeeecneeceeeeeeseceeeeesaeceeeeeenaeeenees 20 COMMUNICATION TIMEOUT ERROR Dialog Box eects 20 INVALID ASERAM FIRMWARE Dialog BOX ee ee cee cesecesecsecseeeeeeneeees 21 Unable to restore the previous driver settings Dialog BOX ou eee 21 Dialog Box of the RESET Signal Input Request Message eee eee eset 21 System Clock Dialog Box ce ae a a E E 22 Load Program Dialog BOX eceeceeeceseceseeesecesecaeecaeecaeseeeseeeseeeeseeeeenaeenseenaes 22 Exit HDI Dial e BOX 5 2tesecsccessazincessensleccsuabtdecieesndecoacentesveesdeventeshicdvensedenseSboders 23 Save session Dialog BOX 0 ccsccc sees sre inae sis eleseeiee aad ches EEA Eea EASES 23 Stat MEM eieae ee Ere e EEEE E EE EA TE E E N bees 29 HDH Vindo We E E E E 30 Configuration Dialog BOX 00 ee ee eecesecssecssecseecaeecaeeeeeeeeeeeeesseeeseesaeeaessaeesaetaeeees 32 Load Program Dialog BOX ecceeceeceeeceseceseceneceaeceaecaeecaeeeaeseaeseeeeeeeeeneeetens 33 ADDIO BOX 5s sacsov antes cceccacccevt E E A O E 33 Open Dialog BOX icc sissies AA E ees GU een
61. anch destination DESTINATION Branch destination ADDR For the branch instruction trace displays the branch destination address MNEMONIC Displays the execution instruction mnemonic OPERAND Displays the execution instruction operand Source Displays the C source line of the address that the trace has been acquired The pop up menu opened by clicking the right mouse button can be used to set change and clear trace conditions For details refer to the Hitachi Debugging Interface User s Manual Notes 1 In some cases the emulator address may be acquired by trace In such a case the following message will be displayed Ignore this address because it is not a user program address KKK RMI 2 The Halt menu in the pop up menu is active only when the Trace window is open during user program execution Related Command TRACE _ DISPLAY command 112 RENESAS 4 2 8 Trace Acquisition Dialog Box Function This dialog box sets trace acquisition conditions When the Acquisition menu is selected from the pop up menu which is displayed by clicking the right mouse button in the Trace window the Trace Acquisition dialog box is displayed Table 4 20 Trace Acquisition Dialog Box Page Options Page Name Description Trace Mode Sets the conditions of trace mode 113 RENESAS 1 Trace Mode Page Trace Acquisition Dialog Box Function This page sets the conditions for trace mode
62. ation file SNI file Figure 2 21 Load Program Dialog Box 22 RENESAS 2 6 Ending the HDI Exit the HDI by using the following procedure 1 Select Exit from the File menu to end the HDI When the Exit HDI dialog box is displayed click the Yes button HDI Please confirm Exit HDI Figure 2 22 Exit HDI Dialog Box 2 Then the Save session dialog box is displayed If necessary click the Yes button to save session After saving session the HDI ends If not necessary click the No button to end the HDI Figure 2 23 Save session Dialog Box 3 Turn the user system off 23 RENESAS 2 7 Uninstalling the HDI Follow this procedure to remove the installed HDI from the user s host computer 1 Open Add Remove Programs Properties from the control panel Select the HDI program from the list and click the Add Remove button 2 The setup program is executed again and the installed application can be changed modified or removed When the application is to be uninstalled select removal CAUTION A shared file may be detected while the program is being removed If another HDI may be using the shared file do not remove the file When Microsoft Windows NT 4 0 operating system is used the removal of the registry information on the driver may be asked If other HDI may use the target driver do not remove the registry information If another HDI does not start up after the removal process
63. ation wizard when it has not been automatically activated execute Setup exe from the root directory of the CD R Follow the cues given by the installation wizard to install the HDI Since hardware settings are also made during installation the installation procedure differs according to the operating system or interface PCI or PCMCIA being used Follow the installation steps carefully according to the environment you are using 2 2 1 Installing under Windows 98 and Windows Me Operating Systems 1 When the emulator is a PCI card 1 Install the HDI when the component type has to be selected during installation be sure to select PCI Card Driver 2 Shut the operating system down and turn off the power to the host computer 3 Insert the PCI card emulator in a slot on the host computer Refer to section 2 3 Connecting the Card Emulator to the Host Computer 4 Restart the host computer The hardware is now recognized and the driver is automatically installed 2 When the emulator is a PCMCIA card 1 Install the HDI when the component type has to be selected during installation be sure to select PC Card Driver PCMCIA 2 Insert the PCMCIA card emulator in the host computer s slot Refer to section 2 3 Connecting the Card Emulator to the Host Computer 3 The hardware is now recognized and the driver is automatically installed Note When Add New Hardware Wizard is displayed select the Search for the best driver for
64. atisfied in that order Sequential break condition 2 1 is described below as an example Before executing the program change setting in the Configuration dialog box Otherwise the sequential break does not work e Select Configure Platform from the Setup menu The Configuration dialog box is displayed e Select Sequential break condition 2 1 from the Emulation mode combo box Configuration X General l Mode SH XXXX Emulation mode Sequential break condition 2 1 JTAG clock 4 125MHz Flash memory synchronization Disable zl Port D auo not used ts Driver Change Cancel Apply Figure 3 48 Configuration Dialog Box Sequential Break Setting Note The items that can be set in this window differ according to the product For the settings for each product refer to the online help Click the OK button and close the Configuration dialog box 68 RENESAS Set hardware break conditions as follows Break condition 1 When address H 0000305A is accessed in a read cycle a break condition is satisfied Break condition 2 When address H 00003046 is accessed in a read cycle a break condition is satisfied Follow the setting method described in the previous section e When Break Condition 1 2 setting has been completed the state of the Breakpoints window is as follows Breakpoints Oo oO x mpo A 0 0003054 Fer af feel gia 00003046 Break condition 2
65. be used Select Session 9 en J z Browsen Figure 2 7 Select Session Dialog Box RENESAS 6 The E10A Driver Details dialog box is displayed With the Driver combo box select the driver to connect the HDI with the emulator Interface displays the interface name of the PC interface board to be connected and Channel displays the interface to which the board is connected Once the driver is selected in the E10A Driver Details dialog box this dialog box is not displayed when the HDI is run next time This procedure will not be executed by target devices Driver ET OA PC Card Driver Details Interface PC Card X Channel E10A PC Card Interface X Coniguravon Configure Help Figure 2 8 E10A Driver Details Dialog Box With the Driver combo box select the driver to connect the HDI with the emulator Interface displays the interface name of the card emulator to be connected and Channel displays the interface to which the board is connected Driver combo box Select E10A PC Card Driver to use the PCMCIA card emulator Select E10A PCI Card Driver to use the PCI card emulator For details refer to table 6 3 in section 6 5 1 Emulator Driver Selection Interface combo box Select PC Card to use the PCMCIA card emulator PCI is displayed to use the PCI card emulator If the driver is not installed the PC Card or PCI is not displayed
66. ble Initially the Source window shows the start of the main program but the user can use the scroll bar to scroll through the program and look at the other statements 35 RENESAS 3 7 Setting a Software Breakpoint A breakpoint is one of simple debugging functions The Source window provides a very simple way of setting a software breakpoint at any point in a program For example to set a breakpoint at the sort function call e Select by double clicking the BP column on the line containing the sort function call if TUTORIAL c of x void maintvoid Jong a 10 min max tong J int 1 00003002 for i 0 1 lt 10 i Jf 0000300a j_ rand 00003012 Ifj lt of 00003016 j 5j 0000301a 00003036 0000303e 00003042 00003046 0000304a max 0 0000304e change a 00003056 min a 9 0000305a max a O 0000305e while 1 0000306c _sort void sort long a long t int i Je k gap Figure 3 8 Source Window Setting a Software Breakpoint The symbol will appear on the line containing the sort function and the word Break will appear when the BP column is extended This shows that a software breakpoint has been set Note The software breakpoint cannot be set anywhere other than in the flash memory and RAM areas 36 RENESAS 3 8 Setting Registers Set values of the program counter and the stack pointer before executing the program e Select Registers from the View men
67. break conditions A page name to be displayed and the contents of an option that can be set will change depending on the radio button selected Table 4 15 Address Options Option Description Address radio button All pages can be selected and masks can be set Only program fetched address radio The Address can be set however no mask can be button set Only program fetched address after radio The Address can be set button Note This function differs according to the product For the specifications of each product refer to section 6 5 2 Hardware Break Functions or to the online help 105 RENESAS 2 Data Page Break Condition Dialog Box Function This page sets the data bus conditions Window Break condition 1 X Address Data Bus State Count Data T Don t care Value H 00003046 Byte C wod Long Nonusermask User mask Mas Figure 4 12 Data Page Break Condition 1 Dialog Box Note The items that can be set in this window differ according to the product For the settings for each product refer to the online help 106 RENESAS Description Table 4 16 Data Page Options Option Don t Care check box Description Does not set data conditions Value edit box Sets the data bus value with a number Byte radio button Sets byte data access cycles Word radio button Sets word data access cycles Long radio b
68. but Renesas Electronics does not warrant that such information is error free Renesas Electronics assumes no liability whatsoever for any damages incurred by you resulting from errors in or omissions from the information included herein Renesas Electronics products are classified according to the following three quality grades Standard High Quality and Specific The recommended applications for each Renesas Electronics product depends on the product s quality grade as indicated below You must check the quality grade of each Renesas Electronics product before using it in a particular application You may not use any Renesas Electronics product for any application categorized as Specific without the prior written consent of Renesas Electronics Further you may not use any Renesas Electronics product for any application for which it is not intended without the prior written consent of Renesas Electronics Renesas Electronics shall not be in any way liable for any damages or losses incurred by you or third parties arising from the use of any Renesas Electronics product for an application categorized as Specific or for which the product is not intended where you have failed to obtain the prior written consent of Renesas Electronics The quality grade of each Renesas Electronics product is Standard unless otherwise expressly specified in a Renesas Electronics data sheets or data books etc Standard Computers
69. cles as break conditions Note This page is displayed when the conditions of Break Condition 1 to Break Condition 4 are set 109 RENESAS 4 Count Page Break Condition Dialog Box Function This page sets the conditions for Break Condition 1 Window Break Condition 1 Ea Address Data Bus State Count Count numbers Cancel Apply Help Figure 4 14 Count Page Break Condition Dialog Box Table 4 18 Count Page Options Option Description Don t Care check box Sets no satisfaction count conditions Input area Sets the satisfaction count as a break condition The maximum count is 65 535 Breaks when the conditions set by the Break Condition dialog box for the specified times are satisfied The default is D 1 Note Some products are not supported by this function For the specifications of each product refer to the online help 110 RENESAS 4 2 7 Trace Window Function This window displays the trace buffer contents Window TYPE ADDR MNEMONIC DESTINATION OQO0030EC MOY DESTINATION 00003098 MOY DESTINATION QO0030F4 MOY DESTINATION Q000308C MOY DESTINATION QO0030EC MOY DESTINATION 00003098 MOY DESTINATION QO0030F4 MOY DESTINATION 00003086C MOV DESTINATION QO0030EC MOY DESTINATION 00003098 MOY DESTINATION 000030E4 MOY DESTINATION 00003098 MOY DESTINATION QO0030F4 MOY DESTINATION Q000308C MOY DESTINATION QO0030EC MOV DESTINATION 00003098 MOY DE
70. ctions iaicisvcccsscecteceareccnce ees nia aai i a ai 72 HDI Window Menus and Related Manual Entries 000 0 eeeeeseeeesseceeeeeeeneeeeenees 79 Configuration Dialog Box Page eseseeeseesesreesssresrssrsrrererreerrsrerresrerrsrerrreresreee 83 General Page Options peison e Ea R ER E EEEE A 85 Options for the E10A Driver Details Dialog BOX esseseesssresesreesrereresrerrererreees 88 Breakpoints Window Display Items eee eeeeeeeeeeeeeeeeeeeeeeesecaeeaeteeeaeees 90 Breakpoints Window Pop up Menu Operation cee eee eeeeeeeeeeeeeeneessetseeeaes 91 Break Dialog Box Pages eee eseeeeeeeeeeeeeeeeeseeaecsaecsaecaeecaeeeeeseeeseeeeeeeeaeees 93 Point Page Options i sis siiscssestseseatiscicessscescssnshicnsoasvenevonsbdvsseussepeseusnandsenstayadehseisase gt 95 Condition Page Opti ots sisses enr en pene E eoe E REE an 97 Address Page OPH ODS n ioeie oeeie cacaateoveesuneeseescnasvesnotee cauges soedensvsessancsaneta 99 Setting Conditions in Break Condition Dialog Boxes sssesssseesseeeereereereeesreee 102 Break Condition Dialog Box Pages eessesseseesseresssrssrerrsreesesreerssrerrererrreresreee 103 Address Page Options BREAK_CONDITION to 4 seesessseseesessrsererrerees 105 Address Page Options BREAK_CONDITION R esesseessesreerrssrerrserresrreees 105 Address Options eieae E E E E E oan 105 Data Page Optromssses cic cssciessedevincssbivecssstevsecesenvenssonsvocssonaes Er EE ne a cess
71. d file so that the current directory alteration is not affected 169 RENESAS Example FILE_LOAD C HEW HDIS E1 0A Tutorial Debug TUTORIAL ABS 9 About Hitachi Debugging Interface User s Manual This version of HDI does not support section 10 Selecting Functions written in Hitachi Debugging Interface User s Manual 10 Note on Initiating HDI When the emulator is initiated by using another card emulator after it has been initiated by using the PCI card emulator delete the TARGET line from the C windows HDL INI file 11 Usage with Another HDI Automatic load of session files Since the emulator cannot use another HDI re install this HDI whenever another HDI has been previously installed is used If another HDI has been used initiate this HDI with Run as follows without using the session files lt Directory path name in which HDI is installed gt hdi n RET n initiates the HDI without loading the recently used session files If there is another session file in the different debug platform the following error message is displayed invalid target system lt recently used debug platform name gt Uninstallation of Another HDI If another HDI is uninstalled after this HDI has been installed the stack trace function cannot be used In this case re install this HDI 12 Select Function Dialog Box This HDI does not support software breakpoint setting in the Select Function dialog box described
72. der certain use conditions Further Renesas Electronics products are not subject to radiation resistance design Please be sure to implement safety measures to guard them against the possibility of physical injury and injury or damage caused by fire in the event of the failure of a Renesas Electronics product such as safety design for hardware and software including but not limited to redundancy fire control and malfunction prevention appropriate treatment for aging degradation or any other appropriate measures Because the evaluation of microcomputer software alone is very difficult please evaluate the safety of the final products or system manufactured by you Please contact a Renesas Electronics sales office for details as to environmental matters such as the environmental compatibility of each Renesas Electronics product Please use Renesas Electronics products in compliance with all applicable laws and regulations that regulate the inclusion or use of controlled substances including without limitation the EU RoHS Directive Renesas Electronics assumes no liability for damages or losses occurring as a result of your noncompliance with applicable laws and regulations This document may not be reproduced or duplicated in any form in whole or in part without prior written consent of Renesas Electronics Please contact a Renesas Electronics sales office if you have any questions regarding the information contained in this document or Renesas
73. dition channel number Specifiable options change depending on the channel number For details refer to section 6 5 2 Hardware Break Functions 1 lt addropt gt lt dataopt gt lt r wopt gt lt accessopt gt and lt countopt gt can be set 2 to 4 lt addropt gt lt dataopt gt lt r wopt gt and lt accessopt gt can be set R address lt address gt can be set lt address gt Numerical value Virtual address as an address bus value lt addrcycle gt Keyword Address bus access conditions for program fetch cycles Set either of the following keywords pc Breaks before the address set by the lt address gt parameter is executed When this keyword is set only lt addropt gt cannot be set as a condition In addition when pc is set the lt maskdata gt parameter cannot be set pcafter Breaks after the address set by the lt address gt parameter is executed When this keyword is set only lt addropt gt cannot be set as a condition When pcafter is not set the address bus during data access cycles and program fetch cycles is targeted as the access condition lt maskdata gt Character string Mask specification for desired bits in the data Set a radix H for hexadecimal or B for binary at the top of a character string and set in the digit to the masked Conditions are satisfied regardless of the values of masked digits lt data gt Numerical value Data bus value 128 RENESAS
74. e is displayed cancel all software breakpoint settings with the Delete All or Disable button in the Breakpoints window Run program dialog box If an invalid software breakpoint address is specified as a stop address in the Run Program dialog box the invalid software breakpoint will become valid after the user program has stopped Breakpoints window During user program execution it is impossible to jump from the breakpoint to the source or address line on the Source or Disassembly window by using Go to Source in the popup menu displayed on the Breakpoints window Number of Software Breakpoint and Stop At Settings in the Run Menu The maximum number of software breakpoints and Stop At settings allowed in the Run menu is 255 Therefore when 255 software breakpoints are set specification by Stop At in the Run menu becomes invalid Set the software breakpoints and Stop At in the Run menu to 255 or less in total Note on RUN TIME Display The execution time of the user program displayed in the Status window is not a correct value since the timer in the host computer has been used Note on Displaying COMMUNICATION TIMEOUT ERROR If COMMUNICATION TIMEOUT ERROR is displayed the emulator cannot communicate with the MCU Select Initialize from the File menu to initialize the emulator Before the emulator is restarted turn off the user system and disconnect the interface cable that has been
75. e online help 119 RENESAS 5 2 1 AUD_MODE AUM Description Displays AUD trace acquisition conditions Format aum lt optionl gt lt option gt full lt full gt Table 5 2 AUD MODE Command Parameter Parameter Type Description lt full gt Keyword Continues or stops emulation when the trace memory is full C Always overwrites the oldest information to acquire the latest information S When the trace buffer memory is full information acquisition stops Note When lt option1 gt is omitted the current setting conditions are displayed Note The parameters for this command differ according to the product For the specifications of each product refer to the online help 120 RENESAS Examples To set continue option gt aum full c RET To display settings gt aum RET mode Realtime trace continue Related Item Trace Acquisition dialog box RENESAS 121 5 2 2 AUD_TRACE AUT Description Displays the trace information Format aut lt optionl gt lt option2 gt lt option 1 gt start lt start_pointer gt lt option2 gt end lt end_pointer gt Table 5 3 AUD _TRACE Command Parameter Parameter Type Description lt start_pointer gt Numerical value Start pointer value for trace display lt end_pointer gt Numerical value End pointer value for trace display Notes 1 In the PCMCIA card emulator D 16383 to D 0 can be set to the trace pointer In the PCI card em
76. ecesecseecneeeneeeseeees 45 Fig re 3 22 Step IN Button sirios ecenin aeara scent E A R E deteuvegessents 46 Figure 3 23 Source Window Step In 00 cee eesceceeeeeeseeceseceeeeceeeeeceeceeeeeneecseeeeeaeceeeeenaeenees 47 Figure 3 24 Step Qut Button seerne p E a naiai 48 Figure 3 25 HDI Window Step Out eesseesseessesseesesesseesserssessseresesessserstessressressreseeseeeseesset 48 Figure 3 26 HDI Window Step In gt Step In ee eee eeseeceeeeeeneeceeeeeeneeceeeeeeeeceeeeeeneeesees 49 Figure 3 27 Source Window Before Step Over Execution ceccceecceeseeceeeeeeneeceeeeeeeeeeees 50 Figure 3 28 Step Over Buttomivessiccce scossevsscesssesscesseedovescgessvsscoove cuseesesesscescanpecdensapensovs suessiodeasves 50 Figure 3 29 HDI Window Step Over ceseessecsseceseeceseeeseeecaeceeneecaceeeneecaceeeneecsaeenenees 51 Fisur 3 30 Go Button neeo ites Sole ei nee ca eel 52 Figure 3 31 Stop Buttoni cc cci csccecsscscetesscscenessnsessessaseseessnssonsbeibbaesceesbegsbeasebestsnssobedogsanessesssbeaten 52 Figure 3 32 Locals Window sicv cccvie ccsscessecivensscsentesscepvechosussbetecloneevs K E REEE E E cunvessecdonees 53 Figure 3 33 Breakpoints Window Before Software Breakpoint Setting 0 0 eee 54 Figure 3 34 Point Page Break Dialog BOX eee eescceeneeceneceeeeeceeeeeeneeceaeeeeneecaeereneeceas 55 Figure 3 35 Break Point Dialog Box ccc eeeeeeeeeeeeeeeceseceaecaecsaecaaecaaecaaseaeseeeeene
77. ecuting Step Over Command The Step Over executes a function call as a single step and stops at the next statement of the main program e Using Step Over execute two steps to reach the change function statement WA TUTORIAL c MEF Address BP Labe Source 00003000 main p main void long a 10 min max long j int i 00003002 for i 0 1 lt 10 i Jf 0000300a j _ rand 00003012 Ifj lt of 00003016 J 0000301a ali j 00003036 0000303e 00003042 00003046 0000304a 00003056 0000305a max aloj 0000305e while 1 0000306c _sort void sort long a Jong ts inti j k gap nNANANFN aan Se Figure 3 27 Source Window Before Step Over Execution e To step through all statements in the change function at a single step select Step Over from the Run menu or click the Step Over button in the toolbar TP Figure 3 28 Step Over Button 50 RENESAS if TUTORIAL c Adaress BP Labe source 00003000 main yold main void Jong a 10 min max long j int i 00003002 for i 0 1 lt 10 i Jf 0000300a j randQ 00003012 Ifj lt of 00003016 j j 0000301a i ali j 00003036 sorta 0000303e min a 00003042 max al9 00003046 min 0000304a max D 0000304e change a 0000305a max aLOQ 0000305e while 1 0000306c _sort void sort long a long t int i j k gap ANNAN ANN dan 4 Figure 3 29 HDI Window Step Ove
78. ed that customers contact Renesas Technology Corporation or an authorized Renesas Technology Corporation product distributor for the latest product information before purchasing a product listed herein The information described here may contain technical inaccuracies or typographical errors Renesas Technology Corporation assumes no responsibility for any damage liability or other loss rising from these inaccuracies or errors Please also pay attention to information published by Renesas Technology Corporation by various means including the Renesas Technology Corporation Semiconductor home page http www renesas com When using any or all of the information contained in these materials including product data diagrams charts programs and algorithms please be sure to evaluate all information as a total system before making a final decision on the applicability of the information and products Renesas Technology Corporation assumes no responsibility for any damage liability or other loss resulting from the information contained herein Renesas Technology Corporation semiconductors are not designed or manufactured for use in a device or system that is used under circumstances in which human life is potentially at stake Please contact Renesas Technology Corporation or an authorized Renesas Technology Corporation product distributor when considering the use of a product contained herein for any specific purposes such as apparatus or systems for t
79. eeeeeee 70 Figure 3 51 Displayed Contents of the System Status Window Sequential Break 71 Figure 3 52 Trace mode Window esceescecsssceececeeceencecaceeeceeceaeceeneecaeceeaeecaeceeeeeenaeeeeees 73 Figure 3 53 Trace Window in the SH7144F E10A Emulator 0 eee eeeeeeeeeceeeceeeeeeneeeeenees 74 Figure 3 54 Source Window Software Breakpoint Setting ceseceseceeseeceereeeseeceneeeeeeees 75 Figure 3 55 Stack Trace Window csscceeccecsseceeeeecsseceeneecaeeeseeecsaeceeneecsaeceneecsaeseeeeecaeeesees 76 Figure 4 1 Configuration Dialog BOX sssssessssresesreesesrressrsrreresreeresrerrssestreresrenrnsrerrsresrrerenreet 82 Figure 4 2 General Page Configuration Dialog BOX seesseesseessesseesesessesessresressressreerreees 84 Figure 4 3 Warning Message BOX 00 00 cc eeccseesseeeeeeeeereeseeesecaecsaecsaecseecaeecaeesaeseeeseeseeeseeeeeatens 87 Figure 4 4 Figure 4 5 Figure 4 6 Figure 4 7 Figure 4 8 Figure 4 9 Figure 4 10 Figure 4 11 Figure 4 12 Figure 4 13 Figure 4 14 Figure 4 15 Figure 4 16 Figure 4 17 Figure 6 1 Figure 6 2 Figure 6 3 Figure 6 4 Figure 6 5 Figure 6 6 Figure 6 7 Figure 6 8 Figure 6 9 Figure 6 10 viii E10A Driver Details Dialog BOX ceeeesceesseceeneeceecesneecnseeeeneeceaeeeseeecneeeeneeees 88 Breakpoints WindOW oivccst cincscdscevestbentecenskonceed AE ENEE Ea E E EE SEEE 89 Break Dialog BOX x e cd ireren ran rerien e ea KEENE ERA EEEE EE
80. eeeeeeeeeeeeeeeseeeeeeeseeeaees 52 3 13 Displaying Local Variables iis 0 22 3 cscss ass chaseeasebentelecpetsesoceunensnesuvesscedevsrcessoweetecuevensesbes 53 3 16 Break RUNG OM zsdesies cceves caencnei cates cescscueutentesacesdacaendect sna EE OERE EEE OE NIN E EE TE EREET A 54 3 16 1 Software Break Function ccsssssscssnsesssscsesesnsscsensessnscsonsesnnscesneessssesonsesnnes 54 3 17 Hardware Break Function 00 ce ccesccesseecseeceeececesecesneecsaececeecaeceeaeecaeceeeeecsaeceeneesnaeennees 60 3 17 1 Setting the Sequential Break Condition 0 eee eeeeeeeeeeeeseeseeeeeeseenaeenaes 68 DELS Trace FUNCIONS osram eado gese aaea e ep a cane des ar ae Soa a E a a EEEE 72 3A8 1 AUD Trace Funct one risiccssceccceivvactecesestacceecetedsssdedcsclsGeechcevestenshieviaceeseedaislavsees eaves 73 3 19 Stack Trace Function ccenn a ioa eri EN ENE E R MENARAS Raia 75 320 What Next aisne di Roh wie eel og ies A EE E S E A E eats aaa 77 Section 4 Descriptions Of Windows j iccsccsissiassecessancavcescoesesssasnsccevessceescaaseedsces 79 4l UID Wan ws a perenes lean laetbavvecebencessuveensheudedestoiouacsbebavensnsbveaeetunddensbaessbeesed 79 4 2 Descriptions of Each Window 0 ceceeceseessecssecseeceeeeeeeeeeeeeeeaeensecaecsaecaecaecauecaeesaeeeneeeas 82 4 2 1 Configuration Dialog BOX sssesseseeseesessseeesssreresesteerrstesresrerrssesrresrsreeresreeresenees 82 4 2 2 Breakpoints WindoW eesseeeesseeseseesseesseessess
81. eeeees 56 Figure 3 36 Point Page Break Dialog Box After Software Breakpoint Setting 57 Figure 3 37 Breakpoints Window Software Breakpoint Setting eeeseseeeseeeseerererrereesre 58 Figure 3 38 Source Window at Execution Stop Software Break ces eeeceeeseceeneeeeteceeneeees 59 Figure 3 39 Displayed Contents of the System Status Window Software Break 59 Figure 3 40 Breakpoints Window Before Hardware Break Condition Setting 60 Figure 3 41 Condition Page Break Dialog Box 0 eee eeceeeeceeseeceeeeeseeceeeeeeneeceeeeenaeesees 61 Figure 3 42 Address Page Break Condition 1 Dialog BOX 0 eee eeseeeeereeeneeceteeeeeeeeees 62 Figure 3 43 Bus State Page Break Condition 1 Dialog BOX e eee eeeeeeeseceeneeeeeeeeeneeeees 63 Figure 3 44 Break Dialog Box After Hardware Break Condition Setting eee 64 Figure 3 45 Breakpoints Window Break Condition 1 Setting eee eeeeeeseeceeeeeeneeeeees 65 Figure 3 46 Source Window at Execution Stop Break Condition 1 eee eeeeeeeeeeeeneeeeees 66 Figure 3 47 Displayed Contents of the System Status Window Break Condition 1 67 Figure 3 48 Configuration Dialog Box Sequential Break Setting 0 0 eee eeeeeeeeees 68 Figure 3 49 Breakpoints Window After Sequential Break Condition Setting 69 Figure 3 50 Source Window at Execution Stop Sequential Break 00 eee eeeceeeeeeeetee
82. either of the following keywords enable Enables hardware break settings disable Disables hardware break settings Note When lt channel gt is omitted all hardware breakpoints that have been set are enabled or disabled Examples To enable all hardware breakpoints gt bce enable RET To disable the hardware breakpoints set at channel 1 gt bce channel 1 disable RET Related Items BCC BCD and BCS commands Breakpoints window Break and Break Condition dialog boxes 126 RENESAS 5 2 6 BREAKCONDITION_SET BCS Description Sets hardware breakpoints Note The function will differ according to the devices used For functions of each emulator product refer to section 6 5 2 Hardware Break Functions Format bes lt channel gt lt option gt lt option gt lt channel gt channel lt channel_number gt lt option gt lt addropt gt lt dataopt gt lt r wopt gt lt accessopt gt lt countopt gt lt addropt gt address lt address gt lt addrcycle gt Il address mask lt maskdata gt lt addrcycle gt lt dataopt gt data lt data gt lt datawidth gt II data mask lt maskdata gt lt datawidth gt lt r wopt gt direction lt r w gt lt accessopt gt access lt access gt lt countopt gt count lt count gt RENESAS 127 Table 5 7 BREAKCONDITION_SET Command Parameters Parameter lt channel_number gt Type Numerical value Description Hardware break con
83. el function specify Step Out Ina for statement or a while statement executing a single step does not move execution to the next line To move to the next line execute two steps 3 Operation During Accessing Files Do not perform other operations during saving in the Load Program Verify Memory Save Memory or Trace window because this will not allow correct saving to be performed 4 Source Window at Program Change When a program being displayed in the source window is changed and the source file and load module are reloaded close and reopen the source window once If the window is not closed and reopened the display will be illegal 5 Watch Local variables at optimization Depending on the generated object code local variables in a C source file that is compiled with the optimization option enabled will not be displayed correctly Check the generated object code by displaying the Disassembly window If the allocation area of the specified local variable does not exist displays as follows Example The variable name is asc asc target error 2010 xxxx Variable name specification When a name other than a variable name such as a symbol name or function name is specified no data is displayed 168 RENESAS Example The function name is main main Array display When array elements exceed 1000 elements from after 1000 will not be displayed 6 Memory Load Function When Load is s
84. elected from the Memory menu the Memory Load function can be used although it takes time to download It is recommended that the File Load function Load Program selected from the File menu is used to load the S type file Note The File Load function deletes the debugging information of the previously loaded program When other load modules are loaded after the program to be debugged has been loaded use the following sequence Link the program to be debugged with the Sdebug option and save the debugging information in another file Load the debugging information file after all the load modules have been loaded 7 Line Assembly Input radix Regardless of the Radix setting the default for line assembly input is decimal Specify H or Ox as the radix for a hexadecimal input 8 Command Line Interface Batch file To display the message Not currently available while executing a batch file enter the sleep command Adjust the sleep time length which differs according to the operating environment Example To display Not currently available during memory_fill execution sleep d 3000 memory_fill 0 ffff 0 Overwrite file In Command Line Interface a file having the same name as the output file is overwritten without asking the user File specification by commands The current directory may be altered by file specifications in commands Absolute paths should be used to specify the files in a comman
85. ems in ascending or descending order The tutorial program performs the following actions e The main function generates random data to be sorted e The sort function sorts the generated random data in ascending order e The change function then sorts the data in descending order The file tutorial c contains source code for the tutorial program The file tutorial abs is a compiled load module in the Dwarf2 format Table 3 1 is a list of the parts of the tutorial program and an outline of their configuration on the hard disk Table 3 1 Tutorial Program Configuration and Parts Item Contents Workspace for HEW V1 2 Installation directory tutorial tutorial nws Load module Installation directory tutorial tutorial Debug tutorial abs Main program source file Installation directory tutorial tutorial tutorial c Stack information file Installation directory tutorial tutorial Debug tutorial sni 27 RENESAS Notes 1 28 This program was created by using Hitachi Embedded Workshop hereafter referred to as HEW V1 2 Older versions of HEW will not open the workspace included with the package so create a new workspace in such situations This program was compiled without optimization for the SH2 CPU If recompiled with different settings the addresses may differ from those given in this section tutorial abs is aload module in the Dwarf2 format If a load module is recreated in the Sysrof format the amount of
86. evel user name 4 During HDI installation the setting value should be checked beforehand because inquiries are made about the resource used by the PCMCIA card emulator Start the Start menu gt Programs gt Administrative Tools Common gt Windows NT Diagnostics check the status of the IRQ I O port and memory from the resource panel and determine the setting values that do not conflict with other devices The following resources are used IRQ one channel I O port H F byte and memory H 4000 byte 5 Install the HDI For a component be sure to select PC Card Driver PCMCIA There is a check box for selecting the type name of each product under the PC Card Driver PCMCIA component Select the appropriate type name If the correct name is not selected the correct driver will not be installed and the emulator will not operate 6 Restart the host computer Notes The driver that has been selected in the Drivers component starts after the host computer is initiated If the host computer is initiated with the card disconnected or with the incorrect driver installed the driver cannot initiate and the service control manager informs the system of an error This however is not a problem RENESAS 2 2 3 Installing under Windows 2000 Operating System 1 When the emulator is a PCI card 1 Log on with an administrator level user name 2 Install the HDI When a component is selected be sure to select PC
87. formed from the flash memory to the host computer PC to Flash memory Flash memory to PC Synchronization is performed between the host computer and the flash memory Port D combo box Sets whether the multiplexed port D is used in the AUD AUD not used Port D is not used in the AUD AUD used Port D is used in the AUD Driver group box Displays the driver currently selected Change button Displays the E10A Driver Details dialog box Use when a driver currently connected is changed 85 RENESAS Notes 1 When using the sequential break function set the corresponding hardware break conditions 2 The range of frequencies that the AUD operates under is different according to the devices used For details refer to section 6 5 5 AUD Functions 3 The range of frequencies that the JTAG operates at is different according to the devices used For details refer to section 6 5 4 Notes on Using the JTAG Clock TCK 86 RENESAS When a driver is to be changed with the Change button the following message is displayed Are you sure you want to modify your driver settings This will cause your emulator to be reinitialised and you will not be able to cancel any changes you make Figure 4 3 Warning Message Box When the Yes button is clicked the E10A Driver Details dialog box is displayed When the No button is clicked the display returns to the Configuration dialog box Related Command
88. ght to change wholly or partially the specifications design user s manual and other documentation at any time without notice Target User of the Emulator Product This emulator product should only be used by those who have carefully read and thoroughly understood the information and restrictions contained in the user s manual Do not attempt to use the emulator product until you fully understand its mechanism It is highly recommended that first time users be instructed by users that are well versed in the operation of the emulator product RENESAS LIMITED WARRANTY Hitachi warrants its emulator products to be manufactured in accordance with published specifications and free from defects in material and or workmanship Hitachi at its option will replace any emulator products returned intact to the factory transportation charges prepaid which Hitachi upon inspection shall 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 I
89. ht type Manufacturing Ltd 36 pin connector DX10M 36S Hirose Electric Co Ltd Screw type DX10M 36SE Lock pin type DX10GM 36SE Note When the 14 pin connector is used do not install any components within 3 mm of the Hitachi UDI port connector When the 36 pin connector is used do not connect other signal lines to the Hitachi UDI port connector 2 Note that the TDO signal of the user system interface cable connector must be connected to the TDI pin of the Hitachi UDI port connector and the TDI signal of the user system interface cable connector must be connected to the TDO pin of the Hitachi UDI port connector Section 6 2 shows the pin arrangement of the Hitachi UDI port connector 3 Figure 2 4 shows how to connect the user system interface cable to the user system when the 14 pin straight type connector is used Connect the ground line of the cable to the user system ground The end of the ground line has a hole having a diameter of 3 mm and therefore when the ground line is screwed to the user system the screw diameter must be 3 mm 12 RENESAS User system interface cable GND line Hitachi UDI port connector User system GND connection EUN Naft User system Figure 2 4 Connecting the User System Interface Cable to the User System when the 14 pin Straight Type Connector is Used Notes 1 To connect the signals output from the Hitachi UDI port connector refer to the device pin alignment 2 To remove the user
90. ial break Condition 2 1 To set the normal emulation mode for user program execution gt gp eml_mode normal RET Notes 1 The sequential break function differs according to emulator products For details refer to online help 2 The parameters for this command differ according to the product For the specifications of each product refer to the online help Related Items BCS and BS commands Breakpoints window Break Break Condition and Configuration dialog boxes 137 RENESAS 5 2 13 JTAG_CLOCK JCK Description Displays or sets the JTAG clock TCK frequency Format Displays the JTAG clock TCK frequency Jek Sets the JTAG clock TCK frequency jck lt jck_opt gt Table 5 14 JTAG_CLOCK Command Parameter Parameter Type Description lt jck_opt gt Numerical value Sets one of the JTAG clock TCK frequency PCMCIA used 3 75 MHz 7 5 MHz or 15 MHz 3 3 75 MHz 7 7 5 MHz 15 15 MHz PCI used 4 125 MHz 8 25 MHz or 16 5 MHz 4 4 125 MHz 8 8 25 MHz 16 16 5 MHz Note The range of frequencies that the Hitachi UDI operates at differs according to the devices used For details refer to section 6 5 4 Notes on Using the JTAG Clock TCK 138 RENESAS Examples when PCMCIA used To set the JTAG clock TCK frequency gt jck 15 RET JTAG Clock 15MHz To display the JTAG clock TCK frequency gt jck RET JTAG Clock 15MHz when PCI used To set the JTAG clock TCK freq
91. ialog Box e Set any value in the JTAG clock combo boxes The clock also operates with the default value Note The items that can be set in this window differ according to the product For the settings for each product refer to the online help e Click the OK button to set a configuration 32 RENESAS 3 6 Downloading the Tutorial Program 3 6 1 Downloading the Tutorial Program Download the object program to be debugged e Select Load Program from the File menu The Load Program dialog box is displayed Enter installation directory tutorial tutorial Debug tutorial abs in the File name list box as shown in figure 3 4 then click the Open button Load Program x Offset Hg V Verify Cancel File name ESET OA xxxxSTUTORIALSTUTORIALSDEBUGST x Browse T Load only debugging information T Load stack information file SNI file Figure 3 4 Load Program Dialog Box Notes 1 When installing the emulator if no directory is specified and the HEW is in use the program is installed under Hew hdi5 e10a When the HEW is not in use the program is installed under root directory E10A 2 The SNI file is required to use the profiler function 3 The Verify check box is disabled in this product After the file has been loaded the following dialog box displays information about the memory areas to which the program code has been transferred Module name C E1044xxxx
92. ils refer to section 6 5 2 Hardware Break Functions Table 4 11 Setting Conditions in Break Condition Dialog Boxes Type Bus State and Address Bus Data Bus Read Write Dialog Box Condition Condition Conditions Count Condition Break Condition 1 O O O O dialog box Break Condition 2 O O O X dialog box Break Condition 3 O O O X dialog box Break Condition 4 O O O X dialog box Break Condition R O X X x dialog box Note O Can be set by checking the radio button in the dialog box X Cannot be set in the dialog box 102 RENESAS Table 4 12 shows all the Break Condition dialog box pages Table 4 12 Break Condition Dialog Box Pages Page Name Function Address Sets the address conditions of Break Condition 1 to Break Condition 4 and Break Condition R Data Sets the data conditions of Break Condition 1 to Break Condition 4 Bus State Sets the bus state conditions and read write cycle conditions of Break Condition 1 to Break Condition 4 Count Sets the satisfaction count conditions of Break Condition 1 Count condition is not displayed in the Break Condition 2 to Break Condition 4 dialog box pages Note This function differs according to the product For the specifications of each product refer to section 6 5 2 Hardware Break Functions or to the online help 103 RENESAS 1 Address Page Break Condition Dialog Box Function This page sets the address bus conditions
93. information displayed on the HDI screen during the program s execution will be reduced This section describes general usage examples for the emulator For the specifications of particular products refer to section 6 or the online help file RENESAS 3 2 Running the HDI To run the HDI select the HDI for E10A SHxxxx gt Hitachi Debugging Interface from the Start menu Accessories JA Intemet Explorer J StartUp S MS DOS Prompt YJ Windows Explorer amp HDI for E104 SHxox gt Hitachi Debugging Interface Figure 3 1 Start Menu For the procedure of running the HDI refer to section 2 5 System Check 29 RENESAS 3 3 HDI Window BS Hitech Debugging fterface TUTORIAL SHox E104 Emulator TUTORIAL D K Eile Edit View Run Memory Setup Window Help jo omoe se oe e M AEP HD P Re Ae ORAS oe WE sie 0 8 2 BA ts Line Address BP Label Source 00003000 _main ve mainyvoid o l j long al10 min max long j int i 00003002 for i 0 i lt 10 i i 0000300a j randO 0000301 2 if Gj lt O C 0000301 6 0000301 a 00003036 0000303e 00003042 00003046 0000304a 0000304e change G 00003056 min al9 0000305a max alo 0000305e while 1 D For Help press F1 Figure 3 2 HDI Window The key functions of the HDI are described in section 4 Descriptions of Windows Numbers in figure 3
94. ion 1 Dialog Box Note The items that can be set in this window differ according to the product For the settings for each product refer to the online help 63 RENESAS e Click the OK button e The Break dialog box is displayed and the first point display in the Break Condition list box changes from Empty to Enable 1 Enable Bancel l Ey Figure 3 44 Break Dialog Box After Hardware Break Condition Setting Note The number of hardware break conditions differs according to the product For the number that can be specified for each product refer to the online help e Click the Close button 64 RENESAS The newly set hardware breakpoint is displayed in the Breakpoints window With this setting Break Condition 1 is displayed in Type in the Breakpoints window This completes the setting of the Break Condition 1 hardware break condition When the program is executed a break will occur when address H 00003046 is accessed in a read cycle reas O oO x mma e TUTORIAL c 40 Figure 3 45 Breakpoints Window Break Condition 1 Setting e Close the Breakpoints window e Set the program counter and stack pointer values PC H 00000800 and R15 H FFFFFFFC that have been set in section 3 8 Setting Registers in the Registers window Click the Go button 65 RENESAS The program runs and then stops at the condition specified under Break Condition 1 ii TUTORIAL c _ O
95. iver3 CPU SH xxxx Run status Break Cause of last break BREAK POINT Run time count 0000h00mi nOOs 000ms Emulation mode Normal Big endian AUD None h Session Platform Memory Events fo Figure 3 39 Displayed Contents of the System Status Window Software Break Note The items that can be displayed in this window differ according to the product For the items that can be displayed refer to the online help 59 RENESAS 3 17 Hardware Break Function A method is given below in which the address bus condition and the read cycles for the bus status condition are set under Break Condition 1 as hardware break conditions e Select Breakpoint Window from the View menu The Breakpoints window is displayed e Click the Breakpoints window with the right mouse button and select Delete All from the pop up menu to cancel all breakpoints that have been set e Click the Breakpoints window with the right mouse button and select Add from the pop up menu Goto Source Figure 3 40 Breakpoints Window Before Hardware Break Condition Setting 60 RENESAS The Break dialog box is displayed To set hardware break conditions select Condition in the Break dialog box to display the Condition page Point Condition Break condition Figure 3 41 Condition Page Break Dialog Box Up to five breakpoints can be set independently for the Break Condition hardware break condition However Break Co
96. log BOX sssssessssresesreesesreresrrsrreresrerrnsrnreeerrrerenreernsrnreses 32 3 6 Downloading the Tutorial Program oo ee ee cece cee ceeecneecaeecaeeeeeeeeeeeeeteeeeseseaeesaeeaeenaes 33 3 6 1 Downloading the Tutorial Program 0 eee eeeeeecese cee cnee sees caeeeeeeeeeeeeeeeeeeaeens 33 3 6 2 Displaying the Source Program 0 eee eeeeceeeeeeecesecsecsecaeecaeeeeeeeeeeeeseeeeeatens 34 3 7 Setting a Software Breakpoint 00 0 0 ee eeeeeeeeeceeeceeeceseeaecsaecsaecseecaeesaeeeeeseeeeneeeeeeneenaees 36 3 6 Setting Registers secesec sccsleedscesssecicesdooxssesctessesscedgcssecteus EEEE EE REEE IEAA SEEE EEE 37 39 Executing the Program ccicvincises csp eiea N A SE aN 39 3 10 ReyieWwing BreakpointS is ioentoeseiieseescusiencei iseeneses Susacteeedauubes ritsu aiino s Eripe r aE 41 Sel Viewing Memory ccc iii ces cess eds A E ER Gels GH ee 42 312 Weatchin Variables esseci tes tessessecks cases caressa sheen ioe daseeses o a aae ces i e i aE 43 3 13 Stepping Through a Program eee eee eeceeeceeeceeceaecaeceaecaeecaeeeaeseeeeeeeeeeeeeeseeeeseeeaees 46 3 13 1 Executing Step In Command eee cee cece cee eeeeeeeeeeeeeeeeeeeseeeseenaeeaees 46 RENESAS 3 13 2 Executing Step Out Command 0 0 eee ceeceeecesecesecesecsaeceecaeecaeseeeeeneeenens 48 3 13 3 Executing Step Over Command 00 eee eee cee ceeecseeeeeeeeeeeeeeeeeeeeeseeeseenseenaees 50 3 14 Forced Breaking of Program Executions 00 cece eecesecee esse ceeecee
97. memory Memory can be written by using the RAM monitor function a maximum of three addresses are written Format RW lt optionl gt lt option2 gt lt option3 gt lt optionl gt lt option2 gt lt option3 gt lt optionl gt lt option2 gt lt option3 gt lt option gt address lt address gt lt option2 gt data lt data gt lt option3 gt size lt size gt Table 5 19 RAM_W Command Parameter Parameter Type Description lt address gt Numerical value Sets the address to be written lt data gt Numerical value Sets the data to be written lt size gt Keyword Sets the size to be written B Byte size W Word size L Longword size Note When lt option3 gt is omitted the address is written in a byte size Notes 1 While the memory is written by using the RAM monitor function no trace is acquired 2 This command can be accepted during the user program execution Example To write memory by using the RAM monitor function gt rr address 00000100 data 0009 size W address 00000200 data FF000000 size L 145 RENESAS 146 RENESAS Section 6 SH7144F E10A Emulator Specifications 6 1 Overview of the SH7144F E10A Emulator In the SH7144F E10A emulator the SH7144F enables realtime emulation In addition realtime data tuning with the AUD function is also enabled The supported operating modes are as follows MCU expansion mode 2 Single chip mode Table 6 1 lists the components
98. mmand BREAKPOINT_SET command RENESAS 99 4 2 5 Break Condition Dialog Box Function This dialog box sets hardware break conditions Window Break condition 1 X Address Data Bus State Count m ddress I Don t Care Address C Only program fetched address C Only program fetched address after Address H o000304 Nonusermask User mask Ma f Cancel Figure 4 10 Break Condition Dialog Box Note The items that can be set in this window differ according to the product For the settings for each product refer to the online help 100 RENESAS Description The Break Condition dialog box consists of multiple pages A condition to halt the program can be set in each page Contents to be set by each page are described in section 4 2 6 Break Condition Dialog Box Pages Clicking the OK button sets the hardware break conditions If the Cancel button is clicked the dialog box is closed without setting the hardware break conditions Related Commands BREAKCONDITION_CLEAR command BREAKCONDITION_DISPLAY command BREAKCONDITION_ENABLE command BREAKCONDITION_SET command 101 RENESAS 4 2 6 Break Condition Dialog Box Pages Function The Break Condition dialog box pages allow a number of hardware break conditions to be set Some functions may not be supported by some types of emulators The setting conditions may differ from the dialog box name in table 4 11 For deta
99. nal 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 potentially hazardous situation which if not avoided may result in minor or moderate injury CAUTION CAUTION used without the safety alert symbol indicates a potentially hazardous situation which if not avoided may result in property damage NOTE emphasizes essential information lt RENESAS A WARNING 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 Always switch OFF the host computer and user system before connecting or disconnecting any CABLES or PARTS Connect the connectors in the user system and in the user interface cable by confirming the correct direction If the PCI interface board for the E6000 or E8000 emulator HS6000EIC01H and the E10A emulator PCI card are mounted on the same host computer the connectors may be illegally connected RENE
100. nctions In the SH7144F E10A emulator the following functions using the AUD function can be used These functions are operational when the AUD pin is connected to the emulator Table 6 7 AUD Functions Function Description Branch trace function Displays the addresses and instruction words at the branch destination RAM monitor function Enables realtime memory reading or writing during user program execution Notes 1 When HS7144KCMO1H and HS7144KCIO1H are used the AUD function cannot be used 2 When the MCU operating mode is MCU expansion mode 2 the AUD function cannot be used 3 Set the following before using the AUD function in the user program The AUD function does not operate correctly until the following is set after user program execution is started e Set 1 to the AUDSRST bit in the SYSCR register and cancel the AUD reset e Set the pin function controller to enable the AUD input output pins AUDSYNC AUDCK AUDMD AUDRST AUDATA3 AUDATA2 AUDATAI and AUDATAQO and the CK pin lt Setting example in using SH7144F gt Enable the AUD input output pin multiplexed in port D and the CK pin multiplexed in port A e Set 1 to the PDISMD1 PDI4MD1 PD13MD1 PD12MD1 PD11MD1 PDIOMD1 PD9MD1 and PD8MD1 bits in the PDCRL2 register and 0 to the PDISMDO PD14MD0 PD13MD0 PD12MD0 PD11MD0 PD1OMD0 PD9MDO and PD8MD0 bits in the PDCRL1 register to select the following pins AUDSYNC input output AUDCK input output AUDMD input AUD
101. nd line is used MEMORY_EDIT command Memory can be read or written during user program execution RAM_R command Address and size displayed on the status bar are specified during user program execution RAM_W command Memory can be changed during user program execution One command can change a maximum of three addresses Note Note that the flash memory area cannot be written by the RAM_W command 166 RENESAS 3 Products Using the AUD Function and Note Table 6 8 Type Name and AUD Function Type Name AUD Function HS7144KCM01H Not available HS7144KCM02H Available HS7144KCI01H Not available HS7144KCI02H Available Note Trace cannot be acquired while memory read write is being performed by using the RAM monitor function during user program execution 6 5 6 Notes on Displaying the Trace Window 1 The AUD trace outputs the differences between newly output branch destination addresses and the previously output branch destination addresses If the previous branch destination address is the same as the upper 16 bits the lower 16 bits are output If it matches the upper 24 bits the lower 8 bits are output If it matches the upper 28 bits the lower 4 bits are output The emulator regenerates the 32 bit address from these differences and usually displays it in the Trace window If the emulator cannot display the 32 bit address it displays the difference from the previously displayed 32 bit address 2 When a completion t
102. ndition R can be set as the reset point only when the sequential break function is used In this example set the hardware break condition for Break Condition 1 Note The number of hardware break conditions differs according to the product For the number that can be specified for each product refer to the online help e Highlight the first point in the Break Condition list box e Click the Edit button The Break Condition 1 dialog box is displayed 61 RENESAS e Clear the Don t Care check box in the Address page e Select the Address radio button and enter H 00003046 as the value in the Address edit box Break condition 1 X Address Data Bus State Count Address Il Don t Care Address C Only program fetched address C Only program fetched address after Address H 00003044 Nonusermask User mask Mast Cancel Apply Help Figure 3 42 Address Page Break Condition 1 Dialog Box Note The items that can be set in this window differ according to the product For the settings for each product refer to the online help 62 RENESAS e Select Bus State to display the Bus State page e Select the Read radio button in the Read Write group box Break condition 1 X Address Data Bus State Count mBus State All C Data e DIC gt Read Write C Read write Read TerTeceeeenet Cancel Figure 3 43 Bus State Page Break Condit
103. ndows Me Operating Systems 8 2 2 2 Installing under Windows NT 4 0 Operating System c ccccccsssessessesesseeeeseeseenees 9 2 2 3 Installing under Windows 2000 Operating System c csscsssssssessestsseeseeeeseenees 10 2 3 Connecting the Card Emulator to the Host Computer oo ccc eeeeeeeeceseceseenseeneeeeeenes 11 2 4 Connecting the Card Emulator to the User System eee eecceseceseceecesecseecneeeeeeneeees 12 2 Systemi Checks scscHscos ies Aoi eis tiie aes Rees E ee Ginter ae aie 15 2 5 1 SHxxxx E10A Emulator Mode 00 eee eecceecesecnecssecseecaeeseeeeeeeeeeeeeeeeenseenaeeaees 18 2 5 2 Writing SHxxxx E10A Flash memory Mode eee cee ceeeeeeeeeeeeeeeeeeeseeseeeaees 21 26 Ending the HDI nesset nisn ann ena tee ene a ASE Se Ea a EEEE 23 2 7 Uninstalling the HDI vei ccveccssassesstoasssneoseseepsssasutectcostede euvedeseescenvedesberedssucnenedosteenesansearedys 24 28 CDR eene e Ren eet icc hie dard ie ceeded 25 2 8 1 Configuration of the CD R woo cei eeceeeceseceseeesecsaecaeecaeeeaeseeeseneeeeeeseeeeenaees 25 29 SUPPOL ss sienna shai Suite desta iene Aiea eae 25 CUI TUONA nyaian a a a E aa a 27 3L MOUCHO sarenge aope cpe eree aese rra e ar a doe guteedensa E R EEs 27 3 2 Running the HDI asrnane a Bi ede EEE E Geb eA 29 33 TEDY WdoWa edoi enaa a aE Aa EnA E EEEIEE A ESE 30 SA Set ne p the Em lator ssiceresrtrri os esise one aee EE T EEE EEE EEE E E o ENESE 31 3 5 Setting the Configuration Dia
104. nds Breakpoints window Break dialog box 134 RENESAS 5 2 11 DEVICE_TYPE DE Description Displays the currently selected device Format de Table 5 12 DEVICE_TYPE Command Parameter Parameter Type Description None Example To display the currently selected device gt de RET Current device SHxxxx RENESAS 135 5 2 12 GO_OPTION GP Description Displays or sets the emulation mode Format Displays emulation mode gp Sets emulation mode gp lt eml_opt gt lt eml_opt gt eml_mode lt eml_mode gt Table 5 13 GO_OPTION Command Parameter Parameter Type Description lt eml_mode gt Keyword Specifies the emulation mode normal Normal execution sequence2 1 Stops the user program only when the conditions are satisfied in the order of hardware breakpoints 2 to 1 Hardware breakpoints 1 and 2 must be set sequence3 2 1 Stops the user program only when the conditions are satisfied in the order of hardware breakpoints 3 to 1 Hardware breakpoints 1 to 3 must be set sequence4 3 2 1 Stops the user program only when the conditions are satisfied in the order of hardware breakpoints 4 to 1 Hardware breakpoints 1 to 4 must be set no_break Makes software breakpoints and hardware breakpoints temporarily invalid and executes the user program 136 RENESAS Examples To display the currently set emulation mode for user program execution gt gp RET Emulator execution mode Sequent
105. ns are not supported e Performance analysis function e Profile function 6 5 1 Emulator Driver Selection Table 6 3 shows drivers which can be selected in the E10A Driver Details dialog box Table 6 3 Type Name and Driver Type Name Driver HS7144KCM01H E10A PC Card Driver 3 HS7144KCM02H E10A PC Card Driver 4 HS7144KCI01H E10A PCI Card Driver 3 HS7144KCI02H E10A PCI Card Driver 4 6 5 2 Hardware Break Functions The emulator can set hardware break conditions Table 6 4 lists these hardware break conditions Table 6 4 Hardware Break Condition Specification Items Items Description Address bus condition Address Breaks when the MCU address bus value or program counter value matches the specified value Data size condition Size Breaks when the data size that has been accessed matches the specified value Byte word or longword can be specified as the access data size Read or write condition Read or Breaks in the read or write cycle Write Access type Breaks when the bus cycle is the specified cycle 161 RENESAS Table 6 5 lists the combinations of conditions that can be set in the Break Condition 1 dialog box Table 6 5 Conditions Set in the Break Condition Dialog Box Type Access Type Condition Read or Write Condition Address Bus Condition Data Size Condition Dialog Box Address page Bus state page Break Condition 1 O dialog box Break Condition 2 dialog box Bre
106. nted hereby under any patents copyrights or other intellectual property rights of Renesas Electronics or others You should not alter modify copy or otherwise misappropriate any Renesas Electronics product whether in whole or in part Descriptions of circuits software and other related information in this document are provided only to illustrate the operation of semiconductor products and application examples You are fully responsible for the incorporation of these circuits software and information in the design of your equipment Renesas Electronics assumes no responsibility for any losses incurred by you or third parties arising from the use of these circuits software or information When exporting the products or technology described in this document you should comply with the applicable export control laws and regulations and follow the procedures required by such laws and regulations You should not use Renesas Electronics products or the technology described in this document for any purpose relating to military applications or use by the military including but not limited to the development of weapons of mass destruction Renesas Electronics products and technology may not be used for or incorporated into any products or systems whose manufacture use or sale is prohibited under any applicable domestic or foreign laws or regulations Renesas Electronics has used reasonable care in preparing the information included in this document
107. nts can be read and modified Debugging of the user system in the final development stage The user system can be debugged under conditions similar to the actual application conditions Compact debugging environment When the card emulator specific to the PCMCIA interface is used a laptop computer can be used as a host computer creating a debugging environment in any place AUD trace function The AUD trace function enables realtime trace RENESAS Note The AUD is an abbreviation of the Advanced User Debugger Support for the AUD varies with the product 1 1 Warnings CAUTION READ the following warnings before using the emulator product Incorrect operation will damage the user system and the emulator product The USER PROGRAM will be LOST 1 Check all components against the component list after unpacking the emulator 2 Never place heavy objects on the casing 3 Protect the emulator from excessive impacts and stresses For details refer to section 1 2 Environmental Conditions 4 Do not insert the emulator into any slot PCMCIA TYPE II slot or PCI slot other than the specified one 5 When moving the host computer or user system take care not to vibrate or damage it 6 After connecting the cable check that it is connected correctly For details refer to section 2 Preparation before Use 7 Supply power to the connected equipment after connecting all cables Cables must not be connected or removed while the p
108. o x A 00003000 main o d main void long a 10 min max long j int i 00003002 for i 0 1 lt 10 i Jf 0000300a j rand 00003012 Ifj lt of 00003016 j t 0000301a 00003036 0000303e 00003042 0000304a max 0 0000304e change a 00003056 min a 9 0000305a max a O 0000305e while 1 0000306c _sort ai sort long a long ti int i j k gap ANNAN ANN aan Be Figure 3 46 Source Window at Execution Stop Break Condition 1 66 RENESAS The System Status window displays the following contents System Status oO x Item Status Connected to SHxxxx ELOA Emulator ELOA PCI Card Driver4 CPU SH xxxx Run status Break Cause of last break BREAK CONDITION 1 Run time count 0000h00mi nOOs 000ms Emulation mode Normal Big endian AUD Figure 3 47 Displayed Contents of the System Status Window Break Condition 1 Note The items that can be displayed in this window differ according to the product For the items that can be displayed refer to the online help 67 RENESAS 3 17 1 Setting the Sequential Break Condition The emulator has sequential break functions When the hardware break conditions listed in table 3 3 are satisfied program execution halts This mode is called sequential break Table 3 3 Sequential Break Conditions Break Condition Description Sequential break condition 2 1 Program is halted when Break Condition 2 and Break Condition 1 are s
109. o the product For the items that can be displayed refer to the online help 71 RENESAS 3 18 Trace Functions AUD Trace Function This is the large capacity trace function that is enabled when the AUD pin is connected to the emulator This function displays the branch destination addresses mnemonics operands and source lines When the branch destination instructions are one branch the number of branch instructions acquired by a trace is a maximum of 16 383 in the PCMCIA type emulator and a maximum of 65 535 in the PCI type emulator Table 3 4 shows the AUD trace function Notes 1 The AUD trace function is not supported for all products For the specifications of each product refer to the section related to the trace functions in section 6 SHxxxx E10A Emulator Specifications or to the online help 2 The AUD trace function is extended for some products For the specifications of each product or the number of acquired branches refer to the section related to the trace functions in section 6 SHxxxx E10A Emulator Specifications or to the online help 3 In some products the AUD pin may be invalid In such case set the AUD pin to make it valid before using the AUD trace function Table 3 4 AUD Trace Functions Type Mode Description Acquisition Trace continue This function always overwrites the oldest trace information to mode when acquire the latest trace information ae h Trace stop The trace information is not acquired
110. office equipment communications equipment test and measurement equipment audio and visual equipment home electronic appliances machine tools personal electronic equipment and industrial robots High Quality Transportation equipment automobiles trains ships etc traffic control systems anti disaster systems anti crime systems safety equipment and medical equipment not specifically designed for life support Specific Aircraft aerospace equipment submersible repeaters nuclear reactor control systems medical equipment or systems for life support e g artificial life support devices or systems surgical implantations or healthcare intervention e g excision etc and any other applications or purposes that pose a direct threat to human life You should use the Renesas Electronics products described in this document within the range specified by Renesas Electronics especially with respect to the maximum rating operating supply voltage range movement power voltage range heat radiation characteristics installation and other product characteristics Renesas Electronics shall have no liability for malfunctions or damages arising out of the use of Renesas Electronics products beyond such specified ranges Although Renesas Electronics endeavors to improve the quality and reliability of its products semiconductor products have specific characteristics such as the occurrence of failure at a certain rate and malfunctions un
111. ong t int i j K gap 00003070 00003074 MEC Re 00003078 i o Ton k 00003080 i k gap 1 lt 10 Va it ga 0000308c ere Gj 00003098 Fania iggae t 000030b0 alj 000030ba a i alj gap 000030ce aLj gap t else 000030e0 break Figure 3 54 Source Window Software Breakpoint Setting e Set the same program counter and stack pointer values PC H 00000800 and R15 H FFFFFFFC as were set in section 3 8 Setting Registers again use the Registers window Click the Go button e After the break in execution select Stack Trace from the View menu to open the Stack Trace window 75 RENESAS E Stack Trace Kina Name sort long main main maing maing main maing main maing main ue 0x000030b0 Ox0000303e Ox0000303e Ox0000303e Ox0000303e Ox0000303e Ox0000303e Ox0000303e Ox0000303e Ox0000303e Taos ten ten ten inten inten inten en inten ne S E E F F E F F E ee ee R Figure 3 55 Stack Trace Window Figure 3 55 shows that the position of the program counter is currently in the sort function and that the sort function is called from the main function Notes 1 If the function is not deeply nested lower than 10 the main function will be displayed multiple times 2 For details on this function refer to the online help The online help is opened when the F1 key is pressed in the Stack Trace window 76 RENESAS 3 20 What Next
112. ore by connecting the user interface cable When the user interface cable is connected with the emulator or user system connect the ferrite core in the user system as shown in figure 6 1 Host computer PC with PC card slot J User system j j j j 5 Mel a 4 User system connector PC card slot Ferrite core User interface cable Figure 6 1 Connecting Ferrite Core 149 RENESAS 6 2 Pin Arrangement of the Hitachi UDI Port Connector Figure 6 2 shows the pin arrangement of the Hitachi UDI port connector 14 pins CAUTION Note that the pin number assignment of the Hitachi UDI differs from that of the connector manufacturer Pin 1 mark Hitachi UDI Input SH7144F SH7145F port connector Pin No Signal Output Pin No Pin No 1 TCK Input 89 143 2 2 TRST Input 86 139 3 TDO Output gg 142 4 2 ASEBRKAK Output 27 35 5 TMS Input 85 138 6 TDI Input 87 23 0 a 6 x 2 54 15 24 OO gt 2 54 Te RES Output 84 108 11 N C 8 to 10 and12 GND to 13 148 GND Output Notes 1 Input to or output from the user system Hitachi UDI port connector 2 The slash means that the signal is active low Top view 3 The emulator monitors the GND signal of the user system and detects whether or not the user system is connected Figure 6 2 Pin Arrangement of the Hitachi UDI Port Connector 14 Pins Notes 1 Handling of the
113. ower is on RENESAS 1 2 Environmental Conditions CAUTION Observe the conditions listed in tables 1 1 and 1 2 when using the emulator Failure to do so will cause illegal operation in the user system the emulator product and the user program Table 1 1 Environmental Conditions Item Specifications Temperature Operating 10 C to 35 C Storage 10 C to 50 C Humidity Operating 35 RH to 80 RH no condensation Storage 35 RH to 80 RH no condensation Vibration Operating 2 45 m s max Storage 4 9 m s max Transportation 14 7 m s max Ambient gases No corrosive gases may be present Table 1 2 lists the acceptable operating environments RENESAS Table 1 2 Item Host computer Operating Environments Description Built in Pentium or higher performance CPU 200 MHz or higher recommended IBM PC or compatible machine with the PCMCIA TYPE II slot or the PCI slot OS Windows 98 Windows Me Windows 2000 or Windows NT Minimum memory capacity 32 Mbytes or more double of the load module size recommended Hard disk capacity Installation disk capacity 10 Mbytes or more Prepare an area at least double the memory capacity four times or more recommended as the swap area Pointing device such as mouse Connectable to the host computer compatible with Windows 98 Windows Me Windows 2000 and Windows NT Power voltage 5 0 0 25 V C
114. r 51 RENESAS 3 14 Forced Breaking of Program Executions The HDI can force a break in the execution of a program e To execute the remaining sections of the main function select Go from the Run menu or the Go button on the toolbar Figure 3 30 Go Button e The program goes into an endless loop To force a break in execution select Halt from the Run menu or the Stop button on the toolbar Figure 3 31 Stop Button e The highlighted line of the Program window moves to the while statement and the value of max displayed in the Watch window is updated to the most recent value 52 RENESAS 3 15 Displaying Local Variables The user can display local variables in a function using the Locals window For example we will examine the local variables in the main function which declares five local variables a j i min and max e Select Locals from the View menu The Locals window is displayed Initially the Locals window is empty because local variables have not yet been declared The Locals window will now show the local variables and their values Locals x ue Oxtftffffd4 Clon ay O Oxffffffdo Clon 22117 Oxffffffec 9 ong ao OxffffffFc8 vd ang 10 Oxffffffc4 Cint D D D D Figure 3 32 Locals Window e Double click the symbol in front of array a in the Locals window to display the elements of array a e Refer to the elements of array a before and
115. ransportation 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 7 D mh on lt D D tENESAS SH7144F E10A Emulator User s Manual Renesas Microcomputer Development Environment System Renesas Electronics Rev 1 0 2002 08 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 p
116. ration puts the maximum effort into making semiconductor products better and more reliable but there is always the possibility that trouble may occur with them Trouble with semiconductors may lead to personal injury fire or property damage Remember to give due consideration to safety when making your circuit designs with appropriate measures such as 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 recommend
117. rcuit of the Hitachi UDI Pin HS7144KCMO02H 154 User System Interface Circuit of the AUD Pin HS7144KCM02H eee 155 User System Interface Circuit HS7 144 KCIO1H 0 eee ceeeeeeneeceseeeeneeceteeeeneeeeees 156 User System Interface Circuit of the Hitachi UDI Pin HS7144KCI02H 157 User System Interface Circuit of the AUD Pin HS7144KCI02H eee 158 RENESAS Tables Table 1 1 Table 1 2 Table 2 1 Table 2 2 Table 3 1 Table 3 2 Table 3 3 Table 3 4 Table 4 1 Table 4 2 Table 4 3 Table 4 4 Table 4 5 Table 4 6 Table 4 7 Table 4 8 Table 4 9 Table 4 10 Table 4 11 Table 4 12 Table 4 13 Table 4 14 Table 4 15 Table 4 16 Table 4 17 Table 4 18 Table 4 19 Table 4 20 Table 4 21 Table 5 1 Table 5 2 Table 5 3 Table 5 4 Table 5 5 Table 5 6 Table 5 7 Table 5 8 Table 5 9 Table 5 10 Table 5 11 Table 5 12 Environmental Condition S si rsisi essre iate een snie RE o ss a 4 Operating Environments 2 0c scseeechaeessesssbevecuepivse cvtuvebecuevensoebsvdbesgevusee cnbvvenes 5 Recommended Hitachi UDI Port Comnector e ec ceeceesceceseceeneeceeeeeneecneeeeneeeees 12 Contents of the CD R Directories 0 0 0 ee eesceesecceeneeceeeceeececeeeeeneeceaeeeeneecnaeeeeneeenas 25 Tutorial Program Configuration and Parts 0 0 0 0 cece eseeeeeeeeeeeeeeeeeeeeeeenseenaees 27 Step OPH OM ssis cee aie eaes ied Ge eevee a Ries 46 Sequential Break Conditions sssrin eosi eins i a n R 68 AUD Trace Fun
118. re install that HDI 24 RENESAS 2 8 CD R 2 8 1 Configuration of the CD R The root directory of the CD R contains a setup program for HDI installation The folders contain the files and programs listed below Table 2 2 Contents of the CD R Directories Directory Name Conients Dils Microsoft runtime library Description A runtime library for the HDI The version is checked at installation and this library is copied to the hard disk as part of the installation process Drivers E10A emulator driver The E10A emulator drivers Help Online help for the E10A An online help file This is copied to the hard emulator disk as part of the installation process Manual E10A emulator manual Precautions on Using the E10A Emulator and the user s manual These are provided as PDF files Pdf_read Adobe Acrobat Reader Adobe Acrobat Reader is an application for setup program 2 9 Support displaying viewing and printing PDF files Information on the latest version of the HDI and other supporting information for the emulator can be found on the web site Access the following URL http www hitachisemiconductor com sic jsp japan eng products mpumcu tool emulator overview_e10a html 25 RENESAS 26 RENESAS Section 3 Tutorial 3 1 Introduction The following describes the main functions of the HDI by using a tutorial program The tutorial program is based on the C program that sorts ten random data it
119. roduct For the settings for each product refer to the online help 84 RENESAS Description Table 4 3 General Page Options Option Mode combo box Description Displays the device name Emulation mode combo box Selects the emulation mode Select Normal to perform normal emulation Select No Break to disable breakpoint settings Select Sequential break Condition 2 1 etc to use the sequential break function For Sequential break Condition 2 1 execution stops when conditions are satisfied in the order of Break Condition 2 and Break Condition 1 JTAG clock combo box Sets the JTAG clock Flash memory synchronization combo box Synchronization method is set between the host computer and the flash memory When synchronization is performed from the host computer to the flash memory a waiting time will be generated to write the flash memory during user program halting but the displayed contents and the flash memory are always matched When synchronization is performed from the flash memory to the host computer the rewritten contents in the user program mode will be reflected since the flash memory is read during user program halting Disable Synchronization is not performed except when the E10A emulator is activated and the flash memory area is modified PC to Flash memory Synchronization is performed from the host computer t the flash memory Flash memory to PC Synchronization is per
120. roduct 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
121. seseseeeeeeeeees 134 DEVICE_TYPE Command Parametel cccccccecececececececececeeesececeeeseceeeeeeeeeeess 135 RENESAS Table 5 13 Table 5 14 Table 5 15 Table 5 16 Table 5 17 Table 5 18 Table 5 19 Table 6 1 Table 6 2 Table 6 3 Table 6 4 Table 6 5 Table 6 6 Table 6 7 Table 6 8 Table 6 9 GO_OPTION Command Parameter ccccccccececececececececececececececeeeeeeeseseeeeeeeeess 136 JTAG_CLOCK Command Parameter cccccccccccccccececccesececeesseceseesssesseeeseeneeenss 138 REFRESH Command Parametet ccccccsessssecececeessssscecceeceesesseaeseceesesesssaeeeeees 140 RESTART Command Parameter ccccccccessssesececeessssececececeesesneaeseeeceesssseaeeeees 141 STATUS Command Parameter c ccccccccessssececececsessaececccecsenseeeeececeessnssseeeeees 142 RAM_R Command Parameter 0 cccc0cceseeeseseseseseseseseseseseseseseseseseseseseseeesesens 143 RAM_W Command Parameter ccccc0cceeeeeseseseseseseseseseseseseseseseseseseseseeesesesens 145 Components of the Emulator HS7144KCMO01H HS7144KCM02H HS7144KCIO1H or HS7144 KCIO2H cece ccccsecesseccecessnececnseececsseeeeesseeeessnaes 148 Register Initial Values at Emulator Power On ooo cece eeeeeeeeeeeceeeeeseceseenseenaes 159 Type Name and Diver cessos eiee een aea EE EEA EE EEAS 161 Hardware Break Condition Specification Items s seseseeeseeeeeseeeseresrsrrerrsrrereseeees 161 Conditions Se
122. sesesesesssessresseessressrseeesesssereseesseese 89 4 2 3 Break Dialogs BOX sseniiisieososiiiiniianstaniie i i iaai iaei 92 4 2 4 Break Point Dialog BOX sesssesseesseesessssssesserssressrssesesrresssessressressressresseseeseessee 98 4 2 5 Break Condition Dialog BOX sssessseseseesseesseesessssseseressseersressressressressrseeeseessee 100 4 2 6 Break Condition Dialog Box Pages eesseesseseessereeresesererrsreeresresresrrrensesreereses 102 42 7 race Window cc c0scccececleecennsheidoaceles asibhddascececesseaddidhoesdss EEES EA EEEE EE EREE 111 4 2 8 Trace Acquisition Dialog Box eee eeceeeeseceseceseceeecaeecaeeeaeeeeeseeeeeeeeereeaeens 113 4 2 9 System Status Window ceecceeeceeseceececseceeneecaeceeneecaeeeeeeecaeeeeeeecnaeeeeneeses 115 Section S Command line Functions 2 ccc cccccseneecceseiaceeeevtendecdesssedeuenacdensieateceesss 117 5 1 Table and Symbol Description eee eee cseecseeeeeeeeeeeeeeeeeeeeesecsaecsaecsaessuesaaesaeeeneeees 117 ILE MOMMA eeaeee concetantevcyescvtorccaceeevsecsaeectaperaeatensneesataeeretanersensecastaesteneeemeanattervtes 117 O12 Parameter Inputs arenen Sass cies E alte eles AU eee 117 o De EXAMI PIES wesacoscescessscedeadusaes asc E teases tacsins ove ceaveresosesisces E 118 SLA Related tems pecinu a a ai E a a Seetan seuecortnce 118 5 2 Command DescripioNSisi onec aana e eas Eain ERE REE E ENEE EE REA 119 5 2 1 AUD MODEAUM ernn ena e adie EE a EEANN 120 522 AUD TRACE AUT
123. set control status register TCSR W Write Watchdog timer control status register TCNT W Write Watchdog timer counter RSTCSR W Write Reset control status register e Note that the E10A emulator does not support the bit field function described in the Hitachi Debugging Interface User s Manual e Verify In the I O Registers window the verify function of the input value is invalid 19 Note on Registers Window Operation During Program Execution Although a dialog box is displayed in which the register contents can be changed by double clicking the Registers window do not change the register contents during program execution 171 RENESAS 20 2 22 2 W 24 Note on Radix in the Register Dialog Box The default input radix in the Register dialog box is hexadecimal irrespective of the Radix display When a radix other than a hexadecimal is input specify the prefix code such as B Software Break Session file When the software breakpoint address set in the session file is H O the breakpoint will not be set If the address set as the breakpoint is wrong the error message is not output The breakpoint is registered as DISABLE in the Breakpoints window Breakpoint cancellation When the contents of the software breakpoint address is modified during user program execution the following message is displayed when the user program stops BREAKPOINT IS DELETED A xxxxxxxx If the above messag
124. siccciucicescecbecds isehansdieciaeledovaces tbtecodecloesessolenioasqhivianscieresensiowaen 122 5 2 3 BREAKCONDITION_CLEAR BCC ssesssseessereeserrresrrsrreresrerrnsrrrrerrerrerenreeres 124 5 2 4 BREAKCONDITION_DISPLAY BCD sesessesessreerrsrrerrererrererrrerrsrreresrerresrnees 125 5 2 5 BREAKCONDITION_ENABLE BCE 00 eee cee ceeeeeeeeeeeeeeeeeeeeeeenaeenaes 126 5 2 6 BREAKCONDITION_SET BCS ooo eee cseecseeeeeeeeeeeeeeeeeeseesaeesaeesaeenaes 127 5 2 7 BREAKPOINT BP ecese erneer orenian seare REES E Se OEN a RoE Erei EE REE ECERS 131 5 2 8 BREAKPOINT CLEAR BC alanis ene he tes 132 5 2 9 BREAKPOINT DISPLAY BD terenon scesa esien ote EE N Eae EEEIEE 133 5 2 10 BREAKPOINT_ENABLE BE eseseeeseseseeresesereerereeseeserterrereruserrreereernererserereens 134 iv RENESAS 5 2 1 IDEVICELVY PE DE ws stcccsscsatisiiessibesesvasedetveastenesbhdelsieresbeeedonindessoastabcadbbedvessests 135 5 212 GOL OPTION GP nesre cis i a eee A ee ee eshte 136 52 13 STAG CLOCK JCK crite ecnves E E E E acticin att 138 52TA REFRESH RE serres ir E r EE EEEE 140 5 2 15 RESTART RST uu cccccescccssecesscecssecseececsseeeseeeceaeeseeeecsaeeeeeeeceaesseaeecseeseeseee 141 5 216 STATUS STS ieee a Sidi asso een ass eT 142 5 3 RAM Monitor Commands cccccccecsssecesssececsesceeeceneeecsesaececsesaeceseeeecsesaeeeeseaaeesenseaeees 143 9 32 RAM RRR oenen A an Ree Ae es 143 532 RAM W ROW deseo scececevadtensscsceersatec e a aes a Hae eee 145 Sec
125. t break conditions to be changed and click this button The break condition setting dialog box will be displayed enabling the break condition to be changed Disable Enables or disables break conditions Select break conditions to be Enable enabled or disabled and click this button Delete Clears break conditions Select break conditions to be cleared and click this button Delete All Clears all break conditions Go to Source Jumps to the address which sets the break in the Source window 91 RENESAS 4 2 3 Break Dialog Box Function This dialog box displays the break condition settings Window Figure 4 6 Break Dialog Box 92 RENESAS Description The Break dialog box consists of the pages listed in table 4 7 Table 4 7 Break Dialog Box Pages Page Name Description Point Displays software breakpoint settings Condition Displays Break Condition settings The dialog boxes which set or modify break conditions can be displayed from the pages above Clicking the OK button or Close button in some emulator products will close this dialog box 93 RENESAS 1 Point Page Break Dialog Box Function This page displays software breakpoint settings In this page software breakpoints can be set changed and cleared Window Barce l Epy Figure 4 7 Point Page Break Dialog Box 94 RENESAS Description Table 4 8 Point Page Options Option
126. t in the Break Condition Dialog BOX esssesssesseesseessrreereesrsesrrees 162 Conditions Set with the BREAKCONDITION_SET Command 0 162 AUD F nCHONS sron ana ec reek ves eee sas EE haeees 165 Type Name and AUD Function ee eee cee ceee cece ceeeeeeeeeeeeeeseeeeeeaeenseenaeenaees 167 Watchdog Timer Registers 2 0 cece ceeeeeesseeeeeeeeeeeeeseeesecesecaecsaecaecsaeeeeeaeeeneeees 171 RENESAS Section 1 Overview The E10A emulator hereafter referred to as the emulator is a software and hardware development support tool for application systems using the microprocessor developed by Hitachi Ltd The PCMCIA card emulator or PCI card emulator hereafter referred to as the card emulator which is the main unit of the emulator is connected through the Hitachi UDI user debug interface port to the user system The user system can be debugged under the conditions similar to the actual application conditions The emulator enables debugging anywhere indoors or out The host computer for controlling the emulator must be an IBM PC compatible machine with a PCMCIA type II or PCI slot Figures 1 1 and 1 2 show the system configuration using the emulator Note The Hitachi UDI is an interface compatible with the Joint Test Action Group JTAG specifications Host computer PC with PCMCIA TYPE II slot PCMCIA card emulator IP FLAP PAP ALLOA APL OS i ee Va Po PALLET YZ User system interface cable an
127. tatus bar W TUTORIAL c Address BP Labe Sourcen 00003000 _main a main void Jong a 10 long j int i 00003002 forl 0 1 lt 10 i Jf 0000300a j _ rand 00003012 Ifj lt of 00003016 j j 0000301a 0000303e 00003042 00003046 0000304a 0000304e change a 00003056 min a 9 iF o000305a max aLO 0000305e while 1 0000306c _sort void sort long a long t int i j k gap ANNAN ANNO aan bs Figure 3 12 Source Window Break Status 39 RENESAS The user can see the cause of the break that occurred last time in the System Status window e Select Status from the View menu After the System Status window is displayed open the Platform page and check the status of Cause of last break Item Status Connected to SHxxxx ELOA Emulator E10A PCI Card Driver3 CPU SH xxxx Run status Break Cause of last break BREAK POINT Run time count 0000h00mi n00s 000ms Emulation mode Normal Big endian AUD Figure 3 13 System Status Window Note The items that can be displayed in this window differ according to the product For the items that can be displayed refer to the online help 40 RENESAS 3 10 Reviewing Breakpoints The user can see all the breakpoints set in the program in the Breakpoints window e Select Breakpoints from the View menu Breakpoints O of x fa A Enable File TUTORIAL c 37 Figure 3 14 Breakpoints Window The pop up
128. tion6 SH7144F E10A Emulator Specifications eee eeeeeseeeteeeeeeeees 147 6 1 Overview of the SH7144F E10A Emulator 0 ccccccccssccecsececeesneeeeseaeeessneeeeesseeeenaes 147 6 2 Pin Arrangement of the Hitachi UDI Port Connector cece eee cee cece eeeeeeeeeeeeeeeeeeeees 150 6 3 User System Interface Circuit 0 eee eeeceeecnesenseenseensesscnssenssesseessesseesneesoereoeronsrenseees 153 6 4 Differences between the SH7144F SH7145F and the Emulator ccccceeeeeeees 159 6 5 The SH7144F E10A Emulator Functions ccccccccsseececsecceceeseseeeceeneaeeecenseeeeessneeeenenaes 161 6 5 1 Emulator Driver Selection nisnin ieii a Es 161 6 5 2 Hardware Break Functions ccccessecesseececeeseeecseseeceesseeecsesaeeecseeeeeesseneeesenaes 161 6 5 3 Notes on Setting the Breakpoint Dialog BOX ssssssessseeesssreesesrsrresrsrrereserereseeees 164 6 5 4 Notes on Using the JTAG Clock TCK uu eee eeccesceeceeceneceeeeecnseeeeneeceaeeeeneecnas 164 6 5 5 AUD FUnctons eienen A E E EA es ERE 165 6 5 6 Notes on Displaying the Trace Window seesseseessseesssreesesresrssrsrrerrsrreresrreresen 167 6 5 7 Notes n HDI 0 220 lt c0c05 cs eeneetdvi ch Sec e a E ees E E eee 168 v RENESAS Figures Figure 1 1 Figure 1 2 Figure 2 1 Figure 2 2 Figure 2 3 Figure 2 4 Figure 2 5 Figure 2 6 Figure 2 7 Figure 2 8 Figure 2 9 Figure 2 10 Figure 2 11 Figure 2 12 Figure 2 13 Figure 2 14 Figure 2 15
129. u The Registers window is displayed E Registers Iof x Register value RO O00020DA R1 OOO00000A R2 OO00000A R3 00000000A R4 FFFFD004 R5 00000000 00000000 00000000 00003000 00000000 00000000 00000000 00000000 o0000000 00000000 FFFFFFC4 00003036 1111 T 00000000 Figure 3 9 Registers Window 37 RENESAS e To change the value of the program counter PC double click the value area in the Registers window with the mouse The following dialog box is then displayed and the value can be changed Set the program counter to H 00000800 in this tutorial program and click the OK button e Move the mouse pointer on the value to be changed in the PC value area and enter the new value by the keyboard Register PC Value H o0000800 Set As Whole Register ance Figure 3 10 Register Dialog Box PC e Change the value of the stack pointer SP in the same way Set H FFFFFFFC for the value of the stack pointer in this tutorial program 38 RENESAS 3 9 Executing the Program Execute the program as described in the following e To execute the program select Go from the Run menu or click the Go button on the toolbar Bl Figure 3 11 Go Button The program will be executed up to the breakpoint that has been inserted and a statement will be highlighted in the Source window to show the position that the program has halted with the message Break BREAKPOINT in the s
130. uced 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 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 Device names Sections to 5 in this user s manual use SHxxxx as an example of the device names 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 emulator product are therefore not all inclusive Therefore you must use the emulator product safely at your own risk Ill RENESAS SAFETY PAGE READ FIRST e READ this user s manual before using this emulator product e KEEP the user s manual handy for future reference Do not attempt to use the emulator product until you fully understand its mechanism DEFINITION OF SIGNAL WORDS gt This is the safety alert symbol It is used to alert you to potential perso
131. uency gt jck 16 RET JTAG Clock 16 5MHz To display the JTAG clock TCK frequency gt jck RET JTAG Clock 16 5MHz RENESAS 139 5 2 14 REFRESH RF Description Updates the HDI memory information Format rf Table 5 15 REFRESH Command Parameter Parameter Type Description None Example To update the HDI memory information gt rf RET 140 RENESAS 5 2 15 RESTART RST Description Restarts the emulator The settings of breakpoints or trace acquisition conditions are not reset here Format rst Table 5 16 RESTART Command Parameter Parameter None Example To restart the emulator gt rst RET Type Description RENESAS 141 5 2 16 STATUS STS Description Displays status information of the emulator Format sts Table 5 17 STATUS Command Parameter Parameter Type Description None Example To display status information of the emulator gt sts RET Emulator Status Connected to SHxxxx ELOA Emulator E1OA PC Card Driver CPU SHXXXX Run status Break Cause of last break BREAK POINT Run time count 0000h00min00s014ms Emulator mode ormal Big endian AUD Exist Note The items displayed with this command differ according to the product For the display specifications of each product refer to the online help 142 RENESAS 5 3 RAM Monitor Commands 5 3 1 RAM_R RR Description Displays the specified address contents
132. ulator D 65535 to D 0 can be set 2 When the internal trace is selected the AUT command displays the information that has been acquired by using the AUD function 122 RENESAS Example To display trace information according to the information acquired during user program execution gt AUD_TRACE RET IP TYPE ADDR MNEMONIC OPERAND D XXXXXX DESTINATION 01000020 MOV L R1 R1 a b c d e a Instruction pointer signed decimal b Types of branch destination DESTINATION Branch destination c Address of instruction word d Instruction mnemonic e Instruction operand Related Item Trace dialog box 123 RENESAS 5 2 3 BREAKCONDITION_CLEAR BCC Description Clears hardware breakpoints that have been set Format bec lt channel gt lt channel gt channel lt channel_number gt Table 5 4 BREAKCONDITION_ CLEAR Command Parameter Parameter Type Description lt channel number gt Numerical value Specifies hardware break channel number Note When lt channel gt is omitted all hardware breakpoints that have been set are cleared Examples To clear all hardware breakpoints gt bec RET To clear a hardware breakpoint set at channel 2 gt bcc channel 2 RET Related Items BCD BCE and BCS commands Breakpoints window Break and Break Condition dialog boxes 124 RENESAS 5 2 4 BREAKCONDITION_DISPLAY BCD Description Displays hardware breakpoints that
133. urrent consumption HSxxxxKCM01H 110 mA max HSxxxxKCMO02H 230 mA max HSxxxxKCl01H 340 mA max HSxxxxKCl02H 600 mA max CD ROM drive Required to install the HDI for the emulator or refer to the emulator user s manual RENESAS 1 3 Components Check all the components unpacking For details on the E10A emulator components refer to table 6 1 Components of the Emulator If the components are not complete contact a Hitachi sales agency RENESAS Section 2 Preparation before Use 2 1 Emulator Preparation AWARNING READ the reference sections shaded in figure 2 1 before using the emulator product Incorrect operation will damage the user system and the emulator product The USER PROGRAM will be LOST Unpack the emulator and prepare it for use as follows Reference Unpack the emulator Component list Check the components against the component list Set up the emulator Section 2 Install the HDI Insert the card emulator When the emulator is used first Start the HDI Section 3 When the emulator Turn on the user system is used for second time or later Input the user system reset signal Figure 2 1 Emulator Preparation Flow Chart RENESAS 2 2 HDI Installation When the CD R is inserted in the host computer s CD ROM drive the HDI installation wizard is automatically activated holding the Shift key down while the CD R is inserted cancels this automatic activation To run the install
134. utton Sets longword data access cycles Non user mask radio button Does not set mask conditions User mask radio button Sets mask conditions Mask edit box Sets the mask bits when User mask is selected Mark a bit to be masked with For masked bits the break conditions will be satisfied regardless of the data values Note This page is displayed when the conditions of Break Condition 1 to Break Condition 4 are set 107 RENESAS 3 Bus State Page Break Condition Dialog Box Function This page sets bus state conditions and read write cycle conditions Window Break condition 1 X Address Data Bus State Count m Bus State m Read Write C Read Write Figure 4 13 Bus State Page Break Condition Dialog Box Note The items that can be set in this window differ according to the product For the settings for each product refer to the online help 108 RENESAS Description Table 4 17 Bus State Page Options Group Box Option Description Bus State group All radio button Sets the bus state conditions as break conditions box Data radio button Sets the execution cycle as break conditions DTC radio button Sets DTC cycles as a break condition Read Write group Read Write radio Sets the read write cycle conditions as break box button conditions Read radio button Sets read cycles as break conditions Write radio button Sets write cy
135. wn by a resistance of several kilo ohms The AUDRST pin must be pulled up by a resistance of several kilo ohms 5 kilo ohms or less b When the user system is used independently without using the emulator and Hitachi UDI the TCK TMS TDI TDO TRST and ASEBRKAK pins must be pulled up by a resistance of several kilo ohms The DBGMD pin must be grounded The AUDCK AUDATA3 to AUDATAO AUDSYNC and AUDMD pins must be pulled up by a resistance of several kilo ohms The AUDRST pin must be pulled down by a resistance of several kilo ohms 2 The RES signal in the user side is input to pin 87 of the SH7144F or pin 108 of the SH7145F Connect these pins to the Hitachi UDI port connector as the output from the user system 3 The CK pin is used by the emulator When the CK pin is directly connected to the interface operation may be affected by the load capacity and reflection of the interface cable When the emulator is used it is recommended that the CK pin between the user interface connector 36 pins and the SH7144 or SH7145F is connected via the buffer e g 74L VC125 as shown in figure 6 4 The buffer voltage should be Vcc User interface connector 36 pins SH7144 45F Buffer Figure 6 4 Circuit between User Interface Connector 36 Pins and SH7144 or SH7145F 152 RENESAS 6 3 User System Interface Circuit The emulator is connected to the user system via the user interface cable Figure 6 5 shows the user system
136. y Install drivers provided with the SETUP directory in the CD R according to the screen instructions 2 If the user system interface cable is disconnected to the Hitachi UDI port connector on the user system during user program execution the following dialog box will be displayed HDI x IN H UDI Connector disconnected Please connect and press lt Enter key Figure 2 13 H UDI Connector Disconnected Dialog Box RENESAS 3 If the emulator is not initiated the following dialog boxes shown in figures 2 14 through 2 17 will be displayed a If the following dialog box is displayed the user system may not be turned on or the RESET signal may not have been correctly input to the MCU Check the power supply and input circuit for the reset pin on the user system HDI Can not find RESET signal Please check RESET and Vec 4 Retry Ignore Figure 2 14 Can not find RESET signal Dialog Box b If the following dialog box is displayed check that the Hitachi UDI port connector on the user system is correctly connected HDI N Check the connection between the H UDI pins and the H UDI port connector Figure 2 15 Check the connection Dialog Box c If the following dialog box is displayed the MCU may not correctly operate Check if there are reasons for illegal MCU operation HDI A COMMUNICATION TIMEOUT ERROR Figure 2 16 COMMUNICATION TIMEOUT ERROR Dialog Box 20 RENESAS HDI A INVALID AS
137. ype exception occurs during exception branch acquisition the next address to the address in which an exception occurs is acquired 3 When the Halt option is selected from the popup menu in the Trace window realtime emulation is retained 4 In the SH7144F E10A emulator the maximum number of trace display pointers is as follows When HS7144KCM072H is used D 16383 to 0 When HS7144KCI02H is used D 65535 to 0 However the maximum number of trace display pointers differs according to the AUD trace information to be output Therefore the above pointers cannot be always acquired 5 When only one line is acquired by trace the display data is not updated In this case open the Trace window again 167 RENESAS 6 5 7 Notes on HDI 1 Note on Moving Source File Position after Creating Load Module When the source file is moved after creating the load module the Open dialog box may be displayed to specify the source file during the debugging of the created load module Select the corresponding source file and click the Open button 2 Source level Execution Source file Do not display source files that do not correspond to the load module in the program window For a file having the same name as the source file that corresponds to the load module only its addresses are displayed in the program window The file cannot be operated in the program window Step Even standard C libraries are executed To return to a higher lev
Download Pdf Manuals
Related Search
Related Contents
AMT F-1 Manual English Ver USER MANUAL User`s Manual - EPS Bio Technology Corp. Manual de instrucciones de Usuario Modelos グローバルOBD2_Ver.1.1 Product Manual Ils goûtent à l`esprit d`entreprise en créant deux nouveaux produits MXview Lite v2 User`s Manual Copyright © All rights reserved.
Failed to retrieve file