Home
Super H Family E6000 Emulator Users Manual HS7000EPI60HE
Contents
1. Status Register E6000 Emulator MCU Power on and reset PC Reset vector value Reset vector value command RO to R14 H 00000000 Undefined R15 SP Reset vector value Reset vector value SR H 000000F0 10 to I3 bits are 1 10 to I3 bits are 1 Reserved bit is 0 Others are undefined PR H 00000000 Undefined VBR H 00000000 H 00000000 GBR H 00000000 Undefined MACH H 00000000 Undefined MACL H 00000000 Undefined Others Value before reset Undefined Please refer to the supplied supplementary information for details of the protection circuit used on the I O ports of the E6000 emulator 3 5 1 A D Converter and D A Converter Due to the use of a user system interface cable there is a slight degradation in the A D and D A conversion than that quoted in the Hardware Manual for the MCU being emulated 40 RENESAS Section 4 Tutorial The following describes a sample debugging session designed to introduce the main features of the E6000 emulator used in conjunction with the HDI software Therefore the SIMM memory module must be installed in the E6000 emulator The tutorial is designed to run in the E6000 emulator s resident memory so that it can be used without connecting the E6000 emulator to a user system The tutorial assumes that the SH7010 E6000 is used When using another type of E6000 emulator change the file and directory names to your target ones 4 1 Introduction The tutorial is based on a simple C program Before reading
2. SB7 128KB SB9 128KB SB10 128kB SB11 128kB SB12 128kB SB14 128kB SB15 128kB LB13 4MB LB14 4MB H 01BFFFFF H 01C00000 l LB15 4MB H 01FFFFFF Figure 4 6 Memory Block in Extended Mode with ROM e Do not modify memory allocation in the Emulator Configuration Dialog Box e Click OK to close the dialog box The device type operating mode and memory map settings have completed 49 RENESAS 4 4 Downloading the Tutorial Program After the E6000 emulator is set up you can download the object program you want to debug 4 4 1 Loading the Object File First load the Sysrof format object file as follows e Choose Load Program from the File menu or click the Load Program button in the toolbar e Select the file tutorial abs inthe tutorial directory and click OK Load Object File Look in E Tutorial z El cl ie e Tutorial abs File name fr utorial abs Files of type Sysrof or ELF D WARF Files abs 7 Cancel Offset Space fo Memory r Source File Path Old Path et Replace Path Figure 4 7 Load Object File Dialog Box e The file tutorial abs is created only when the HDI is installed in the default directory If the HDI is installed in another directory the file tut orial abs is created when the file tutorial bat is executed Modify tutorial
3. 0000033c startmtu 00000340 sleep Figure 4 24 Program Window after Executing the Step Over Command 66 RENESAS 4 7 3 Displaying Local Variables You can display local variables of a function using the Local Variables window For example we will examine the local variables in the function startCMTimer e Choose Step In from the Run menu to start executing the function st art CMTimer or click the Step In button in the toolbar one time v a torial c Iof x Tu A int xic 4s int CK 2 b WORD w CompareMatchTimerRegister CompareMatchTimerRegister CR 000003fe CR w 0 00000402 CR b IE 0000040c CR b CK ANAANALS HORMONA 4 Figure 4 25 Program Window after Executing the Step In Command 4 e Open the Locals window by choosing Local Variable Window from the View menu Initially the Locals window will not show correct values because the local variables declarations have not yet been executed e Choose Step In from the Run menu or click the Step In button in the toolbar to perform step execution one time ry 67 RENESAS The Locals window will now show the local variables and their values Locals Figure 4 26 Displaying Local Variables e Double click the symbol to the left of the variable CR in the Locals window to display the individual elements of the array CR Locals Ox 4 Oxfffffff4 D O Figure 4 27 Displaying Local Variables Elements in an Array e Choo
4. 2 4 Installing the HDI Software This section describes how to install the HDI software by using the SH7010 E6000 for example For another type of E6000 emulator change the file and directory names to the target ones 2 4 1 HDI Installation Procedure e Start the host computer e Close all other applications that are running e Insert HDI installation disk 1 into the floppy disk drive of the host computer e Choose Run from the Start menu e Type A setup exe and click OK L Lx Type the name of a program folder or document and Windows will open it for you Open Ja setup exe x Cancel Browse Figure 2 4 Run Dialog Box This runs the HDI installer and the following Welcome dialog box will be displayed This program will install the Hitachi Debugging Interface for E6000 onto your computer Press the OK button to start the installation You can press the Cancel button if you do not want to install this software Cancel Figure 2 5 HDI Installer Welcome Dialog Box e Click OK to proceed with the installation 14 RENESAS The following dialog box displays the Read Me file for the version of the HDI you are installing Figure 2 6 Read Me Dialog Box e Read the Read Me file for any important information concerning the installation and then click OK to proceed 15 RENESAS The following dialog box then allows you to select a directory in which to install HDI Select Desti
5. Table 1 1 Emulation Memory Type High speed emulation memory Low speed emulation memory HS6000EMS21H 128 kbyte x 4 area 512 kbyte x 4 area HS6000EMS22H 512 kbyte x 12 area The definition of each type of memory is as follows Table 1 2 Memory Types Memory Type Description On chip Uses the MCU on chip memory Target Accesses the user system memory Emulator Accesses the E6000 emulator SIMM memory module 4 RENESAS The contents of a specified block of memory can be displayed using the Memory Window function The contents of memory can be modified at any time even during program execution and the results are immediately reflected in all other appropriate windows Note that the time taken to modify memory contents during program execution may differ depending on the settings but approximately has the following time requirements 1 MCU on chip or ROM or emulator SIMM memory module The E6000 emulator modifies the memory contents by temporarily switching the memory bus to the emulator side without stopping the user program execution For both memory read and memory write accesses the HDI stores a maximum of 256 bytes of memory contents in the buffer Therefore the emulator uses the memory bus for up to 80 us 25 MHz on chip ROM 2 MCU on chip RAM or I O user system memory The E6000 emulator stops the user program execution then modifies the memory contents As stated above a maximum of 256 bytes of memory
6. This manual assumes the operating environment to be the English version of Microsoft Windows 98 operating system ii RENESAS Contents Section 1 Introd ctO necesse eele secede a D eeeaes 1 I1 Debugeing Features sci ivecs ceases chs heh ch eave cee cae eee 1 1 1 1 Break pOints ccdscescecssnss decacastecesuesvasdavesetessenbocetsenssceeduansedieesvdnstusbniedoensveecdeeseaenss 1 VAD Traces csk ives e T lees aed aa nies ea 1 1 1 3 Execution Time Measurements cece eeseeesecscecseeceeeeeeeeeeeeeeeeeeseeeseseaeenaeenaes 2 1 1 4 Performance Analysis 00 eeceeescesececsseceencecseceeeeecaeceneecsaeceeeeecsaeceeneecsaeeeaeecsas 2 1 2 Complex Event System CES ireccio eneeier paea e ea a R oneg R E iki 2 12 1 Event Channels sii icesa si iisedtiat dents e E RE 2 1 2 2 Range Channels ciccss5sscsecisgcnesthanes os roo ee e iE a R ea sens 3 t23 Breaksciiiieteeiiiadiiewiar E E ieee E EE 3 124 MINE nenn aa a a E E a aeaa ATTE OR ES iS 3 V3 Hardware Features mitem casters oaeee re are Ee VEEE E EEE AEE EE ER E AEE EER EEES ra SE 4 t31 IMIR Y ioc scsdecssesiezsdetenceencssebiaci ocetdiaes Hessladienssaaveas EEE E E EET 4 1 3 2 Clocks resio in e EEEE doves EE RSE EEEE E ECEE TEE E E 5 33 PROD CS signi sa ccoscinsctieei st coutvcatectivane oilbiel iaeyatesapvecbeiivonnsctentesgssaneobocuaneesseaneveye cyan es 5 1 3 4 Environment Conditions 0 eee eeeeeseceseceseceeecaeeceeeeeeeeeeeeseaeeeeseeeseeseaeensesnaees 6 1 3 5 E
7. Figure 2 18 Select Uninstall Method Dialog Box e To automatically uninstall the HDI select the Automatic radio button and click Next e To select the files to delete select Custom and click Next e To cancel uninstallation click Cancel 24 RENESAS When backup files were made at installation the dialog box to confirm whether to roll back the backup files will be displayed Uninstall Hitachi Debugging Interface for E6000 SH Perform Rollback You selected to backup files that were replaced during the installation Selecting a rollback will return your computer to the state it was before the last installation or upgrade of this software by restoring any backed up files You should only perform a rollback if no other applications have been installed after the installation for this software Only the last installation or upgrade will be removed C Yes f No Cancel Figure 2 19 Perform Rollback Dialog Box e To perform rollback select the Yes radio button and click Next e To not perform rollback select the No radio button and click Next e To cancel uninstallation click Cancel e To go back to the Select Uninstall Method dialog box click Back Notes 1 By performing rollback the backup files are restored 2 If no backup files have been made or if no backup files are found the Perform Rollback dialog box will not be displayed 25 RENESAS e The dialog box to confirm whether to start uninstallation
8. Find Filter snapshot Halt Clear Find Next Acquisition Restart Save Figure 4 32 Trace Window e If necessary adjust the width of each column by dragging the column dividers on either side of the labels just below the title bar In cycle 00003 you can see that address H 3c4 has been accessed 73 RENESAS 4 9 2 Setting a Trace Filter Currently the Trace window shows all the MCU cycles e Click Filter to display the Trace Filter dialog box Trace Filter x General Bus Area Signals Ippe Address Cycle C DontCare Address Range Pattern IF Search Address Lo H 364 temtop Address Hi H3ef 0 Ly Je lmao ie a T Outside Range m Data Compare r Direction l Compare M Use Hest Value fr Byte C Word C Long Write Read Either Cancel Figure 4 33 General Panel in Trace Filter Dialog Box This allows you to define a filter to restrict which cycles are displayed in the trace buffer e If necessary click General to show the General panel e Select Pattern in the Type section e Inthe Address section click Range and type H 364 in the Address Lo field and H 3e2 in the Address Hi field e Click Bus Area to display the Bus Area panel e Set Bus State to Instruction Fetch 74 RENESAS Trace Filter General Bus Area Signals Bus State Vi Data Ca i Fill DMA m Atea Gh Chip ROM in GA
9. 128kB SB14 128kB SB15 128kB Figure 4 5 Memory Block in Extended Mode without ROM 48 RENESAS H 00000000 hip On chi H 0001FFFF ROM __ 128kB H 00020000 H 00200000 Reserved nee T H OO1FFFFF _ 2MB 128kB ___ H 0021FFFF H 00200000 H 00220000 H 0023FFFF CS0 2MB H 00240000 H 003FFFFF 7 O i o HO025FFFF H 00400000 H 00260000 H 004FFFFF H 0027FFFF CS1 4MB H 00500000 H 00280000 H OO7FFFFF H OO5FFFFF H 0029FFFF H 00800000 H 00600000 H 002A0000 N H 006FFFFF H 002BFFFF CS2 4MB H 00700000 H 002C0000 H OOBFFFFF H 007FFFFF H 002DFFFF H 00C00000 H 00800000 H 002E0000 cs3 4p H OO8FFFFF H 002FFFFF H 00900000 H 00300000 i SB8 128kB H OOFFFFFF H QO9FFFFF H 0031FFFF H 01000000 K H 00A00000 H 00320000 H IOOAFFFFF H 0033FFFF DRAM 16MB H 00B00000 H 00340000 H 01FFFFFF H 0035FFFF H 02000000 H 00C00000 H 00360000 H 0037FFFF H 00380000 H 0ODFFFFF H 0039F FFF H 00E00000 i H OOBAO000 Ta Giana Reserved H 003BFFFF H 003C0000 H 003DFFFF H 01000000 H 003E0000 H FFFF7FFF _H 003FFFFF H FFFF8000 On chip O H FFFFBFFF 16KB H 013FFFFF H FFFF H 014 copo Reserved 12kB 01400000 H FFFFEFFF H FFFFF000 On chip RAM H FFFFFFFF 4kB SBO 128kB SB1 128KB SB2 128KB SB3 128KB SB4 128KB SB5 128KB SB6 128KB
10. HDI Win OW ives csccsesscsseessees capeceesehsabeanetenstabe sohsennssvhsvasebsasuenevase vend beabesesccesbseadebsesenenees 43 Figure 4 3 Emulator Configuration Dialog Box General 00 cece eeceeeeeeeeeeeeeeeeeeeeeeeeeeeeaees 45 Figure 4 4 Emulator Configuration Dialog Box Memory Map ccecesseeseeeseeeeeseeeneeenes 46 Figure 4 5 Memory Block in Extended Mode without ROM 0 000 eee ceeceeeeeeeeseceseensecseeeeeenes 48 Figure 4 6 Memory Block in Extended Mode with ROM 0000 ee eceeceeseeseceseeeeeeseensesseeeeeeaes 49 Figure 4 7 Load Object File Dialog BOX oo eceecceeceseceseceseceaecaaecaeecaeeeaeseaeseeeeeeeeerenetens 50 Figure 4 8 HDI Information Message BOX 0 c cece eseeeeeeeeeeeeeeseeeecesecesecaecaecsaecaaeeaeeeneeees 51 Figure 4 9 Open Dialog BOX sece escssecssessoecsseconvenesonsvonseossessessesssensessonensecnaesonseseesnareneeees 52 Figure 4 10 Tutorial Program WindoW eesssesssseesssreessstrreerrsrreresrerrnstntesresrrntesrerrnsenreeresrreesre 53 Figure 4 11 Setting a Break point csccsssccsscacscascedessssetecoresteved canned cuscadesossebscdeuctendbonsvencosastagessebuns 54 Figure 4 12 Program Break 5 5 cc cvsccssosiebcscsites soscutueacesanvanssausvonsssenesatesaeecsseahvenbsobsnbessdunrevecuunt 55 Figure 4 13 System Status Window cece cescesecse cece ceeeceeeeeeeeeeeeeeeeeeeeeseeaeeaessaessaesaaeeaeeeas 56 Figure 4 04 Registers Window s eiiteissctvacesekbectveesssisecesd cutee sob setucesbeuuncesss
11. Emulator File Edit View Run Setup Tools Window Help ole e cal ar lA yen es oe eE P Figure 2 16 HDI Window 2 5 What Next The E6000 emulator is now correctly set up and ready for use We recommend you work through section 4 Tutorial to familiarize yourself with the key features of the E6000 emulator and to learn how to use the E6000 emulator to develop and debug programs for the MCU 22 RENESAS 2 6 Uninstalling the HDI Software This section describes how to uninstall the HDI software on Windows 95 or Windows 98 for example e Select Uninstall HDI for E6000 SH7010 from the Start menu J Accessories gt FA lntemet Explorer gt k 24HD for E6000 SH7010 ae Favorites StartUp A SF Uninstall HDI for E6000 SH7010 N Documents p MS DOS Prompt 2 Windows Explorer Eh Settings Figure 2 17 Start Menu Uninstaller 23 RENESAS The uninstaller is initiated and the following dialog box will be displayed Uninstall Hitachi Debugging Interface for E6000 SH Select Uninstall Method Welcome to the Hitachi Debugging Interface for E6000 SH uninstall program You can choose to automatically uninstall this software or to choose exactly which changes are made to your system Select the Custom button to select which modifications are to be made during the uninstall Select the Automatic button for the default uninstall options Press the Next button to continue f Automatic C Custom
12. No license is granted by implication or otherwise under any patents or other rights of any third party or Renesas Figures Some figures in this user s manual may show items different from your actual system Limited Anticipation of Danger Renesas cannot anticipate every possible circumstance that might involve a potential hazard The warnings in this user s manual and on the E6000 emulator are therefore not all inclusive Therefore you must use the E6000 emulator safely at your own risk RENESAS SAFETY PAGE READ FIRST READ this user s manual before using this E6000 emulator KEEP the user s manual handy for future reference Do not attempt to use the E6000 emulator until you fully understand its mechanism DEFINITION OF SIGNAL WORDS gt This is the safety alert symbol It is used to alert you to potential personal injury hazards Obey all safety messages that follow this symbol to avoid possible injury or death A DANGER DANGER indicates an imminently hazardous situation which if not avoided will result in death or serious injury A WARNING WARNING indicates a potentially hazardous situation which if not avoided could result in death or serious injury A CAUTION CAUTION indicates a 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
13. OOFFFFFF H 01000000 H 01FFFFFF H 02000000 Reserved 4GB 32kB H FFFF7FFF H FFFF8000 On chip I O H FFFFBFFF 16kB H FFFFC000 Reserved 10kB H FFFFE7FF H FFFFE800 On chip RAM H FFFFFFFF 1 1 1 1 16MB l 1 1 1 1 i 1 H d0200000 H 002FFFFF H 00300000 H 003FFFFF H 00400000 H OO4FFFFF H 00500000 H OOSFFFFF H 00600000 H OO6FFFFF H 00700000 H 007FFFFF H 00800000 H 008FFFFF H 00900000 H 009FFFFF H 00A00000 H OOAFFFFF H 00B00000 H 00C00000 H OODFFFFF H 00E00000 HOOFFFFFF H 01000000 H 013FFFFF H 01400000 H 017FFFFF H 01800000 H 01BFFFFF H 01C00000 H O1FFFFFF H 00000000 H 0001FFFF H 00020000 H 0003FFFF H 00040000 H 0005FFFF H 00060000 H 0007FFFF H 00080000 H 0009FFFF H 000A0000 H OOOBFFFF H 000C0000 H QOODFFFF H 000E0000 H Q00FFFFF H 00100000 H 0011FFFF H 00120000 H 0013FFFF H 00140000 H 0015FFFF H 00160000 H 0017FFFF H 00180000 H 0019FFFF H 001A0000 H 001BFFFF H 001C0000 H 001DFFFF H 001E0000 H 001FFFFF SBO 128kB SB1 128kB SB2 128kB SB3 128kB SB4 SB5 SB6 SB7 SB8 amp 128kB 128kB 128kB 128kB 128kB SB9 128kB SB10 128kB SB11 128kB B12 128kB B13
14. SLEEP General Delays command execution STEP ST General Performs single step execution in instruction unit or source line unit STEP_OUT SP General Step out of the current function STEP_OVER SO General Performs step over execution STEP_RATE SR General Set rate for multiple steps RENESAS 83 Table A 1 Command List cont Abbrevia Command Command Name tion Type Description SUBMIT SU General Executes an emulator command file SYMBOL_ADD SA General Adds a symbol SYMBOL_CLEAR SC General Deletes a symbol SYMBOL_LOAD SL General Loads a symbol information file SYMBOL_SAVE SS General Saves a symbol information file SYMBOL_VIEW SV General Displays a symbol TEST_EMULATOR TE Specific Tests the E6000 emulator hardware TIMER TI Specific Sets or displays the timer minimum measurement unit for execution time measurement TRACE TR General Displays trace data TRACE_ACQUISITION TA Specific Sets or displays trace acquisition information TRACE_COMPARE TC Specific Compares trace data TRACE_SAVE TV Specific Saves trace data TRACE_SEARCH TS Specific Searches for trace data USER_SIGNALS US Specific Enables or disables user signals 84 RENESAS SuperH Family E6000 Emulator User s Manual Publication Date Rev 2 00 June 26 2003 Published by Sales Strategic Planning Div Renesas Technology Corp Edited by Technical Documentation amp Information Department Renesas Kodaira Semiconducto
15. Trace is followed by TrStop trace will not resume even after Trace appears Blank Break Timer gt Timer gt Trace Trace gt TrStop gt Blank gt 4 5 2 Executing the Program To run the program from the address pointed to by the reset vector e Choose Go Reset from the Run menu or click the Go Reset button in the toolbar m 54 RENESAS The program will be executed up to the PC break you inserted and the statement will be highlighted in the program window to show that the program has halted Se tutorial c Jol x Code 00000318 mask_set MemToMemDMAO LONG J amp Name DestinationAddress Count BurstMode 0000031c Size 0000033a sleep 0000033c startmtu ANA AG clean fi Na 4 Figure 4 12 Program Break The message Break PC Break is displayed in the status bar to show the cause of the break You can also see the cause of the last break in the System Status window e Choose Status Window from the View menu or click the Status Window button in the toolbar 55 RENESAS System Status Connecte C Hdi_7010 Tutorial Tutorial hds c Hdi_7010 Tutorial Tutorial abs eae SH7016 7017 Emulator Emulator ISA Driver Brea SH7017 node 2 ROM Enabled Rate 10MHz Multiplier 1 Divisor 1 10 00MH2 OH 0M 0S 47 375uS OH 0M 0S5 0 000uS PC Break OK Inactive Inactive Not Connected 00000000 0001FFFF FFFFFOOO FFFFFFFF 64K trace V1 SH7O010 VO emory board 6 5 Mb Eva
16. View System Resources e Add Unlisted Card with Configure Add Card Others e Click No in the dialog box displayed because there is no CFG file e Move to the Memory hex list box in the Configure Unlisted Card dialog box e Click the Add Memory button to display the Specify Memory dialog box e Enter a memory area range that is not used by any other device and that corresponds to one of the PC interface board switch settings e Save the file e Exit the current setup program e Shut down the host computer do not restart it and turn off the power switch e Using a small screwdriver rotate the switch in the rear panel of the PC interface board so that the arrow points to the number corresponding to the memory area you have selected e Remove the cover from the host computer and install the PC interface board in a spare ISA slot e Replace the host computer cover e Connect the PC interface cable between the PC interface board and the PC IF connector on the E6000 emulator Press each plug firmly home until it clicks into position e Switch on the host computer Starting WindowsNT in the Administrator Mode e Install the HDI Software as described in section 2 4 Installing the HDI Software e Execute Start Programs Hdi Setup ISA bus Board If the DOS prompt window does not open open the DOS prompt window first move to the directory where the HDI has been installed then execute SETUPISA EXE 13 RENESAS
17. a total system before making a final decision on the applicability of the information and products Renesas Technology Corporation assumes no responsibility for any damage liability or other loss resulting from the information contained herein Renesas Technology Corporation semiconductors are not designed or manufactured for use in a device or system that is used under circumstances in which human life is potentially at stake Please contact Renesas Technology Corporation or an authorized Renesas Technology Corporation product distributor when considering the use of a product contained herein for any specific purposes such as apparatus or systems for 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 IMPORTANT INFORMATION READ FIRST e READ this user s manual before using this E6000 emulator
18. cable is not correctly connected between the PC interface board and the E6000 emulator 2 7 2 Communication Problems The following message box indicates that the HDI was not able to set up the E6000 emulator correctly E6000 Platform N Driver Error Cannot locate ISA interface card Unable to restore previous configuration for E6000 ISA Driver Will attempt to set default values instead Figure 2 22 Communication Problem Message 27 RENESAS This indicates e The memory area reserved in the CONFIG SYS file does not match the interface switch setting on the rear panel of the PC interface board e Selected area of memory is in use by another application 28 RENESAS Section 3 Hardware This section explains how to connect the E6000 emulator to a user system 3 1 Connecting to the User System To connect the E6000 emulator to a user system proceed as follows e Connect the user system interface cable head to the user system e Plug the cable body into the E6000 emulator e Plug the cable body into the cable head For details of these steps refer to the User System Interface Cable User s Manual Figure 3 1 gives details of the connectors provided on the E6000 emulator PC interface board connector User system interface cable connector Power connector External probe _ Ep On off switch connectors Case screw Case screw Figure 3 1 E6000 Emulator Connectors 29 RENESAS 3 1 1 Exam
19. cee ceee esse csseeseceaeceecaeesaeeeeeeeeeee 37 34 5 Voltage Follower Circuit ccccscctessssecscssnsceativassenevonsrstecsiseipacnensbentennssenstasesentetenss 38 3 5 Differences between MCU and E6000 Emulator ee eee cess cese esse cnet eeeeeaeeeseeeeeeeeees 40 3 5 1 A D Converter and D A Converter 00 cece ceecseeeeeeeeeeeeeeeeeeeeesesaesaesaaeeaeeeae 40 MOCHIOU SA MMR All s sesesscuc ears jacddetaensensvwesacs easirancassseatenuiuns adsasaseseesaseancunnsanivemusees 41 AT Introduction eranen E E E E E E A eet eee 41 42 Sarane HDI serep on anaa ea E EEE ELIPA EEE E E AES RE 42 4 2 1 Selecting the Target Platform eessssesseseesesreessseseersreerrsrerrsserrrsesreeeseeereseeeeses 42 4 3 Setting up the E6000 Emulator oe eee ceeeeceeeceeeeeseceseceaecaecsaecsaecaaecaeeeaeseaeseeeeeseas 44 4 3 1 Configuring the Platform 0 eee cee cee cseeceeeeeeeeeeeeeeeeeeeeeeeseeaecsaecaesnaeeaeeeaes 44 4 3 2 Mapping the Memoty x svessccsiccsis coseessecsous ses c2sesces ost deoo niere aeea paoia conseesees 46 44 Downloading the Tutorial Program 0 cece eeceecesecesecesecsecseecaeecaeeeaeeeeeeeeeeeeeeereeatens 50 44 1 Loading the Object Piles sccccssvciccscoiteecitienedscesicessesieuescosviteecssaivectsebidensestevecees 50 4 4 2 Displaying the Program Listing 0 0 0 eee eee eee ceeeceeeceseceaeceaecaeceecaeeeaeeeneeees 52 45 Using Breakpoints isinir naire rE EEE EEEE EEE E EEEa 53 4 5 1 Setting a PC Break senisesse e riera aei E Ee
20. supplementary information supplied together with the E6000 emulator 34 RENESAS General Ports O User system interface cable Figure 3 6 User System Interface Circuit for General Ports Mode Pins MD3 MD2 MD1 and MD0 WAIT NMI and STBY The WAIT and NMI signals are input to the MCU through the emulator control circuit The rising falling time of these signals must be 8 ns V or less The STBY signal and mode pins are only monitored The CPU mode depends on the HDI settings Emulator control O User system circuit interface cable Figure 3 7 User System Interface Circuit for MD2 MD1 MD0 WAIT NMI and STBY RES Emulator control O User system circuit interface cable Figure 3 8 User System Interface Circuit for RESET 35 RENESAS Analog Port Control Signals O Analog User system I O port interface cable User system interface cable Figure 3 9 User System Interface Circuit for Analog Port Control Signals IRQO IRQ7 The IRQO to IRQ7 signals are input to the MCU and also to the trace acquiring circuit Therefore the rising and falling time of these signals must be within 8 ns v or shorter O User system interface cable User system interface cable connected by cable head Trace Emulator buffer control circuit Figure 3 10 IRQO0 IRQ7 User System Interface Circuit 36 RENESAS 3 4 3 Clock Oscillator Figure 3 11 shows the oscillator circuit example that has been implemented on the
21. the main program but you can scroll through the program with the scroll bars to see the definitions and include statements 4 5 Using Breakpoints The simplest debugging aid is the PC break which lets you halt execution when a particular point in the program is reached You can then examine the state of the MCU and memory at that point in the program 4 5 1 Setting a PC Break The program window provides a very simple way of setting a PC break For example set a PC break at address H 336 as follows e Double click in the Break column on the line containing address H 336 53 RENESAS ge orial c O x tut A Code void maing 00000318 mask_set MemToMemDMAO LONG QName DestinationAddress Count BurstMode Size 0000033a sleep 0000033c startmtu 00000340 sleep 00000342 for f 00000346 watchDogTimer_RUN 0000034a sleep Figure 4 11 Setting a Breakpoint The word Break will be displayed there to show that a PC break is set at that address Although not performed in this tutorial double clicking repeatedly in the Break column can change the display in the cyclic order shown below to set the event for measuring the execution time between events Timer start time measurement Timer stop time measurement point to point trace Trace start trace Trace temporarily stop trace or trace stop TrStop stop trace When Trace is followed by Trace trace is resumed However when
22. 0EMS22H 512 kbyte x 12 area 3 3 1 Optional SIMM Memory Module Configuration The configuration of the optional SIMM memory module is controlled by the mapping RAM Opening the Memory Map dialog box allows you to check which optional SIMM memory module if any is installed 3 4 Hardware Interface All signals are directly connected to the MCU in the E6000 emulator with no buffering with the exception of those listed in the Supplementary Information 3 4 1 Signal Protection on the E6000 Emulator All signals are over under voltage protected by use of diode arrays The only exceptions being the AV c and Vref All ports have pull up resistors except for analog port All V pins on the cable head assembly are connected together with the exception of the AV pin and are then monitored by the E6000 emulator to detect powered user system hardware presence 33 RENESAS 3 4 2 User System Interface Circuits The interface circuit between the MCU in the E6000 emulator and the user system has a signal delay of about 8 ns due to the user system interface cable and it includes pull up resistors Therefore high impedance signals will be pulled up to the high level When connecting the E6000 emulator to a user system adjust the user system hardware to compensate for propagation delays The following diagrams show the equivalent circuit examples of the interface signals The interface circuits depend on the MCU type For details refer to the
23. 3d0 DMATCRO Count 000003d6 CHCRO CR 1 000003dc DMAOR Ox0001 000003e2 typedef union struct _ Break Eventchannel OOOO O NM Figure 4 31 Stopping the Program by a Breakpoint The status bar will display Break Event channel 1 to indicate that the break was caused by satisfaction of the event condition 72 RENESAS 4 9 Using the Trace Buffer The trace buffer allows you to look back over previous MCU cycles to see exactly what the MCU was doing prior to a specified event 4 9 1 Displaying the Trace Buffer You can specify the address accessed by the program to use the trace buffer to look back to see what accesses took place e Open the Trace window by choosing Trace Window from the View menu or click the Trace Window button in the toolbar If necessary scroll the window down so that you can see the last few cycles The Trace window is displayed as shown in figure 4 32 Data R W Area Status Clock Probes Irq 1111 1111 11 JAIL Atil 11 1111 1111 11 1111 11 1111 11 Ba Ba Po 1111 11 1111 11 1111 11 1111 11 1111 11 1111 11 1ill 11 b IE 1 000003b0 62f37203 Prog ffffffd8 00001b02 Data 000003b4 6020cb04 Prog 000003b8 220063f3 Prog fftfffdt 20 Data 000003bc 73036030 Prog ffffffdf 24 Data 000003c0 cb012300 Prog ffffffdf 24 Data 9112 Prog d Data BRE BReRRBRHHH 02 00001 000003c i 212253f3 Prog 00000 ffffffec 000006e0 Data Total Records 273 no filter
24. ALYSIS_RANGE AR Specific Sets or displays the performance analysis range ANALYSIS_RANGE_DELETE AD Specific Cancels the performance analysis range ASSEMBLE AS General Assembles a program ASSERT General Checks conditions BREAKPOINT EVENT BP EN Specific Sets a breakpoint or an event BREAKPOINT_CLEAR BC Specific Clears a breakpoint or an event EVENT_CLEAR EC BREAKPOINT_DISPLAY BD Specific Displays breakpoints or events EVENT_DISPLAY ED BREAKPOINT_ENABLE BE Specific Enables or disables a breakpoint EVENT_ENABLE EE or an event BREAKPOINT_SEQUENCE BS Specific Defines or clears a breakpoint or EVENT_SEQUENCE ES event sequence 81 RENESAS Table A 1 Command List cont Abbrevia Command Command Name tion Type Description CLOCK CK Specific Sets the CPU clock rate in the E6000 emulator CLOCK_MODE CM Specific Sets and displays clock mode CLOCK_DIVISOR CD Specific Sets and displays clock divisor CONFIGURE_PLATFORM CP Specific Sets and displays configuration option DEVICE_TYPE DE Specific Selects the target device in the E6000 emulator DISASSEMBLE DA General Disassembles and displays a program ERASE ER General Clears the contents of the Command Line window EVALUATE EV General Evaluates an expression FILE_LOAD FL General Loads an object program file FILE SAVE FS General Saves memory contents in a file FILE_VERIFY FV General Verifies memory contents against f
25. AS When the emulator has been successfully set up the HDI window will be displayed with the message Link up in the status bar Help button Status bar fFor Heip press e A O Figure 4 2 HDI Window For the key features of HDI see HDI User s Manual For the functions specialized for the E6000 emulator refer to the on line help Menu Bar Gives you access to the HDI commands for setting up the E6000 emulator and using the HDI debugging functions Toolbar Provides convenient buttons as shortcuts for the most frequently used menu commands Status Bar Displays the status of the E6000 emulator For example progress information about downloads snapshots of address bus in run mode Help Button Activates context sensitive help about any feature of the HDI user interface 43 RENESAS 4 3 Setting up the E6000 Emulator Before downloading a program to the E6000 emulator you first need to set up the target MCU conditions The following items need to be configured e The device type e The operating mode e The clock source e The user signals e The memory map The following sections describe how to set up the E6000 emulator as appropriate for the tutorial program 4 3 1 Configuring the Platform To set up the target configuration e Choose Configure Platform from the Setup menu to set up the conditions for the selected platform e The following dialog box will be displayed 44 RENESAS Emulator Configu
26. E E cl E E Se 4 Environment ConditJonS seice erarnan eneee REE R a EE EOSTA 6 Address Map of PC Interface Board and Memory Switch Setting 9 Em l ton Mma Oy ase ssa ienne e n oe EA RAE RE E A 33 Initial Value Differences between MCU and E6000 Emulator 40 Configuration Options esc sscasdcsdeecvscssucesecgecssvevacneayevsdeadvegseusstesceesdeedecuseeevedpideavetpieyts 45 Memory Types ices essssierevses ieii a E AA Hares AEA 46 ACCESS D e EE EE AE E EE EE 47 Step Command Socie e ere rieuse nre EEE oE E EErEE AE EERE EEE E ETE E ee EES 63 Command DAStsisicics Siccissscaisacttatvesesabevsersaiivinssstivieststnveansenavenssetavoeaoedioresebnbencuaieas 81 Vii RENESAS viii RENESAS Section 1 Introduction The E6000 emulator is an advanced realtime in circuit emulator which allows programs to be developed and debugged for the SH series microcomputers The E6000 emulator can either be used without a user system for developing and debugging software or connected via a user system interface cable to a user system for debugging user hardware The E6000 emulator works with the HDI an interface program based on Microsoft Windows operating system This provides a powerful range of commands for controlling the emulator hardware with a choice of either fully interactive or automated debugging 1 1 Debugging Features 1 1 1 Breakpoints The E6000 emulator provides a comprehensive range of alternative types of breakpoints to give yo
27. E6000 emulator cable head O E6000 emulator Figure 3 11 Oscillator Circuit 3 4 4 External Probe EXT Trigger Output An 8 pin connector marked EXT on the right under the user system interface cable connector on the E6000 emulator case accommodates four external probe inputs and two trigger outputs The pin assignment of this connector is shown in figure 3 12 OQOQOO0O000O0 123 4 Tuvec Ts5v Probe Trigger output Figure 3 12 External Probe Connector The interface circuit for the external probes 1 4 is shown in figure 3 13 HD151015 O External probes 1 4 Figure 3 13 Interface Circuit for External Probes 1 4 The trigger output is controlled by event channel 8 and is active low The trigger output is available as either T5V within the range from 2 5 V to 5 V does not depend on the user Voc level or TUV the user Vc level 37 RENESAS 3 4 5 Voltage Follower Circuit CAUTION 1 Do not connect the user system interface cable to the E6000 emulator without user system connection 2 Turn on the user system before starting up the E6000 emulator A voltage follower circuit is implemented on the E6000 emulator which allows the user system voltage level from the user system to be monitored This monitored voltage level is automatically supplied to the logic on the E6000 emulator and is derived from the E6000 emulator power supply unit This means that no power is taken from the user system board If no
28. Electronics products or if you have any other inquiries Note 1 Renesas Electronics as used in this document means Renesas Electronics Corporation and also includes its majority owned subsidiaries Note 2 Renesas Electronics product s means any product developed or manufactured by or for Renesas Electronics C 7 D mh on lt D D tENESAS SuperH Family E6000 Emulator HS7O00EPI60HE User s Manual Renesas Microcomputer Development Environment System Renesas Electronics Rev 2 0 2003 06 www renesas com Cautions Keep safety first in your circuit designs 1 Renesas Technology Corporation puts the maximum effort into making semiconductor products better and more reliable but there is always the possibility that trouble may occur with them Trouble with semiconductors may lead to personal injury fire or property damage Remember to give due consideration to safety when making your circuit designs with appropriate measures such as i placement of substitutive auxiliary circuits ii use of nonflammable material or iii prevention against any malfunction or mishap Notes regarding these materials 1 These materials are intended as a reference to assist our customers in the selection of the Renesas Technology Corporation product best suited to the customer s application they do not convey any license under any intellectual property rights or any other rights belon
29. Exit from the File menu to exit HDI 4 12 What Next This tutorial has introduced you to some of the key features of the E6000 emulator and their use in conjunction with the HDI By combining the emulation tools provided in the E6000 emulator you can perform extremely sophisticated debugging allowing you to track down hardware and software problems efficiently by precisely isolating and identifying the conditions under which they occur For details on HDI operation refer to the HDI User s Manual supplied separately Note For details on each function refer to the online help Online help can be displayed by clicking the help key or F1 button on each window or dialog box 80 RENESAS Appendix A Command Line Functions This section lists the E6000 emulator command line functions Command Type General HDI general commands Specific Commands specific to the E6000 emulator For HDI general command line functions refer to the HDI User s Manual or the on line help For E6000 specific commands refer to the on line help To display the on line help enter the following in the Command Line window helpA lt command gt lt command gt Command name or its abbreviation Table A 1 Command List Abbrevia Command Command Name tion Type Description General Comments ACCESS AC General Sets operation for invalid access ANALYSIS AN Specific Enables or disables the performance analysis range AN
30. G hip HEM M on Chipia E Cache P Emulation 32 6ft D Emulation 16 bt imi Emulation 6 ibit im Target SZ bit fs Target 16 bit fin Target abi r r r r Sleep DMAC T Don t Care M Don t Care Cancel Apply Help Figure 4 34 Bus Area Panel in Trace Filter Dialog Box e Click OK to save the trace filter In the Trace window only the cycles in which the MCU accessed address range H 364 to H 3e2 are displayed Trace Data R w Area Status Clock Probes Ir 0000038C 62F37202 00000398 i 50f162f3 0000039c 9125d316 000003a0 430b0009 000003a4 i 50f662f3 000003a8 9120d313 O00003ac 430b0009 000003b0 6237203 000003b4 6020cb04 000003b8 R 220063f3 000003bc 73036030 000003c0 cb012300 SEs i 52f49112 PRP PP ROM 1111 11 Total Records 26 of 273 Snapshot Halt Clear Restart Save kind Find Next Acquisition Figure 4 35 Showing Trace Buffer Contents 75 RENESAS 4 10 Measuring the Performance By using the performance analysis function in the HDI you can measure the performance of a program The results are displayed as a histogram or as percentages 4 10 1 Selecting the Measurement Conditions Select the conditions for measurement as follows e Select Performance Analysis Window from the View menu or click the Performance Analysis Window button in the toolbar and open the Performance Analysis dialog box e Click the Conditions button and open the Performance A
31. HIS WARRANTY THIS E6000 EMULATOR IS SOLD AS IS AND YOU MUST ASSUME ALL RISK FOR THE USE AND RESULTS OBTAINED FROM THE E6000 EMULATOR RENESAS State Law Some states do not allow the exclusion or limitation of implied warranties or liability for incidental or consequential damages so the above limitation or exclusion may not apply to you This warranty gives you specific legal rights and you may have other rights which may vary from state to state The Warranty is Void in the Following Cases Renesas shall have no liability or legal responsibility for any problems caused by misuse abuse misapplication neglect improper handling installation repair or modifications of the E6000 emulator without Renesas s prior written consent or any problems caused by the user system All Rights Reserved This user s manual and E6000 emulator are copyrighted and all rights are reserved by Renesas No part of this user s manual all or part may be reproduced or duplicated in any form in hard copy or machine readable form by any means available without Renesas 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 Renesas s semiconductor products Renesas assumes no responsibility for any intellectual property claims or other problems that may result from applications based on the examples described herein 2
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. al probes e Delay cycles after an event The complex event system can be used to control the following functions of the E6000 emulator 1 2 3 Breaks You use breaks to interrupt program execution when a specified event or sequence of events is activated For example you can set up a break to halt execution when the program reads from one address and then writes to another address The break can also optionally be delayed by up to 65535 bus cycles 1 2 4 Timing You can set up two events and then measure the execution time of the program between the activation of the first event and second event RENESAS 1 3 Hardware Features 1 3 1 Memory The E6000 emulator provides standard emulation memory as the substitute for on chip ROM memory and on chip RAM memory When a device type or device mode without an on chip ROM or on chip RAM is selected the standard emulation memory is disabled When debugging with only the E6000 emulator and the user program and data are stored in an external address space an optional SIMM memory module must be used The optional SIMM memory modules can be separately purchased The emulation memory can be mapped in units to any number of separate memory blocks in the MCU address space according to table 1 1 Each memory block can be specified using the Memory Mapping function as user Target or emulator SIMM memory module and in each case the access can be specified as read write read only or guarded
34. bat or tutorial sub according to the system environment 50 RENESAS When the file has been loaded the message box shown in figure 4 8 displays information about the memory areas that have been filled with the program code Figure 4 8 HDI Information Message Box e Click OK to continue The program has been loaded into the on chip ROM 51 RENESAS 4 4 2 Displaying the Program Listing The HDI allows you to view a program at source level and in assembly language mnemonic e Choose Program Window from the View menu or click the Program Window button in the toolbar You will be prompted for the C source file corresponding to the object file you have loaded Open Lookin YTutoid El Tl c Callmain c File name ftutorial c Files of type C C Source Files c x Cancel Address Open on fp e Address Source Figure 4 9 Open Dialog Box e Select tutorial c and click OK to display the program window 52 RENESAS ge tutorial c iof x Address Break Code 00000318 mask_set MemTomMemDMAO C CLONG QName DestinationAddress Count BurstMode 0000031c Size 00000336 startcMTimer 0000033a sleep 0000033c startmtu ANAAAAAG alaanf Na 4 Figure 4 10 Tutorial Program Window e If necessary choose Font option from the Customize submenu on the Setup menu to choose a font and size suitable for your host computer Initially the program window opens showing the beginning of
35. betadse EErEE EE 57 Figure 4 15 Register Dialog BOX scsissiscseccsesseessteseeecbenssesstectensesesstassspateoncssncvont EE E 58 Figure 4 16 Breakpoints WindoW seesesesereseseererseeeeeserereeeseenersreressenersrereenensrererseversrenersenses 59 Figure 4 17 Open Memory Window Dialog BOX ssssssessesessesrsseesesreersererrserresresrenresrerresenrenresee 60 Figure 4 18 Memory Window ASCII sssesseseessesssresesreesesresrssrerrssesrreresrentnseerreerreeresreereseeerset 61 Figure 4 19 Watch Window After Adding Variables eee ceeeeeeeeeeeeceeeeeeeeeecesecsneenaes 62 Figure 4 20 Watch Window Symbol Expansion eceeeescceeecseeeneeeeeeeeeeeseecseeeaeeeseeeeeens 62 Figure 4 21 Program Window after Executing the Step In Command 1 eee 63 Figure 4 22 Program Window after Executing the Step In Command 2 eee eee 64 Figure 4 23 Program Window after Executing the Step Out Command eee eeeeees 65 Figure 4 24 Program Window after Executing the Step Over Command eee 66 Figure 4 25 Program Window after Executing the Step In Command 4 eee eeeeeeeeees 67 Figure 4 26 Displaying Local Variables 0 ee eeeeceseceeceeecneeceeeeeeeeeeeeeeeeseaeeaesaeeaesaaeeaeeeas 68 Figure 4 27 Displaying Local Variables Elements in an Array ccceeeeseeeeeeeeeesereeeeeetenees 68 Figure 4 28 Select Event Type Dialog BOX ooo cece eeeeeeeeceeeceseceseceaecaecueceeesaeeeaeeeeeeeneeeees 69 Figure 4 29 Breakpoint Event Propert
36. 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
37. contents are accessed Therefore the user program stops for a maximum of 2 ms 25 MHz emulation memory 1 3 2 Clocks The clock can be specified as E6000 emulator internal clock or target clock The frequencies that can be specified as the emulation clock depend on the MCU For details refer to the supplementary information supplied together with the emulator 1 3 3 Probes External probe EXT can be connected to the E6000 emulator to make use of signals from other parts of your user system hardware and can be used to trigger the complex event system depending on whether the probe signal is low or high RENESAS 1 3 4 Environment Conditions Observe the conditions listed in table 1 3 when using the E6000 emulator Table 1 3 Environment Conditions Item Specifications Temperature Operating 10 to 35 C Storage 10 to 50 C Humidity Operating 35 to 80 RH no condensation Storage 35 to 80 RH no condensation Ambient gases No corrosive gases AC Power supply voltage 100 V to 240 V AC 50 60 Hz 0 6 A max User system voltage UVcc Depends on the target MCU within the range 2 7 V to 5 5 V 1 3 5 Emulator External Dimensions and Weight Item Specifications Dimensions 219x170 x 54 mm Weight 1 000 g 6 RENESAS Section 2 Setting Up This section explains how to e Set up the PC interface board HS6000EII0O1H separately purchased e Set up the E6000 emulator e Install the HDI software and use
38. cssecssecaeecseeeeeeeeeeeeeeeeeeeessessseenaeenaes 27 Section 3 A WARS ee wesaticrta cco scsyoreastei vente tenntealabesic ii a E a 29 3 1 Connecting to the User SYSt m cciccccesscestesessesiesssosscascepscessossebenbessuesetha asses cagnsvacesensvenevons 29 3 1 1 Example of Connecting the User System Interface Cable Head to the User System30 3 1 2 Plugging the User System Interface Cable Body into the E6000 Emulator 31 3 1 3 Plugging the User System Interface Cable Body into the Cable Head 31 iii RENESAS 32 PO Wert Supply saiciccscscdencdsns licvsasiecceshssbbdect shes epvashdedvasetbenatalelscesseles E EEEE EEEa EEEE 32 32 1 AC Adapter ecciesie eeneioe ee EEA EET EA E EO 32 322 Polarity osses enion e sr eE E E EEE E EE R E EEE EEE E E R i 32 3 2 3 Power Supply Monitor Circuit cece eee cee cseecseeeeeeeeeeeeeeeeseeeeaessaessaeseeeaeees 32 3 3 SIMM Memory Module scese opeen aaee a a Ea ei EEEa EEO eaii 33 3 3 1 Optional SIMM Memory Module Configuration ssesesessseesseersererrserrrresrrreees 33 34 Hardware IMterfaCe oacc 5 scccs sikescevcieges sovssnccacsapsuaeeaagsicevsageneesacesteeuseastes O REEE RE 33 3 4 1 Signal Protection on the E6000 Emulator ssseesseeessesssreeseseeereerssreereresseeereseseee 33 3 4 2 User System Interface Circuits sisser eiiie smien E Eaa 34 343 Clock Oscillator sci vieccscsecterleteasespen ces tivead E EEEE 37 3 4 4 External Probe EXT Trigger Output 0 eee
39. 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
40. e to change the value of the PC e Double click PC in the Registers window The Register PC dialog box allows you to edit the value 37 RENESAS Register PC H 336 oi a E E Double fioat Figure 4 15 Register Dialog Box e Edit the value to H 31C the address of the previous statement and click OK The highlighted bar will move to the previous statement in the program window to show the new PC value e Choose Go from the Run menu or click the Go button in the toolbar to execute up to the breakpoint again 58 RENESAS 4 5 4 Reviewing the Breakpoints You can see a list of all the breakpoints set in the program in the Breakpoints window e Choose Breakpoints Window from the View menu or click the Breakpoint Window button in the toolbar Breakpoints Enable File Line rr OO l Address p TUTORIAL c 40 000336 H 336 Program count 1 1 of 256 PC breakpoints in use 0 of 8 type 1 full events in use 0 of 4 type 2 events in use 0 of 3 type 3 events in use Figure 4 16 Breakpoints Window The Breakpoints window also allows you to enable or disable breakpoints define new breakpoints and delete breakpoints Before proceeding remove the breakpoint as follows e Highlight the breakpoint in the Breakpoints window and click Delete e Close the Breakpoints window 59 RENESAS 4 6 Examining Memory and Variables You can monitor the behavior of a program by examining the contents of a
41. e EEE E EEEE EEEE 53 4 3 2 Ex c ting the Protams a aeriieriori eiten an Ee EE EEE EREE a EE EN 54 4 5 3 Examining Registers sieneen ae ne EERE SEE 57 4 5 4 Reviewing the Breakpoints esesssesessssesseesesreerseerresrrrresertenrrsrentesrerrsrerreesesreets 59 4 6 Examining Memory and Variables s esseseeeeeeeeseseeesesreersstrterrsresrrsrerreserresrsreeresreeresene 60 46 1 Viewing Memory seirce nn neers E E a sate E 60 46 2 Watching Vatlabless 2 icc ciscseccetscscassis tecestcages seveepesee a E EREE EEEE 61 4 7 Stepping Through a Program eccetera EEE E E EEA 63 ATA Single Stepping vieicsecassaseccaiedare EEEE EEEE EEE EEEE E E 63 4 7 2 Stepping Over a FUNCTION 0 eee eee cesecsse cece ceeecaeeeseeeeeeeeeeeseseseseeaessaesaessaeraes 66 4 7 3 Displaying Local Variables cece eceeseeesceeeceseceseceaecaeceaeceaecsaeceeceeeseeeneeees 67 4 8 Using the Complex Event System cece eeeeeeeeeeeeecesecesecesecsaecsaecauecaeesaeeeaeseneeeetee 68 4 8 1 Defining an Event Using the Complex Event System 0 eee cee eee ceeeeeeeees 69 49 Using the Trace Buffet sscescccsccscccssedsesrescceosensedutseestapcsanssisssnaseseians a EEEE SENEE aE ERE oria 73 4 9 1 Displaying the Trace Buffer cece ceeeeeeeeeeseceeceseceaeesaesaeceecaeeeaeeeneeees 73 4 9 2 Setting a Trace Filters icccsos ccicessuseasesasteesesansdessbsttensessti vise denteuecconscensesstveovnsestegatens 74 4 10 Measuring the Performance eee cee cseeseeeeeeeeeeeeeeeee
42. e KEEP the user s manual handy for future reference Do not attempt to use the E6000 emulator until you fully understand its mechanism E6000 emulator Throughout this document the term E6000 emulator shall be defined as the E6000 emulator user system interface cable PC interface board and optional SIMM memory module produced only by Renesas Technology Corp excluding all subsidiary products The user system or a host computer is not included in this definition Purpose of the E6000 emulator This E6000 emulator is a software and hardware development tool for systems employing the Renesas microcomputer SH series hereafter referred to as MCU This E6000 emulator must only be used for the above purpose Improvement Policy Renesas Technology Corp including its subsidiaries hereafter collectively referred to as Renesas pursues a policy of continuing improvement in design functions performance and safety of the E6000 emulator Renesas reserves the right to change wholly or partially the specifications design user s manual and other documentation at any time without notice Target User of the E6000 emulator This E6000 emulator should only be used by those who have carefully read and thoroughly understood the information and restrictions contained in the user s manual Do not attempt to use the E6000 emulator until you fully understand its mechanism It is highly recommended that first time users be instructed by use
43. e following short cuts in the program group you specified by default Hdi Eile Edit View Go aooo Back Fonverd Up Address B enu Programs HDI gt ay FHDI for E6000 Uninstall HDI SH7O10 for E6000 2 object s Y Figure 2 13 HDI Program Group These short cuts have the following functions HDI for E6000 SH7010 is the HDI software Uninstall HDI for E6000 SH7010 will remove HDI and its associated files if you need to uninstall it at any stage 19 RENESAS 2 4 2 Checking the System The next step is to run the HDI software to check that the E6000 emulator is working correctly e Switch on the E6000 emulator and check that the red LED is illuminated e Select HDI for E6000 SH7010 from the Start menu Accessories r J Intemet Explorer gt Favorites gt BZ HDI for E6000 SH7010 StartUp p ay Uninstall HDI for E6000 SH7010 an Documents gt HS ms Dos Prompt 2 Windows Explorer Eh Settings gt Figure 2 14 HDI Start Menu 20 7tENESAS With everything set up correctly the HDI window will be displayed and the following messages will be shown in the status bar at the bottom of the window Downloading firmware THT Setting memory map Figure 2 15 HDI Start Up Messages Finally the status bar will display Link up to indicate that everything is set up correctly and the HDI window will be displayed as shown below 21 RENESAS PS Hitachi Debugging Interface E6000 SH7010
44. eeeeneeeeeeeceeeeseseeesesaesaesaeesaeeaes 29 Figure 3 2 Example of Connecting User System Interface Cable Head to User System 30 Figure 3 3 Sequence of Screw Tightening 0 eee cece eseeeeeeeeeeeeeesecesecesecaecaecsaecneesaeeeneeees 30 Figure 3 4 Plugging User System Interface Cable Body to E6000 Emulator ee 31 Figure 3 5 Polarity of Power Supply Plug 0 eee ee ceeeeseceseceseceaeceecseecneeeeeseaeeeeeeeeeeereeetens 32 Figure 3 6 User System Interface Circuit for General Ports eee cee cee cree ceeeeeeeeeeeeeeeeeees 35 Figure 3 7 User System Interface Circuit for MD2 MD1 MDO WAIT NMI and STBY 35 Figure 3 8 User System Interface Circuit for RESET oo eee cee ceee cee cnaeceeecaeecaeeeneeeetees 35 Figure 3 9 User System Interface Circuit for Analog Port Control Signals eee 36 Figure 3 10 IRQO IRQ7 User System Interface Circuit sseesseresseseseeerrsrrerssrerresrrrrerrsrreresre 36 Fig te 3 11 Oscillator CanCuit 2 ssessesner it weg ee seek Wael eae ees 37 Figure 3 12 External Probe Conmmect00 c ccccsccssiscsciecasesesebestvanssenstassssntesseseonsbsnsearsseestussipedenpesens 37 Figure 3 13 Interface Circuit for External Probes 1 40 00 ee eeeceseceseceeecsaeceeecaeesaeeeneeeneees 37 RENESAS Figure 3 14 Voltage Level Monitoring Example for Vcc 3 3 V wo eeecesecssecseeeneeeneeenetees 39 Figure 4 1 HDI Start Menu ss 2 3 sessssisteseecseie iia citi ENEE EEE EENET E SNE 42 Figure 4 2
45. emory Map m Mapping Areas 00200000 OOZTEREE Emu Fi a 00220000 0023FFFF Emu Rw 00240000 0025FFFF Emu Rw 00260000 0027FFFF Emu Rw 00280000 0029FFFF Emu 00240000 OO2BFFFF Emu 002C0000 002DFFFF Emu 002E0000 OO2FFFFF Emu 00300000 0031FFFF Emu 00320000 OO33FFFF Emu 01000000 00340000 0035FFFF_Emu Emulator Memory Blocks 01400000 Fast 1 00200000 0021FFFF Fast 2 00220000 0023FFFF Fast 3 00240000 0025FFFF Fast 4 00260000 0027FFFF Slow 1 Unused 512K Slow 2 Unused 512K Clau 2 Lined FISI Cancel sov He Figure 4 4 Emulator Configuration Dialog Box Memory Map Table 4 2 lists the three memory types available in the E6000 emulator Table 4 2 Memory Types Memory Type Description On chip Not displayed Target Accesses the memory on the user system hardware Emulator Accesses the optional SIMM memory module 46 RENESAS Table 4 3 lists the three access types Table 4 3 Access Types Access Type Description Read write RAM Read only ROM Guarded No access allowed For this tutorial we can use the default mapping but you can edit the mapping as follows Note The memory map of internal ROM internal RAM internal I O and reserved area differ depending on the target MCU For details refer to the hardware manual of the MCU 47 RENESAS H 00000000 H 001FFFFF H 00200000 H 003FFFFF H 00400000 H 007FFFFF H 00800000 H OOBFFFFF H 00C00000 H
46. est Cc Bute a Word fo isng Detector 1 M Enabled Mest H FF Bute amp I CIH CHL CHH Figure 4 29 Breakpoint Event Properties Dialog Box e Select Address in the Address Section and enter the address H 3c4 into the Address Lo box as a condition e Click OK to define the breakpoint This will cause a break whenever address H 3c4 is accessed either for a read or a write 70 RENESAS The Breakpoints window shows the new event you have defined yi Type TUTORIAL c 32 TUTORIAL c 102 1 of 256 PC breakpoints in use 1 of 8 type 1 full events in use 0 of 4 type 2 events in use 0 of 3 type 3 events in use Figure 4 30 Breakpoints Window e Select the line of the address H 00000318 in the Breakpoints window and click Delete to delete the PC breakpoint set in address H 318 e Select Go Reset from the Run menu or click the Go Reset button in the toolbar to execute the program from the reset vector 71 RENESAS Execution will stop at address H 3c4 BS Hitachi Debugging Interface Tutorial E6000 SH7010 Emulator File Edit View Run Setup Tools Window Help Ale HASERAN Eyes o ele maae a sE tutorial c 00000370 00000374 00000380 Q000038c 00000398 000003a4 000003b0 000003ba Default all bits to 0 INC Source mode INC Destination mode 9 MTUCTGI3A request BurstMode word ooooooo oud dou uw 1 Enable channel O000003ca EndAddress 00000
47. ging to Renesas Technology Corporation or a third party Renesas Technology Corporation assumes no responsibility for any damage or infringement of any third party s rights originating in the use of any product data diagrams charts programs algorithms or circuit application examples contained in these materials All information contained in these materials including product data diagrams charts programs and algorithms represents information on products at the time of publication of these materials and are subject to change by Renesas Technology Corporation without notice due to product improvements or other reasons It is therefore recommended 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
48. he cover from the host computer and install the PC interface board in a spare ISA slot RENESAS e Replace the host computer cover e Connect the PC interface cable between the PC interface board and the PC IF connector on the E6000 emulator Press each plug firmly home until it clicks into position e Switch on the host computer e Open the Computer Properties dialog box and check that the memory area you have selected is listed as System Reserved Computer Properties View Resources Reserve Resources C Interrupt request IRQ Direct memory access DMA C Inpul uulput 1 0 i Setting Hardware using the setting 00000000 O009FFFF Unavailable for use by devices DOQAFFFF Super VGA OOOB7FFF Unavailable for use by devices OOOBFFFF Super VGA 000C0000 OO0C7FFF Unavailable for use by devices 000D0000 O00D7FFF Unavailable for use by devices Fi 00008000 O00DBFFF System Reserved 000E0000 OOC3FFFF Unavailable for use by devices Figure 2 3 Computer Properties Dialog Box After Setting 2 2 2 Modifying the CONFIG SYS File Prevent the memory area for the PC interface board being accessed by another program as follows e Select Run from the Start menu e Type SYSEDIT and click OK When EMM386 EXE is used in the CONFIG SYS file the CONFIG SYS file must be modified If the CONFIG SYS file is not used or if EMM386 EXE is not used even when the CONFIG SYS file is
49. his manual e HDI User s Manual RENESAS Before proceeding you should check that you have all the items listed above and contact your supplier if any are missing 22 Setting Up the PC Interface Board on Windows 95 or Windows 98 2 2 1 Setting Up the PC Interface Board e Start Windows 95 or Windows 98 e Click the My Computer icon with the right mouse button and select Properties from the pop up menu The System Properties dialog box will be displayed e Double click the Computer icon in the Device Manager panel to open the Computer Properties dialog box e Click the Memory in the View Resources panel to display the memory resources Computer Properties View Resources Reserve Resources Interrupt request IRQ Direct memory access DMA C input output 1 0 i i Setting Hardware using the setting 00000000 O009FFFF Unavailable for use by devices DOQAFFFF Super VGA OO0B7FFF Unavailable for use by devices OOOBFFFF Super VGA OOOCO000 OOOC7FFF Unavailable for use by devices 000D0000 O00D3FFF Unavailable for use by devices 000E0000 OOC3FFFF Unavailable for use by devices OOFEO000 OOFFFFFF Unavailable for use by devices Figure 2 1 Computer Properties Dialog Box Before Setting A memory area that is not listed in the dialog box can be assigned to the PC interface board Table 2 1 lists the address ranges that can be set by the switch on the rear panel of the PC inte
50. ies Dialog BOX 0 0 0 eee eeeeseeeeeeeeeeeeeeeeeeeeeeenaeeaees 70 Figure 4 30 Breakpoints Window eee eceesseeecesecesecesecaecsaecseecaeecaeseeeseeeeeeeseseseeeseeaeenaeenaes 71 Figure 4 31 Stopping the Program by a Breakpoint eee ee cece ceeeeeeeeeeeeeeceecaeesseeeeeeeenens 72 Fipiine 432 Trace Wind Ow sas sexcsacceessenss sicsadessevaupstacevagetcensensneesica she rvacasted daeatt ponsustgusacovevgupeveessens 73 Figure 4 33 General Panel in Trace Filter Dialog BOX oes eee eeeeeeeeeeeeeeeeeeeeeeeseeaees 74 Figure 4 34 Bus Area Panel in Trace Filter Dialog BOX eee eeeeeeeeeeeeeeeeeeeseceseenneenaes 75 Figure 4 35 Showing Trace Buffer Contents essseesesseesesrssrereseeesrsrerrsserrrerrsrenresrerreserreeresreet 75 Figure 4 36 Selecting the Conditions for Measurement ssesssereseesesseesrsreeresrrrreresrrereserereeen 77 Figure 4 37 Displaying the Measurement Conditions eee eeeseeseceseceeeceeeceeecaeecaeeeneeentees 78 Figure 4 38 Displaying the Analysis Results 1 cece cece cseeeeeeeeeeeeeeeeeeseeaeeeaeeaerseeeaeeeas 79 Figure 4 39 Displaying the Analysis Results 2 ssssssesssssesssreerrsrerrssrsrreresreerrsrerrssrerrnrrnrreresreee 79 vi RENESAS Tables Table 1 1 Table 1 2 Table 1 3 Table 2 1 Table 3 1 Table 3 2 Table 4 1 Table 4 2 Table 4 3 Table 4 4 Table A 1 Emulation Memory 0 scccecesscventssssvenGeasstessteesqessnsvas e EEEE SEEE E r EEEE EEEE E 4 Memory Types neresoiereinirr nirien an i
51. ile contents GO GO General Executes a user program GO_RESET GR General Executes a user program from the reset vector GO_TILL GT General Executes a user program until a temporary breakpoint HALT HA General Stops user program execution HELP HE General Displays the help message for the command line or the command INITIALISE IN General Initializes the platform INTERRUPT IR General Validates invalidates interrupt on the platform this command is not supported for some products LOG LO General Manipulates the logging file 82 RENESAS Table A 1 Command List cont Abbrevia Command Command Name tion Type Description MAP_DISPLAY MA General Displays the memory map information MAP_LOCATE ML Specific Displays memory mapping information MAP_SET MS Specific Sets memory mapping MEMORY_DISPLAY MD General Displays memory contents MEMORY_EDIT ME General Modifies memory contents MEMORY_FILL MF General Fills the memory with the specified data MEMORY_MOVE MV General Moves a memory block MEMORY_TEST MT General Tests a memory block MEMORY_UPDATE MU Specific Updates windows related to memory MODE MO Specific Sets or displays the MCU mode QUIT QU General Terminates the HDI RADIX RA General Sets a radix for input value REGISTER_DISPLAY RD General Displays the MCU register values REGISTER_SET RS General Sets the MCU register values RESET RE General Resets the MCU
52. in property damage NOTE emphasizes essential information RENESAS A WARNING Observe the precautions listed below Failure to do so will result in a FIRE HAZARD and will damage the user system and the emulator product or will result in PERSONAL INJURY The USER PROGRAM will be LOST 1 Do not repair or remodel the emulator product by yourself for electric shock prevention and quality assurance 2 Always switch OFF the E6000 emulator and user system before connecting or disconnecting any CABLES or PARTS 3 Always before connecting any CABLES make sure that pin 1 on both sides are correctly aligned 4 Supply power according to the power specifications and do not apply an incorrect power voltage Use only the provided power cable RENESAS About This Manual This manual explains how to set up and use the E6000 Emulator for the SH series microcomputers It is the Debugging Platform User s Manual for all SH series E6000 emulators For detailed specifications on each E6000 emulator refer to the supplementary information supplied with the E6000 emulator Section 1 Introduction gives a rapid introduction to the system s facilities including an overview of the main emulation features provided by the E6000 emulator and the HDI software that provides access to them Section 2 Setting Up describes how to set up the E6000 emulator and prepare it for use in conjunction with the HDI Section 3 Hardware e
53. is allows you to define events which depend on the state of a specified combination of the MCU signals The complex event system provides a unified way of controlling the trace break and timing functions of the E6000 emulator 1 2 1 Event Channels The event channels allow you to detect when a specified event has occurred The event can be defined as a combination of one or more of the following 2 RENESAS e Address or address range e Address outside range e Data with an optional mask e Read or Write or either e MCU access type e g DMAC and instruction prefetch e MCU access area e g on chip ROM and on chip RAM e A signal state on one or more of the four external probes e A certain number of times that the event must be triggered e Delay cycles after an event Up to eight events can be combined into a sequence in which each event is either activated or deactivated by the occurrence of the previous event in the sequence For example you can cause a break if an I O register is written to after a specified area of RAM has been accessed 1 2 2 Range Channels The range channels can be set up to be triggered on a combination of one or more of the following e Address or address range inside the range e Data with an optional mask e Read or Write or either e MCU access type e g DMAC and instruction prefetch e MCU access area e g on chip ROM and on chip RAM e A signal state on one or more of the four extern
54. it to check correct operation of the entire system To use another interface board such as a PC card PCMCIA refer to the user s manual for that interface board The E6000 emulator communicates with the HDI through the PC interface board and therefore the PC interface board must be inserted into the host computer The PC interface board is a memory mapped board and before inserting it you first need to reserve a block of memory addresses for use by the board This ensures that other programs do not inadvertently use the PC interface hardware The allocated memory area must not overlap memory already allocated to other board If attempted the PC interface board and the E6000 emulator product will not operate correctly At shipment the memory area of PC interface board is allocated to the address range from H DO000 to H D3FFF When using Microsoft Windows 95 or Microsoft Windows 98 operating system refer to section 2 2 Setting Up the PC Interface Board on Windows 95 or Windows 98 When using Microsoft WindowsNT operating system refer to section 2 3 Setting Up the PC Interface Board on WindowsNT 4 0 2 1 Package Contents The E6000 emulator is supplied in a package containing the following components e E6000 emulator e 5V and 5A E6000 emulator power supply AC adapter e Test program disk e HDI installation disks e External probes e Supplementary Information e SH Series E6000 Emulator User s Manual t
55. luation Chip ID SH7016 Driver ID 1 0 Firmware ID E6_7010 1 0 Figure 4 13 System Status Window The Cause of last break line shows that the break was a PC break The Run Time Count line shows that the user program executing time from user program start to break is 47 375 us The timer resolution of the event time set by Timer and Timer and the run time timer s resolution is decided by the Timer Resolution option in the target Configuration dialog box When using a small resolution e g 20 ns for a long time measurement the inaccuracy may be large Select the timer resolution suitable for the length of measurement time 56 RENESAS 4 5 3 Examining Registers While the program is halted you can refer to the contents of the MCU registers These are displayed in the Registers window e Choose Registers Window from the View menu or click the Registers Window button in the toolbar Registers Iof Xx FFFF86BO0 00000001L FFFF86C4 FFFF86CC OOO006ED 00200000 00000100 00000001 00000000 00000000 00000000 00000000 00000000 00000000 00000000 FFFFFFF8 00000336 0000 T 00000000 00000000 00000000 00000000 00000334 Figure 4 14 Registers Window As expected the value of the program counter PC is the same as the highlighted statement H 336 Note The values of the other registers may differ from those shown in the above figure You can also change the registers from the Registers window For exampl
56. mask_set statement ry g tutorial c Iof x 00000432 000004ac 000004b8 000004be static void 000004cc IPRC 000004 d2 IPRG 000004 d amp IPRE 000004 de IPRH 000004 4 WORDJOxOOFO WORD JOxOOFF wORDOXxf000 pragma interrupt dmacO_interrupt 00000500 void dmacO_interrupt void Figure 4 22 Program Window after Executing the Step In Command 2 Exit the function and back to the next statement in the main program by choosing Step Out from the Run menu or clicking the Step Out button 64 RENESAS Address H 31c will be highlighted showing that the emulator has exit from the function Se tutorial c A 00000318 Break mask_set MemToMemDMAO CLONG QName DestinationAddress Count BurstMode 00000336 startCMTimer 0000033a sleep 0000033c startmtu 00000340 sleep Figure 4 23 Program Window after Executing the Step Out Command 65 RENESAS 4 7 2 Stepping Over a Function The Step Over command executes a function without single stepping through the body of the function and stops at the next statement in the main program e Choose Step Over from the Run menu or click the Step Over button in the toolbar The program executes the MemToMemDMAO function and stops at the beginning of the next address H 336 SE tutorial c iof x A 00000318 Break mask_set MemToMemDMAO CLONG QName DestinationAddress Count BurstMode oo00031c Size 0000033a sleep
57. mulator External Dimensions and Weight 0 0 0 ec cec eee eeeeeeeeeeeeeeeeteeseeeseenaes 6 BECUON 2 Setting UP seratina raean eg e ase E E EES E EE 7 ZW Package Contents si accssessdcsdcdscs co vecetssanesseasaagestensecdcci us cassis sceguceavesusstands Aseeaveus ENEE ENEE RE 7 2 2 Setting Up the PC Interface Board on Windows 95 or Windows 98 sccssescesesseseeeees 8 2 2 1 Setting Up the PC Interface Board eee eeeeeeceeeceereeseeesecesecsaeeneeeeeenes 8 2 2 2 Modifying the CONFIG SYS File oo ec eeeeeeesceeeceecesecssecsaecaeseeeaeeeneeees 10 2 2 3 Modifying the SYSTEMLINI File oo cee eeeeesseeeceseceeeeeceeeceeeeesaesaeesecaeeeeenee 11 2 3 Setting Up the PC Interface Board on WindowWSNT 4 0 ccscsscssessescesesseseesesseseeseaseseeneans 11 2 4 Installing the HDI Software oe eeeeeeeeeceeeceeeceseceseceaecaecsaecaeecaeecaeeeaeseneeeeeeesegs 14 2 4 1 HDI Installation Procedure eee ee eeceecesecesecsseccecaeecaeeeseseeeseeeeeeeeeeeenseenaes 14 242 Checking the System cscviec cvissscsiviacs divescssabesestonsvesssohspieveiusevtuineeveannbeecreree ed 20 Didi What NEX ssisissccie ces catens ede kacbe cea dedi asics nahn ECEE a are a E ERE ea E Neien 22 2 6 Uninstalling the HDI Software eeseeesseeeesesessessrsreeresrerrserresresresrrsreeresenteserrenesererese 23 Dele Troubleshoot nunen ee e EE E A OE a R EEEa 27 271 Faulty Connection erener nen E E eee E E E A 27 2 7 2 Communication Problems eee eceeccesecese
58. n area of memory or by displaying the values of variables used in the program 4 6 1 Viewing Memory You can view the contents of a block of memory in the Memory window For example to view the memory corresponding to the array Name in ASCII e Choose Memory Window from the View menu or click the Memory Window button in the toolbar e Enter Name in the Address field and set Format to ASCII Open Memory Window Ea Address Name Format ASCII Space Memory cnet Figure 4 17 Open Memory Window Dialog Box 60 RENESAS e Clicking OK opens the Memory window showing the specified area of memory and enables to check the contents of the memory block ASCII Memory _Name Figure 4 18 Memory Window ASCII 4 6 2 Watching Variables As you step through a program it is useful to be able to watch the values of variables used in your program to verify that they change in the way that you expected For example set a watch on the char variable Name declared at the beginning of the program using the following procedure e Scroll up in the program window until you see the line const char Name 0x100 Hitachi Ltd e Click to position the cursor to the left of Name in the program window e Click in the program window with the right mouse button to display a pop up menu and choose Add Watch 6l RENESAS The Watch window will display the variable Watch Window Figure 4 19 Watch Wi
59. nalysis Conditions window e After clicking No 1 in the Performance Analysis Conditions click the Edit button and open the Performance Analysis Properties dialog box 76 RENESAS The following dialog box will be displayed to allow selection of the measuring conditions Performance Analysis Properties Figure 4 36 Selecting the Conditions for Measurement e Select Time Of Specified Range Measurement from the Measurement Method and select the performance analysis condition for specified range measurement e Input Analysis as the Range Name e Input address H 3fc as the Start Address and address H 428 as the End Address e Click OK to select the conditions This completes the selection 77 RENESAS In the Performance Analysis Conditions window the conditions selected in the Performance Analysis Properties dialog box are displayed Performance Analysis Conditions x m Address Control Mode Time Measurement Unit PC 160ns Prefetch C 40ns C 20ns CPU Clock No Condition 1 Analysis Range H O000003FC H 00000428 2 Edit pelet Del All Cancel Help Figure 4 37 Displaying the Measurement Conditions e Click OK to set the measurement conditions Now the performance of the execution in the address range H 3fc to H 428 can be measured e Click Close and close the Performance Analysis dialog box e Open the Breakpoints window from the View menu and cancel all breakpoints by clicki
60. nation Directory x HDI for E6000 will be installed into the following directory If you would like to install it into a different directory drive use the browse list below Note that if you install to a different directory you will have to recompile the tutorial Destination Directory C HDI_ 7010 Figure 2 7 Select Destination Directory Dialog Box e Click OK to install into the default directory C HDI_7010 or specify an alternative directory and click OK When a directory other than the default directory is specified file tutorial abs will not be installed The following dialog box then asks you whether backups should be made for files replaced by the installation Make Backups This installation can create backup copies of all files replaced during the installation Do you want to create backups of the replaced files No Cancel Figure 2 8 Make Backups Dialog Box e Click Yes to save any files that may be replaced as part of the installation recommended or No if you do not want to make a backup 16 RENESAS If you chose Yes the following dialog box allows you to specify the backup directory Select Backup Directory x The files replaced during the installation will be placed into the following directory If you would like the files placed into another directory please edit the pathname below Destination Directory C HDI 7O10SBACKUP Co gui7010 Figure 2 9 Select Backup Direct
61. ndow After Adding Variables You can double click the symbol to the left of any symbol in the Watch window to expand it and display the individual elements in the array Watch Window Ioj x Figure 4 20 Watch Window Symbol Expansion 62 RENESAS 4 7 Stepping Through a Program The E6000 emulator provides a range of options to perform step execution by executing an instruction or statement at a time The alternative step commands listed in table 4 4 are provided Table 4 4 Step Commands Command Description Step in Executes every statement including statements within functions Step Over Executes a function call in a single step Step out Exits a function and stops at the next statement of the calling program Step Allows you to step repeatedly the specified number of times 4 7 1 Single Stepping e Set aPC break at H 318 e Select Go Reset from the Run menu or click the Go Reset button in the toolbar The statement of mask_set will be highlighted Se orial c iof x tut A static void startcCMTimer void static void startmtu void static void mask_set void static void watchDogTimer_RUN void void main MemToMemDMAO C CLONG J amp Name DestinationAddress Count BurstMode 0000031c Size Figure 4 21 Program Window after Executing the Step In Command 1 63 RENESAS e Choose Step In from the Run menu or click on the Step In button in the toolbar to step through the
62. ng the Del All button Then double click the Break column of the line that includes address H 34a and set a PC break e Select Go Reset from the Run menu or click the Go Reset button in the toolbar and execute the program from the beginning m The program will stop at address H 34a 78 RENESAS 4 10 2 Displaying the Analysis Results The performance analysis results are displayed as a histogram or as percentages e Select Performance Analysis Window from the View menu or click the Performance Analysis Window button in the toolbar and open the Performance Analysis dialog box Performance Analysis x No Name Mode Rate 0 10 20 30 40 50 60 70 80 90 100 a 1 Analysis Range EEEE E EEEE E E E E EEEE EEE E E E EE EEEE E E E E EEEE E E E E PSP EE E coe a Figure 4 38 Displaying the Analysis Results 1 The performance analysis results are displayed as a histogram and as percentages e Click Value Performance Analysis x No Nane Mode Rate RUN TIME 1 Analysis Range 93 OOH 00M 03S 355455 200uS coe ue Figure 4 39 Displaying the Analysis Results 2 The analysis results are displayed as percentages and as the actual time measured 79 RENESAS 4 11 Saving the Session Before exiting it is good practice to save your session so that you can resume with the same E6000 emulator and HDI configuration at your next debugging session e Choose Save Session from the File menu e Choose
63. 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
64. nterface Cable Body into the Cable Head Plug the cable body into the cable head connected to the user system hardware 31 RENESAS 3 2 Power Supply 3 2 1 AC Adapter The AC adapter supplied with the E6000 emulator must be used at all times 3 2 2 Polarity Figure 3 5 shows the polarity of the power supply plug 5 V Outside N GND Inside Figure 3 5 Polarity of Power Supply Plug 3 2 3 Power Supply Monitor Circuit The E6000 emulator incorporates a power supply monitor circuit which only lights the red LED when a voltage higher than 4 75 V is supplied If this LED does not light you should check the E6000 emulator voltage level An input voltage less than 4 75 V could indicate that enough current cannot be supplied to the E6000 emulator Note Use the provided AC adapter for the E6000 emulator 32 RENESAS 3 3 SIMM Memory Module E6000 emulator optional SIMM memory modules are available which provide emulation memory for user code without needing a user system The optional SIMM memory modules are available in different memory size but all are partitioned into the areas as shown in table 3 1 These banks can be relocated on page boundaries anywhere in the user area For details on SIMM Memory Module refer to the user s manual provided with the SIMM Memory Module Table 3 1 Emulation Memory Type High speed emulation memory Low speed emulation memory HS6000EMS21H 128 kbyte x 4 area 512 kbyte x 4 area HS600
65. 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
66. ory Dialog Box e Enter the directory you want to use and click OK The installer then copies the HDI files to the specified directory Installing Copying Microsoft C Library C AWINDOWS SYSTEM Mfc42 dll BE 32 Figure 2 10 Installing Dialog Box 17 RENESAS When first disk 1 installation is completed the installer displays this dialog box Insert New Disk x Place installation disk 2 into the floppy Cancel drive and press the OK button Source Pathname Moa o Figure 2 11 Insert New Disk Dialog Box e Insert installation disk 2 and press the OK button In the same way insert the next installation disk according to the dialog box message and press the OK button In the installation procedure specify the target communication interface according to the dialog box message After the necessary files have been copied the following dialog box allows you to specify the program group for the HDI icons Select Start Menu Group Please select the Start Menu Group that you would like to place the Hitachi Debugging Interface for E6000 series icons into You can select from an existing group or create a new one Group Name HDI Accessories StartUp il Carcel Figure 2 12 Select Program Manager Group Dialog Box e Select an existing group or enter the name of a new group and click OK to proceed This completes the HDI installation 18 RENESAS The installer creates th
67. ple of Connecting the User System Interface Cable Head to the User System Screw x2 Screw x2 User system interface cable head Figure 3 2 Example of Connecting User System Interface Cable Head to User System e Ensure that all power is off to the E6000 emulator user hardware and associated equipment e Insert the cable head into the socket on the user system hardware Depending upon the package it may be possible to orientate this cable head in any position on the socket so care should be taken to correctly identify pin 1 on the E6000 emulator and socket when installing e Screw the cable head to the socket with the screws provided Progressively tighten the screws in the sequence shown in figure 3 3 until all are finger tight QO QO Figure 3 3 Sequence of Screw Tightening Note Be careful not to over tighten the screws as this may result in contact failure on the user system hardware or damage the cable head Where provided use the solder lugs on the QFP socket to provide extra strength to the E6000 emulator user system connection 30 RENESAS 3 1 2 Plugging the User System Interface Cable Body into the E6000 Emulator Plug the cable body into the E6000 emulator taking care to insert it straight and push it firmly into place Cable body Cable head User system interface cable Figure 3 4 Plugging User System Interface Cable Body to E6000 Emulator 3 1 3 Plugging the User System I
68. r For details refer to the manual of your host computer Starting WindowsNT e Execute Start Programs Administrative Tools Common WindowsNT Diagnostics e Click the Memory button in the Resource tab and in the following form make a note of the upper memory areas that have already been used 11 RENESAS stat En j stat end t start end e Shut down WindowsNT Starting the Host Computer in Setup Mode For details on the setup mode refer to the manual of your host computer e Check which upper memory areas have already been used The memory areas being used should be the same as those checked for WindowsNT above e Define the memory area for the PC interface board Select one of the memory areas that correspond to the following PC interface board switch settings and no other devices can access the selected memory area stat end f stan En Stt end o HCooo0 Hc3FFF 4 H D0000 HOsFFF 8 H 0000_ HESFFF 1 Hcao00_ Hc7FFF 5 HD4000 HoO7FFF 9 HEs000 HE7FFF 2 Hc8o00_ HcBrFF e H Ds000 HOBFFF A H E8000_ HEBFFF a Hccooo HcrrrF 7 HDcooo HDFFFF B HECOOO HEFFFF Note 4 is the setting at shipment 12 RENESAS If the Intel P amp P BIOS disk is supplied with the host computer define the memory area as follows e Start the host computer with the Intel P amp P BIOS disk e Check the upper memory areas that have already been used with
69. r Co Ltd 2003 Renesas Technology Corp All rights reserved Printed in Japan SuperH Family E6000 Emulator User s Manual 2CENESAS Renesas Electronics Corporation 1753 Shimonumabe Nakahara ku Kawasaki shi Kanagawa 211 8668 Japan REJ10B0005 0200H
70. ration Ea General Memory Map CPU Driver Device choy Emulator ISA Driver Mode Mode 2 ROM Enabled Change Clock Mode PLL ON x1 z ip egister EHECKINIE m Emulator Clocks Stack Eomter Clock Rate 10MHz x D Eogan Counter Clock Divisor 1 X Signal Enable Resulting CPU clock rate 10 00MHz T Reset Timer Resolution 125ns v User YCC Threshold 3 00 amp m Memory Access I Software read write on the fly T Break on access error I Disable during sleep V Hardware parallel access lV Warn if downloading outside internal ROM Cancel Apply Help Figure 4 3 Emulator Configuration Dialog Box General T NMI e Set up the options as shown in table 4 1 Table 4 1 Configuration Options Option Value Depending on Evaluation Chip Device SH7017 Mode 2 with on chip ROM Clock mode PLL ON x 1 Clock rate 10 MHz Clock divisor 1 Timer resolution 125 ns User system voltage monitoring level 3 00 V User VCC Threshold All other options Default 45 RENESAS 4 3 2 Mapping the Memory After you have selected the device and mode in the Configuration Dialog Box the HDI automatically maps the E6000 emulator memory for the device and mode you have selected e To display the current memory map click the Memory Map tag The dialog box shown in figure 4 4 is displayed Emulator Configuration x General M
71. resesreesssrerrssrrresresrenresrerreseereeesee 17 Figure 2 10 Installing Dialog BOX ciecen nrniei eneen aeae eae EE ESERE 17 Figure 2 11 Insert New Disk Dialog BOX ssessssesssseesssresresrsrreesreeresrerrsresresrerreserreserrenesreereeene 18 Figure 2 12 Select Program Manager Group Dialog BOX ssessessesseresrsseesrsreeresrrrrssrsrreresrreresene 18 Figure 2 13 HDI Program Gfioypenerenere ne E EE R E EE ES 19 Fipure 2 14 HDI Start MEDU lt sreorse cvp disiro eraai aicese niner een oaa E Taa S Ea io Aeae 20 Figure 2 15 HDI Start Up Messages eceeescssecsecsceceeseeeeeeeeeeeecesecnseceaeceaecuecaeesaesenesentees 21 Figure 2 16 HDI Window vnceses ci sei Setecesstisii ccd contesssbenessebledseebstupccnsucidasssbevecsdersdebesnssboentessaniece 22 Figure 2 17 Start Menu Uninstaller cee eeesecesecesseceeneeeeeceseeecaeceeneeceaeceeeesnaeceeneeenaeeeeees 23 Figure 2 18 Select Uninstall Method Dialog Box eee eeceeeeesecssecsseceecaecsaeceeeaeeeaeeeneeees 24 Figure 2 19 Perform Rollback Dialog BOX o oo ceeeeeeeeeeeeeeeeceseceaeceaecnaecauecaeesaeeeaeeeetes 25 Figure 2 20 Perform Uninstall Dialog BOX oo eee ceeeeeeeeeeeeeceecesecaeceaeceuecaeesaeeeaeeentes 26 Figure 2 21 Faulty Connection Message 0 cccescesecsseeseeeeeeeeeeeeeeceseceseeaecaeceesaeesaeeeaeeeneees 27 Figure 2 22 Communication Problem Message ccccescesecseeseeeeeeeeeeeeeeeeeeeeesessaeesseseeeaeeeas 27 Figure 3 1 E6000 Emulator Connectors eeceecescesecseceeeceeec
72. rface board Select one of the address ranges that is not listed in the Computer Properties dialog box For example if you select the range H D8000 to H DBFFF the corresponding switch number will be 6 RENESAS Table 2 1 Address Map of PC Interface Board and Memory Switch Setting Address Range Switch Setting From H C0000 to H C3FFF From H C4000 to H C7FFF From H C8000 to H CBFFF From H CC000 to H CFFFF From H D0000 to H D3FFF at shipment From H D4000 to H D7FFF From H D8000 to H DBFFF From H DC000 to H DFFFF From H E0000 to H E3FFF From H E4000 to H E7FFF From H E8000 to H EBFFF From H ECO00 to H EFFFF DW Pr oO O N OD om A OIN oO Define the memory area so that Windows 95 or Windows 98 does not use the area as follows e Click Memory in the Reserve Resources panel and click Add The Edit Resource Setting dialog box will be displayed Edit Resource Setting 24 x Enter the beginning and ending values of the memory range you would like to reserve Start value p 8000 4 End value per 4 Figure 2 2 Edit Resource Setting Dialog Box e Enter the memory area addresses in Start value and End value e Shut down the host computer do not restart it and turn off the power switch e Using a small screwdriver rotate the switch in the rear panel of the PC interface board so that the arrow points to the number corresponding to the memory area you have selected e Remove t
73. rs that are well versed in the operation of the E6000 emulator RENESAS LIMITED WARRANTY Renesas warrants its E6000 emulators to be manufactured in accordance with published specifications and free from defects in material and or workmanship Renesas at its option will repair or replace any E6000 emulators returned intact to the factory transportation charges prepaid which Renesas upon inspection determine to be defective in material and or workmanship The foregoing shall constitute the sole remedy for any breach of Renesas s warranty See the Renesas warranty booklet for details on the warranty period This warranty extends only to you the original Purchaser It is not transferable to anyone who subsequently purchases the emulator product from you Renesas is not liable for any claim made by a third party or made by you for a third party DISCLAIMER RENESAS MAKES NO WARRANTIES EITHER EXPRESS OR IMPLIED ORAL OR WRITTEN EXCEPT AS PROVIDED HEREIN INCLUDING WITHOUT LIMITATION THEREOF WARRANTIES AS TO MARKETABILITY MERCHANTABILITY FITNESS FOR ANY PARTICULAR PURPOSE OR USE OR AGAINST INFRINGEMENT OF ANY PATENT IN NO EVENT SHALL RENESAS BE LIABLE FOR ANY DIRECT INCIDENTAL OR CONSEQUENTIAL DAMAGES OF ANY NATURE OR LOSSES OR EXPENSES RESULTING FROM ANY DEFECTIVE E6000 EMULATOR THE USE OF ANY E6000 EMULATOR OR ITS DOCUMENTATION EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES EXCEPT AS EXPRESSLY STATED OTHERWISE IN T
74. se Step Out from the Run menu to return to the main program or click the Step Out button in the toolbar and return to the main program 4 8 Using the Complex Event System So far in this tutorial we have monitored the behavior of the program by observing the contents of an area of memory in the Memory window or the values of variables in the Watch and Locals windows 68 RENESAS Sometimes the action of a program is too complex to allow us to do this Using the emulator s complex event system you can detect the timing when a program accesses address H 3c4 4 8 1 Defining an Event Using the Complex Event System Now define an event using the complex event system to monitor a part of the program as follows e Choose Breakpoint Window from the View menu to display the Breakpoints window or click the Breakpoint Window button in the toolbar Eo e Click Add to define a new breakpoint The Select Event Type dialog box allows you to define the event type Select Event Type C PC Break Detector Figure 4 28 Select Event Type Dialog Box Select Type1 Full and click Add The Breakpoint Event Properties dialog box allows you to define the breakpoint s properties 69 RENESAS Breakpoint E vent Properties Ed General Bus Area Signals Action Address Direction C Dont Cae A C Read Address Lo Ho Pa tite Address Hi Ho G Ei outside Range Either m Data Compare I Compare Use H
75. seceseceaeceaecsaecaaecaeesaeeeaeseneeeatees 76 iv 4 10 1 Selecting the Measurement Conditions eee eeceeeceeeeesecesecesetaeseetaeeees 76 4 10 2 Displaying the Analysis Results esssseeseeeeesesrsresesreerrsrerrssrrrrererreerrsrrerssrerrees 79 4 11 Saving The SOSSlONsssseescssesscsetsateun ssbasvaresstseynsssnsvensbnabvinsoensvepsdeasvnnshsniteedbsebeayseeesenysseadeanebens 80 412 What Next ccc ceiis soe ease i at iv a ase de ede chon 80 Appendix A Command Line Functions eee cesceeeeeneecneeceeeeseeeeneesaeenes 81 Figures Figure 2 1 Computer Properties Dialog Box Before Setting eee cseceeeereeeeeeeeeeeeeees 8 Figure 2 2 Edit Resource Setting Dialog Box eee eceecceeecesecesecesecaeceaecaeecaeeeaeeeaeeeeeeneees 9 Figure 2 3 Computer Properties Dialog Box After Setting oe cee cee csee cree ereeeeeeeeeeee 10 Figure 2 4 Run Dialog BOX siorino eae erosa e r n E a EE es rea oiio e ES 14 Figure 2 5 HDI Installer Welcome Dialog BOX s sssesssssesssreeesrsrserrsrrerrsreernsrnreererrreresrenrnsrnres 14 Figure 2 6 Read Me Dialog BOR sicccscc cscsaskscvessecsentvvessdedveassbecbenssdeseecsbesndbesndadsbesety E a E i is 15 Figure 2 7 Select Destination Directory Dialog BOX ssesssssssssresesreerrsreerssrerrerrnrreresrenresreeresee 16 Figure 2 8 Make Backups Dialog BOX esssseessersesesrsreresreerrsrrrssrerrnsenteerrsrrnrrsrerrnsenrreresrreenrt 16 Figure 2 9 Select Backup Directory Dialog BOX esssssesserssessse
76. t is also possible to store all bus cycles and then just look at selected cycles This is called trace filtering 1 1 3 Execution Time Measurements The E6000 emulator allows you to measure the total execution time or to measure the time of execution between specified events in the complex event system You can set the resolution of the timer to any of the following values 20 ns 125 ns 250 ns 500 ns 1 us 2 us 4 us 8 us or 16 ps At 20 ns the maximum time that can be measured is about six hours and at 16us the maximum time is about 200 days 1 1 4 Performance Analysis The E6000 emulator provides functions for measuring the performance of a program The performance of the specified program range can be displayed either as a histogram or in percentage form A timer resolution of 20 ns 40 ns or 160 ns can be selected In addition the execution count of the specified program range can be measured 1 to 65535 12 Complex Event System CES In most practical debugging applications the program or hardware errors that you are trying to debug occur under a certain restricted set of circumstances For example a hardware error may only occur after a specific area of memory has been accessed Tracking down such problems using simple PC breakpoints can be very time consuming The E6000 emulator provides a very sophisticated system for giving a precise description of the conditions you want to examine called the complex event system Th
77. this chapter e Set up the E6000 emulator from the HDI software See section 2 Setting Up You do not need to connect the E6000 emulator to a user system to use this tutorial e Make sure you are familiar with the architecture and instruction set of the MCU For more information refer to the Hardware Manual and the Programming Manual for the target MCU The tutorial program starts the Direct Memory Access Controller DMAC by the MTU and transfers Name Hitachi Ltd string to the memory start address Destination Address H 200000 The source program tutorial C and the object file in the Sysrof format tutorial abs are provided in the HDI installation disk 41 RENESAS 4 2 Starting HDI To start the HDI e Select HDI for E6000 SH7010 from the Start menu J Accessories gt J Internet Explorer gt Favowes 8 StartUp b 4 Uninstall HDI for E6000 SH7010 2 Documents b ts MS DOS Prompt JJ Windows Explorer Eh Settings Figure 4 1 HDI Start Menu 4 2 1 Selecting the Target Platform The HDI has extended functions for supporting multiple target platforms and if your system is set up for more than one platform you will first be prompted to choose the target platform Note that you can change the target platform at any time by choosing Select Platform from the Setup menu If you have only one platform installed this menu option will not be available The tutorial selects the E6000 SH7016 7017 Emulator 42 RENES
78. u the maximum flexibility in debugging applications and user system hardware Hardware Break Conditions Type 1 and Type 2 Up to 12 break conditions can be defined using the event and range channels in the complex event system CES For more information about the hardware break conditions see section 1 2 Complex Event System CES On chip Breakpoint Type 3 In target ROM three breakpoints on chip break can be set Program Breakpoints PC Breakpoints Up to 256 program breakpoints can be defined These program breakpoints are set by replacing the user instruction by a BREAK instruction 1 1 2 Trace The E6000 emulator incorporates a powerful realtime trace facility which allows you to examine MCU activity in detail The realtime trace buffer holds up to 65535 bus cycles and it is continuously updated during execution The buffer is configured as a rolling buffer which can be stopped during execution and read back by the host computer without halting emulation The data stored in the trace buffer is displayed in both source program and assembly languages for ease of debugging However if trace filtering is used only assembly language can be displayed RENESAS The buffer can be set up to store all bus cycles or just selected cycles This is called trace acquisition and uses the complex event system CES to select the parts of the program you are interested in see section 1 2 Complex Event System CES for more information I
79. used go to Section 2 2 3 Modifying the SYSTEM INI File e Locate the line in the CONFIG SYS file that reads DEVICE C WINDOWS EMM386 EXE 10 RENESAS e Change the line so that it reads as shown below DEVICE C WINDOWS EMM386 EXE X aaaa bbbb Here aaaa is the upper four digits of Start value and bbbb is the upper four digits of End value For example for the switch set to 6 you would set the line to read DEVICE C WINDOWS EMM386 EXE X D800 DBFF e Save the CONFIG SYS file 2 2 3 Modifying the SYSTEM INI File e Add the following line to the 386enh section in the SYSTEM INT file EMME xclude aaaa bbbb Here aaaa is the upper four digits of Start value and bbbb is the upper four digits of End value For example for the switch set to 6 you would set the line to read EMMExclude D800 DBFF e Save the SYSTEM INT file and exit the SYSEDIT e Restart the host computer This ensures that Windows will not use this block of memory You are ready to connect up the E6000 emulator and run the HDI to check communication to it 2 3 Setting Up the PC Interface Board on WindowsNT 4 0 The PC interface board uses the ISA bus slot and therefore the host computer must have a spare ISA bus slot This section describes the general procedure for installing the PC interface board in the host compute
80. user system interface cable is connected to the E6000 emulator the E6000 emulator will operate at a specified voltage and all clock frequencies will be available to the user If the user system interface cable is attached the E6000 emulator will match the voltage supplied to the user target in all cases i e even when the user V_ is below the operating voltage for the MCU You must be careful not to select an invalid clock frequency When the E6000 emulator is connected to the user system and the user system is turned off the voltage follower circuit output voltage level is 0 V In this case the E6000 emulator will not operate correctly You can set a user V threshold in the range Vcc max 0 V by using the E6000 emulator configuration dialog box If the user Ve drops below this threshold the User System Voltage in the System Status window will display Down otherwise OK is displayed 38 RENESAS User Vcc User Vcc level threshold User Vcc threshold E6000 Vcc level User system interface cable removed Figure 3 14 Voltage Level Monitoring Example for Vcc 3 3 V 39 RENESAS 3 5 Differences between MCU and E6000 Emulator When the E6000 emulator is initialized or the system is reset there are some differences in the initial values in some of the general registers between the MCU and E6000 emulator as shown in table 3 2 Table 3 2 Initial Value Differences between MCU and E6000 Emulator
81. will be displayed Uninstall Hitachi Debugging Interface for E6000 SH Perform Uninstall You are now ready to uninstall the Hitachi Debugging Interface for E6000 SH from your system Press the Finish button to perform the uninstall Press the Back button to change any of the uninstall options Press the Cancel button to exit the uninstall Cancel Figure 2 20 Perform Uninstall Dialog Box e To start uninstallation click Finish e To cancel uninstallation click Cancel e To go back to the Select Uninstall Method dialog box click Back When uninstallation is successfully completed the directories and files created by the installer are deleted Note 1 Any subdirectory or file that you have created in the HDI directory will not be deleted by the uninstaller 2 When rollback was not performed backup directory and files will not be deleted 26 RENESAS 2 7 Troubleshooting 2 7 1 Faulty Connection If the following message box appears during initialization the PC interface board was not able to detect the E6000 emulator E6000 Platform AN Driver Error Emulator is switched off or not connected Unable to restore previous configuration for E6000 ISA Driver Will attempt to set default values instead Figure 2 21 Faulty Connection Message This indicates e Power supply not connected to the E6000 emulator or the emulator not switched on Check the power LED on the E6000 emulator e The PC interface
82. xplains how to connect the E6000 emulator to an external user system Section 4 Tutorial then introduces each of the E6000 emulator s main features by showing how to load and debug a simple C program The tutorial program is supplied on disk so that you can follow the steps on your own system to learn first hand how it operates Assumptions This manual assumes that you already have a working knowledge of the procedures for running and using programs for MS DOS and Microsoft Windows operating system This manual also assumes that the operating environment is the English version of Microsoft Windows 98 operating system running on the IBM PC Related Manuals e Supplementary Information e HDI User s Manual e User System Interface Cable User s Manual e PC Interface Board User s Manual e SIMM Memory Module User s Manual RENESAS Conventions This manual uses the following typographical conventions Style Used for computer Text that you type in or that appears on the screen parameter A label representing the actual value you should type as part of a command bold Names of menus menu commands buttons dialog boxes and windows that appear on the screen Trademarks Microsoft MS MS DOS Windows and WindowsNT are registered trademarks of Microsoft Corporation in the United States and or in other countries IBM is a registered trademark of International Business Machines Corporation
Download Pdf Manuals
Related Search
Related Contents
平成19年3月期 中間決算短信(連結) EnGenius EAP1750H WLAN access point OPERATING INSTRUCTIONS - Conair Canada 1 - シャープ Projector Controller with Built-in VGA Splitter Operating Instructions - VEGAPULS 62 - 4 … 20 mA/HART COMPARONS LES LANGUES POUR MIEUX VIVRE User´s Manual NGS Black Travel Pack 10 in 1 Copyright © All rights reserved.
Failed to retrieve file