Home
H8S/2168F E10A Emulator User`s Manual
Contents
1. cccsssssssscestsessescesssevonsesssssvonseensscsoensesnsssesneesnesevenses 37 Break points Wind Weserin a eE E EE wns EE E EE R ces 39 Open Memory Window Dialog BOX ssessesssssesssseesssesrresrsserrrsserrenestesresreerenreseeet 40 Memory Window 3 2 nirre e miare a E E E E E terse SR 40 Instant Watch Dialog BOX eee eeseceeeceesseceeneecsaeceeneecsaeccseeeeneecaeeeeeeecsaeessaees 41 Watch Window Displaying the Array esseesseessesssesesesreserssrrssressesereseeesseeesress 42 Add Watch Dialog BOK aiiiar oae ariaa E an Aa aak apia ia 42 Watch Window Displaying the Variable eeseeeseesseseesseessereseeesrsseesereeseesseess 43 Watch Window Displaying Array Elements 0 cece eeeeeeeeeeeeeeesseenseeaeeaes 43 Step In Btt eean EE A E E E G EE E 45 Program Window Step IM mieni aieia iaa a aia iia S aa 45 Step Q t Buttons inna iae ene eaae E E toes EE EE ES E EEES 46 Program Window Step Out ceeecceesecsseceeececeseceeeeeecaeceeeeeeaaecseneeeaeecnaeesenees 46 Program Window Step In gt Step In eessesssesssesssesssersseessressresersesesessseenseensres 47 Program Window Before Step Over Execution ce eceecceesseeceereeeneeceereeeenees 48 Step Over BUON en e ennaii a a a E RE A A E EER EEES 48 Program Window Step Over ceeeceescecsseceeececseceeceeeeaeceseeeenaeceeeeeeaeecseeesaees 49 Locals Windows a e e a e Siete e an 50 Breakpoints Window
2. RENESAS VII Vil 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 NT Microsoft Windows 2000 or Windows XP 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 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 H8S x
3. Operating mode combo box Displays the operating mode determined by the MD pin 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 performed 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 Driver group box The E10A Driver Details dialog box is displayed Changes the driver currently connected Note 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 73 RENESAS When a driver is to be changed with the Change button the followi
4. 132 RENESAS 20 2 22 23 24 235 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 Use the software breakpoints and Stop At in the Run menu with 255 or less total settings 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 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 Note on Using Old Version of Windows 95 In using the old released version of Windows 95 such as 4 00 950a if Options is selected from the Setup menu an application error occurs and the HDI abnormally exits This is due to the old version of COMCTL32 DLL in the System directory of the Windows di
5. Configure Platform Window Menu Cascade Tile Arrange Icons Close All Help Menu Index Using Help Search for Help on About HDI OO O CO CO OF O Of O O O CO CO OC OC OF CF 0O 0O CF O RENESAS 69 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 H8S xxxx E10A Emulator Specifications 4 2 1 Configuration Dialog Box Function This dialog box sets the emulation conditions of the emulator Window Configuration x General Mode Emulation mode Nomt o Step option Disables interrupts during single step execution JTAG clock 4 125MHz z Oparating mode Advanced mode z Elash memory Disable OOOO synchronization 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 on line help 70 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 the emulator operation conditions Clicking the OK button sets the emulation conditions If the Cancel button is clicked this dialog box is closed without setting the emulation co
6. Load Program H O M Verify Cancel File name C HDI_E104 tutorialitutorial abs Browse M Load only debugging information V Load stack information file SNI file Figure 3 4 Load Program Dialog Box When the file has been loaded the following dialog box displays information about the memory areas that have been filled with the program code HDI A Module name G HDLE104 tutorial tutorial abs i Areas loaded 00000000 00000001 00001000 00001333 Figure 3 5 HDI Dialog Box e Click the OK button to continue 30 RENESAS 3 6 2 Displaying the Source Program The HDI allows the user to debug a program at the source level Select Source from the View menu The Open dialog box is displayed Select the C source file that corresponds to the object file the user has loaded E tutorial ha C C Source Files c Figure 3 6 Open Dialog Box RENESAS 31 e Select Sort c and click the Open button The Program window is displayed Source 0000100 _main void main void long a 10 long j int i min max 00001014 for i 0 i lt 10 i o000101 j rand 00001028 if j lt 0 00001030 Jj j 0000103e afi 7 o000106e sort a 00001074 min a O 0000107c max a 9 00001084 min 0 0000108a max Oo 00001090 change a Figure 3 7 Program Window Displaying the Source
7. 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 97 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 98 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 BREAKCONDITION_ BCC Clears hardware breakpoints that have been set CLEAR 2 BREAKCONDITION_ BCD Displays hardware breakpoints that have been set DISPLAY 3 BREAKCONDITION_ BCE Enables or disables hardware bre
8. 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 2 O x Enable File Line Figure 3 33 Breakpoints Window Before Software Breakpoint Setting e Click the Breakpoints window with the right mouse button and select Add from the pop up menu 51 RENESAS The Break dialog box is displayed The Point page is displayed as a default Figure 3 34 Point Page Break Dialog Box e Click the Add button to display the Breakpoint dialog box 52 RENESAS Enter H 10a4 to the Value edit box Breakpoint Click the OK button Figure 3 35 Breakpoint Dialog Box RENESAS 53 The Break dialog box is displayed The address set in the value field of Breakpoint is displayed Figure 3 36 Point Page Break Dialog Box After Software Breakpoint Setting e Click the Close button 54 RENESAS The software breakpoint that has been set is displayed in the Breakpoints window Breakpoints Oo O x File Line Sort c 27 yp 00001044 Breakpoint 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 windo
9. BRANCH 000011E8 BGT H 10E0 16 D 0000 BRANCH OO00011FC RTS 2 Figure 3 47 Trace Window e If necessary adjust the column width by dragging the header bar immediately below the title bar Note The number of branch instructions that can be acquired by a trace differs according to the product For the number that can be specified for each product refer to the on line help 64 RENESAS 3 18 What Next 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 65 RENESAS 66 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 an 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 Menu Bar File menu Pull Down Menu New Session Hitachi Debugging Interface User s Manual Th
10. BREAKCONDITION_DISPLAY BCD Description Displays hardware breakpoints that have been set The display contents include enable or disable of the setting and setting conditions Format bed lt channel gt lt channel gt channel lt channel_number gt Table 5 3 BREAKCONDITION_DISPLAY Command Parameter Parameter Type Description None 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 vary with the product For the display specifications of each product refer to the on line help 101 RENESAS 5 2 3 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 4 BREAKCONDITION_ENABLE Command Parameter Parameter Type Description lt mode gt Keyword Enables or disables hardware breakpoint settings Set either of the following enable Enables hardware break settings disable Disables hardware break settings 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 102 RENESAS 5 2 4 BREAKCONDITION_SET BCS Descriptio
11. Box 20 RENESAS 2 When the Load Program window appears specify a user program to be downloaded Click the Open button to start downloading Load Program H O M Verify Cancel File name CA HDI_E10 Ai tutorial tutorial abs hi Browse M Load only debugging information V Load stack information fileCSNI file Figure 2 18 Load Program Dialog Box 3 When the program has been downloaded the memory area that the checksum value and the program code have been written appears Ls x 1 Flash memory writing OK Sum data H xxxxxxxx Figure 2 19 Checksum Value after Downloading the Program HDI hs Module name G HDLE10 4 tutorial tutorialabs Areas loaded 00000000 00000001 00001000 00001333 Gi Figure 2 20 HDI Dialog Box 21 RENESAS 4 The Continue window appears When the OK button is clicked a message is displayed to request that power be supplied Turn off the power exchange the MCU and supply power Repeat operations 1 to 3 until the Exit button is clicked When the Exit button is clicked the HDI is terminated Continue Figure 2 21 Continue Window Notes 1 When the HDI does not link up and the above procedures have been executed the driver setting must be incorrect Install a driver from the SETUP directory of the CD R according to the screen instructions 2 Ifthe user system interface cable is disco
12. Contents of the System Status Window Page Item Description Session Target System Always displays Connected Session Name Displays the session file name Program Name Displays the load module file name Platform Connected To Displays the name of the connected emulator and the selected driver name CPU Displays the target MCU 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 0000h00min00s000ms is displayed Emulator mode Displays the emulator operating mode setting information for Emulation Mode of the Configuration dialog box Memory Loaded Memory Displays the loaded area of the load module Areas Events Resources Displays the usage states of BREAKPOINT and Break Condition 38 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 Oo x File Line Symbol Address Sort c 21 o000106 c Breakpoint E Figure 3 16 Breakpoints Window The pop up menu opened by clicking the Breakpoints window with the right mouse button also
13. El Registers ooooo000 oogooo000 00000000 00000000 oo0o0000 oo000000 ooo00000 OOFFFCOO 000002 IO0 2Z Figure 3 9 Registers Window 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 Register PG 001000 _ Figure 3 10 Register Dialog Box PC e Set the program counter to H 1000 in this tutorial program and click the OK button e To change the value of the stack pointer SP move the mouse pointer on the value to be changed in the ER7 value area in the Registers window and enter the new value by the 34 RENESAS keyboard or double click the value area with the mouse The following dialog box is then displayed Register ER OOF FFCOO Figure 3 11 Register Dialog Box ER7 e Set the value of the stack pointer to H FFFCO0 in this tutorial program and click the OK button RENESAS 35 3 9 Executing the Program Execute the program as described in the following To execute the program select Go from the Run menu or click the Go button on the toolbar BI Or select Reset Go from the Run menu or click the Reset Go button on the toolbar Figure 3 12 Go Button Figure 3 13 Reset Go Button The program will be executed up to the breakpoi
14. HS6400DIIW5SE provided on a CD R 119 6 2 Pin Arrangement of the Hitachi UDI Port Connector Figure 6 1 shows the pin arrangement of the Hitachi UDI port connector 14 pin type CAUTION Note that the pin number assignment of the Hitachi UDI connector differs from that of the connector manufacturer Signal Name Pin No H8S 2168F Input Output 1 1 ETCK Input Pin 1 mark 2 ETRST Input Hitachi UDI port connector 3 ETDO Output 4 RES 2 Input 5 ETMS Input 6 ETDI Input 7 RES 2 Output 8pin FO 0 0 0 0 0 OF 14 pin sats T 1 pin O 0000 0 0 7 pin ooo p O 11 Vec 4 _ A Top view Notes 1 Input to or output from the user system 2 The symbol means that the signal is active low Pin 1 mark 3 By detecting GND on the user system side connection or disconnection with the user system can be determined 4 Connect the MCU s Vcc pin Figure 6 1 Pin Arrangement of the Hitachi UDI Port Connector 14 Pin Type 120 RENESAS 6 3 Example of Emulator Connection The following shows an example of connecting the user system to the emulator 14 pin Hitachi UDI port connector with a 2 54 mm pitch 3M Limited 2514 6002 ws up at 4 7 kQ H8S 2168F mE ETCK ETRST ETDO ETMS ETDI E10A pin No User system RES of pin 4 of the Hitachi UDI port connector is a signal line in which the emulator outputs signals to the MCU An AND operation must be performed between RES p
15. INFORMATION READ FIRST e READ this user s manual before using this emulator product e KEEP the user s manual handy for future reference Do not attempt to use the emulator product until you fully understand its mechanism 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 right to change wholly or partially the specifications design u
16. OF x ot 00001072 Break H 00001fe A 00001084 max a 9 rs o000108c min 0 00001092 max 0 00001098 change H aes 000010a4 min a 9 1 ein o00010ac max a 0 H 00005bf D 000010b4 oeeueed KE o00010c0 void sort long a H 0000728 a U h1h long t int i j k gap E 000010d4 gap 5 53 000010dc while gap gt 0 H m 000010e0 for k 0 kegap k M 14 1E O NNA A For Help press F1 Figure 3 27 Program Window Step Out e The data of variable a displayed in the Watch window is sorted in ascending order 46 RENESAS e To execute two steps use Step In twice PS Mitach Debugging interface do ae et ro oP ol Gal E CH BS E 00001072 Break sort a 0000107c min a 0 00001084 max a 9 00001092 max 0 00001098 change a 000010a4 min a 9 000010ac max a 0 000010b4 000010c0 sot void sort long a long t int i j k gap 000010d4 000010dc Sela ae gt Oox 000010e0 for k 0 kegap k H OOOOSbF H 0000694 H 00006a9 H 0000728 Tr aed Figure 3 28 Program Window Step In gt Step In e The value of max displayed in the Watch window is changed to the maximum data value RENESAS 47 3 13 3 Executing 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
17. allows the user to set or change breakpoints define new breakpoints and delete enable or disable breakpoints 39 RENESAS 3 11 Viewing Memory The user can view the contents of a memory block in the Memory window For example to view the memory contents corresponding to the main 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 Figure 3 17 Open Memory Window Dialog Box e Click the OK button The Memory window showing the specified area of memory is displayed Word Memory _main Figure 3 18 Memory Window 40 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 Program window to position the cursor e Click the Program window with the right mouse button and select Instant Watch from a pop up menu The following dialog box will be displayed Instant Watch x Add Watch Figure 3 19 Instant Watch Dialog Box 41 RENESAS e Click Add Watch button to add a variable to the Watch window Watch Window a Figure 3 20 Watch Window Disp
18. condition Channel lt addropt gt option lt dataopt gt option lt r wopt gt option Break condition 1 O Break condition 2 O Break condition 3 x Break condition 4 Break condition 5 Break condition 6 Break condition 7 x Break condition 8 Note O Can be set by the BREAKCONDITION_SET command OC O CO 0 00 O O RENESAS x OC O O 0010 O0 O 127 Notes on Setting the Break Condition 1 When Go to cursor Step In Step Over or Step Out is selected the settings of Break Condition are disabled The settings of Break Condition is disabled when an instruction to which a software breakpoint has been set is executed When step over function is used the settings of software breakpoint and Break Condition are disabled 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 A software break is accomplished by replacing instructions Accordingly it can be set only to the flash memory or RAM area However a software break cannot be set to the following addresses e An area other than flash memory or RAM e An instruction in which Break Condition is satisfied During step execution a software breakpoint is disabled A condition set at Break Condition is disabled immediately after starting execution when an instruction at a software breakpoint is executed A break does not occur even if a cond
19. 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 Host Computer with the Card Emulator Insert the card emulator into the PCMCIA TYPE II slot or the PCI slot of the host computer figures 2 2 and 2 3 Note Be sure to install the HDI before the card emulator is inserted Host computer PC with the PCMCIA TYPE Il slot T PCMCIA card emulator za CE LETT Ere a ne re fF A LF Insert into the PCMCIA TYPE Il slot Figure 2 2 Inserting the PCMCIA Card Emulator into the Host Computer PCI card emulator Mn a 000 i Insert into the PCI slot ZA x EST AEN Host computer Figure 2 3 Inserting the PCI Card Emulator into the Host Computer 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 Note When installing the PCI
20. or use 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 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 Contact Hitachi s sales office for any questions regarding this document or Hitachi semiconductor products IMPORTANT
21. 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 MCUs E104 Driver Details Driver ALKO Mer Te ADIGA Details Interface PCI Channel PCI FA008000 E10A M Wonmigurdnon Connigune Figure 2 7 E10A Driver Details Dialog Box e With the Driver combo box select the driver to connect the HDI with the emulator e 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 5 to use the PCMCIA card emulator Select E10A PCI Card Driver 5 to use the PCI card emulator For details refer to table 6 3 in section 6 4 1 Emulator Driver Selection Interface combo box Select PC Card to use the PCMCIA card emulator Select PCI to use the PCI card emulator If the driver is not installed the PC Card or PCI is not displayed e Click the Close button 16 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 H8S xxxx E10A Emulator Mode This mode is used for debugging in the emulator 1 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 C
22. 000 will not be displayed 6 Memory Load Function When Load is selected 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
23. 10A PCI Card Driver 5 is selected Note When the HDI is not linked up even if the above procedure has been executed the driver may not be set correctly Install drivers provided with the SETUP directory in the CD R according to the screen instructions Related Items Configuration dialog box General page 4 2 3 Breakpoints Window Function This window lists all break conditions that have been set Window Breakpoints Enable File Line Symbol Address Type sort c 27 W Break condition 1 Figure 4 5 Breakpoints Window 76 RENESAS Description The Breakpoints window displays breakpoint setting information The items listed in the following tables are displayed Table 4 5 Breakpoints Window Display Items Item Description Enable Indicates whether the break condition is enabled or disabled Symbol or O shows that the break condition is enabled 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 a blank is displayed Address Displays the address where the breakpoint is set Type Displays the break condition type as follows Breakpoint Software breakpoint Break condition n Hardware break condition n is a number The pop up menu which is opened by clicking the right mouse button can be used to set change and clear br
24. 68KCM01H E10A PC Card Driver 5 HS2168KCI01H E10A PCI Card Driver 5 6 5 2 Hardware Break Functions Hardware Break Conditions In the H8S 2168F E10A emulator eight conditions of Break Condition can be set Table 6 4 lists the items that can be specified Table 6 4 Hardware Break Condition Specification Items Items Description Address bus condition Breaks when the MCU address bus value matches the specified value Data bus condition Breaks when the MCU data bus value matches the specified value High or low byte or word can be specified as the access data size Read or write condition Breaks in the read or write cycle Table 6 5 lists the combinations of conditions that can be set in the Break condition dialog box 126 RENESAS Table 6 5 Conditions Set in Break condition Dialog Box Dialog Box Break condition 1 Condition Address Bus Condition Data Condition Read or write condition Break condition 2 Break condition 3 Break condition 4 Break condition 5 Break condition 6 Break condition 7 x Break condition 8 Note Olo O0 0 0 OF O x O Can be set by checking the radio button in the dialog box O CO O0 0 OF OF O Table 6 6 lists the combinations of conditions that can be set by the BREAKCONDITION_SET command Table 6 6 Conditions Set by BREAKCONDITION_SET Command Condition Address Bus Data Read or write Condition Condition
25. 9 00001042 ali j 20 21 00001072 sortia 22 0000107c min a 0 23 00001084 max a 9 25 00001092 max 0 26 00001098 change a 27 000010a4 min a 9 28 000010ac max a 0 29 000010b4 30 OOOO 4A Oe me nthe samimi mmda l mmm KmA x Figure 3 45 Program Window at Execution Stop Break condition 1 62 RENESAS The System Status window displays the following contents System Status Item Status fonnected to H8s xxxx ELOA Emulator E10A PCI Card Driver5 CPU H8 S XXXX Run status Break Cause of last break BREAK CONDITION 1 Run time count 0000h00min00 s000ms Emulator mode Big endian Figure 3 46 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 on line help 63 RENESAS 3 17 Trace Function The trace function of the E10A emulator is described The branch source addresses mnemonics operands and source lines are displayed Since this function uses the trace buffer built into the MCU a realtime trace can be acquired Run the program as shown in the example of section 3 15 1 Software Break Function The trace results are displayed in the Trace window after the program execution is completed ace 4 records no filter ADDR OPERAND Source Naa OO0011D2 H 10E4 16 D 0002 BRANCH O00011D4 BPL H 11DE 8 D 0001
26. BILITY 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 reproduced or duplicated in any form in hard copy or machine readab
27. Before Software Breakpoint Setting eeesesesseessssseseees 51 Point Page Break Dialog Box ssssseesssessesssesssessseseserssressressreserseseseesseesssressres 52 Breakpoint Dialog BOX csser aone Eir are iia 53 Point Page Break Dialog Box After Software Breakpoint Setting 54 Breakpoints Window Software Breakpoint Setting sseeeseesseeseessesrsesrsersseees 55 Program Window at Execution Stop Software Break seenseeeseeseeseseeeeesesseees 55 Displayed Contents of the System Status Window Software Break 56 Breakpoints Window Before Hardware Break Condition Setting eee 57 Condition Page Break Dialog BOX ssseesseessesssseseseessressressressseeesessseersreessres 58 condition Page Break condition 1 Dialog Box eee eeeeeeseceeeeeeeneeeneeeeeees 59 Break Dialog Box After Hardware Break Condition Setting 0 ee eeeeeeeeee 60 Breakpoints Window Break condition 1 Setting eee eeeesseeeneeceteeeenees 61 Program Window at Execution Stop Break condition 1 ee eeeeeeeeeeteeeeeeee 62 Displayed Contents of the System Status Window Break condition 1 63 Trace Window E E nied nisi ind E tie nt ee 64 Configuration Dialog Box eee eeeeceseceseceseceseceaecaeecaeecaeeeneeeaeeeeeeeeeeeenseeaees 70 General Page Configuration Dialog BOX eee eeeeeesseceeeeeeneeceereeeeecesneeenseees 72 Warming M
28. E E0 r i a 1 0 E A T eR a ee AAR 97 51 2 Parameter Input n eese Mod e EEEE ieee dint sti EE ec EEKE eR 97 oA BES E ECT 11e GTER E RE EEE EAT 98 a E E Ea D K e a EE E E E a 98 5 2 Command Descriptions ss sosise aesir ee oer En eere rE E neg REEE ee ETES E Eeri e eSEE 99 5 2 1 BREAKCONDITION_CLEAR BCC ccccccccecssecesscesseceneeeeseeceneeeeseeceneeeesaeens 100 5 2 2 BREAKCONDITION_DISPLAY BCD 1 0 0 ecccccesccesseceeeeeeeecensceesseceteeesneees 101 5 2 3 BREAKCONDITION_ENABLE BCE ccccecccccesceesecessceessecenseeeseeceeeeeesaeens 102 5 2 4 BREAKCONDITION_SET BCS ccc ccccccesseceseceeeecseeeeeeecseseeeseesseeeenseens 103 5 25 BREAKPOINT BP sj o508 csncveseadeuscve ence veeass ca covernevundseesades outs EA 106 5 2 6 BREAKPOINT_CLEAR BC ccccccccccccsseceseceesseceeeeeesecseececsaeceeeeecsaeeeeeeeesseeees 107 5 257 BREAKPOINT DISPLAY BD 43 528 neni ci ein biked ene EER kee 108 5 2 8 BREAKPOINT_ENABLE BE ccccccccssscesscecsseceeececsseceeeeeeseeceeeeesseeeseeeesaeees 109 O29 DEVICE TYPE DE x cesses e Ree Be ee a 110 9 2 10 GO OPRTION GR iar seie sei cbesk Saas eis TR a RA EAE 111 2 2 11 JTAG CLOCK JEK fasciitis tec antes a nlite Ried walter a a rea an 112 9 2 12 REFRESH rA EEE RRR ROR HERR OR RS 114 D213 TRESE TORE AOE E EA E EE E E A 115 TAAN E S B ORSA I AE ETE E EE E E E E A 116 5 2 Ia STEP INTERRU T S ii etna E OA A ea OA een 117 5 2 16 TRACE DISPLAY TD er re E E T E RART 118 i
29. 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 RENESAS Renesas Technology Corp Cautions Keep safety first in your circuit designs 1 Renesas Technology Corpor
30. MHz 2 7 5 MHz 3 3 75 MHz 4 1 875 MHz 5 0 937 MHz PCI used 1 031 MHz 2 062 MHz 4 125 MHz 8 25 MHz or 16 5 MHz 1 16 5 MHz 2 8 25 MHz 3 4 125 MHz 4 2 062 MHz 5 1 031 MHz Note The range of the frequency that the Hitachi UDI operates at differs according to the MCU to be supported 112 RENESAS Examples when PCMCIA used To set the JTAG clock TCK frequency gt JCK 1 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 frequency gt JCK 1 RET JTAG Clock 16 5MHz To display the JTAG clock TCK frequency gt JCK RET JTAG Clock 16 5MHz RENESAS 113 5 2 12 REFRESH RF Description Updates the HDI memory information to the latest contents Format rf Table 5 13 REFRESH Command Parameter Parameter Type Description None Example To update the HDI memory information gt rf RET 114 RENESAS 5 2 13 RESET RE Description Resets the H8S xxxx The breakpoint settings are retained After the reset the registers will be in the same state as when power is supplied Format re Table 5 14 RESET Command Parameter Parameter Type Description None Example To reset the H8S xxxx gt re RET 115 RENESAS 5 2 14 STATUS STS Description Displays emulator status information Format sts Table 5 15 STATUS Command Parameter Parameter Type Descript
31. Program e If necessary select the Font option from the Customize submenu on the Setup menu to select a clear font and size Initially the Program window shows the start of the main program but the user can use the scroll bar to scroll through the program to see the other statements 32 RENESAS 3 7 Setting the Software Breakpoint A breakpoint is one of the easy debugging functions The Program 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 W Sort c ol x Line Address BP Label Source a 0000100 _main void main void long a 10 long j int i min max 00001014 for i 0 i lt 10 i o000101 Jj rand 00001028 LECT 0 00001030 Jj J 0000103e a i j 0000106 Break sort a 00001074 min a 0 0000107 max a 9 00001084 min 0 0000108a max 0 00001090 change a Figure 3 8 Program Window Setting a Software Breakpoint The word Break will be displayed on the line containing the sort function to show that a software breakpoint is set 33 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 menu The Registers window is displayed
32. 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
33. address conditions Address radio button Sets use of the normal address bus as break 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 Mask list box Sets the mask bits if User mask is selected For masked bits the break condition is satisfied regardless of the address values The contents of an option that can be set will change depending on the radio button selected Table 4 14 Radio Button Options Option Description Address radio button All conditions can be set Only program fetched address after radio The Address condition can be set button The Data group box sets the data bus conditions Table 4 15 Data Group Box Options Option Description Don t care check box No data conditions are set Value edit box Sets the data bus with a number Low byte radio button Sets data access size as the lower 8 bit access High byte radio button Sets data access size as the upper 8 bit access Word radio button Sets data access size as the word access 90 RENESAS The Read Write group box sets the read write cycle conditions Table 4 16 Read Write Group Box Options Option Description Read Write radio button Sets the read write cycle conditions as break conditions Read radio button Sets read cycles as break conditions Wr
34. akpoints that have ENABLE been set 4 BREAKCONDITION_ BCS Sets hardware breakpoints SET 5 BREAKPOINT BP Sets software breakpoints 6 BREAKPOINT_CLEAR BC Clears software breakpoints that have been set 7 BREAKPOINT_DISPLAY BD Displays software breakpoints that have been set 8 BREAKPOINT_ENABLE BE Enables or disables software breakpoints that have been set 9 DEVICE_TYPE DE Displays MCU type currently selected 10 GO_OPTION GP Sets or displays the emulation mode during user program execution 11 JTAG_CLOCK JCK Displays or sets a JTAG clock TCK frequency 12 REFRESH RF Updates the HDI memory information to the latest contents 13 RESET RE Resets the H8S xxxx 14 STATUS STS Displays emulator status information 15 STEP_INTERRUPT Sl Sets or displays the enable or disable status of interrupts during step execution 16 TRACE_DISPLAY TD Displays acquired trace information Note Support for these commands varies with the product For the specifications of each product refer to the on line help 99 RENESAS 5 2 1 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 2 BREAKCONDITION_CLEAR Command Parameter Parameter Type Description None Examples To clear all hardware breakpoints gt bec RET To clear all hardware breakpoints set at channel 2 gt bec channel 2 RET 100 RENESAS 5 2 2
35. and vary with the product For the display specifications of each product refer to the on line help 108 RENESAS 5 2 8 BREAKPOINT_ENABLE BE Description Enables or disables software breakpoints that have been set Format be lt address gt lt mode gt Table 5 9 BREAKPOINT_ENABLE Command Parameters Parameter Type Description lt address gt Numerical value Breakpoint value set by numerical value or symbol character string lt mode gt Keyword Enables or disables breakpoints Set either of the following enable Enables breakpoints disable Disables breakpoints Examples To enable software breakpoints that have been set gt be H 1002 enable RET To disable software breakpoints that have been set gt be H 1002 disable RET Notes 1 The parameters for this command vary with the product For the specifications of each product refer to the on line help 2 The items displayed with this command vary with the product For the display specifications of each product refer to the on line help 109 RENESAS 5 2 9 DEVICE_TYPE DE Description Displays MCU type currently selected Format de Table 5 10 DEVICE_TYPE Command Parameter Parameter Type Description None Example To display the currently selected MCU gt de RET The display format is as follows gt de Current device H8S xxxx 110 RENESAS 5 2 10 GO_OPTION GP Description Sets or displays the emulation mode during user p
36. arnings below before using this emulator Note that these are the main warnings not the complete list 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 CAUTION This equipment has been tested and found to comply with the limits for a Class A digital device pursuant to part 15 of the FCC Rules These limits are designed to provide reasonable protection against harmful interference when the equipment is operated in a commercial environment This equipment generates uses and can radiate radio frequency energy and if not installed and used in accordance with the instruction manual may cause harmful interference to radio communications Operation of this equipment in a residential area is likely to cause harmful interference in which case the user will be required to correct the interference at his own expense
37. ation puts the maximum effort into making semiconductor products better and more reliable but there is always the possibility that trouble may occur with them Trouble with semiconductors may lead to personal injury fire or property damage Remember to give due consideration to safety when making your circuit designs with appropriate measures such as 1 placement of substitutive auxiliary circuits ii use of nonflammable material or iii prevention against any malfunction or mishap Notes regarding these materials if These materials are intended as a reference to assist our customers in the selection of the Renesas Technology Corporation product best suited to the customer s application they do not convey any license under any intellectual property rights or any other rights belonging to Renesas Technology Corporation or a third party Renesas Technology Corporation assumes no responsibility for any damage or infringement of any third party s rights originating in the use of any product data diagrams charts programs algorithms or circuit application examples contained in these materials All information contained in these materials including product data diagrams charts programs and algorithms represents information on products at the time of publication of these materials and are subject to change by Renesas Technology Corporation without notice due to product improvements or other reasons Itis therefore recommende
38. 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
39. 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 re install that HDI 24 RENESAS Section 3 Tutorial 3 1 Introduction The following describes the main functions of the emulator by using a tutorial program The tutorial program is based on the C program that sorts ten random data items in ascending or descending order The tutorial program performs the following actions e The main function 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 tutorial program is included in the sort c file The compiled load module is provided in the Sysrof format and is included in the tutorial abs file Table 3 1 lists the tutorial program configuration Table 3 1 Tutorial Program Configuration and Parts Item Contents Workspace for HEW V1 2 Installation directory tutorial
40. card emulator note the following 1 Turn off the host computer 2 Insert the emulator into the PCI slot in parallel 3 Screw in the emulator after confirming the connector and cable positions 2 4 Connecting the Card Emulator with the User System 1 The connector must be installed to the user system Table 2 1 shows the recommended connector for the emulator Table 2 1 Recommended Connector Type Number Manufacturer Specifications 2514 6002 3M Limited 14 pin straight type Note When the connector is used do not install any components within 3 mm of the connector 2 The pin arrangement of the connector is shown in section 6 2 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 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 User system interface cable Tab GND line Hitachi UDI port connector User system GND connection User system Pin 1 Figure 2 4 Connecting the User System Interface Cable to the User System RENESAS Notes To connect the signals output from the connector refer to the MCU pin alignment To remove the user system interface cable from the user system pull the tab on the connector upward The range of co
41. cted emulator and the selected driver name CPU Displays the target MCU 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 Run time count Displays the program execution time The display format is h hours min minutes s seconds and ms milliseconds In this example 0000h00min00s000ms is displayed Emulator mode Displays the emulator operating mode setting information for Emulation Mode of the Configuration dialog box Memory Loaded Memory Areas Displays the loaded area of the load module Events Resources Related Items Configuration dialog box STATUS command Displays the usage states of software breakpoint and Break condition 95 RENESAS 96 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 Contents shown in lt gt are set mon lt gt The parameter to the left of the sign is input in the format shown to the right l This represents a non exclusive selection This represents an exclusive selection
42. d 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 fo
43. 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
44. e 2 17 System Clock Dialog Box eee cee cseecreeeeeeeeeeeeeeeeeseeeseensecssecaeeaesaeeeeeees 20 Figure 2 18 Load Program Dialog BOX ee eeceseccseeeeeeeeeeeeeeeeeeeeeseeesecssecsaecseeeneeeaeees 21 Figure 2 19 Checksum Value after Downloading the Program ec ee ceeeesecesecesecneeeneeeeeene 21 Figure 2 20 HDI Dialog BOX deneraino ie eo e e Eeee Erea Er eE A EE oa TEKEE EEEL SEKERE EES 21 Figure 2 21 Continue WINdO Winnaar Ea E E 22 Figure 2 22 Connector disconnected Dialog BOX sseseesserseressssreeresrsressrsreeresrerresesrrnresereresee 22 Figure 2 23 Flash memory erase error Dialog BOX s sessssssesesesseesrsreerssrerresesreeesresrrsrerrreresee 22 Figure 2 24 Exit HDI Dialog BOX enie eee cee esse cneecneeeseseeeeeeeeseeeeeesecssecaecaeenaesnaeeneeens 23 Figure 2 25 Save session Dialog BOX eee eeeesecesecese cece caeecaeeeaeeeaeeeaeeseeeeenseeeseecsaesaeeeas 23 Pigure 3 1 Start Menus e ose ouch cise sve aae EE E E EA E E chadooboussacurs ceevurtegeese chee 26 Figure 352 IDE Wado Wisceasscn e ais daze E AA A shed AE A O O ASEESSA 27 Figure 3 3 Configuration Dialog BOX esseseesseesssreesssreereeresresrsserrresesrenrrsrenresrerreserrrnresrreresre 28 Figure 3 4 Load Program Dialog BOX sessesesssssessseeesssreesssrsressesreerresesrenresreeresrerresesrrsresrreresre 30 Figure 3 5 HDI Dialog Box 2 8 ciacacl nets E adie EEEE EEE E EEEE 30 Figure 3 6 Open Dialog BOX scssccssectef sssesscesten
45. e 5 17 TRACE DISPLAY Command Parameter Parameter Type Description None Example To display acquired trace information gt td RET The display format is as follows gt td IP TYPE ADDR MNEMONIC OPERAND D XXXX BRANCH 00001010 JSR ERO D XXXX BRANCH 00001200 JMP ER1 a b c d e a Instruction pointer signed decimal b Type of branch source BRANCH Branch source c Address of instruction word d Instruction mnemonic e Instruction operand 118 RENESAS Section 6 H8S 2168F E10A Emulator Specifications 6 1 Components of the Emulator The H8S 2168F E10A emulator supports the H8S 2168F Table 6 1 lists the components of the emulator Table 6 1 Components of the Emulator HS2168KCM01H or HS2168KCI01H Classi Quan fication Component Appearance tity Remarks Hard Card emulator zy 1 HS2168KCM01H Model HS0005KCM05H Depth 85 6mm HS2168KCI01H or VICI S4 OUT Model HSO005KCIO5H peight 3 0 1 Mass 30 0 g HS2168KCI01H PCI 14 pin type Depth 122 0 mm Width 96 0 mm Mass 80 0 g User system interface 1 HS2168KCM01H cable Cyn PCMCIA 14 pin type Length 80 0 cm Mass 46 0 g HS2168KCI01H PCI 14 pin type Length 150 0 cm Mass 90 0 g Soft H8S 2168F E10A emulator 1 HS2168KCM01SR ware setup program CSD HS2168KCM01HJ H8S 2168F E10A Emulator HS2168KCM01HE Users Manual and Hitachi Debugging Interface User s Manual RENESAS HS6400DIIW5SJ and
46. e on line help e Click the OK button e The Break dialog box is displayed Check the first point display in the Break condition list box is changed from Empty to Enable 59 RENESAS Enable Figure 3 43 Break Dialog Box After Hardware Break Condition Setting Note Note that the number of hardware break conditions differs according to the product For the number that can be specified for each product refer to the on line help e Click the Close button 60 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 hardware break condition When the program is executed a break will occur when address H 108C is accessed in a read cycle Breakpoints Oo O x Enable File Line a Sort c 24 Eueeptetsi gg Break condition 1 Figure 3 44 Breakpoints Window Break condition 1 Setting e Close the Breakpoints window e Click the Reset Go button 61 RENESAS The program runs then stops at the condition specified under Break condition 1 inti RALA iof x Line Address BP Label Source a 8 0000100c _main ra main void 9 10 long a 10 i long j 12 int i min max 13 14 00001018 for i 0 i lt 10 i 15 00001020 j rand 16 0000102c if lt 0H 17 00001034 j j 18 1
47. eakpoints 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 Select 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 77 RENESAS 4 2 4 Break Dialog Box Function This dialog box displays the break condition settings Window Figure 4 6 Break Dialog Box 78 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 Close button will close this dialog box The Ap
48. ececssececsesaececseeeeceesseeecseaeees 51 3 16 Hardware Break Functie ccc niehatie Mwai ean ie Mi on A 57 o r E E ra At aTe a PEE tee Links hia Stal hilt eee ite ea 64 3 18 What Next aeniea e e E E E E a ioe hee E A a ee RS 65 Section 4 Descriptions of Windows ssssesesssesessseesseessersseeeseessseesseessersseesseee 67 Ale HDT Wandows EE iii et ili rte AS E N ee eal 67 4 2 Descriptions of Each Window eeceecescceseceseecreeeseeeeeeeeceeeceeceseensaecsaecaaecseeeaeseeeeeeeennees 70 4 2 1 Configuration Dialog BOX oo ieee cee ese ceeeeeeeeeeeeeeensecesecaesaecaeceeeaeeee 70 4 2 2 E10A Driver Details Dialog BOX eee ceeeeesseceseeecneeceeneeenseceeeeeeeceseeseneees 75 423 Breakpoints Window irren aari ataare aaea E E Eaa TE E E sivads 76 4 24 Break Dialo Box senene enea a E EEEE CE ERTAK E EEE E i 78 4 2 5 Breakpoint Dialog BOXs cisiercnsiiri iser ear eae ri 84 4 2 6 Break condition Dialog BOX ssesesseseseeeesesesesesesesssrrseresseessessereseseenseessressres 86 4 2 7 Break condition Dialog Box Pages eseseeseessseeesesesressrsreerssrrerssrerresesrrerrese 88 4 2 8 Trace WindOw e a E a e tia hess 92 4 2 9 System Status Windowsiin irei eira E a E a 94 Section 5 Command line Functions sessssseseesseesseessersseeeseesseeesseesseesseesseeesseee 97 5 1 Table and Symbol Description ssssssssesssereseseesssteereeresresrssrrrreresrentesrenteseerrnsesrrnresrenesre 97 Sil
49. eceeeceeneeenaeeeeee 67 Configuration Dialog Box Page 0 eee cess ceecseecneeeeeeeeeeeeceseensecesaecseecaeseaeeeneees 71 Gene ral Page Options csee eieiei eae re EEr aves CE ETENEE eE STEKES Naak 73 E10A Driver Details Dialog Box Option 00 0 eee eeeeeeceeeenseeesecesecaecaeeaeeeas 75 Breakpoints Window Display Items ce eeseeceseceeseeceseeeeneeceaeceeeeeceaeceeeeecaeeees 77 Breakpoints Window Pop up Menu Operation e eee eee eeeeeceeeeenseceneceeeceeeens 77 Break Dialog Box Pages eee eeeecesecesecesecesecaecsaecaeeeseeeseeeseeseesaecsaeceesaeeeas 79 Point Page Options iie rr nper ea ter E Bee heme E EEE 81 Condition Page Options neien eei a e EREE Er EEE Ea AES EEE EERE EEE 83 Address Page Optrons s sssscssce sce secu scde esse segs leeevbcuis de seees tea gs EREE E SEa TES PESEE SEa ERES 85 Setting Conditions in Break condition Dialog BOX 00 eee ee eee ceeeeneeeeeeeeeeee 88 Break condition Dialog Box Pages eee eeeeceseccseecseecseeeeeeeeeeseeeeseneeeeenseesaes 88 Address Group Box Options ee ceeeeeeeeeeecensecesecesecsaecsaecaeeceeeseeeseenseenseenaee 90 Radio Button Options sss iec sicsisseseesiecssestezeccgh ivecessessvesvetssessssedssesagh syeesenssdhosvasoebesvaals 90 Data Group Box Options 00 eee cee ceeceeceeecesecesecseceaeceaecsaeceaeeeeeeeeeseeeeenseenaes 90 Read Write Group Box Options 00 eee eeeeeceeeecnsecesecsecseecaeecaeeseeeeseeeseenseesaes 91 Trace Windo
50. ection of the RES Pin 4 The FWE pin in the H8S 2168F must be pulled up when connecting with the emulator H8S 2168F E10A emulator is connected 4 7 KQ FWE Figure 6 6 Connection of the FWE Pin 5 Connect GND of pins 8 to 10 and 12 to 14 in the Hitachi UDI port connector to ground in the user system 6 Connect Vcc pin 11 in the Hitachi UDI port connector to the power supply Vcc in the user system The input voltage Vcc is within the range of guaranteed operation of the microcomputer 123 RENESAS 7 Figure 6 7 shows the interface circuit in the emulator Use this figure as a reference when determining the pull up resistance value Hitachi UDI port H8S 2168F Emulator control circuit connector Vcc ze ETCK CE S es ee aes teh ey a ETDI ETDO RES Figure 6 7 Interface Circuit in the Emulator Reference 124 RENESAS 6 4 Differences between the H8S 2168F and the Emulator 1 When the emulator system is initiated it initializes the general registers and part of the control registers as shown in table 6 2 Table 6 2 Register Initial Values at Emulator Power On Register When Using H8S 2168F PC Reset vector value in the vector address table ERO to ER6 H O ER7 SP H 10 CCR 1 for mask and others undefined EXR H 7F 2 System Control Register In the emulator the internal I O registers can be accessed from the I O registers window Howe
51. eneeceseeeeeeees 115 STATUS Command Parameter cee eescccesceesceceseceenceceneeeseneecaeceeneecaeeeeeeessaeeeees 116 ix RENESAS Table 5 16 STEP_INTERRUPT Command Parametetr ccccccccccccceccceceseseseeeeeseseseeeeesenenees 117 Table 5 17 TRACE DISPLAY Command Parameter cccccccccccccccccccceccccceceeececscecseeseeeeeees 118 Table 6 1 Components of the Emulator HS2168KCMO1H or HS2168KCIO1H 0 119 Table 6 2 Register Initial Values at Emulator Power On ceeceeceeceseceecesecsseceecneeeneeaee 125 Table 6 3 Type Name and Drivet eee ee eecescesecesecssecssecseecseeeaeseaeeeeeeeseeesesecseeaecaesnaeaee 126 Table 6 4 Hardware Break Condition Specification Items le eee eeeeeeecesecnseceeeneeens 126 Table 6 5 Conditions Set in Break condition Dialog BOX 0 0 eee ceeeeesseceseeeeeneeceeeeeeneecnteeeeeees 127 Table 6 6 Conditions Set by BREAKCONDITION_SET Command cece eesceeneeeeteeeeee 127 x 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 actua
52. er 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 After the value has been input in the Register dialog box the Radix setting is changed to hexadecimal When the radix other than a hexadecimal is used as a default reset the Radix display 19 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 Breakpoints window During user program execution it is impossible to jump from the breakpoint to the source or address line in the Source or Disassembly window by using Go to Source in the popup menu displayed in the Breakpoints window When the software breakpoint is set in the flash memory area the program is written to the flash memory each time the user program is executed At this time note that the number of rewritable times will be decreased 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 message is displayed cancel all software breakpoint settings with the Delete All or Disable button in the Breakpoints window
53. er the following environments reference values Host computer 700 MHz Celeron H8S 2168F 25 MHz system clock frequency Note on Programming the Flash Memory No break processing is performed while the processing routine is being executed to program or erase the flash memory 134 RENESAS
54. eseeeeensecesecsaecaeenaecsaeeneeens 123 Figure 6 6 Connection of the FWE Pine ee eee ces csecseeceecneeeneeeeeeseeeesesseensecaeeaecnaeenaesaee 123 Figure 6 7 Interface Circuit in the Emulator Reference ec eeeeeeseceeneeceseeeeneecesaeeeeneecsaeeeee 124 viii RENESAS Tables Table 1 1 Table 1 2 Table 2 1 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 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 Table 5 13 Table 5 14 Table 5 15 Environmental Conditions 0 ceeecessssceeececsseceeneecaeceseeecsaeceeeceesaeceeneecsaeceeneeesaeeesees 4 Operating EnvirOnMeEnt vinissi seed e nenioo eee sea cuech tune o Saveuevach suds E Eea Ees 5 Recommended Connector mieie ra EE EE E EEE ERR 12 Tutorial Program Configuration and Parts sesseesseeseseesssreesssesesresreeresrerresesreereseeee 25 Setting the Configuration Dialog BOX ssesssessssesssseesssreerssrsereesreeresreersserrrssesreeresre 29 Contents of the System Status WindoW ssssssssseesseeesreesssseseseesseessresstessreseeeseessee 38 Step OptOmsrscisces asvssevnas ep E a a SE E Eee EEES E O EE S ET S 44 HDI Window Menus and Related Manual Entries eeeesceceseeceeee
55. essage BOR uneia n e e E tees detustheve Aauk cesta lenses tuncees 74 E10A Driver Details Dialog BOX 0 0 ceeeeesseceeeeenseceeeeeeaeceeeeeeneeceeneeeneeceeneeenaeess 75 Breakpommts WINdOW oi eiei aeeie aae E TEE E E EEEE EEE EEE 76 Break Dialog Box EEE E A EE T 78 Point Page Break Dialog Box sssesssssesesesessrsesesesssesrsessseesseressresseseeeseessersseesse 80 Condition Page Break Dialog BOX ssseeeeeeeseeeseesseesesesrseesserssressresseeseesseessersse 82 Breakpoint Dialog BOX seiniin eeceescesecesecesecsecaeeeeeeeesesecesecaecsaecaesaaeeaaeeaeees 84 RENESAS Figure 4 10 Break condition 1 Dialog BOX oo eee cee ceeeceeeeeeeesensecesecseceaecaesnaeeneeeas 86 Figure 4 11 condition Page sssini esi aeii e rear ee rE rrer E EEE EESE EEr 89 Figure 412 Trace Wind Wa aei r E EE EE E E E E R ai 92 Figure 4 13 System Status Window 0 ieee eceecceesceescesseceeecaeecaeeeseseaeeeaecesecaecaecsaessaeeaeees 94 Figure 6 1 Pin Arrangement of the Hitachi UDI Port Connector 14 Pin Type 00 120 Figure 6 2 Example of Emulator Connection 0 0 0 e ee ceecesceeseceseceneeeeeeeeeeeeeeeeeeeenseecsaecsaeeneeens 121 Figure 6 3 Connection of Emulator and the MCU oo eee ceeeceseceee cree cneeeeeeeeeeneenseenseeaeeees 122 Figure 6 4 MD2 Pin and Emulator sss scscscs ccscisseescstacescehsscnse ce sasnsvet ieee ates tasesoevesesseesssnecea scenes 122 Figure 6 5 Connection of the RES Pin oo cee cree cneeeeeeeeeesee
56. from those in table 4 11 For details refer to section 6 5 2 Hardware Break Functions Table 4 11 Setting Conditions in Break condition Dialog Box Type Address Bus Dialog Box Condition Data Bus Condition Read Write Condition Break condition 1 O O O dialog box Break condition 2 O O O dialog box Note O Can be set by checking the radio button in the dialog box Table 4 12 shows the Break condition dialog box page Table 4 12 Break condition Dialog Box Pages Page Name Function condition Sets the address bus data bus and read write cycle conditions of Break condition 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 on line help 88 RENESAS 1 condition Page Function This page sets the address bus data bus and read write cycle conditions Window Break condition 1 Pe Oni poeem etenen aacreSss atter BOGreSs fe Wom User masg fo USE Mase MESK l M Dornt care Valve Pe Law byte Pe let byte irel Figure 4 11 condition Page Note The items that can be set in this window differ according to the product For the settings for each product refer to the on line help 89 RENESAS Description The Address group box sets the address bus conditions Table 4 13 Address Group Box Options Option Description Don t care check box Does not set
57. icking the OK button enables breakpoints to be set If the Cancel button is clicked this dialog box is closed without setting breakpoints Related Items Point page BREAKPOINT command BREAKPOINT_CLEAR command BREAKPOINT_DISPLAY command BREAKPOINT_ENABLE command RENESAS 85 4 2 6 Break condition Dialog Box Function This dialog box sets hardware break conditions Window Break condition 1 Vv UGG Cate JAWE byte Figure 4 10 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 on line help 86 RENESAS Description The Break condition dialog box consists of the condition page Sets the conditions for halting the program Contents to be set by this page are described in section 4 2 7 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 Items condition page BREAKPOINT command BREAKCONDITION_CLEAR command BREAKCONDITION_DISPLAY command BREAKCONDITION_ENABLE command 87 RENESAS 4 2 7 Break condition Dialog Box Pages The Break condition dialog box page allows 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
58. ified for each product refer to the on line help 82 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 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 Items condition page BREAKCONDITION_CLEAR command BREAKCONDITION_DISPLAY command BREAKCONDITION_ENABLE command BREAKCONDITION_SET command 83 RENESAS 4 2 5 Breakpoint Dialog Box Function This dialog box sets software breakpoints Window Breakpoint Figure 4 9 Breakpoint 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 on line help 84 RENESAS Description 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 Cl
59. in 4 and the user system reset circuit for the signal line connected to the MCU RES of pin 7 of the Hitachi UDI port connector is a signal line in which the emulator monitors the RES signal of the MCU The RES must be pulled up before it is connected to pin 7 of the Hitachi UDI port connector Figure 6 2 Example of Emulator Connection 121 RENESAS Notes 1 The emulator uses ETRST ETCK ETMS ETDO and ETDI pins in the H8S 2168F Pull up the emulator and MCU pins and connect them to the user system connector H8S 2168F Hitachi UDI port connector Pins 1 2 3 5 and 6 Figure 6 3 Connection of Emulator and the MCU 2 The MD2 pin in the H8S 2168F must be pulled up when not connecting with the emulator and connected to ground when connecting with the emulator Vcc H8S 2168F E10A emulator is unconnected H8S 2168F MD2 E10A emulator is connected Figure 6 4 MD2 Pin and Emulator 122 RENESAS 3 The RES signal pin 4 in the Hitachi UDI port connector is a signal line that is output for the MCU by the emulator Connect the AND logic with the reset circuit in the user system to the MCU The RES signal pin 7 in the Hitachi UDI port connector is a signal line that the emulator monitors the RES pin in the MCU Pull up and connect it to pin 7 in the Hitachi UDI port connector Vcc Hitachi UDI port connector H8S 2168F Figure 6 5 Conn
60. in commands Absolute paths should be used to specify the files in a command file so that the current directory alteration is not affected 130 RENESAS Example FILE_LOAD C HEW HDIS E10A 2168F TUTORIAL TUTORIAL ABS 9 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 HDLINI file 10 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 11 Select Function dialog box This HDI does not support software breakpoint setting in the Select Function dialog box described in section 10 Selecting Functions in the Hitachi Debugging Interface User s Manual 12 Memory Save During User Program Execution Do not execute memory save verifying during user program execution 13 Loading Motorola S type files This HDI does not support Motorola S
61. ion None Example To display status information of the emulator gt sts RET The display format is as follows gt sts Emulator Status Connected to H8S xxxx E10A Emulator E10A PC Card Driver 5 CPU H8S xxxx Run status Break Cause of last break BREAK KEY Run time count 0000h00min00s000ms Emulator mode Normal Big endian Note The items displayed with this command vary with the product For the display specifications of each product refer to the on line help 116 RENESAS 5 2 15 STEP_INTERRUPT SI Description Sets or displays the enable or disable status of interrupts during step execution When interrupts occur when they are disabled execution stops at the top address of the interrupt routine Format si Displays the enable or disable status of interrupts during step execution si lt mode gt Sets the enable or disable status of interrupts during step execution Table 5 16 STEP_INTERRUPT Command Parameter Parameter Type Description lt mode gt Keyword Enables or disables interrupts during step execution Set either of the following enable Enables interrupts disable Disables interrupts Example To enable interrupts during step execution gt si enable RET To display interrupt status during step execution gt si RET Emulator step interrupt mode ENABLE 117 RENESAS 5 2 16 TRACE_DISPLAY TD Description Displays acquired trace information Format td Tabl
62. is Manual Load Session Save Session 2 6 Save Session As Load Program 3 6 1 Initialize Exit Edit Menu Cut Copy Paste Find Evaluate O O O CO O OC OC O OC CO CO O 67 RENESAS Table 4 1 HDI Window Menus and Related Manual Entries cont Menu Bar View Menu Pull Down Menu Breakpoints Hitachi Debugging Interface User s Manual This Manual 3 10 3 15 1 4 2 3 6 4 3 Command Line Disassembly I O Registers Labels Locals 3 14 Memory 3 11 Performance Analysis Profile List Profile Tree Registers 3 8 Source 3 6 2 Status 3 9 3 15 1 4 2 9 Trace 4 2 8 6 4 4 Watch 3 12 Localized Dump Window Run Menu 68 Reset CPU Go 3 9 Reset Go Go to Cursor Set PC To Cursor Run Step In 3 13 1 Step Over 3 13 3 Step Out 3 13 2 Step Halt OoOO O OC O O CO O O OC O CO O OF CF OF OF OC CO CO CO CO OF OF OC OF O 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
63. ite radio button Sets write cycles as break conditions Related Items Condition page BREAKCONDITION_CLEAR command BREAKCONDITION_DISPLAY command BREAKCONDITION_ENABLE command BREAKCONDITION_SET command RENESAS 91 4 2 8 Trace Window Function This window displays the trace buffer contents The contents are displayed in both C and assembly languages to simplify debugging Window Trace 4 records no filter 000011D2 H 10E4 16 BRANCH O00011D4 BPL H 11DE 8 BRANCH OO00011E8 BGT H 10E0 16 BRANCH OO0011FC RTS Figure 4 12 Trace Window Note This function differs according to the product For the number that can be specified for each product refer to the on line help 92 RENESAS Description This window displays the trace buffer contents The items listed in table 4 17 are displayed Table 4 17 Trace Window Display Items Item Description IP Displays the instruction pointer signed decimal TYPE Displays the branch source BRANCH Branch source ADDR Displays the branch source 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 Total Records Displays the total number of instructions displayed as trace information in the Trace window The pop up menu opened by clicking the right mouse b
64. ition of Break Condition is satisfied immediately after starting the execution When execution resumes from the breakpoint address after the program execution stops at the software breakpoint single step execution is performed at the address before execution resumes Therefore realtime operation cannot be performed Settings of software breakpoint and Break Condition are invalid while the STEP OVER function is being used 6 5 4 Note on Using the JTAG Clock TCK When the JTAG clock TCK is used set the frequency to lower than that of the system clock 6 5 5 Trace Function The trace function in the H8S 2168F E10A emulator uses the branch instruction trace function in the MCU It displays the branch source address or the mnemonic and operand can be acquired in realtime 128 RENESAS 6 5 6 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 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 windo
65. l 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 L PCMCIA card emulator Z Sf fe LEE User system interface cable H8S xxxx Insert into the PCMCIA TYPE II slot 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 H8S xxxx 4 Er Insert into ES the PCI slot E ly A amp N User system Host computer PC with PCI slot 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
66. laying 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 G hdirese ENA e aane Gt Expression Cancel e Figure 3 21 Add Watch Dialog Box e Input variable max and click the OK button 42 RENESAS The Watch window will now also show the long type variable max Watch Window Of Ol x Va ue OxO00fttf4c H b1b2 Figure 3 22 Watch Window Displaying the 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 Oo x Value OxOO0fTTt4c H 00004 F72 H OO00728a H OOOOSbfF5 H 0000332b H 00003 fb6 H 000028cb H 00004ee4 H 00001 fe4 H 00006948 H 00006a99 H b1b2 Figure 3 23 Watch Window Displaying Array Elements 43 RENESAS 3 13 Stepping Through a Program The HDI provides a range of step menu commands that allow efficient program debugging Table 3 4 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 cal
67. le 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 MCU names This user s manual uses H8S xxxx as an example of the MCU 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 Hl RENESAS SAFETY PAGE 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 DEFINITION OF SIGNAL WORDS gt This is the safety alert symbol It is used to alert you to potential personal injury hazards Obey all safety messages that follow this symbol to avoid possible i
68. led the function Step Steps the specified times repeatedly at a specified rate 44 RENESAS 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 v Figure 3 24 Step In Button 00001072 Break 22 0000107c min a 0 23 00001084 max a 9 24 0000108c min 0 25 00001092 max 0 26 00001098 change a 27 000010a4 min a 9 28 000010ac max a O 000010b4 long t 34 int i j k gap 39 36 o000010d4 gap 5 37 000010dc while gap gt 0 H 38 000010e0 fori k O k lt gap k 39 000010ea for i k gap i lt 10 i i gap H Figure 3 25 Program Window Step In e The highlighted line moves to the first statement of the sort function in the Program window RENESAS 3 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 in the main function e To step out of the sort function select Step Out from the Run menu or click the Step Out button in the toolbar gt Figure 3 26 Step Out Button gt Hitachi Debugging interface Tutorial H8S xxxx E10A Emulator File Edt View Bun Memay Setup Window Help Fol Ea a inti Sort c
69. lock Figure 2 8 System Clock Dialog Box 2 Set an eight digit hexadecimal ID code as a security code for the flash memory Input this ID code when H8S xxxx 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 Figure 2 9 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 ine Figure 2 10 HDI Status Bar 17 RENESAS Notes 1 When the HDI is not linked up even if the above procedure has been executed the driver will not be set correctly 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 N H UDI Connector disconnected Please connect and press lt Enter gt key Figure 2 11 H UDI Connector Disconnected Dialog Box 3 If the emulator is not initiated the following dialog boxes shown in figures 2 12 through 2 15 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 i
70. me 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 Host Computer with the Card Emulator 3 Start the host computer and log on with an administrator level 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 No
71. mmunications that the emulator operates at is different according to the MCUs used Connect the signals from the connector as shown in section 6 2 Pin Arrangement of the Hitachi UDI Port Connector 13 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 H8Sxxxx gt Hitachi Debugging Interface from the Start menu HJ ccessories Internet Explorer Favorites 42 StartUp HS MS DOS Prompt Documents J Windows Explorer amp HDI for E104 H8S xox gt Al Hitachi Debugging Interface EL Settings Figure 2 5 Start Menu 14 RENESAS 5 Power on the user system and select the setting to be used Select Session x fo H8Se00 E104 Emulator exit ap Op TOV St Figure 2 6 Select Session Dialog Box 15 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
72. mum 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 NT Windows 2000 and Windows XP Power voltage 5 0 0 25 V Current consumption HSOOO5KCMO5H 60 mA max HSOOO5KCIO5H 55 mA max CD ROM drive Required to install 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 section 6 1 Components of the Emulator If the components are not complete contact a Hitachi sales agency RENESAS Section 2 Preparation before Use 2 Emulator Preparation A WARNING PROGRAM will be LOST 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 Unpack the emulator and prepare it for use as follows Unpack the emulator Check the components against the component list Turn on the host computer Install the HDI Turn off the host computer Insert the card emulator into the host computer and connect the emulator to the user sys
73. n Sets hardware breakpoints Note The function will be different according to the MCUs used For functions of each emulator product refer to section 6 4 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 asidopt gt lt r wopt gt lt addropt gt address lt address gt lt addrcycle gt I address mask lt maskdata gt lt addrcycle gt lt dataopt gt data lt data gt lt size gt lt r wopt gt direction lt direction gt RENESAS 103 Table 5 5 BREAKCONDITION_SET Command Parameters Parameter lt address gt Type Numerical value character string Description Numerical value or symbol representing an address bus value lt addrcycle gt Keyword Address bus access conditions pcafter The address bus is targeted during instruction fetch cycles Breaks after the instruction at the address set by the lt address gt parameter is executed When lt addrcycle gt is omitted the address in the program fetch cycles and the address bus during data access cycles are targeted lt maskdata gt Keyword Address bus mask conditions Conditions are satisfied regardless of the values of masked bits Set a radix H or B and set in the bit to be masked lt data gt Numerical value Data bus value lt size gt Keyword Se
74. nditions RENESAS 71 1 General Page Configuration Dialog Box Function This page sets the operational conditions for the emulator The MCU name is displayed the emulation mode and interrupts during step execution are set the JTAG clock TCK is displayed and set and the driver is selected Window Configuration x General Mode Emulation mode Noma O Step option Disables interrupts during single step execution Y JTAG clock 4 125MHz2 Z Oparating mode Advanced mode Flash memory Disse OOOO synchronization Driver Change Cancel Epp Help Figure 4 2 General Page 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 on line help 72 RENESAS Description Table 4 3 General Page Options Option Mode combo box Description Displays the MCU name Emulation mode combo box Selects the emulation mode at user program execution Select Normal to perform normal emulation Select No Break to disable breakpoint settings Step option combo box Enables or disables interrupts during step execution Disables interrupts during single step execution Interrupts during step execution are masked Enables interrupts during single step execution Interrupts during step execution are released JTAG clock combo box Sets the JTAG frequency
75. ng message is displayed 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 Items Configuration dialog box GO_OPTION command STEP_INTERRUPT command 74 RENESAS 4 2 2 E10A Driver Details Dialog Box When the OK button is clicked the E10A Driver Details dialog box will appear to select the driver software used by the interface to the emulator Since the emulator is reinitialized after this dialog box is closed it cannot be cancelled E104 Driver Details Driver E10 PCI Card Driver5 Details Interface PCI Channel PCI F4000000 E10A M Ooinigunalion Congaree e e Figure 4 4 E10A Driver Details Dialog Box Table 4 4 shows each option Table 4 4 E10A Driver Details Dialog Box Option Option Description Driver combo box Selects the driver to connect the HDI with the emulator Interface combo box Selects the interface name of the card emulator to be connected Channel combo box Selects the interface that the PC interface board has been connected Configure button Clicked to display that the driver supports the configuration dialog box 75 RENESAS When the PCMCIA card emulator is used E10A PC Card Driver 5 is selected When the PCI card emulator is used E
76. njury 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 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 RENESAS Warnings on Emulator Usage Be sure to read and understand the w
77. nnected from the connector on the user system the following dialog box will appear HDI IN Connector disconnected Please connect and press lt Enter gt key Figure 2 22 Connector disconnected Dialog Box 3 If the emulator is not properly initialized the following dialog box will appear If the following dialog box is displayed the flash memory cannot be erased Exchange the MCU since the flash memory has been rewritten to more times than the guaranteed value HDI Flash memory erase error Change device Figure 2 23 Flash memory erase error Dialog Box 22 RENESAS 2 6 Ending the HDI Power off the emulator 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 Figure 2 24 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 HDI x 2 oe Ne cancel _ Figure 2 25 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
78. nput circuit for the reset pin on the user system HDI x Can not find RESET signal Please check RESET and Yee i Retry Ignore Figure 2 12 Can not find RESET signal Dialog Box 18 RENESAS b If the following dialog box is displayed check that the Hitachi UDI port connector on the user system is correctly connected Figure 2 13 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 Figure 2 14 COMMUNICATION TIMEOUT ERROR Dialog Box Figure 2 15 INVALID ASERAM FIRMWARE Dialog Box 19 RENESAS 4 If the driver is not correctly connected the following dialog box will be displayed Figure 2 16 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 4 1 Emulator Driver Selection 2 5 2 Writing H8S xxxx E10A Flash memory Mode In this mode the emulator is used as a flash memory writer The following procedures apply when Writing H8S xxxx E10A Flash memory is selected from the activation modes listed in the Select Session dialog box 1 After the System Clock window appears input the system clock frequency System Clock Figure 2 17 System Clock Dialog
79. nsert 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 power 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 damage the user system and the emulator product The USER PROGRAM will be LOST 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 There must be no corrosive gases present Table 1 2 lists the acceptable operating environments RENESAS Table 1 2 Operating Environments Item Host computer 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 NT Windows 2000 or Windows XP Mini
80. nt that has been inserted and a statement will be highlighted in the Program window to show the position that the program has halted with the message Break BREAKPOINT in the status bar W Sort c iof x Line Address BP Label Source 0000100 _main void main void long a 10 long 4 int i min max 00001014 for i 0 i lt 10 i o000101 j rand 00001028 LE G lt O74 00001030 j j 0000103e ali 3 00001074 min a 0 0000107c c max a 9 00001084 min 0 0000108a max 0 00001090 change a 0000109a min a 9 000010a2 max a O 36 Figure 3 14 Program Window Break Status 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 System Status Item Status fonnected to H8s xxxx ELOA Emulator E10A PCI Card Driver5 CPU H8 S XXXX Run status Break Cause of last break BREAK CONDITION 1 Run time count 0000h00min00s000ms Emulator mode Normal Big endian Figure 3 15 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 on line help 37 RENESAS The System Status window displays the following items in each page Table 3 3
81. 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
82. 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
83. om the Setup menu to set configuration The Configuration dialog box is displayed Configuration Ed General Mode Emulation mode Step option Disables interrupts during single step execution Y JTAG clock 4 125MHz be Oparating mode Advanced mode z Elash memory Disse OOOO stst lt CsiS synchronization Driver Change Cancel Appl Help Figure 3 3 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 on line help 28 RENESAS Set options as follows Table 3 2 Setting the Configuration Dialog Box Option Value Mode H8S xxxx default Emulation mode Normal normal execution default Step option Disables interrupt during single step Disables interrupts during single step execution execution default JTAG clock 4 125 MHz default Operating Mode Operating mode determined by setting the mode pin default Flash memory synchronization Disable default e Click the OK button to set any changes in the configuration 29 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 the Offset edit box and File name list box as shown in figure 3 4 and click the Open button
84. on e a AA a E A gasses AE 1 EI Warming core a a a oan E A eats Red eee e enie 3 1 2 Environmental Conditions senene aae E A EE EE EES 4 1 3 COMPONENtS s i eed eat eet aa ee ek te aie 6 Section 2 Preparation b fore Useissa nun teats a nE a certains Query 7 21 Emulator Preparation a ticesssccssncca theevtecescetestabanscvtuscancee E A eugene tidetetentom cian 7 22 HDI Installationsise esse aseceestens des EE tae 8 2 2 1 Installing under Windows 98 or Windows Me Operating System 00000 8 2 2 2 Installing under Windows NT 4 0 Operating System c ccccccsscssssesesesteseseeteees 9 2 2 3 Installing under Windows 2000 or Windows XP Operating System 10 2 3 Connecting the Host Computer with the Card Emulator ce eee eee sseereeeeeeeeeeeees 11 2 4 Connecting the Card Emulator with the User System oo eee ceeereeeeeceseeeeeeseenaees 12 Zo System Checks sis brevet Gok itv eee weit ee anion Me i eat hd i ee seek eee 14 2 5 1 H8S xxxx E10A Emulator Mode ii innen e a 17 2 5 2 Writing H8S xxxx E10A Flash memory Mode eee ceeeeeeeeeeeeseeessecneeeseeens 20 2 0 Endine the HDI hionn en aa a eatin tints eaa e eee 23 2 7 Uninstalling the HDI kiinni n A evs EA ceeded E E E Rete ee 24 Section 3 T tonalss soniri annain ei Cane iaa 25 Bebe Introducti sse a earan e Ee S O esee e e EE S E EE EEST 25 3 2 R n the HDD r a E A eee aes E 26 B S EEN PRIDE Window A E S E E E 27 34 Setting up th Emulato
85. ply button is not supported RENESAS 79 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 Figure 4 7 Point Page Break Dialog Box 80 RENESAS Description Table 4 8 Point Page Options Option Description Breakpoint list box Lists the software breakpoints currently being set The display contents are as follows lt breakpoint address gt Add button Sets software breakpoints Clicking this button displays the Breakpoint dialog box Edit button Changes the software breakpoint selected in the Breakpoint list box Clicking this button displays the Breakpoint dialog box Reset button Clears the software breakpoint selected in the Breakpoint list box Reset all button Clears all software breakpoints displayed in the Breakpoint list box Related Items Breakpoint dialog box BREAKPOINT command BREAKPOINT_CLEAR command BREAKPOINT_DISPLAY command BREAKPOINT_ENABLE command 81 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 Note that the number of hardware break conditions differs according to the product For the number that can be spec
86. r cg seeing elie ee 28 3 5 Setting the Configuration Dialog BOX 0 elec eeeceeeceeecesecesecaecsaecsaecseesseseneeees 28 3 6 Downloading the Tutorial Program eee esc ese cee cneeceeeeeeeeeeeeeeeseeseceseceseenaeeaeeeseeees 30 3 6 1 Downloading the Tutorial Program eee eesceeeceseceecesecesecsaecaecseeeneeenes 30 3 6 2 Displaying the Source Program eeeeceseeeseceseceseceeceeeeeeeeseeseenseenseeaeenaes 31 3 7 Setting the Software Breakpoint s reiros iiser eidi erates e eane n pn E e eee NE E TERENE 33 3 8 Setting Registers r ed ie eee ae bien a ee a Se R E 34 3 9 EBX cuting the Pros rain cise c ciscsecaetiecctee sibel ac e a nema ui ageanaurewna N S 36 3 10 Reviewing Breakpoint ennnen ea E R I N EERTE 39 SA Waewing MOmOry r T E Oane oeae EE OE E E 40 3 12 Watching Variables nsen i aie a eB E A ae ee Ses 41 3 13 St pping Through a Program ccs ccocsesss cedsesgasenys toad a a ocbotwan hs Gi teu aeets ton Mis SEES 44 3 13 1 Executing Step In Commando eee eeceeseecseeceeeeeeeeeeeeeeeeeeseenseecseeeneeenes 45 3 13 2 Executing Step Out Command 000 eee ceesecseecneecaeeeneeeeeeeeeeeeeeeneenseenaes 46 3 13 3 Executing Step Over Command 000 0 eeeeceseceecreecaeeeeeeeeeeeeeesnecaeeaeesaeenes 48 3 14 Displaying Local Variables ccscoics8i oe aae E vege nse N E EE A SS 50 RENESAS 3 15 Break Punch KAI a DESE EE E E CRAB SAAN oo AA A nah A AR ee 51 3 15 1 Software Break FUNCtion cccccccssceesssceceessececsece
87. r transportation vehicular medical aerospace nuclear or undersea repeater use The prior written approval of Renesas Technology Corporation is necessary to reprint or reproduce in whole or in part these materials If these products or technologies are subject to the Japanese export control restrictions they must be exported under a license from the Japanese government and cannot be imported into a country other than the approved destination Any diversion or reexport contrary to the export control laws and regulations of Japan and or the country of destination is prohibited Please contact Renesas Technology Corporation for further details on these materials or the products contained therein tENESAS C 7 D mh on lt D D H8S 2168F E10A Emulator User s Manual OO nenesa ec tromies Rev 1 0 2003 02 Cautions 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 Products and product specifications may be subject to change without notice Confirm that you have received the latest product standards or specifications before final design purchase
88. rdware 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 Host Computer with the Card Emulator 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 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 Host Computer with the Card Emulator 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 na
89. reakpoint value set by numerical value or symbol character string When an odd address is set the address is rounded down to an even address Note The parameters for this command vary with the product For the specifications of each product refer to the on line help Examples To set a software breakpoint at address H 12c8 gt bp H 12c8 RET 106 RENESAS 5 2 6 BREAKPOINT_CLEAR BC Description Clears software breakpoints that have been set Format be lt address gt Table 5 7 BREAKPOINT_CLEAR Command Parameter Parameter Type Description lt address gt Numerical value Breakpoint value set by numerical value or symbol character string Note When no parameters are set all software breakpoints are cleared Note The parameters for this command vary with the product For the specifications of each product refer to the on line help Examples To clear all software breakpoints gt be RET To clear all software breakpoints whose address value is H 1000 gt be H 1000 RET 107 RENESAS 5 2 7 BREAKPOINT_DISPLAY BD Description Displays software breakpoints that have been set Format bd Table 5 8 BREAKPOINT_DISPLAY Command Parameter Parameter Type Description None Example To display the software breakpoints that have been set gt bd RET The display format is as follows gt bd H 00000110 Enable H 0000011c Disable H 00000250 Enable Note The items displayed with this comm
90. rectory Download the update program of COMCTL32 DLL from the Microsoft homepage for installation or update the version of Windows 95 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 Double float display at little endian operation 133 RENESAS 26 27 2 00 29 Note on Continuous Step Execution When the step is continuously executed by selecting Step from the Run menu do not use the software breakpoint because this will cause the HDI to abnormally operate 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 Processing Time for Updating 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 30 seconds und
91. rogram execution Format gp Displays emulation mode for user program execution gp lt eml_opt gt lt eml_opt gt eml_mode lt eml_mode gt Sets emulation mode for user program execution Table 5 11 GO_OPTION Command Parameter Parameter Type Description lt eml_mode gt Keyword Specifies the emulation mode Set either of the following normal Normal execution no_break Makes software breakpoints and hardware breakpoints temporarily invalid and executes the user program Note The parameters for this command vary with the product For the specifications of each product refer to the on line help Examples To display the currently set emulation mode for user program execution gt gp RET The display format is as follows gt gp Emulator execution mode Normal To set the normal emulation mode for user program execution gt gp eml_mode normal RET Note The items displayed with this command vary with the product For the display specifications of each product refer to the on line help 111 RENESAS 5 2 11 JTAG_CLOCK JCK Description Displays or sets the JTAG clock TCK frequency Format JCK Displays the JTAG clock TCK JCK lt jck_opt gt Sets the JTAG clock TCK Table 5 12 JTAG_CLOCK Command Parameter Parameter Type Description lt jck_opt gt Numerical value Sets one of the JTAG clock TCK frequency PCMCIA used 0 937 MHz 1 875 MHz 3 75 MHz 7 5 MHz or 15 MHz 1 15
92. s Figure 3 1 Start Menu For the procedure of running the HDI refer to section 2 5 System Check 26 RENESAS 3 3 HDI Window Al Hitachi Debugamng interface 0000100c 00001018 00001020 0000102c 00001034 00001042 00001072 0000107c 00001084 0000108c annanina eee sae ae ewe e Wee ry void main void long a 10 long j int i min max for i 0 i lt 10 i H j rand ifj lt Of j 7 afi j sort a min a 0 max a 9 lol x Figure 3 2 HDI Window The key functions of the HDI are described in section 4 Descriptions of Windows Numbers in figure 3 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 Program window Displays the source program being debugged 4 Status bar Displays the status of the emulator and progress information about downloading 5 Help button Activates on line help about any features of the HDI user interface 27 RENESAS 3 4 Setting up the Emulator The following MCU conditions must be set up on the emulator before downloading the program e Device type e Execution mode The following describes how to set up the emulator for the tutorial programs 3 5 Setting the Configuration Dialog Box e Select Configure Platform fr
93. s sorted in descending order 49 RENESAS 3 14 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 e Select Step In from the Run menu to execute a single step The Locals window will now show the local variables and their values Locals OF OP x Value Ox00ffftf4c j D 27289 7 B20 min D 0 max D O 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 after the execution of the sort function and confirm that random data is sorted in descending order 50 RENESAS 3 15 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 1 dialog box An overview and setting of the break function are described below 3 15 1 Software Break Function The emulator can set up to 255 software breakpoints Setting a software breakpoint is described below e Select Breakpoints
94. s that have been set e Click the Breakpoints window with the right mouse button and select Add from the pop up menu Breakpoints Enable File Line Edita Enabled Delete Delete All Go to Source Figure 3 40 Breakpoints Window Before Hardware Break Condition Setting 57 RENESAS The Break dialog box is displayed To set hardware break conditions select Condition in the Break dialog box to display the Condition page Figure 3 41 Condition Page Break Dialog Box Up to two breakpoints can be set independently for the hardware break condition In this example set the hardware break condition for Break condition 1 Note Note that the number of hardware break conditions differs according to the product For the number that can be specified for each product refer to the on line help 58 RENESAS e Highlight the first point in the Break condition list box e Click the Edit button The Break condition 1 dialog box is displayed e Clear the Don t care check box in the Address page e Select the Only program fetched address after radio button and enter H 108C as the value in the Address edit box Break condition 1 Vv UGC Care Waele fe Lowy byte Figure 3 42 condition 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 th
95. ser 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 INCLUDING WITHOUT LIMITATION THEREOF WARRANTIES AS TO MARKETA
96. sscescdasecssdesietaceastsvsscesnessstesssaksdactescsdass R ESERE EEO RSE 31 Figure 3 7 Program Window Displaying the Source Program seeseseesseeessereereerrsreerrereees 32 Figure 3 8 Program Window Setting a Software Breakpoint eseesseseesseeesssresresrsereresereresee 33 Figure 3 9 Registers Window 00 cece eeeeeeeeeceesceseeeseceseecseecaeeeaeseeeseeeeseesteesecsecasensasenesees 34 Figure 3 10 Register Dialog Box PC 0 eeeeceeescesneecsseceeneeceaeceeeeecaeceeneecsaeceeneecaeceeneeenaeeeee 34 Figure 3 11 Register Dialog Box ER7 ecceeecesscecsseceeeeeceseceeceeceaeceeeeecsaeceeeeecaeeeeeeesaeeesees 35 Fisure 3 12 G9 BUON ari a soupsaensctesh cb TASE anes EE ARE RE 36 Figure 3 13 Reset Go Button isn E E EEE EA E ee 36 vi RENESAS Figure 3 14 Figure 3 15 Figure 3 16 Figure 3 17 Figure 3 18 Figure 3 19 Figure 3 20 Figure 3 21 Figure 3 22 Figure 3 23 Figure 3 24 Figure 3 25 Figure 3 26 Figure 3 27 Figure 3 28 Figure 3 29 Figure 3 30 Figure 3 31 Figure 3 32 Figure 3 33 Figure 3 34 Figure 3 35 Figure 3 36 Figure 3 37 Figure 3 38 Figure 3 39 Figure 3 40 Figure 3 41 Figure 3 42 Figure 3 43 Figure 3 44 Figure 3 45 Figure 3 46 Figure 3 47 Figure 4 1 Figure 4 2 Figure 4 3 Figure 4 4 Figure 4 5 Figure 4 6 Figure 4 7 Figure 4 8 Figure 4 9 Program Window Break Status eeceeesceencecsseceencecenaeceereesaeceeeeeenaeccsaeeeenees 36 System Status Window
97. ssecaecnaecnaeeneeens 7 Figure 2 2 Inserting the PCMCIA Card Emulator into the Host Computer 11 Figure 2 3 Inserting the PCI Card Emulator into the Host Computer eee eee eee eee eeee 11 Figure 2 4 Connecting the User System Interface Cable to the User System eee 12 Fisure 2 5 Start Men einen aai E E E O E E T 14 Figure 2 6 Select Session Dialog BOX sesessesesssssesesreerssrerreresreeresresrssrerrsertrnesrenresrenessrereset 15 Figure 2 7 E10A Driver Details Dialog BOX ssesssessssesesseeresreessserrrssrsressesreeresrerrnserrrsresrreresre 16 Figure 2 8 System Clock Dialog BOX sesssseessereesssrssessrsreeresresrssrerrsserrensesresresesrenresrenesseerrsss 17 Figure 2 9 ID Code Dialog Box ivi scc csccssccscssisasscgcsce sucess castes chen rE koop EEE TESEI E EEEE eri 17 Figure 2 10 TADI Status Baiern niei eE EEE EEEE Sebenee E E cuse chevuna eadee uote 17 Figure 2 11 H UDI Connector Disconnected Dialog Box eee eeeeceeeceeecnseeneeeaeeees 18 Figure 2 12 Can not find RESET signal Dialog BOX 0 eeeeceseceneceeeceeecnaeeneeeneeens 18 Figure 2 13 Check the connection Dialog BOX eee ceeeseeeeeeeeeeceeceeeceseceseceseesaessaeeneeeas 19 Figure 2 14 COMMUNICATION TIMEOUT ERROR Dialog BOX 00 eee eeeeeee 19 Figure 2 15 INVALID ASERAM FIRMWARE Dialog BOX 0 eee ee ceseeeeceecneetneetneeene 19 Figure 2 16 Unable to restore the previous driver settings Dialog BOX eee eee eres 20 Figur
98. steps to reach the change function statement Hitachi Debugging interface Tutorial H8S xxxx E10A Emulator File Edit View Run Memory Setup Window Help Fel Ex a inti Sort c of Xx fa en 00001072 Break H 00001fe 0000107c ji H H 000028 RIE aos mg i 9003F U H 00003 a 00001092 i H 00004ee 2 000010a4 min a 9 Hi erroa ial 000010ac max a i H 000010b4 H 0000694 S H 0000649 KE o000010c0 sort void sort long a H 0000728 a HENNNN ea long t inti j K gap 000010d4 gap 5 3 000010dc while gap gt 0 X g 000010e0 for k 0 k lt gap k x uy g rit For Help press F1 NUM 4 Figure 3 29 Program 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 Figure 3 30 Step Over Button 48 RENESAS Al Hitachi Debugging interface 00001072 Break 0000107c 00001084 0000108c 00001092 00001098 000010ac o00010b4 000010c0 oo0010d4 000010dc 000010e0 max a 0 sot void sort long a long t int i j k gap gap 5 while gap gt 0 X for k 0 k lt gap k Figure 3 31 Program Window Step Over When the last statement of the change function is executed the data of variable a which is displayed in the Watch window i
99. te 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 or Windows XP Operating System 1 When the emulator is a PCI card 1 2 3 4 Log on with an administrator level user name Install the HDI When a component is selected be sure to select PCI Card Driver Shut the operating system down and turn off the power to the host computer Insert the PCI card emulator in a slot on the host computer Refer to section 2 3 Connecting the Host Computer with the Card Emulator 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 2 Note Log on with an administrator level user name Install the HDI When a component is selected be sure to select PC Card Driver PCMCIA Insert the PCMCIA card emulator in the host computer s slot Refer to section 2 3 Connecting the Host Computer with the Card Emulator The hardware is now recognized and the driver is automatically installed When Found New Hardware Wizard is displayed select the Search
100. tem Turn on the host computer Turn on the user system Start the HDI Reference Component list When the emulator is used first Section 2 2 Section 2 3 When the emulator is used for second Section 3 time or later 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 installation 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 or Windows Me Operating System 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 Host Computer with the Card Emulator 4 Restart the host computer The ha
101. the Microsoft Windows 98 Microsoft Windows Me Microsoft Windows NT Microsoft Windows 2000 and Microsoft Windows XP operating systems enable 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 contents 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 RENESAS 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 i
102. ts the access conditions of the data bus When lt size gt is omitted a byte size is specified Specify either of the following Ibyte lower 8 bits hbyte upper 8 bits word word size lt direction gt Keyword Read write conditions Set either of the following keywords read read cycles write write cycles Note The parameters for this command vary with the product For the specifications of each product refer to the on line help 104 RENESAS Examples To set the following conditions as a hardware breakpoint Address condition An address bus value of H 1000 Data condition A data bus value of H 55 and lower 8 bit byte access Read write cycle condition Read cycle gt bes address 1000 data 55 Ibyte direction read RET To set the following conditions as a hardware breakpoint Address condition An address bus value of H 2000 and instruction fetch cycle gt bes address 2000 pcafter RET To set the following conditions as a hardware breakpoint Address condition The lower 4 bits of H 1000 are masked Data condition A data bus value of H aa and upper 8 bit byte access gt bes address mask 100 data aa hbyte RET RENESAS 105 5 2 5 BREAKPOINT BP Description Sets software breakpoints Note The function will be different according to the MCUs used Format bp lt address gt Table 5 6 BREAKPOINT Command Parameter Parameter Type Description lt address gt Numerical value B
103. tutorial hAws 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 Notes 1 This section describes general usage examples of the emulator For each product specifications refer to section 6 or on line help 2 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 3 This program was compiled without optimization If recompiled with different settings the addresses may differ from those given in this section 4 tutorial abs is a load module in the Dwarf2 format If a load module is recreated in the Sysrof format the amount of information displayed on the HDI screen during the program s execution will be reduced 5 This section describes general usage examples for the emulator For the specifications of particular products refer to section 6 or the online help file 25 RENESAS 3 2 Running the HDI To run the HDI select HDI for E10A H8Sxxxx gt Hitachi Debugging Interface from the Start menu z Accessories Internet Explorer Favorites 42 StartUp HS MS DOS Prompt Documents YJ Windows Explorer amp HDI for E104 H8S xox Hitachi Debugging Interface Eh Setting
104. 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 14 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 15 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 131 RENESAS 16 I O Registers window Display and modification Do not change values in the I O Registers window because the emulator uses the address break controller Note that the E10A emulator does not support the display of the invalid module or bit information in the I O Registers window described in section 8 Displaying Variables in the Hitachi Debugging Interface User s Manual Verify In the I O Registers window the verify function of the input value is invalid 17 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 18 Note on Radix in the Register Dialog Box The default input radix in the Regist
105. utton can be used to set change and clear trace conditions For details refer to the Hitachi Debugging Interface User s Manual Note The Halt menu in the pop up menu is active only when the Trace window is open during user program execution Realtime emulation cannot be performed by using the Halt menu Related Item TRACE_DISPLAY command RENESAS 93 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 2 5 xi Item Status fonnected to H8s xxxx ELOA Emulator E10A PCI Card Driver5 CPU H8 S XXXX Run status Break Cause of last break BREAK CONDITION 1 Run time count 0000h00min00 s000ms Emulator mode Normal Big endian M Session Platform A Memory Events fo Figure 4 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 on line help 94 RENESAS Description The items listed in the following table are displayed in the System Status window Table 4 18 System Status Window Display Items Page Item Session Target System Description Displays whether the emulator is connected Session Name Displays the session file name Program Name Displays the load module file name Platform Connected To Displays the name of the conne
106. v RENESAS Section 6 H8S 2168F E10A Emulator Specifications 0 0 0 0 ceeeeeeeeeeeeeeeeeeteees 119 6 1 Components of the Emulator eee seseris i i ree ese rnr t resipi 119 6 2 Pin Arrangement of the Hitachi UDI Port Connector sssesssseesesreesesrsereerserrersserrreresreee 120 6 3 Example of Emulator Connection s s sserssssisstsiiseeitisississesessseserrssriss oisives Seso rs kieres seset 121 6 4 Differences between the H8S 2168F and the Emulator sssssssesessssseesseeesereessseresssssesseee 125 6 5 The H8S 2168F E10A Emulator FUunctions ccccccccsccecesssceceessececseeececseeeeeeessseeecneaaees 126 6 5 1 Emulator Driver Selection ccccccccccsssceceesceceessececeseaececseeaececsneeecseneeecsseeeeeees 126 6 5 2 Hardware Break Functions ccccccessssceceecececseececeeaeeeceseeeececsneeecseueeecseneeenees 126 6 5 3 Notes on Setting the Breakpoint Dialog Box ee eee eeecesecneeceeeeeeene 128 6 5 4 Note on Using the JTAG Clock TCK ou eee cesceeneeceseceeeeecnseeceeeeeenaeceeneeenaeens 128 6 3 3 Trace PUnction ice cde ee oe ee ati 128 0 5 6 Notes on HDI 250 02 seria etic Seis sts ere tite Leet hh sets A ee 129 RENESAS Figures Figure 1 1 System Configuration with the Emulator PCMCIA Card Emulator Used 1 Figure 1 2 System Configuration with the Emulator PCI Card Emulator Used 2 Figure 2 1 Emulator Preparation Flow Chart cece ceecsecseseeceeeeeseceesensecesec
107. ver be careful when accessing the system control register The emulator saves the register value of the system control register at a break and returns the value when the user program is executed Since this is done during a break do not rewrite the system control register in the I O Registers window 3 Memory Access during Emulation If the memory contents are referenced or modified during emulation realtime emulation cannot be performed because the user program is temporarily halted 4 The emulator communicates with the H8S 2168F by using the RES ETRST ETCK ETMS ETDO and ETDI pins These pins cannot be used 5 The power consumed by the MCU can reach several mA This is because the user power supply drives one HD74LV125A to make the communication signal level match the user system power supply voltage 125 RENESAS 6 5 The H8S 2168F E10A Emulator Functions Notes 1 Do not use an MCU that has been used for debugging nor that has been written to the flash memory in the E10A 2 Ifthe flash memory is rewritten many times and the emulator is left for a few days data may be lost due to retention problems 3 Ifthe flash memory is rewritten many times the data will not be erased If an error message is displayed exchange the MCU for a new one 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 HS21
108. w Step Even standard C libraries are executed To return to a higher level function enter Step Out In a 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 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 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 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 129 RENESAS Example The function name is main main Array display When array elements exceed 1000 elements from after 1
109. w e Click the Reset Go button The program runs and stops at the set breakpoint 00001072 o000107c min a 0 00001084 max a 9 0000108c i i 00001092 00001098 000010ac max a 0 000010b4 000010c0 _sort void sort long a long t int i j k gap 000010d4 gap 000010dc het a gt 0 000010e0 fori k 0 k lt gap k Figure 3 38 Program Window at Execution Stop Software Break RENESAS 55 The System Status window displays the following contents System Status Item Status fonnected to H8s xxxx ELOA Emulator E10A PCI Card Driver5 CPU H8 S XXXX Run status Break Cause of last break BREAK CONDITION 1 Run time count 0000h00min00 s000ms Emulator mode Normal Big endian M 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 on line help 56 RENESAS 3 16 Hardware Break Function A method is given below in which the address bus condition and the read cycles for the state 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 breakpoint
110. w Display Items ee ee cece cese esse cece cseecaeeeaeeeeeeseeseeeeseenseecsaeaee 93 System Status Window Display Items ee cee ceseceeceeeceecneeeeeeeseeneenseenaee 95 E10A HDL Commands siiin e n a a e ea e Ri a KEE wend 99 BREAKCONDITION_CLEAR Command Parameter eseeeeeeeeeeeeeeseseseseseseereeeesssee 100 BREAKCONDITION_DISPLAY Command Parametet c c cssessesesseeeseeeees 101 BREAKCONDITION_ENABLE Command Parameter c c ccssesssseseesseeseseeees 102 BREAKCONDITION_SET Command Parameters c ccecesssessssssssssssssssseteeees 104 BREAKPOINT Command Parameter ccceeccesssseceeeeeesseceeeeecaeceeneeeaeceeneeenneeeees 106 BREAKPOINT _CLEAR Command Parameter cccccssssssssssscsesssssssssessessseseeees 107 BREAKPOINT_DISPLAY Command Parameter ccccecssssesssssssssssssssssssereees 108 BREAKPOINT_ENABLE Command Parametetr 0 00cccccccscsssssssesssssssssssssssreeees 109 DEVICE_TYPE Command Parameter 00cccccccccscscscecsssessssssstssscsssssssssssssreessees 110 GO_OPTION Command Parameter 000cccccccccccscscscececeeeeseeeseeeseeeseseesseseseeeesseees 111 JTAG_CLOCK Command Parameter cc c0cscsesssssssssssssseseseseseseseseseseeeeeseeeeees 112 REFRESH Command Parameter ceeccesssecesececsseceeneecsseceeneecaeceeeeeeneeceeeeeenaeees 114 RESET Command Parametet ccceescesccecsseceeceecsseceseeceeneeceseeeeneecseee
111. xxx 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 Supplementary Informations e Hitachi Debugging Interface User s Manual HS6400DITW5SE e H8S H8 300 Series C C Compiler Assembler Optimizing Linkage Editor User s Manual e Hardware Manual for each MCU e Programming Manual for each MCU Notes 1 IBM PC is a registered trademark of International Business Machines Corporation Microsoft Windows and Windows NT are registered trademarks of Microsoft Corporation in the United States and or other countries 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 NT operating system is referred to as Windows NT in this user s manual Microsoft Windows 2000 operating system is referred to as Windows 2000 in this user s manual Microsoft Windows XP operating system is referred to as Windows XP in this user s manual RENESAS Contents Section 1 QMERVIC WY yids se sise sais
Download Pdf Manuals
Related Search
Related Contents
Samsung F110 2" 80g 2006 Treadmill Service Manual 平成27年5月行事予定表 Instructions d`installation SERIN™ 2064.401 Model: HRT1 USER'S MANUAL - Conflow Technologies Inc Copyright © All rights reserved.
Failed to retrieve file