Home

H8/3802 Series E6000 Emulator HS3800EPI60H User`s Manual

image

Contents

1. 2 The numbers in the table show the reference section numbers Rev 1 0 09 00 page 108 of 134 RENESAS 6 1 BREAKPOINT EVENT Abbreviation BP EN Sets a breakpoint This command has several formats to allow different types of breakpoints to be set There are three different types available These are e Program breakpoints e Access breakpoints e Range breakpoints 6 1 1 Program Breakpoints Syntax bp program address bp p address This will set a program breakpoint at the address specified 6 1 2 Access Breakpoints Syntax bp access address options bp a address options Options are lt options gt lt dataopts gt read write lt areaopts gt lt actionopts gt count lt countval gt delay lt delayval gt channel lt channelno gt lt dataopts gt data lt data gt mask lt mask gt lt signalopts gt signal 1 21314 high low lt signalopts gt lt busopts gt byte word lt busopts gt bus cpu cpupre sadata sapre cpumdata cpumpre lt areaopts gt area io iram irom lcdram lt actionopts gt action trac non break timer start stop lt channelno gt Ls 2 An access breakpoint causes a break if the MCU accesses the specified address in the specified way 8RRENESAS Rev 1 0 09 00 page 109 of 134 6 1 3 Range Breakpoints Syntax bp range outside lt address low gt lt address hi gt lt options gt l
2. Cancel Source Pathname Figure 2 11 Insert New Disk Dialog Box 1 The installer then copies the HDI file to the specified directory Copying HDI Help Context File C AHdi 38004Hdi ent HE Figure 2 12 HDI Installing 2 When second disk 2 3 installation is completed the following message is displayed Then insert installation disk 3 3 and press the OK button Rev 1 0 09 00 page 17 of 134 RENESAS Insert New Disk x Place installation disk 3 into the floppy 0 drive and press the OK button Cancel Source Pathname Figure 2 13 Insert New Disk Dialog Box 2 Select the host interface type to be used in the following dialog box Select Driver Type x Please select the type of interface you will be using to connect your PC to the E6000 PCI bus board LAN adapter PC Card PCMCIA Figure 2 14 Select Driver Type Dialog Box Rev 1 0 09 00 page 18 of 134 RENESAS Finally this dialog box allows you to specify the program group for the HDI icon start menu Select Start Menu Group EG Please select the Start Menu Group that you would like to place the Hitachi Debugging Interface for E6000 series icons into Y ou can select from an existing group or create new one Group Name HDI Accessories StartUp Figure 2 15 Window for Specifying Program Groups of Icons e Select an existing group or enter the name of a new group and click OK to proceed 2 4 1 In
3. Oxff7f 0x0000 Oxff7f Rev 1 0 09 00 page 132 of 134 E 700 BITE cases saa as ook AP TOO H TLE K dershakakeds EE OOO HAE ssrsssnsesesas H000 HY OGRE acne entete we coe P200 Guat ae ee AY ZOOS HIZTE aaae eta etn ten ei 8RRENESAS Shows the results of decoding test and step test for the dual port RAM in the E6000 normal completion Shows the results of decoding test for the firmware RAM in the E6000 normal completion Shows the results of step test for the firmware RAM in the E6000 normal completion Shows the results of decoding test for the trace RAM in the E6000 normal completion Shows the results of step test for the trace RAM in the E6000 normal completion Shows the results of decoding test for the mapping RAM in the E6000 normal completion Shows the results of step test for the mapping RAM in the E6000 normal completion Shows the results of decoding test and step test for internal OK ROM and RAM in the E6000 OK normal completion 07 08 09 10 11 12 Testing STEP Operation Setting up Step Operation Testing Key Break Setting up Key Break please wait please wait Testing Emulation RAM Hardware Break Setting up GRD Break WPT Break please wait Testing Internal ROM Write Protect Setting up Write Protect please wait Testing Hardware Break Setting up A Break Point Initialised B Event De
4. Abbreviation TV Saves the trace data to a file in binary format The saved data can be compared with the trace using the trace_compare command trace_save lt filename gt Rev 1 0 09 00 page 125 of 134 8RRENESAS 6 15 TRACE SEARCH Abbreviation TS Search Trace results This command will let the user search in the same way as the trace find dialog box Syntax TS lt address gt lt dataopts gt lt signalopts gt lt busopts gt lt areaopts gt lt directionopts gt lt timestampopts gt lt fromopts gt lt address gt address lt address gt to lt address gt lt dataopts gt data lt data gt mask lt mask gt byte word lt signalopts gt signal lt sig gt lt sig gt lt sig gt lt sig gt lt sig gt 1 0 x 1 high 0 low x don t care lt busopts gt bus cpu cpupre sadata sapre cpumdata cpumpre lt areaopts gt area io iram irom lcdram lt directionopts gt dir read write either lt timestampopts gt time lt start gt to lt stop gt lt start gt and lt stop gt should be in format 0s 0000 000 lt fromopt gt from lt record gt Examples ts address 104 data 55aa w ts area irom Rev 1 0 09 00 page 126 of 134 Searches trace data for the cycles that accessed data 55aa at address 104 in word units Searches trace data for the cycles that accessed the ROM area 8RRENESAS 6 16 USER SIGNALS Abbreviation US Allows the
5. Don t Care Don t Care cnet Figure 5 17 Signals Panel Rev 1 0 09 00 page 99 of 134 8RRENESAS 5 6 Trace Acquisition The buffer can be set up to store all bus cycles or just selected cycles This is called trace acquisition To specify the trace acquisition click Acquisition in the Trace window The Trace Acquisition dialog box provides the following panels to allow you to specify when trace acquisitions begins Trace Acquisition EI General Stop Delayed Stop Suppress Time Stamp I DTU Cycle M Free Trace ian Clock Disabled M Trace Events Event 9 R H 1024 address M Sequence Delete Del All OK Cancel Figure 5 18 General Panel Rev 1 0 09 00 page 100 of 134 8RRENESAS 5 6 1 General DTU Cycles check box in Suppress space is disabled Time Stamp section allows you to acquire the program execution time in the trace buffer When Time Stamp is used the following information cannot be acquired e Area e Status e Probes Also multiplication division instruction cannot be displayed Check the Free Trace check box to disable all trace acquisition conditions This temporarily disables trace acquisition without deleting the conditions With Free Trace checked all bus cycles are captured excluding those specified in the Suppress section Stop panel and Delayed Stop panel The Trace Events section of the General panel allows you to define events and event sequences to be use
6. 0 cccccccssesssscssesseseesesseseeseaneseeseans 11 24 Installing the HDI Software i ecscscseeees ciewbsedsdecasialivsccbeteesese eree esenee iero TNE suet 13 24 1 Installation Details c3 2 ccsees sevhepeesacaizcess lt hinscsecsayssconsosions socastes RE EEES 19 23 Checking the System sssamasav aise edie E eae eet ane 20 26 WANT scr sects cls Aaa eee E cacvenesstensacsaeatees stone A E pisseaoeee aseacee 22 2 7 Uninstalling the HDI Software oo eee cseecseeeeeeeeeeeeceeeceeeesecaecsaecsaecsaesaaeeaeeeneeees 23 2 8 Troubleshooting cearo Mis acted dagacenchencucevadbcss eva bites shes E E A 27 28 1 Faulty Connectionsuausuusashusesesueaensesinere nattens vest 27 2 8 2 Communication Problems serarvrnrnrnvnrnvnvnvnvevnvnnvvrverrvrrrvrverarerarvrnevsnrnenveenvesnvene 28 Fen 3 HardWare eiee E A E E a R Ee 29 3 1 Connecting to the User System cs ccccesseseteessasssessetssspesessbisoteenessnseasesantespessnsessebentvene 29 3 1 1 Connecting Example of the User System Interface Cable Head to the User Systemi cinri aroei eE EE rE EErEE Eran EEE TEE EEE ENEE r EEA Esi 30 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 User System Interface Cable Heads 31 32 Power Supply cipon aaae aE E E EEE EEE OE EEE REEE 32 Rev 1 0 09 00 page iii of x 32 1 AC Power Supply Adapter c ccc cseneescosnscssessnsesscosnsesnesensvens
7. 1 0 09 00 page 115 of 134 8RRENESAS 6 5 BREAKPOINT_SEQUENCE EVENT SEQUENCE Abbreviation BS ES Syntax bs lt channel gt armed by not lt chanl gt lt chan2 gt armed by off reset by lt chanl gt lt chan2 gt reset by off Allows you to define events which arm or reset an event Examples bs 1 armed by 2 3 Means events 2 or 3 will arm event 1 The numbers are the channel numbers of the event detectors I to 8 which can be set using the channel option of the event command bs 2 reset by 4 Event 2 is reset by event 4 when event 4 occurs The Off keyword is used to disable arming resetting of an event by other events the event then becomes independent Rev 1 0 09 00 page 116 of 134 8RRENESAS 6 6 CLOCK Abbreviation CK Selects or displays the source or rate of the active system clock p and the subclock gw With no parameters the active clock source and rate are displayed If the clock source or rate is changed the E6000 emulator system is reset In the MCU the rate of system clock OSC1 and OSC2 is a half of the input clock rate Table 6 5 CLOCK Parameters Parameter Keyword Clock Source Optional 1 05 0 5 MHz internal clock 2 2 MHz internal clock 8 8 MHz internal clock t2 Target 2 2 sub 32k 32 768 kHz internal subclock ow sub 38k 38 4 kHz internal subclock dw sub 307k 307 2 kHz internal subclock ow sub t target subclock Note that the user system cloc
8. 109 6 1 2 Access Break pOmt enesenn eea E REEERE 109 61 3 Range Break points eienenn nn EE E EE E E EE oE 110 GLA OPtONS EEE EE EEE EEEE 110 6 2 BREAKPOINT_CLEAR EVENT CLEAR snrvrrvrnveverevnrevernervrrssenereresvnsvasnesvrsvesnessreveene 113 6 3 BREAKPOINT DISPLAY EVENT DISPLAY errvvnnorernvorerernervrerennrrvrenvrerernesvarnernseseene 114 6 4 BREAKPOINT ENABLE EVENT ENABLE erernrorerorovevevnervrrrvnvererernnrvesnersrevesnerereseene 115 6 5 BREAKPOINT SEQUENCE EVENT SEQUENCE rnrorevonvrnvvrnvvrnvrrnvnrnvnvevnvevvvrversveeenn 116 66 CLOCK sree Ea ES EEE EEE AE E EEES EAER REE EEE ESS 117 67 DEVICE TYPE unionen nepen eia E a a Sa Ea eee nae 118 Rev 1 0 09 00 page v of x 6 8 MAP SET siiccssestetssuasedezsuestessoreteiontenslenesnysedyseeecenscavubeauczeneeshcabashdsessacegecsuabbanavonsces sctesbdpdors 119 6 97 MODE asset RE 120 6 10 TEST EMULATOR piestbineb enken berbere undrende Jobtesnepeesseulsoxsthe Ea e Se ani arron Daaa 121 6 11 TIMER passene 122 6 12 TRACE ACQUISITION iss casssscsecsscsvecaeots cxsceces seeped eet Aap ai eae e EA E AOE N ERE 123 6 13 TRACE COMPARE secesie oaa eaae RAAE E AA Ea EONA Eaa aA SEARES anes 124 614 TRACE SAVE Siuo aa A E A EE 125 6 15 TRACE SEARCH iniae keiseren 126 6 16 USER SIGNALS vacceccs docs branner GSE esigoenioiees aon 127 6 17 REFRESH iensen bert ea a a tatela eed en ots clea eae 128 Section 7 Diagnostic Test Procedure save 129 7 1 System Set Up for Test Program Execut
9. Edit Memory Mapping Dialog Box errnrnrnvnvrnvvrnvrrvvrrvvrrvrrerrverarvrnrvresvrerveevvensvennveneee 49 System Status Window Memory Panel rornrnrnnnrnrnrnvnvvvnvnvnnvnnnvrrnvrrvrrrvrverrversverere 50 Open Dialog Box Selecting the Object File rarrarvrnnnrnrnrnvnnnvvvnnvnrvvrrnvrrvrrevrversern 51 HDI Information Message Box enrvnnvnnnrnvnvnnnvnnnvvervvrrverrnerersverarvrarvrnenrerveevvesnvennvenene 51 Open Dialog Box Selecting the a Source File rsrnrnnnnnnnnvnnnvrnnvrrnvrrnrrvrrvvravvrnensne 32 Tutorial Program Window rerrrnrnrnnrnvnvnvnvnvnvennvrnvvsvsrsverenaveraverarvrnrrnrnnssvessvessvesnvese 53 Setting a Breakpoint cscs csesscelad vests etecentevaeveanscnevecvoou sntvle kr oteevecustbuns havesbendeveede duebvs 54 Program Break i usstaieidsemsnivsm stibieivirvsslsneivirstarieuidsiersdnebvlesse 55 System Status Window Platform panel ernnnnnrnnnnnnnnnnvnrnvvrnvrrnvvrrrvvravvrnrvrnerreenen 56 Repist ers WINDOW crines iener aE n EEEE E E E E EEE R 57 Changing Register Valte sirene E E EE S ESEE 58 Breakpoints Window snvsisetstnssietesstsstrsdsedetsarkene canes esaeas eneee iog aiiiar aaeain 58 Open Memory Window srernrnvvnnvvvrvvnrvvrrvvernrrensveresvrvenrveraveravvrnrvrnennevnessvesnvesnvesvvesen 60 Memory Window Byte snrnvrrnvrrnvvrvrverrvernvvrnvvrnrvrnvnnnvnnevversnesvensnvesvvrsvsvevaserasvreve 60 Watch Window sp sdk sier stikken reser ees 61 Watch Window Symbol Extension asnonnnn
10. 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 THIS WARRANTY THIS E6000 EMULATOR IS SOLD AS IS AND YOU MUST ASSUME ALL RISK FOR THE USE AND RESULTS OBTAINED FROM THE E6000 EMULATOR Rev 1 0 09 00 page II of VI RENESAS State Law Some states do not allow the exclusion or limitation of implied warranties or liability for incidental or consequential damages so the above limitation or exclusion may not apply to you This warranty gives you specific legal rights and you may have other rights which may vary from state to state The Warranty is Void in the Following Cases Hitachi shall have no liability or legal responsibility for any problems caused by misuse abuse misapplication neglect improper handling installation repair or modifications of the E6000 emulator without Hitachi s prior written consent or any problems caused by the user system All Rights Reserved This user s manual and E6000 emulator are copyrighted and all rights are reserved by Hitachi No part of this user s manual all or part may be reproduced or duplicated in any form in hard copy or machine readable form by any means available without Hitachi s prior written consent Other Important Things to Keep in Mind 1 Circuitry and other examples described herein are meant merely to indicate the characteristics and per
11. Lo field Breakpoint E vent Properties EG General Type Address PCBreak Dont Car Ac c Address Lo PE H 1034 r Cancel Help Figure 5 3 Breakpoint Event Properties Dialog Box Alternatively double click in the Break column in the program window Rev 1 0 09 00 page 84 of 134 8RRENESAS 5 3 Complex Event System The complex event system CES allows you to define events which depend on the state of a specified combination of the MCU signals and provides a unified way of controlling the trace break and timing functions of the E6000 emulator The complex event system uses the event and range channels to allow you to detect when a specified event has occurred 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 Table 5 3 shows the options that can be specified for event and range channels Table 5 3 Event and Range Channel Options Option Event Range Access to a specified address or within a specified address O O range Access outside a specified address range A specific value of data with an optional mask A specific MCU access direction read or write A specific MCU access type instruction prefetch etc A specific MCU access area internal ROM RAM etc A signal state on one or more of the four external probes A specified number of times that t
12. Operating 35 to 80 RH no condensation Storage 35 to 80 RH no condensation Ambient gases Must be no corrosive gases AG input voltage 100 V to 240 V 10 AC input frequency 50 60 Hz AC current 0 6 A max AC input cable HS3800EPI60H HS3800EPI60HB 100 V 120 V UL 200 V 240 V BS User system voltage 1 8 V to 5 5 V Note HS3800EPI60H must be used at AC100 V 120 V input voltage HS3800EPI60HB must be used at AC200 V 240 V input voltage 1 3 6 Emulator External Dimensions and Mass Dimensions 219 x 160 x 54 mm Mass 970 g Rev 1 0 09 00 page 5 of 134 RENESAS Rev 1 0 09 00 page 6 of 134 RENESAS Section 2 Setting Up This section describes how to set up the E6000 emulator using the PC interface board and prepare it for use in conjunction with the Hitachi Debugging Interface HDI This section explains how to e Set up the PC interface board e Set up the E6000 emulator e Install the HDI software and use it to check correct operation of the entire system 2 1 Package Contents The E6000 emulator is supplied in a package containing the following components e E6000 emulator e 5V 5A E6000 emulator power supply with AC cable e HDI installation disk HS3800EPI60SF e Test program disk HS3800EVI60SF e External probes e H8 3802 Series E6000 Emulator User s Manual this manual e Hitachi Debugging Interface User s Manual Before proceeding you should check that you have all the items listed
13. Selecting the Target Platform sroronnrvnnrnvnvnvnvnvnvvnnnvnrnvernvrrvererrverarvreevreevrevneevnee 44 232 Ment nannan a EEE E Bee dees E 45 44 Setting up the E6000 Emulator eovororrrvrrrvrarvrnvvrervrnrvvnvnnnnvennvrrnerrnrvsvrverrveraverasvrneneesveeveee 46 4 4 1 Configuring the Platform soesvronornnvronvrrnrrenaveranvrnvvrnrnnerveernernvennvernsrrvsrrrsversevsere 46 442 Mapping the Memoryersmmemvrinirrdsimrsesrerinvesrirsrisrissresrvebestevdsaeiresrebrsnnd 48 4 5 Downloading the Tutorial Program erenorvrorvrnvnrnvnrnvnvnvnnnnvvenevsversverenrrersrerarernrvrnrnensveesner 50 45 1 Loading the Object File sminmerrrsserrevrisrisevvanreervenkranessdke dh pedbevassvanscnveavootontves costs 50 4 5 2 Displaying the Program Listing ovorvrorvrorvrnvvrnvnrnvnnnvnvnnvvenvrsversverevsveraverarvrnessernene 52 4 6 Using Break pots lt i 0 5 soiien E nn EEE EEE EE EEEN E EEEE a 54 4 6 1 Setting a Program Breakpoint esvnnnvrnnvrenrvenrvernnvrnvvrnrnrerneevnnnvvernvnsverrvsrsvsversevsere 54 4 6 2 Executing the Progranns sc cesc cccqcisciesscsscsegecsves see E EE E E EEES 55 46 3 Examining Regst rs ieee rarei neo oona ea Rora EE o EO RE TS EE 57 4 6 4 Reviewing the Breakpoint enorvrnnvrnvvrnvnrnrnvnvnnnvvnrnvernvrrvvervrrersrerseerarvreevreevsesnee 58 4 7 Examining Memory and Variables rororrorvrnrvrornrnvvevvvnnvnrnvervvrrnvvrvrversveraveraevrnevenvneesnee 59 ATA Viewing Memory ereraa Sih ish Bes aa Steen ashi
14. Specifications Table 1 2 shows examples of the MCU operating voltage and frequency specifications supported by the E6000 emulator Note that some MCUs do not guarantee the low voltage operation or high frequency operation Table 1 2 Operating Voltage and Frequency Specifications Operating Frequency MCU Type Operating Voltage V Range fosc MHz H8 3802 series 1 8 5 5 1 0 4 0 2 7 5 5 1 0 10 0 4 5 5 5 1 0 16 0 1 3 3 Clocks The system clock and subclock can be programmed to the following frequencies Rev 1 0 09 00 page 4 of 134 RENESAS Table 1 3 Clock Frequencies Emulator Emulation Clock MCU Frequency Selection HS3800EPI60H System clock H8 3802 series 8 MHz 2 MHz 0 5 MHz or target clock 2 Subclock H8 3802 series 32 768 kHz 38 4 kHz 307 2 kHz or target subclock 1 3 4 External Probes Up to four external probes 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 When the external probes are not connected the signals are fixed high The state of a signal can be displayed in the trace window high 1 low 0 1 3 5 Environment Conditions Observe the conditions listed in the following Table 1 4 Environment Conditions Item Specifications Temperature Operating 10 to 35 Storage 10 to 50 C Humidity
15. above and contact your supplier if any are missing You also need an IBM PC or compatible as the host computer running Microsoft Windows 98 hereinafter referred to as Windows 98 or Windows NT operating system which is not supplied as part of the E6000 emulator package Rev 1 0 09 00 page 7 of 134 RENESAS 2 2 Installing the PC Interface Board The PC interface board HS6000EII01H is a memory mapped board and before using 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 D0000 to HD3FFF 2 2 1 Setting Up e Start up the Windows 98 e Click the My Computer icon with the right button of the mouse to select Properties from the pop up menu Then the System Properties dialog box is displayed e Double click the Computer icon on the Device Manager panel to open the Computer Properties dialog box e Click Memory on the View Resource panel to display the memory resource Computer Properties View Resources Reserve Resources Interrupt request IRQ Direct memory access DMA C Input output 1 0 M y Setting Hardware using t
16. indicates a potentially hazardous situation which if not avoided may result in minor or moderate injury CAUTION CAUTION used without the safety alert symbol indicates a potentially hazardous situation which if not avoided may result in property damage NOTE emphasizes essential information Rev 1 0 09 00 page IV of VI 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 E6000 emulator or will result in PERSONAL INJURY The USER PROGRAM will be LOST 1 Do not repair or remodel the emulator product by yourself for electric shock prevention and quality assurance Always switch OFF the E6000 emulator and user system before connecting or disconnecting any CABLES or PARTS Always before connecting any CABLES make sure that pin 1 on both sides are correctly aligned Supply power according to the power specifications and do not apply an incorrect power voltage Use only the provided power cable RENESAS Rev 1 0 09 00 page V of VI CAUTION This equipment has been tested and found to comply with the limits for a Class A digital device pursuant to part 15 of the FCC Rules These limits are designed to provide reasonable protection against harmful interference when the equipment is operated in a commercial environment This equipment generates uses and can radiate radio frequency energy and if
17. menu The following dialog box will be displayed Rev 1 0 09 00 page 46 of 134 8RRENESAS E6000 H8 3800 Configuration x User Signals Device H8 3802 I User Reset enable E nabl Mode Clock 0 5MHz SUB Clock 32 768KHz Timer Resolution fi 25ns M Enable read and write on the fly M Break on access error E i User VCC Threshold 4 00 Kl a gt Cancel Driver Emulator ISA Driver Change Help Figure 4 4 Target Configuration Dialog Box e Set up the options as shown in table 4 1 Table 4 1 Target Configuration Options Option Value Device H8 3802 Mode 3 single chip cannot be changed Clock 0 5 MHz Timer resolution 125 ns User VCC level threshold 4 00 V All other options Enabled e Click OK to change the target configuration Rev 1 0 09 00 page 47 of 134 8RRENESAS 4 4 2 Mapping the Memory The HDI automatically maps the E6000 emulator memory according to the device and mode set in the Configuration dialog box e To display the current memory mapping choose Configure Map from the Memory menu or click the Memory Map button in the toolbar The Memory Mapping dialog box shown in figure 4 5 is displayed Memory Mapping EG Type Close Memory one From To Ma 00000000 O0003FFF On 00004000 O000F73F On ip Guardec 0000F740 O000F74C On ip Read vw1 0000F74D OOOOFB F On ip Guardec 0000FB80 OOOOFFFF On ip Read vw1 Figure 4 5 Memory Map
18. n Wee E E E Ei SP fa fa fa a r i E ES CEEA Link up NN 2 Figure 2 19 HDI Start Up Screen 2 6 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 MCU Rev 1 0 09 00 page 22 of 134 RENESAS 2 7 Uninstalling the HDI Software This section describes how to uninstall the HDI software on Windows 98 for example e Select Uninstall HDI for E6000 H8 3800 from the Start menu JzlAccessaries StartUp Favorites BJ Windows Explorer HE MS DOS Prompt N Documents 00 Pr E Figure 2 20 Start Menu Uninstaller Rev 1 0 09 00 page 23 of 134 RENESAS The uninstaller is initiated and the following dialog box will be displayed Uninstall Hitachi Debugging Interface for E6000 H8 3800 Select Uninstali Method Welcome to the Hitachi Debugging Interface for E6000 H8 3800 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 Automatic C Custom Cancel Figure 2 21 Select Uninstall M
19. the following e The procedures for running and using MS DOS and Windows programs Rev 1 0 09 00 page i of x RENESAS Related Manuals e Hitachi Debugging Interface User s Manual e User System Interface Cable User s Manual e PC Interface Board User s Manual ISA Bus Interface Board User s Manual HS6000EIIO1 HE PCI Bus Interface Board User s Manual HS6000EICO1HE or HS6000EICO2HE PCMCIA Interface Card User s Manual HS6000EIPO1HE Description Notes on Using LAN Adapter for E6000 E8000 Emulator HS6000ELNO1HE Conventions This manual uses the following typographical conventions Style Used for computer Text that you type in parameter A label representing the actual value you should type as part of a command bold Names of menus menu commands buttons dialog boxes text that appears on the screen and windows that appear on the screen Trademarks Microsoft MS DOS Windows and Windows NT are registered trademarks of Microsoft Corporation in the United States and other countries e IBM is a registered trademark of International Business Machines Corporation e This manual describes the operating environment as Microsoft Windows 98 English version on the IBM PC Rev 1 0 09 00 page ii of x RENESAS Contents FN NN 1 1 1 Debugging Features sseseonvrrsnerennersrnnsennvrsereesenersvnnvsnvrssnessnnrnsvnnssnnrsseneesnnrnsennesnnssseneesnnene 1 ELT Break pots sisi ciieiecGenceie
20. 0 0000FFFF Internal IO 0000F74D 0000FB7F Reserved Area System Memory Resources ot used Loaded Memory Areas 00000000 00001000 00001512 0000150C 00000001 0000150B 0000156F 00001511 Session Platform Memory events 00000 Figure 4 7 System Status Window Memory Panel Note Memory mapping differs according to the target MCU 4 5 Downloading the Tutorial Program Once the E6000 emulator is set up you can download the object program you want to debug 4 5 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 The Load Program dialog box is opened e Click the Browse button select the Tutorial abs file in the Tutorial directory from the Open dialog box and click the Open button The Load Program dialog box is displayed Click the Open button to start to download the file Rev 1 0 09 00 page 50 of 134 8RRENESAS Open Look in 3 Tutorial v Al c ezez 2 Tutorial abs 2 Tutorial bat Tutorial c 24 Tutorial hds 3 Tutorial sub File name Tutorial abs Files of type all Files v Cancel Figure 4 8 Open Dialog Box Selecting the Object File When the file has been loaded the dialog box shown in figure 4 9 displays information about the memory areas that have been filled with the program code HDI x Module name C Hdi_3800 T utorial T utorial a
21. 000010b0 i GstrempaistLj name Fe lt Of 000010ca name list j name 000010dc j k j ANNI 1NN morblict ljet Mi1l Ke EJ DR 7 i E ES A u 8 Z A t a z EJ Status bar tForHelp press F1 Figure 4 3 Hitachi Debugging Interface Window For details on the HDI key functions refer to the Hitachi Debugging Interface User s Manual 4 3 2 Menu The 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 Program Window Displays the source of the program being debugged 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 Rev 1 0 09 00 page 45 of 134 8RRENESAS 4A Setting up the E6000 Emulator Before downloading a program to the E6000 emulator you first need to set up the target MCU conditions The following items need to be configured The device type The operating mode The clock source The user signals The memory map The following sections describe how to set up the E6000 emulator as appropriate for the tutorial program 4 4 1 Configuring the Platform To set up the target configuration Choose Configure Platform from the Setup
22. 34 RENESAS JOUJOU GND GND Tuvcc T5v Input pins Trigger output pins Figure 3 13 External Probe Connector The external probe interface circuit is shown in figure 3 14 HD151015 O External probes 1 to 4 220 Figure 3 14 External Probe Interface Circuit The trigger output is controlled by event channel 8 and is low active The trigger output is available as either T5 V probe color white within the range from 2 5 V to 5 V and does not depend on the user V_ level or TU probe color yellow the user V_ level When the TU is used user system cannot be evaluated at the power voltage of 1 8 V The voltage must be within the range 2 0 V to 5 0 V 3 3 5 Voltage Follower Circuit A voltage follower circuit is implemented on the E6000 emulator which allows the user system voltage level from the user system to be monitored This monitored voltage level is automatically supplied to the logic on the E6000 emulator and is derived from the E6000 emulator power supply unit This means that no power is taken from the user system board If no user system interface cable is connected to the E6000 emulator the E6000 emulator will operate at 5 V 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 system in all cases i e even when the user V is below the operating voltage for the MCU You must be careful not to selec
23. 4 lists the actions that can be specified Table 5 4 Specifiable Actions Action Description Break Halts program execution Start Timer Starts the execution timer see section 5 1 Configuration Dialog Box for more information about the timer resolution Stop Timer Stops the execution timer To delay activation of the channel for a specified number of bus cycles after it is triggered enter the number of bus cycles in the Delay after detection before break occurs field To delay activation of the channel until it has been triggered a specified number of times enter the required number of event occurrences in the Required number of event occurrences field Rev 1 0 09 00 page 89 of 134 8RRENESAS To create a sequence of events select the Enable Sequencing option for all events that are going to form part of the sequence 5 3 5 Event Sequencing To configure the sequence check Enable Sequencing and click the Configure Sequence button in the Action panel in any of the breakpoints The Event Sequencing dialog box will be displayed Event Sequencing x Event E _strcmp address break count 5 C Is rmed By I No occurrence of Is Reset By The following events I 1 E _stremp address break count 5 2 E startup VECT address delay 100 break fa EJ Hei 184 address bus CPU PREFETCH I I undefined or unavailable I undefined or unavailable I undefined or unavailable I undefined or unavailable I undefined or unavail
24. 800 Emulator Emulator ISA Driver CPU H8 3802 Mode 3 Clock SubClock source 0 5MHZ 32 768kHz Run status Break Cause of last break Soft Ware Breakpoint Event Time Count OH OM 0S 0 000uS Run Time Count OH OM 0S 60464 125u5 Target Mode 3 User Reset Inactive User System Voltage OK User Cable Not Connected Figure 4 14 System Status Window Platform panel The Cause of last break line shows that the break was a program break Rev 1 0 09 00 page 56 of 134 8RRENESAS 4 6 3 Examining Registers While the program is halted you can examine the contents of the MCU registers These are displayed in the Registers window e Choose Registers from the View menu or click the CPU Registers button in the toolbar Gy Registers IO _ OP x Register RO R1 R2 R3 R4 R5 R6 R7 PC CCR Figure 4 15 Registers Window As expected the value of the program counter PC is the same as the highlighted statement H 1036 Note that other register values may be different from ones shown in figure 4 14 You can also change the registers from the Registers window For example to change the value of the PC e Double click the Value column corresponding to PC in the Registers window Rev 1 0 09 00 page 57 of 134 8RRENESAS The Register PC dialog box allows you to edit the value Register PC Value 1036 Set As whole Register Figure 4 16 Changing Register Value e Edit the value to H 102C the a
25. Electronics products or if you have any other inquiries Note 1 Renesas Electronics as used in this document means Renesas Electronics Corporation and also includes its majority owned subsidiaries Note 2 Renesas Electronics product s means any product developed or manufactured by or for Renesas Electronics To all our customers Regarding the change of names mentioned in the document such as Hitachi Electric and Hitachi XX to Renesas Technology Corp The semiconductor operations of Mitsubishi Electric and Hitachi were transferred to Renesas Technology Corporation on April I st 2003 These operations include microcomputer logic analog and discrete devices and memory chips other than DRAMs flash memory SRAMs etc Accordingly although Hitachi Hitachi Ltd Hitachi Semiconductors and other Hitachi brand names are mentioned in the document these names have in fact all been changed to Renesas Technology Corp Thank you for your understanding Except for our corporate trademark logo and corporate statement no changes whatsoever have been made to the contents of the document and these changes do not constitute any alteration to the contents of the document itself Renesas Technology Home Page http www renesas com Renesas Technology Corp Customer Support Dept April 1 2003 r8RRENESAS Renesas Technology Corp Cautions Keep safety first in your circuit designs 1 Renesas Technology Co
26. Filter EG General Pattern mi Cycle Cancel Help Figure 5 14 Trace Filter Dialog Box 5 5 4 Pattern To enter a filter pattern set Type to Pattern and specify the values as required The Trace Filter dialog box then provides three panels of options to allow you to specify which cycles should be captured General Bus Area and Signals see the following 5 5 5 General The General panel allows you to define the address and data access characteristics of the cycles to be displayed Rev 1 0 09 00 page 96 of 134 8RRENESAS General Bus Area Signals Type Address Cycle Don t Care Address Range Pattern z Address Lo H 100 V Search from top Address Hi FFF Cycle p I Outside Range Data Compare Direction M Compare V Use Mask Value H 0 C Writ GByte C Word pins Mask H Fo Either cancel Figure 5 15 General Panel Read Rev 1 0 09 00 page 97 of 134 8RRENESAS 5 5 6 Bus Area Breakpoint E vent Properties EG General Bus Area Signals Action Area v0 Eppansitr I IN RAM UB ACTIVE DATA I LCD RAM UB ACTIVE PREFETCH PU MEDIUM DATA PU MEDIUM PREFETCH l Don t Care l Don t Care Figure 5 16 Bus Area Panel Rev 1 0 09 00 page 98 of 134 8RRENESAS 5 5 7 Signals General Bus Area Signals Probe 1 Probe 2 C High C High C Low C Low Don t Care Don t Care Probe 3 Probe 4 C High C High C Low C Low
27. Ga hee dive is eitt 59 472 Watching V artables is soiccsccisecsccderesiecidehesestcubacesacvesssadecbocesstvieassaevecssonsvesnooventeveceaues 60 48 Stepping Through a Program o ccccsccscssasessessnsscnsssnscseconesodesoresnsssnsnsntstsonsesvesssenseaveceapes 63 48 1 Single Steppmg uunaneniseiirensstnlnivesbeitivvhvvebras rbk 63 4 8 2 Stepping Over a Function ssresnrnnnvonnvenvrrnrvenareranvrnnvrnvnnnrnnnvnnnnvennvrsnsvsvsverssvrasvrevr 67 483 Watching Local Variabl si nusmmeisiirmievissrassvenrrebessnteskesbrrnsarsvessekevensdeksverenk ske 69 4 9 Using the Complex Event System srarernnvrarvrnvvrnvnrnvnvevnvnvnvevvrsversverevarerarerarerarvrnrnnesveesnee 71 4 9 1 Defining a Complex Breakpoint orenorororvrorvrnrnrnrnvnvnvnvvnenvennvrrnvrsvrrrvrversversevseee 71 4 10 Using the Trace Buffer prieina i n e a R EEE E IRES 74 4 10 1 Displaying the Trace Buffer oo eee ee cee cse esse ceeceeeeeeeeeeeeeeeeeeeseesseceseenaeenaes 74 Rev 1 0 09 00 page iv of x RENESAS 4 10 2 Setting Trace Eulter ciciinecs sees tices hea ee ic 75 411 Save the SESslOhLaua sense TT 4 111 WiatNext nngrassssbasessemdebe Gees aaa 77 Section S Referte sessur a E E E RE cee 79 5 1 Configuration Dialog BOX renvrnnorovorevrvvrrrerarernrvrevvrnrvnervernvernvennvernvvrrsversvvrarsrnvrrnenessneesnee 81 3 2 Break pOmits icere ee aeea EE Er E EEE EE EEE EEEE REE Ee ERE EEEE ES 83 5 2 1 Defining Program Breakpoints ranorvrnrvrnrvrnvr
28. PU PREF 00012 00ff3a IN RAM CPU 00011 O014e4 IN ROM CPU_PREF 00010 00ff3c IN RAM CPU 00009 0014e6 IN ROM CPU_PREF 00008 00ff3e IN RAM CPU 00007 0014e8 IN ROM CPU_PREF 00006 00ff40 IN RAM CPU 00005 001096 IN ROM CPU_PREF 00004 001098 IN ROM CPU_PREF 00003 00109a IN ROM CPU_PREF 00002 00109c IN ROM CPU_PREF 00001 00ff54 IN RAM CPU 00000 00109e IN ROM CPU_PREF Figure 4 35 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 Note For the H8 3802 series the clock count is not displayed When execution is stopped by a program PC break Data is displayed in the Code column and 5770 is displayed in the Data column Rev 1 0 09 00 page 74 of 134 8RRENESAS 4 10 2 Setting a Trace Filter Currently the Trace window shows all the MCU cycles e Clear the Trace window with the right button of the mouse and select Clear from the pop up menu to delete the existing trace buffer e Similarly click Filter to display the Trace Filter dialog box Trace Filter x General Bus Area Signals Type r Address Cycle C Don tCare Address Range Pattern T Sea Address Lo H 4eq GP Data Compare Direction Compare e Me C Read C Write Either Cancel pp Help Figure 4 36 General Panel in Trace Filter Dialog Box This allows you to define a filter to restrict which cycles
29. REF IN ROM CPU_PREF IN ROM CPU_PREF IN ROM CPU_PREF IN ROM CPU_PREF IN ROM CPU_PREF IN ROM CPU_PREF IN ROM CPU_PREF IN ROM CPU_PREF IN ROM CPU_PREF IN ROM CPU_PREF IN ROM CPU_PREF IN ROM CPU_PREF IN ROM CPU_PREF IN ROM CPU_PREF IN ROM CPU_PREF IN ROM CPU_PREF IN ROM CPU_PREF 79 79 79 79 79 79 79 79 79 79 79 79 79 79 79 79 79 79 79 79 79 79 79 79 ov0000000000000000000000 Figure 4 38 Showing Trace Buffer Contents 4 11 Save the Session Before exiting it is good practice to save your session so that you can resume with the same E6000 emulator and HDI configuration at your next debugging session e Choose Save Session from the File menu e Choose Exit from the File menu to terminate the HDI 4 11 1 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 very efficiently by precisely isolating and identifying the conditions under which they occur For details on HDI usage refer to Hitachi Debugging Interface User s Manual Rev 1 0 09 00 page 77 of 134 8RRENESAS Rev 1 0 09 00 page 78 of 134 8RRENESAS Section 5 Reference This section gives reference information about the features of the HDI specific to the H8 3802 series of microcomputers For inf
30. Testing Emulation Monitor Setting up please wait A ALS AO MONITLOE DT DO TEST ssassaaens eae ew ae aw ew ae OK B ST2 to STO MONIT2E D6 D4 MONITOE D2 D0 OK C BREACK MONITOE D4 TEST sesso dotada ia e ewe e eae wa as OK D CNN MONITZEIDL TEST sscec se eee eee eee seae seas eens OK EJIE MONITZE D7 TEST s ass des som does doer ec ac acerca ace des ad OK EF WINDOW MONITZ2O DIYV TEST sakke doko boa bee kokke nden Sek OK Tests run for xH xM xS 0 total errors Tests passed emulator functioning correctly Shows the check results for the run time counter in the E6000 normal completion Shows the check results for the emulation monitor controlling circuits in the E6000 normal completion Shows the check time Total number of errors Shows that the E6000 is correctly operating When detecting an error the test program displays ERROR and stops execution In this case the emulator hardware may be malfunctioning Inform a Hitachi sales agency of the test results in detail Rev 1 0 09 00 page 134 of 134 8RRENESAS H8 3802 Series E6000 Emulator User s Manual Publication Date 1st Edition September 2000 Published by Electronic Devices Sales amp Marketing Group Semiconductor amp Integrated Circuits Hitachi Ltd Edited by Technical Documentation Group Hitachi Kodaira Semiconductor Co Ltd Copyright Hitachi Ltd 2000 All rights reserved Printed in Japan
31. To our customers Old Company Name in Catalogs and Other Documents On April 1 2010 NEC Electronics Corporation merged with Renesas Technology Corporation and Renesas Electronics Corporation took over all the business of both companies Therefore although the old company name remains in this document it is a valid Renesas Electronics document We appreciate your understanding Renesas Electronics website http www renesas com April 1 2010 Renesas Electronics Corporation Issued by Renesas Electronics Corporation http www renesas com Send any inquiries to http www renesas com 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
32. _TILL GT O Executes a user program until a temporary breakpoint HALT HA O Stops user program execution HELP HE O Displays the help message for the command line or the command INITIALISE IN O Initializes the platform INTERRUPTS IR O Enables or disables the interrupt processing of the platform not supported in the E6000 emulator LOG LO O Manipulates the logging file Notes 1 O Described Not described 2 The numbers in the table show the reference section numbers Rev 1 0 09 00 page 106 of 134 rRRENESAS Table 6 1 Correspondence Between Command Line Functions and Descriptions in Manuals cont Abbrevia HDI This Command Name tion Manual Manual Description MAP DISPLAY MA O Displays the memory map information MAP_SET MS 6 8 Sets memory mapping MEMORY_DISPLAY MD O Displays memory contents MEMORY_EDIT ME O Modifies memory contents MEMORY FILL MF O Fills the memory with the specified data MEMROY_MOVE MV Moves a memory block MEMORY_TEST MT O Tests a memory block MODE MO 6 9 Sets or displays the CPU mode QUIT QU O Terminates the HDI RADIX RA O Sets a radix for input value REFRESH RF 6 17 Updates memory related windows REGISTER_DISPLAY RD O Displays the CPU register values REGISTER_SET RS O Sets the CPU register values RESET RE O Resets the CPU SLEEP O Delays
33. able Figure 5 8 Event Sequencing Dialog Box For each event in the sequence this dialog box allows you to specify one or more other events that will arm it or reset it Select the event that you want to configure from the Event drop down list box This gives you a choice of any events for which enable sequencing has been specified Then for the currently selected event click Is Armed By and check the events that should arm the event Likewise click Is Reset By and check the events that should reset the event Rev 1 0 09 00 page 90 of 134 8RRENESAS 5 3 6 Arming Events For example to define an event sequence that is triggered only when a sequence of four address reads have occurred you would define e 4is armed by 3 e 31s armed by 2 e 2is armed by 1 The Event Sequencing dialog box displays a diagrammatic representation of the sequence you have defined Event QE ETT xl Is Armed By I No occurrence of C Is Reset By The following events I 1 E stremp address count 5 I 2 E startup VECT address count 5 IV 3 E H 1184 address bus CPU PREFETCH I 4 E H 10B2 address break Cancel I undefined or unavailable I undefined or unavailable Help I undefined or unavailable I undefined or unavailable Figure 5 9 Event Sequence Diagram Note that when defining a sequence only the last event in the sequence should be defined as a break Rev 1 0 09 00 page 91 of 134 8RRENESAS 5 3 7 Res
34. ailable for use by devices DOOBFFFF Super VGA DOOC7FFF Unavailable for use by devices 000D7FFF Unavailable for use by devices OOODBFFF System Reserved l JODE 0000 OOC3FFFF Unavailable for use by devices Figure 2 3 Computer Properties Dialog Box After Setting up Rev 1 0 09 00 page 10 of 134 RENESAS 2 3 Setting Up the PC Interface Board on Windows NT 4 0 The PC interface board uses the ISA bus slot and therefore the host computer must have a spare ISA bus slot This section describes the general procedure for installing the PC interface board in the host computer For details refer to the manual of your host computer Starting Windows NT e Execute Start Programs Administrative Tools Common Windows NT Diagnostics e Click the Memory button in the Resource tab and in the following form make a note of the upper memory areas that have already been used Start End Start End Start End 4 5 6 7 e Shut down Windows NT Starting the Host Computer in Setup Mode For details on the setup mode refer to the manual of your host computer e Check the upper memory areas that have already been used Start End Start End Start End 4 5 6 7 The memory areas being used should be the same as those checked for Windows NT 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 sw
35. aller Welcome Screen e Click OK to proceed with the installation Rev 1 0 09 00 page 13 of 134 RENESAS The following dialog box then displays the Read Me file for the version of HDI you are installing README for E6000 H8 3800 SYSTEM 1 00 15th Feb 2000 Features The first release User Interface Version 4 Available interface with the Windows R 95 98 ISA bus board PCI bus board L N adapter PC Card PCMCIA Available interface with the Windows NT R 4 0 ISA bus board PCI bus board LAN adapter Support for H8 3802 H8 3801 H8 3800 Press the OK button to continue Press Cancel to abort the installation Cancel Figure 2 6 Read Me Dialog Box e Check the Read Me file for any important information concerning the installation and then click OK to proceed Rev 1 0 09 00 page 14 of 134 RENESAS The following dialog box then allows you to select a directory in which you can install HDI Select Destination Directory The Hitachi Debugging Interface 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 Destination Directory CH di_3800 Figure 2 7 Select Destination Directory Dialog Box e Click OK to install into the default directory or specify an alternative directory and click OK The following dialog box then asks you whether backups should be made of files replaced by the ins
36. and size suitable for your host computer Initially the program window opens showing the start of the main program but you can scroll through the program with the scroll bars to see the definitions and include statements Rev 1 0 09 00 page 53 of 134 8RRENESAS 4 6 Using Breakpoints The simplest debugging aid is the program breakpoint 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 6 1 Setting a Program Breakpoint The program window provides a very simple way of setting a program breakpoint For example set a breakpoint at address H 1036 as follows e Double click in the BP column on the line containing address H 1036 ine i Tutorial c Source 0000100e ra 00001012 count 0 00001018 f r te eJd 0000101a sort sectionl NAME 00001022 count 0000102c sort sectionl AGE 00001036 fj Break count 00001040 sort sectionl ID 0000104a count 00001056 00001058 void sort list key struct namelist list short key short Ve dees Figure 4 12 Setting a Breakpoint The word Break will be displayed there to show that a program breakpoint 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
37. are displayed in the trace buffer e If necessary click General to show the General panel e Choose Pattern in the Type section e Inthe Address section click Address and type H 14e8 in the Address Lo field e Click Bus Area to display the Bus Area panel e Cancel the selection of Don t Care and set Bus State to CPU_PREFETCH Rev 1 0 09 00 page 75 of 134 8RRENESAS Breakpoint E vent Properties x General Bus rea Signals Action Bus State Area UB_ACTIVE_DATA UB_ACTIVE_PREFETCH PU_MEDIUM_DATA PU_MEDIUM_PREFETCH l Don t Care Cancel Soply Help Figure 4 37 Bus Area Panel in Trace Filter Dialog Box e Click OK to save the trace filter e Open the Breakpoints window by choosing Breakpoints from the View menu and delete the breakpoints you defined earlier e Then choose Go from the Run menu to execute to the end of the program e Choose Halt from the Run menu to halt execution so that you can view the trace buffer Rev 1 0 09 00 page 76 of 134 8RRENESAS The Trace window will show the cycle in which MCU accesses H 14e8 as shown in figure 4 38 Trace 479 records of 32768 Lo Of x Adaress 0014e8 0014e8 0014e8 0014e8 0014e8 0014e8 0014e8 001428 001428 001428 001428 0014e8 0014e8 0014e8 0014e8 0014e8 0014e8 0014e8 0014e8 0014e8 0014e8 0014e8 MVNS3 0014e8 SMVNG 3 IN ROM CPU_PREF IN ROM CPU_PREF IN ROM CPU_PREF IN ROM CPU_PREF IN ROM CPU_PREF IN ROM CPU_P
38. are familiar with the architecture and instruction set of the MCU For more information refer to the H8 3802 series Hardware Manual 4 1 1 Overview This program is an infinite loop that sorts elements based on NAME in the alphabetical order and AGE and ID in the ascending order The tutorial is provided on the installation disk as the file tutorial c A compiled version of the tutorial is provided in Sysrof format in the file tutorial abs on the installation disk Rev 1 0 09 00 page 39 of 134 8RRENESAS 4 2 How the Tutorial Program Works The first part of the program includes a series of header files include lt machine h gt include string h The program then gives prototypes for the constants structures and function initial values define NAME short 0 define AGE short 1 define ID short 2 define LENGTH 8 struct namelist char name LENGTH short age long idcode Vi struct namelist sectionl Naoko 17 1234 Midori 22 8888 Rie 19 7777 Eri 20 9999 Kyoko 26 3333 n 0 0 he int count void sort Now the main function main count 0 for 7 sort sectionl NAME Rev 1 0 09 00 page 40 of 134 8RRENESAS count t sort sectionl AGE count t sort sectionl ID count The remainder of the program defines the functions called from main void sort list key struct namelist li
39. bp bp bp bp bp p 110 access 100 data 55 byte range range a 200 a 500 a 100 12 45 outside 60 89 read write read channel 8 Rev 1 0 09 00 page 112 of 134 Sets an access breakpoint at address 100 Sets a program breakpoint at address 110 Sets an access breakpoint at address 100 and data 55 access Sets a range breakpoint from address 12 to 45 Sets a range breakpoint that will break if address outside 60 and 89 are accessed Sets a access breakpoint to the read cycle of address 200 Sets a access breakpoint to the write cycle of address 500 Sets a read access breakpoint at address 100 by channel 8 When the channel 8 condition is satisfied a trigger signal is output from the external probe 8RRENESAS 6 2 BREAKPOINT_CLEAR EVENT_CLEAR Abbreviation BC EC This command deletes a breakpoint that has been previously set by the user Table 6 3 BREAKPOINT CLEAR EVENT CLEAR Parameters Keyword Breakpoint Type program lt address gt Clears a specified program breakpoint access lt address gt lt options gt Clears a specified access breakpoint range lt address gt lt options gt Clears a specified range breakpoint all Removes all breakpoints all trace Removes all trace events channel 1 12 Removes event by the specified channel number The lt options gt are as specified in BREAKPOINT EVENT command Only the minimum set of options needed to uniquely identi
40. bs Areas loaded 00000000 00000001 00001000 00001508 i 00001512 0000156F 0000150C 00001511 Figure 4 9 HDI Information Message Box e Click OK to continue Note that all the code lies within the internal ROM Rev 1 0 09 00 page 51 of 134 8RRENESAS 4 5 2 Displaying the Program Listing HDI allows you to view a program at source level and in assembly language mnemonic e Choose Source from the View menu or click the Program Source button in the toolbar x inti You will be prompted for the C source file corresponding to the object file you have loaded Open Look in a Tutorial v Al c i Startup sre 2 Tutorial abs Tutorial bat 2 Tutorial hds 2 Tutorial sub File name Tutorial c Files of type fan Files v Cancel vA Figure 4 10 Open Dialog Box Selecting a Source File e Select Tutorial c and click Open to display the program window Rev 1 0 09 00 page 52 of 134 8RRENESAS nei T utorial c Iof Xx Address BP Source 0000100e rd 00001012 count 0 00001018 for gt s 0000101a sort sectionl NAME 00001022 count 0000102c sort sectionl AGE 00001036 count 00001040 sort sectionl ID Q000104a count 00001056 00001058 void sort list key struct namelist list short key short Tajski Figure 4 11 Tutorial Program Window e If necessary choose Font option from the Customize submenu on the Setup menu to choose a font
41. 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
42. ce 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 interface connector on the E6000 emulator Press each plug firmly until it clicks into position e Switch on the host computer Starting Windows NT in the Administrator Mode e Install the HDI Software as described in section 2 4 Installing the HDI Software e Execute Start Programs Hdi Setup ISA bus Board If the DOS prompt window does not open open the DOS prompt window first move to the directory where the HDI has been installed then execute SETUPISA EXE Rev 1 0 09 00 page 12 of 134 RENESAS 2 4 Installing the HDI Software First install the HDI software from the installation disk as follows e Run Windows if it is not already running e Close all other applications that are running e Insert HDI installation disk 1 3 e Select Run from the Start menu e Type A Setup exe and click OK Type the name of a program folder document or Internet resource and Windows will open it for you Figure 2 4 Selection Display for HDI Installation Disk This runs the HDI installer and the following Welcome screen 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 Inst
43. ces ar enie det is Delayed Stop Panel sranaronnnornvvrnnvrnrnvnvnnnvnnnnvennne Command Line Window ennrrnnnnvvrnvrrnvrrnerrrevvrrvvree RENESAS Rev 1 0 09 00 page ix of x Tables Table 1 1 Table 1 2 Table 1 3 Table 1 4 Table 2 1 Table 3 1 Table 4 1 Table 4 2 Table 4 3 Table 4 4 Table 5 1 Table 5 2 Table 5 3 Table 5 4 Table 5 5 Table 5 6 Table 6 1 Table 6 2 Table 6 3 Table 6 4 Table 6 5 Table 6 6 Table 6 7 Table 6 8 Memory Types oh A ete rea ee ea ees 4 Operating Voltage and Frequency Specifications rssrronanonrnvranvrnvvrnrnrnrvnnvvnnnvenn 4 Clock Frequencies mererani einen EEEE ENEE E E 5 Environment Conditions seseeiiee ieee iiae an rei Eae Eo S RR 5 Memory Switch and Address Map of PC Interface Board 0 0 0 eee ee eee eeees 9 Initial Value Differences between MCU and E6000 Emulator ee 38 Target Configuration Options eee eeceeceseceseceseceecaeecaeeeeeeeeeeeeeeeeeeeeeseeeseeeaees 47 Memory Type eee eiee iee E A EE A T AE A E AETS 48 ACCESS TYPE Sero aai E A E eee ee 49 Step Commands ussiisa ae EE E EE NEE BEE EEE TEA e E E ESTEE 63 Correspondence Between HDI Menus and Descriptions in Manuals 0 79 Configuration Options i cccsccecseees ha cesecuanvesscustesvecuevbene do cuecoesesvenseenevenseetevvsnednesvabes 82 Event and Range Channel Options 00 eee eee eeeeceeecseeeeeeeeeeeeeeeeeeeeeeeseesaeesaeeaaes 85 Specibiable Actions wei sccsecesessusapaeeelvsaessbevsrs
44. command execution STEP ST O Performs single step execution in instruction unit or source line unit STEP_OVER SO O Performs step over execution STEP_RATE SR O Executes multiple steps STEP_OUT SP O Performs single step Notes 1 O Described Not described execution until the end of the function that includes the current PC address 2 The numbers in the table show the reference section numbers rRRENESAS Rev 1 0 09 00 page 107 of 134 Table 6 1 Correspondence Between Command Line Functions and Descriptions in Manuals cont Abbrevia HDI This Command Name tion Manual Manual Description SUBMIT SU O Executes an emulator command file SYMBOL_ADD SA O Adds a symbol SYMBOL_CLEAR SC O Deletes a symbol SYMBOL_LOAD SL O Loads a symbol information file SYMBOL_SAVE SS O Saves a symbol information file SYMBOL_VIEW SV O Displays a symbol TEST_EMULATOR TE 6 10 Tests the E6000 emulator hardware TIMER TI 6 11 Sets or displays the timer resolution for execution time measurement TRACE TR O Displays trace data TRACE_ACQUISITION TA 6 12 Sets or displays trace acquisition information TRACE_COMPARE TC 6 13 Compares trace data TRACE_SAVE TV 6 14 Saves trace data TRACE_SEARCH TS 6 15 Searches for trace data USER_SIGNALS US 6 16 Enables or disables user Notes 1 O Described Not described signals
45. d to initiate trace acquisition The Event drop down list box shows all the currently defined events To add a new event click Add and enter the details of the event in the Breakpoint Event Properties dialog box For more information about the options available see section 5 3 Complex Event System To edit an event select it in the Event list and click Edit To define a sequence of events click Sequence This option is only available if one or more events have been defined with Enable Sequencing selected To delete an event select it in the Event list and click Delete or click Del All to delete all the trace events Rev 1 0 09 00 page 101 of 134 8RRENESAS 5 6 2 Stop Allows you to stop trace acquisition on the occurrence of a specified event General Stop Delayed Stop Stop Without Delay N Enable Events F undefine I undefined I undefinec j I undefined or unavaila I undefine unavailabl I undefine I undefined o I undefine I undefined or una I undefined or unavailab I undefined or unavail cm Figure 5 19 Stop Panel Rev 1 0 09 00 page 102 of 134 8RRENESAS 5 6 3 Delayed Stop Allows you to specify that trace acquisition should continue for a specified number of cycles after a specified event Trace Acquisition EI General Stop Stop with Delay V Enable Events F un M unt F une un F un F une F une F und R H 1024 addre efined or efi
46. ddress of the previous statement and click OK The highlighted bar will move to the previous statement in the program window to show the new program counter value e Choose Go from the Run menu or double click the Go button in the toolbar to execute up to the breakpoint again El 4 6 4 Reviewing the Breakpoints You can see a list of all the breakpoints set in the program in the Breakpoints window e Choose Breakpoints from the View menu or click the Breakpoints button in the toolbar ag Breakpoints Ol OL x yP TUTORIAL C 39 00001036 Program Figure 4 17 Breakpoints Window The Breakpoints window also allows you to enable and disable breakpoints define new breakpoints and delete breakpoints Rev 1 0 09 00 page 58 of 134 8RRENESAS Before proceeding remove the breakpoint as follows e Highlight the breakpoint in the Breakpoints window and click Delete e Close the Breakpoints window 4 7 Examining Memory and Variables You can monitor the behavior of a program by examining the contents of an area of memory or by displaying the values of variables used in the program 4 7 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 structure section1 in Byte e Choose Memory from the View menu or click the Memory button in the toolbar Rev 1 0 09 00 page 59 of 134 8RRENESAS e Enter section1 in the Address fi
47. der certain use conditions Further Renesas Electronics products are not subject to radiation resistance design Please be sure to implement safety measures to guard them against the possibility of physical injury and injury or damage caused by fire in the event of the failure of a Renesas Electronics product such as safety design for hardware and software including but not limited to redundancy fire control and malfunction prevention appropriate treatment for aging degradation or any other appropriate measures Because the evaluation of microcomputer software alone is very difficult please evaluate the safety of the final products or system manufactured by you Please contact a Renesas Electronics sales office for details as to environmental matters such as the environmental compatibility of each Renesas Electronics product Please use Renesas Electronics products in compliance with all applicable laws and regulations that regulate the inclusion or use of controlled substances including without limitation the EU RoHS Directive Renesas Electronics assumes no liability for damages or losses occurring as a result of your noncompliance with applicable laws and regulations This document may not be reproduced or duplicated in any form in whole or in part without prior written consent of Renesas Electronics Please contact a Renesas Electronics sales office if you have any questions regarding the information contained in this document or Renesas
48. e Direction Allows you to specify either read write or read and write accesses to trigger the channel Rev 1 0 09 00 page 86 of 134 8RRENESAS 5 3 2 Bus Area Allows you to trigger the channel on specific bus states or memory areas accessed Breakpoint E vent Properties x General Bus Area Signals Action Bus State P rea CPU 10 M CPU PREFETCH Expan I GPU WORE I IN RAM or m NADM M SUB ACTIVE DATA I LCD RAM I SUB ACTIVE PREFETCH I CPU MEDIUM DATA I CPU MEDIUM PREFETCH I Don t Care I Don t Care Cancel Apply Help Figure 5 5 Bus Area Panel Rev 1 0 09 00 page 87 of 134 8RRENESAS 5 3 3 Signals Specifies that the event should be triggered on a specific combination of the four external probe signals Breakpoint E vent Properties x General Bus rea Signals Action Probe 1 rProbe 2 C High C High C Low C Low a Don t Care Probe 3 Probe 4 C High High C Low C Low Don t Care Don t Care Figure 5 6 Signals Panel Rev 1 0 09 00 page 88 of 134 8RRENESAS 5 3 4 Action Specifies the action when the event is triggered Breakpoint E vent Properties x General Bus Area Signals Action Actions IV Break I Start Timer Stop Timer Delay after detection before break occurs fi ou bus cycles Required number of event occurrences 5 Enable Sequencing Configure Sequence Figure 5 7 Action Panel Table 5
49. e 5 13 Trace Window The Trace window displays the contents of the trace buffer Rev 1 0 09 00 page 94 of 134 8RRENESAS To display the Trace window choose Trace from the View menu 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 then only assembly language is displayed Nothing is displayed when this emulator is used The values of four external probes are displayed in the Probes column The left most value indicates probe 4 and the right most value indicates probe 1 The value shows the high level and 0 shows the low level Nothing is displayed in the NMI column when this emulator is used Click Clear to clear the trace buffer or click Save to save the contents of the trace buffer to a file By default the trace buffer captures all the execution cycles and retains the last 32768 cycles You can set up a filter which will restrict the traces displayed from the buffer to specified cycle patterns 5 5 1 Filter To define a filter choose Filter from the pop up menu in the Trace window 5 5 2 Find To search for a specific trace in the trace buffer choose Find from the pop up menu The same dialog box appears to specify the traces you want to find 5 5 3 Cycle To specify a specific cycle as a filter set Type to Cycle and enter the cycle number in the Cycle box Rev 1 0 09 00 page 95 of 134 8RRENESAS Trace
50. e for any questions regarding this document or Hitachi semiconductor products IMPORTANT INFORMATION READ FIRST e 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 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 boards produced only by Hitachi Ltd excluding all subsidiary products The user system or a host computer is not included in this definition Purpose of the E6000 emulator This E6000 emulator is a software and hardware development tool for systems employing the Hitachi microcomputer H8 3802 series hereafter referred to as MCU This E6000 emulator must only be used for the above purpose Improvement Policy Hitachi Ltd including its subsidiaries hereafter collectively referred to as Hitachi pursues a policy of continuing improvement in design functions performance and safety of the E6000 emulator Hitachi reserves the right to change wholly or partially the specifications design user s manual and other documentation at any time without notice Target User of the E6000 emulator This E6000 emulator should only be used by those who have carefully read and thoroughly understood the information and restrictions contained in the user s ma
51. e set by the threshold informs the user that the User VCC is down using the System Status window Rev 1 0 09 00 page 82 of 134 RENESAS 5 2 Breakpoints Breakpoints IO OP x Address Type TUTORIAL C 39 00001036 Program TUTORIAL C 45 ai 00001058 Ch10 R address area break TUTORIAL C 56 00001184 ch9 R address bus CPU PREF Figure 5 2 Breakpoints Window The Breakpoints window displays a list of all the breakpoints that have been defined To display the Breakpoints window choose Breakpoints from the View menu To edit an existing breakpoint double click it or select it in the Breakpoints list and choose Edit from the pop up menu To enable or disable a breakpoint select it in the Breakpoints list and choose Disable Enable from the pop up menu When a breakpoint is enabled is shown in the Enable column To delete a breakpoint select it in the breakpoint list and choose Delete from the pop up menu or Delete All to delete all the breakpoints To define a new breakpoint choose Add from the pop up menu to display the Breakpoint Event Properties dialog box and define the characteristics of the breakpoint you want to add For more information about the Breakpoint Event Properties dialog box see section 5 3 Complex Event System Rev 1 0 09 00 page 83 of 134 8RRENESAS 5 2 1 Defining Program Breakpoints To define a program breakpoint set Type to PC Break and enter the address of the breakpoint in the Address
52. eld and set Format to Byte Open Memory Window EG Address OK OK section Cancel Format Byte v Figure 4 18 Open Memory Window e Click OK to open the Memory window showing the specified area of memory Byte Memory sectionl QUYEEUT JQTu U QUSDU TITM U T UUUPUUYUUOT Figure 4 19 Memory Window Byte e Leave the Memory window open so that you can monitor the contents of the structure section1 4 7 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 structure variable section1 declared at the beginning of the program using the following procedure e Scroll up in the program window until you see the line sort section1 ID e Click to position the cursor to the left of section1 in the program window Rev 1 0 09 00 page 60 of 134 8RRENESAS e Click in the program window with the right button of the mouse to display a pop up menu and choose Add Watch A variable will be displayed in the Watch window Watch Window OT OF x Name Value sectionl Oxfd80 Figure 4 20 Watch Window You can also add a watch to the Watch window by specifying its name Use this method to add a watch on the variable count as follows You can double click the symbol to the left of symbol section 1 in the Watch window to ex
53. ended that customers contact Renesas Technology Corporation or an authorized Renesas Technology Corporation product distributor for the latest product information before purchasing a product listed herein The information described here may contain technical inaccuracies or typographical errors Renesas Technology Corporation assumes no responsibility for any damage liability or other loss rising from these inaccuracies or errors Please also pay attention to information published by Renesas Technology Corporation by various means including the Renesas Technology Corporation Semiconductor home page http www renesas com When using any or all of the information contained in these materials including product data diagrams charts programs and algorithms please be sure to evaluate all information as a total system before making a final decision on the applicability of the information and products Renesas Technology Corporation assumes no responsibility for any damage liability or other loss resulting from the information contained herein Renesas Technology Corporation semiconductors are not designed or manufactured for use in a device or system that is used under circumstances in which human life is potentially at stake Please contact Renesas Technology Corporation or an authorized Renesas Technology Corporation product distributor when considering the use of a product contained herein for any specific purposes such as apparatus or system
54. ep Out from the Run menu or clicking the Step Out button in the toolbar P Rev 1 0 09 00 page 65 of 134 8RRENESAS Address H 104a will be highlighted W T utorial c olx z Source 00001006 a qarat 00001012 count 0 00001018 for 5 M 0000101a sort sectionl NAME 00001022 count 0000102c sort sectionl AGE 00001036 Break count 00001040 sort sectionl ID 0000104a counjt 00001056 00001058 Z void sort list key struct namelist list ra key short i j k long min char name struct namelist worklist 0000106a switch key i Figure 4 26 Program Window Display after Step Out Command Execution e Give two more Step In commands to execute up to the sort function call Rev 1 0 09 00 page 66 of 134 8RRENESAS l Tutorial c Ai Source 0000100e narak 00001012 count 00001018 forl Jf 0000101a sort sectionl NAME 00001022 count 0000102c sort sectionl AGE 00001036 Break count 00001040 sort sectionl ID 0000104a count 00001056 00001058 void sort list key struct namelist list oe key short i j k long min char name struct namelist worklist 0000106a switch key Figure 4 27 Program Window Display after Step In Command Execution 3 4 8 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 p
55. ethod Dialog Box e To automatically uninstall the HDI select the Automatic option button and click Next e To select the files to delete select Custom option button and click Next e To cancel uninstallation click Cancel Rev 1 0 09 00 page 24 of 134 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 H8 3880 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 Ke fe No Figure 2 22 Perform Rollback Dialog Box e To perform rollback select the Yes option button and click Next e To not perform rollback select the No option 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 Rev 1 0 09 00 page 25 of 134 RENESAS e The dialog box to conf
56. etting Events You can also specify that events are reset by another event in the sequence For example to cause a break if event 2 is followed by event 3 and then by event 4 provided that event has not occurred in the meantime define the event sequence as follows e 4is armed by 3 and reset by 1 e 3isarmed by 2 and reset by I e 2isreset by 1 e lis reset byl Event 4 E H 10B2 address break Is Armed By I No occurrence of C Is Reset By The following events I 1 E stremp address count 5 I 2 E startup VECT address count 5 IV 3 E H 1184 address bus CPU PREFETCH I 4 E H 10B2 address break Cancel I undefined or unavailable I undefined or unavailable Help I undefined or unavailable I undefined or unavailable Figure 5 10 Resetting Events Rev 1 0 09 00 page 92 of 134 8RRENESAS 5 4 Memory Mapping Dialog Box Memory Mapping EG Close Type Memory z From To Ma 00000000 O0003FFF On 00004000 O000F73F On 0000F740 O000F74C On 0000F74D OOOOFB F On OOOOFBS0 OOOOFFFF On Guardec Read wi Guardec Read vw1 Figure 5 11 Memory Mapping Dialog Box The Memory Mapping dialog box shows the E6000 emulator memory mapping and allows you to edit it To display this dialog box choose Configure Map from the Memory menu To edit a block of memory double click it or select it in the memory mapping list and click Edit The Edit Memory Mapping dialog box shows the current setting for t
57. ev 1 0 09 00 page 30 of 134 RENESAS 3 1 2 Plugging the User System Interface Cable Body into the E6000 Emulator Plug the user system interface 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 Interface Cable Body into the User System Interface Cable Head Plug the user system interface cable body into the user system interface cable head on the user system hardware Rev 1 0 09 00 page 31 of 134 RENESAS 3 2 Power Supply 3 2 1 AC Power Supply 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 GND Inside Figure 3 5 Polarity of Power Supply Plug 3 2 3 Power Supply Monitor Circuit The E6000 emulator incorporates a user system 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 sufficient power is not supplied to the E6000 emulator Note Use the provided AC power supply adapter for the E6000 emulator Rev 1 0 09 00 page 32 of 134 RENESAS 3 3 Hardware Interface All user system interface
58. f a program is too complex to allow us to do this For example how can we know when the program accesses the target address H 109E The complex event system allows you to do this 4 9 1 Defining a Complex Breakpoint Now define a complex breakpoint to monitor this part as follows e Choose Breakpoint from the View menu to display the Breakpoints window or click the Breakpoint button in the toolbar Rev 1 0 09 00 page 71 of 134 8RRENESAS Fm e To set a new breakpoint click the right button of the mouse in the Breakpoints window and choose Add The Breakpoint Event Properties dialog box allows you to define the breakpoint s properties Breakpoint E vent Properties Ea General Bus Area Signals Action Type Address C PCBreak Don tCare Address C Range Address Lo r HD 09d Data Compare rm Direction Compare C Read C Write Either Cancel Boplt Help Figure 4 32 Breakpoint Event Properties Dialog Box e Set Type to Event and enter the address H 109c into the Address Lo box as an event condition e Click OK to define the breakpoint This will cause a break whenever the address H 109c is accessed either for a read or a write Rev 1 0 09 00 page 72 of 134 8RRENESAS The Breakpoints window shows the new complex breakpoint you have defined Breakpoints Op OP x y yp TUTORIAL C 39 00001036 Program TUTORIAL C 58 00001090 Ch9 R address break El Fi
59. fied rate 4 8 1 Single Stepping e Seta breakpoint at PC H 1036 e Give one more Step In command to execute up to the sort function call The statement sort section1 ID will be highlighted Rev 1 0 09 00 page 63 of 134 8RRENESAS fnt i Tutorial c 0000100e 1 men 00001012 count 0 00001018 for J4 0000101a sort sectionl NAME 00001022 count 0000102c sort sectionl AGE 00001036 9 count 00001040 sort sectionl ID 0000104a count 00001056 00001058 sort void sort list key struct namelist list a key short i j k long min char name struct namelist worklist 0000106a switch key Figure 4 24 Program Window Display after Step In Command Execution 1 e Now choose Step In from the Run menu or click on the Step In button in the toolbar Y Rev 1 0 09 00 page 64 of 134 8RRENESAS Tutorial c 5 A BP Source 0000100e one 00001012 count 00001018 for H 0000101a sort sectionl NAME 00001022 count 0000102c sort sectionl AGE 00001036 count 00001040 sort sectionl ID 0000104a count 00001056 00001058 void sort list key struct namelist list er key short i j k long min char name struct namelist worklist 0000106a switch key Figure 4 25 Program Window Display after Step In Command Execution 2 Execute out of the function and back to the next statement in the main program by choosing St
60. formance of Hitachi s semiconductor products Hitachi assumes no responsibility for any intellectual property claims or other problems that may result from applications based on the examples described herein 2 No license is granted by implication or otherwise under any patents or other rights of any third party or Hitachi Figures Some figures in this user s manual may show items different from your actual system Limited Anticipation of Danger Hitachi cannot anticipate every possible circumstance that might involve a potential hazard The warnings in this user s manual and on the E6000 emulator are therefore not all inclusive Therefore you must use the E6000 emulator safely at your own risk Rev 1 0 09 00 page III of VI RENESAS SAFETY PAGE READ FIRST e READ this user s manual before using this E6000 emulator e KEEP the user s manual handy for future reference Do not attempt to use the E6000 emulator until you fully understand its mechanism DEFINITION OF SIGNAL WORDS A 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
61. fy the event need to be specified Examples be p 256 Clears a program breakpoint at address 256 event clear chan 5 Removes event by using channel number be all Clears all breakpoints Rev 1 0 09 00 page 113 of 134 8RRENESAS 6 3 BREAKPOINT DISPLAY EVENT DISPLAY Abbreviation BD ED Displays enable disable for the currently set breakpoints trace is displayed for trace events Example bd Displays all breakpoints and whether they are enabled or disabled Rev 1 0 09 00 page 114 of 134 8RRENESAS 6 4 BREAKPOINT_ENABLE EVENT_ENABLE Abbreviation BE EE Enables or disables either a single breakpoint or all the breakpoints Table 6 4 BREAKPOINT ENABLE EVENT ENABLE Parameters Parameter Keyword Description 1 true Enables breakpoint false Disables breakpoint 2 all All breakpoints program lt address gt Program breakpoint access lt address gt lt options gt An access breakpoint range lt address1 gt lt address 2 gt A range breakpoint lt options gt channel 1 12 Enables or disables an event at the specified channel number The lt options gt can be specified as in BREAKPOINT EVENT command to identify the event more accurately Examples be true all Enables all breakpoints be false all Disables all breakpoints be false p 256 Disables program breakpoint at address 256 be true access 12 Enables access breakpoint at 12 be false chan 1 Disables event detector channel 1 Rev
62. ge gt lt default gt lt suppress gt suppress dtu lt timestamp gt true false lt stop gt lt stopdelay gt cannot be used for the MCU lt freetrace gt freetrac true fals lt timestamp gt timestamp disable 125ns 250ns 500ns lus 2us 4us 8us 16us 100us lt stop gt stop disable event lt 1 to 12 gt lt stopdelay gt stopdelay disable event lt 1 to 12 gt count lt count gt lt range gt range lt 1 to 4 gt disable ptop lt startaddr gt lt stopaddr gt cyclic range lt 1 to 12 gt event lt 1 to 8 gt lt 1 to 8 gt cyclic lt default gt default Examples ta Displays all trace acquisition options ta stop event 1 2 Stops tracing when either event on channel or ta ta ta stopdelay event 1 2 count 100 timestamp 500ns range 2 event 4 5 cyclic channel 2 occurs Stops tracing 100 bus cycles after event on channel or channel 2 occurs Enables trace timestamping and sets the resolution of the timer stamp to 500 ns Lists trace range 2 to start trace when event 4 occurs and stop trace when event 5 occurs and then to restart trace when event 4 occurs again Rev 1 0 09 00 page 123 of 134 8RRENESAS 6 13 TRACE COMPARE Abbreviation TC Compares a saved trace file see trace save with the current trace data trace compare lt filename gt Rev 1 0 09 00 page 124 of 134 8RRENESAS 6 14 TRACE SAVE
63. gure 4 33 Breakpoints Window After Addition e Run the program from the current position by choosing Go from the Run menu or click the Go button in the toolbar pir Execution will stop at address H 109c WA Tutorial c Source R i struct namelist worklist 0000106a switch key case NAME 00001080 for i 0000108a name 0000109c Ks 000010a4 for 000010b0 if stremp list j name name 000010ca name list j name 000010dc k 3 0 list i name 0 i list i name i 141 ett nane l 0 Figure 4 34 Program Break The status bar will display BREAK Event Break to indicate that the break was caused by event condition satisfaction Rev 1 0 09 00 page 73 of 134 8RRENESAS 4 10 Using the Trace Buffer The trace buffer allows us to look back over previous MCU cycles to see exactly what the MCU was doing prior to a specified event 4 10 1 Displaying the Trace Buffer Having identified the point in the program where the program accesses we can use the trace buffer to look back to see what accesses took place e Open the Trace window by choosing Trace from the View menu or click the Trace button in the toolbar eS 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 35 E Trace 525 records no filter Oo OP xi cycle Address Status 00014 0014e0 p IN ROM CPU_PREF 00013 0014e2 IN ROM C
64. he block of memory Edit Memory Mapping EG Memory Mapping To H 00003FFF Setting On Chip Read only ind Cancel Help Figure 5 12 Edit Memory Mapping Dialog Box 8RRENESAS Rev 1 0 09 00 page 93 of 134 Specify the range of addresses for the block of memory in the From and To fields and select the type of memory from the Setting drop down list box The options listed in table 5 5 are available Table 5 5 Memory Type Memory Description Internal Accesses the MCU internal memory ROM RAM Emulator Accesses the emulation memory For each of these options you can specify one of the three access types listed in table 5 6 Table 5 6 Access Types Access Type Description Read write RAM Read only ROM Guarded No access allowed Click Reset in the Memory Mapping dialog box to reset the memory mapping to the default mapping for these selected MCU type and mode 5 5 Trace Window E Trace 525 records no filter OT OP x Cycle Address Status 00014 0014e0 IN ROM CPU_PREF 00013 0014e2 IN ROM CPU PREF 00012 00ff3a IN RAM CPU 00011 O014e4 p IN ROM CPU PREF 00010 00ff3c IN RAM CPU 00009 0014e6 IN ROM CPU PREF 00008 00ff3e IN RAM CPU 00007 0014e8 IN ROM CPU PREF 00006 00ff40 IN RAM CPU 00005 001096 IN ROM CPU PREF 00004 001098 IN ROM CPU PREF 00003 00109a IN ROM CPU PREF 00002 00109c IN ROM CPU PREF 00001 00ff54 IN RAM CPU 00000 00109e IN ROM CPU PREF Figur
65. he event must be triggered 0 0 0 10 0 O OF O OO O 0 0 0 Can be combined into a sequence O Can be specified The Breakpoint Event Properties dialog box allows you to define complex events for use with breakpoints trace and execution timing To define an event breakpoint set Type to Event The Breakpoint Event Properties dialog box then provides four panels of options to allow you define all the characteristics of the event used by the breakpoint General Bus Area Signals and Action Rev 1 0 09 00 page 85 of 134 8RRENESAS 5 3 1 General The General properties panel allows you to define the address and data access characteristics of the event channel Breakpoint E vent Properties EG General Bus Area Signals Action Type Address C PCBreak DontCare Address Range Address Lo H 2C0 Address Hi H 308 IV Outside Range Data Compare Direction IV Compare IV Use Mask Read Value HO hane C Byte amp Word Mask H FOF C Either Cancel Spply Help Figure 5 4 General Panel Address Allows you to activate the channel when an address or a range of addresses is accessed Select Outside Range to specify that accesses to addresses outside the specified range should trigger the channel Data Compare Allows you to trigger the channel on a specific data value Select Use Mask to specify a mask which will be ANDed with the data before comparing it with the valu
66. he setting 00000000 0009FFFF Unavailable for use by devices QOOAFFFF Super VGA 00080000 OOOB7FFF Unavailable for use by devices OO0BFFFF Super VGA 000C0000 OOOC7FFF Unavailable for use by devices 00000000 000D3FFF Unavailable for use by devices OO0E 0000 OOC3FFFF Unavailable for use by devices m QOFEO000 OOFFFFFF Unavailable for use by devices Figure 2 1 Computer Properties Dialog Box Before Setting Up Rev 1 0 09 00 page 8 of 134 RENESAS Memory areas not displayed on this dialog box can be used for the PC interface board Table 2 1 shows the memory areas that can be specified by the switch of the PC interface board rear panel In this table select the areas that are not displayed on the Computer Properties dialog box For example if the area H D8000 to HDBFFF is selected the corresponding switch number is 6 Table 2 1 shows the memory switch and the address map of the PC interface board Table 2 1 Memory Switch and Address Map of PC Interface Board Address Range Switch 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 EC000 to H EFFFF DW Pr oO WO N OD om A OIN oO Take the following procedure so that
67. ion srorrrnrnrovnnnvnvnvnvenvvrvvrsverrnrrevrverarvrervrervsennene 129 7 2 Diagnostic Test Procedure Using the Test Program sranvnnnvnvnrnenanevanvrnvvrnvvrnrnnerveenvesnvene 130 Rev 1 0 09 00 page vi of x RENESAS Figures Figure 2 1 Computer Properties Dialog Box Before Setting Up enrronarvrnvvrnvnrnvnnnvnnnnvnrnvennn 8 Figure 2 2 Edit Resource Setting Dialog BOX srervrrnvnnvvrrvvrrvvrrvrverrreravvrarvraevrnrvnevvessvnenvenversvvese 9 Figure 2 3 Computer Properties Dialog Box After Setting up rrvrrnvrrnvnrnvrrnvrrnrvrnrvvrrvvravvrner 10 Figure 2 4 Selection Display for HDI Installation Disk eonrennronornnorrnrrrnrrevrrvrrverarvrnvvrnnnennnene 13 Figure 2 5 HDI Installer Welcome Screen msrnananenaneranvrnnvrnnnrnnnnnrvnnnnnnnvernvernvernrrrvsversvvrarvreer 13 Figure 2 6 Read Me Dialog BOX s icci cscccc scsteccsscdanesssebieesseoveuessesvevsecesanvunnneasvesnestousennsievapevenveass 14 Figure 2 7 Select Destination Directory Dialog Box rnrrrnrnvnvnvnvenvvnvvrrvrrrnrrevaversverarerarvrerneesneer 15 Figure 2 8 Make Backups Dialog BOX ernrrnvrrnvvrnvrrnvrrnvrrvevrrrvvravvrarrrnevrnrnensneevnvevvvsnvrsversvsvvsver 15 Figure 2 9 Select Backup Directory Dialog BOx rerrarvrarvrnrnrernvnvnnnnvennvrsnerrnrvevrversveravvrernresnee 16 Figure 2 10 HDI Installing 1 ecciesia E E R S 17 Figure 2 11 Insert New Disk Dialog Box 1 roronnvnoornnnnvnrerrvnnnrnrerrnsnnnneerrnennrnserrnennnneersve
68. irm whether to start uninstallation will be displayed Uninstall Hitachi Debugging Interface for E6000 H8 3800 Perform Uninstall Y ou are now ready to uninstall the Hitachi Debugging Interface for E6000 H8 3800 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 23 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 the backup directory and files will not be deleted Rev 1 0 09 00 page 26 of 134 RENESAS 2 8 Troubleshooting 2 8 1 Faulty Connection If the PC interface board cannot detect the E6000 emulator the following message box appears during initialization E6000 Platform j D 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 24 Faulty Connection Message 1 The most likely reasons for this are e AC power supply adapter not connected to the E6000 em
69. itch settings and no other devices can access the selected memory area Rev 1 0 09 00 page 11 of 134 RENESAS Start End Start End Start End H C0000 H C3FFF H D0000 H D3FFF H E0000 H E3FFF H C4000 H C7FFF H D4000 H D7FFF H E4000 H E7FFF H C8000 H CBFFF H D8000 H DBFFF H E8000 H EBFFF H CC000 H CFFFF H DC000 H DFFFF H EC000 H EFFFF wo Pp OI NIJ on AR W gt O oO If the Intel P amp P BIOS disk is supplied with the host computer define the memory area as follows e Start the host computer with the Intel P amp P BIOS disk e Check the upper memory areas that have already been used with View System Resources e Add Unlisted Card with Configure Add Card Others 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 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 interfa
70. k can only be selected if the Vcc is supplied from the user system Examples ck Displays the current emulation clock ck 2 sub 32k Selects 2 MHz system clock and 32 768 kHz subclock When a break is detected when the subclock 32 768 kHz or 38 4 kHz is used the emulator operation and display become slow Therefore when evaluating using the subclock select 307 2 kHz which is the eight times the frequency of 38 4 kHz Notes 1 The target system clock can be selected only when the Vcc is supplied from the user system 2 When using the target MCU H8 3802 series 307 2 kHz cannot be selected as the subclock ow Rev 1 0 09 00 page 117 of 134 8RRENESAS 6 7 DEVICE TYPE Abbreviation DE Sets up the device type to emulate or displays current setting Examples de Displays device type de h8 3802 Sets device to H8 3802 Rev 1 0 09 00 page 118 of 134 8RRENESAS 6 8 MAP SET Abbreviation MS This option will emulation memory mapping Syntax ms lt start gt lt end gt internal internal none read only guarded Examples ms 8000 F73F Allocates internal read write memory from internal H 8000 to H F73F Note internal is used for memory areas on the chip i e internal ROM RAM I O or reserved area The attribute of these areas cannot be changed except that the reserved area excluding H EE00 to H F73F H F760 to H F77F and H FF80 to H FF8F can be changed to the emulation memory by specifying Internal Re
71. ls 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 e Address or address range e Outside the address range e Data with an optional mask e Read or write e MCU access type instruction prefetch data fetch etc e MCU access area internal ROM internal RAM etc e A signal state on one or more of the four external probes Rev 1 0 09 00 page 2 of 134 RENESAS e You can specify that the event must be triggered a certain number of times before the event is activated 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 provide a more limited set of options and can be set up to be triggered on a combination of one or more of the following e Address or address range e Data with an optional mask e Read or write e MCU access type instruction prefetch data fetch etc e MCU access area internal ROM internal RAM etc e A signal state on one or more of the four external probes e Delay cycles after an event 1 2 3 Breaks and Timing The complex event system can be used to control the following functions of the E6000 emulator Break
72. ls of the connectors provided on the E6000 emulator PC interface cable connector User system interface cable __ connector Power connector On off switch Case screw Case screw Figure 3 1 E6000 Emulator Connectors Rev 1 0 09 00 page 29 of 134 RENESAS 3 1 1 Connecting Example of the User System Interface Cable Head to the User System Screws x2 Screws x2 User system interface cable head Figure 3 2 Connecting User System Interface Cable Head to User System e Ensure that all power is off to the E6000 emulator user system and associated equipment e Insert the user system interface cable head into the socket on the user system Note Depending upon the QFP 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 part and socket when installing e Screw the user system interface cable head to the socket with the screws provided together with the user system interface cable Alternately tighten the screws little by little in the sequence shown in figure 3 3 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 If the solder lugs are provided on the QFP socket use them to provide extra strength to the E6000 emulator and user system connection R
73. mcniicidin Gai E ade 1 LL2 D o e E E E E E E deedacasses sanesdes deegsatescesscesvant 1 1 1 3 Execution Time Measurements roennnnnnnnvnnnnnnvvvrnvvrvevevrverrveravvrnevrervenvvenvvesveesvvesen 2 1 2 Complex Event System CES osese ccscecceseesseeeesoeesteesncssnesssensnaesessevesserseblebessnvenenens 2 12 1 Event Channels sperrer e e verste REE E E E E 2 1 2 2 Range Ch nnels u nu hevn usnsmirnnveseiisvrsekiriatietvenbekkverdderbvkssesaenkadrbikkvskeske 3 1 23 Br aks and Timing vis cssccsstescesssiecsesccentsabbeidesassbescoyasededveassenrsbhsedsapensheoebbebndendeaseies 3 1 3 Hardware Featur s u mmy iisirusr i nrerin nan tee e TE EEA EE E EEEE E 4 I Memory sesso i r e EEEE E EEEE EE 4 1 3 2 Operating Voltage and Frequency Specifications senornrornrnvvrnnvvrnvvrnvrrnrvrvrverrern 4 NEB 3 Clocks usett d E E A A E E 4 1 3 4 External Prob Sccassiipnae e E E E AE Aan pes 5 1 3 5 Environment Conditions sisese sccs secssnevsncecsceecbs siebessangusescsesusoesoessoeesnssetneveeysn sevens 5 1 3 6 Emulator External Dimensions and Mass serenvrnnorrnrvevrverrverevvrnevrnrvenvvnevesvverveern 5 Section 2 Setna UPa e E A 7 2x1 Package Contents coseson inae E E urea E E N E 7 2 2 Installing the PC Interface Board esnnnnrnnnnnnnvnnvvnnvvnnvrrnvrrvrverrvvrarvravvrnrsrnsneevneevnvenersversvsesen 8 220 Seting Upiisvnemisvmisiirerenibrslutvislrtnerlemmieibentvistitsemmntivvi tt 8 2 3 Setting Up the PC Interface Board on Windows NT 4
74. n Dialog Box Rev 1 0 09 00 page 81 of 134 rRRENESAS The Configuration dialog box allows you to set up the E6000 emulator To display the configuration dialog box choose Configure Platform from the Setup menu Table 5 2 explains the options provided in the Configuration dialog box Table 5 2 Configuration Options Option Description Device Specifies the MCU device Mode Specifies the MCU operating mode Mode is fixed to 3 Clock Specifies the MCU clock rate Can be set to 0 5MHz 2 MHz 8 MHz or Target 2 H8 3802 series system clock Specifies the MCU subclock rate Can be set to 32 768 kHz 38 4 kHz 307 2 kHz or Target Timer Resolution Specifies the minimum time used for performing execution time measurements Can be set to one of the following values 20 ns 125 ns 250 ns 500 ns 1 us 2 us 4 US 8 US or 16 ps User Signals Allows you to disable or enable the user reset signal When the box is checked the signal is enabled Enable read and write on the fly Allows HDI access to user memory in run mode Enable boot mode Allows boot programming operation for flash memory in the MCU This option cannot be used in the H8 3802 series Break on access error Causes all illegal accesses to halt emulation If not checked all writes to ROM or accesses to the guarded area are ignored User VCC Threshold Monitors the user s system voltage level and if it falls below the valu
75. n Message 2 errernrnrnvnvnvnnvnnnvrrvvrrnrrrvrvenrverarernevrnrvenrneevensvesnveser 28 Figure 3 1 E6000 Emulator Connectors ccssessessessescssnesesconssnseveereesensosnesenssssessssesnesssevaseseesy 29 Figure 3 2 Connecting User System Interface Cable Head to User System 0 eee 30 Figure 3 3 Sequence of Screw Tightening rrnvrrnvrnnvrrnvvrnrvvrrvvravvravrrnvnrnrneernnevneenvvsnvrsversvsesvsve 30 Figure 3 4 Plugging User System Interface Cable Body to E6000 Emulator ee 31 Figure 3 5 Polarity of Power Supply Plug rrnoronorornnvrnnvrnnvrnnnrnnnnnnvnnnvennvnnnvrrnvernrrrnrversvvravvreee 32 Figure 3 6 User System Interface Circuit for Other Signals wssnrrvnrnvnnnvrrnvrrnvrrnvvrnrvvrrvvravvreer 33 Figure 3 7 User System Interface Circuit for OSC1 and X1 rerenernrnrvrnvrrnrnvnvnrevnvevnvevvrsversvrrsvrve 33 Figure 3 8 User System Interface Circuit for P50 WKPO SEGI1 to P57 WKP7 SEG8 P60 SEG9 to P67 SEG16 P70 SEG 17 to P77 SEG24 P80 SEG25 to P87 SEG32 CL1 PCO COMPO to PC3 COMP3 PBO ANO to PB7 AN7 34 Figure 3 9 User System Interface Circuit for AVcc and AVSS nrnvrrnvrvvnrnvrrvvrrvvevvnrnververvvervvernee 34 Figure 3 10 User System Interface Circuit for CVcc and TEST eee ee eeeeeeeeeeeeeeeeeeeees 34 Figure 3 11 User System Interface Circuit for VO V1 V2 and V3 rrrernrrennnnrrrrvenvnerrrvennerenne 34 Figure 3 12 Oscillator Crout uninmmivvanamsmeiivvivripekeinrteineivslervsser
76. ne efined or efine efine efine efine lefined o efined or unavailab efined or unavail Delayed Stop Delay Count fi avai cm Figure 5 20 Delayed Stop Panel 8RRENESAS Rev 1 0 09 00 page 103 of 134 5 7 Command Line Command Line no batch file no log file Figure 5 21 Command Line Window The Command Line window allows you to execute commands to automate debugging To display the Command Line window choose Command Line from the View menu For details of the additional MCU specific command line functions refer to section 6 Command Line Functions Rev 1 0 09 00 page 104 of 134 8RRENESAS Section 6 Command Line Functions This section gives details of the additional MCU specific command line functions For other general command line functions refer to Hitachi Debugging Interface User s Manual HDI manual Table 6 1 shows the correspondence between the command line functions and the descriptions in the HDI manual and this manual Table 6 1 Correspondence Between Command Line Functions and Descriptions in Manuals Abbrevia HDI This Command Name tion Manual Manual Description O Comments ACCESS AC O Sets operation for invalid access ANALYSIS_ RANGE AR O Sets or displays the performance analysis range ANALYSIS_RANGE_DELETE AD O Cancels the performance analysis range ANALYSIS AN O Validates or invalidates the
77. nnenenne 17 Figure 2 12 HDI Installing 2 crenis aie nea e a r ce Ea i 17 Figure 2 13 Insert New Disk Dialog Box 2 renvnnnvnrnvrvvvnnvvnnvrrnvrrnrrevrvevrveraverarvrnrvenrneervensvesnvesner 18 Figure 2 14 Select Driver Type Dialog Box ernrrvvnnnvnnvvrrvvrrvvrrvrvenrveranerarvrarvrerveervenvvesnvenversveeeen 18 Figure 2 15 Window for Specifying Program Groups of Icons rrnvrrernnvrnrvnvevnvenvvnnvrvvrrvvravvneer 19 Figure 2 16 HDI Program Group rervrorvrnvrrnvnrnvnrnvnvevnvevvvevvveversvrrsnrvevaverarerarrnvvrnenansveesvesnvesnvene 20 Figure 2 17 Start Men srecen avions EEEE EEEE EE EEE E EEEE R ES 21 Figure 2 18 Status Bar during HDI Start Up eooronororrnnovrnoverrvvrarvrnvvrnrvrnrnnevnnnvnvenvvsversversvsssvsver 21 Figure 2 19 HDI Start Up Screen s ccccccesit a livev sired eei ee eare aii 22 Figure 2 20 Start Menu Uninstaller sooororrronnrnrorrnrnnrnvenrnnnnrnverrnnnnrnserrnnnnrnserrnennnnsersnssnrnsenseee 23 Figure 2 21 Select Uninstall Method Dialog BOX serorvrorvrornvernrnvnvrnvnrnvrrverenrvevrversveravvreevrevnee 24 Figure 2 22 Perform Rollback Dialog BOX rernrnrrrnvnvnvvvnnvvrnvrrnvrrvrrrvrversverareraevrnrvenrnensvessversvesnee 25 Figure 2 23 Perform Uninstall Dialog Box reerrornrnrnvevnvnnvvrnvrrvvrrvrrevrverrveraverarvrnrvenrneevversvesneesner 26 Figure 2 24 Faulty Connection Message 1 rrennnnnnnnnvnnnvnnnvnnnvrrnrvevrverrverarerarvrnrvenvnenrverveesnveseee 27 Figure 2 25 Faulty Connectio
78. not installed and used in accordance with the instruction manual may cause harmful interference to radio communications Operation of this equipment in a residential area is likely to cause harmful interference in which case the user will be required to correct the interference at his own expense Rev 1 0 09 00 page VI of VI RENESAS About This Manual This emulator HS3800EPI60H supports the following MCUs In this manual only the MCU names are shown Devices to be Supported MCU H8 3800 3801 and 3802 H8 3802 series This manual explains how to set up and use the E6000 emulator for the H8 3802 series of microcomputers This manual describes the debugging platform 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 Hitachi debugging interface HDI software that provides access to them Section 3 Hardware explains how to connect the E6000 emulator to an external user system Section 4 Tutorial then introduces each of the E6000 emulator s main features by showing how to load and debug a simple C program The tutorial program is supplied on disk so that you can follow the steps on your own system to learn first hand how it operates Section 5 Reference gives detailed information about the features of the HDI software Assumptions This manual assumes that you already have a working knowledge of
79. 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
80. nteractive 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 you the maximum flexibility in debugging applications and user system hardware Hardware Breakpoints Up to 12 breakpoints can be defined using the event and range channels in the complex event system CES For more information about the hardware breakpoints see section 1 2 Complex Event System CES 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 32768 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 then only assembly language can be displayed 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 Comple
81. nual 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 users that are well versed in the operation of the E6000 emulator Rev 1 0 09 00 page of VI RENESAS LIMITED WARRANTY Hitachi warrants its E6000 emulators to be manufactured in accordance with published specifications and free from defects in material and or workmanship Hitachi at its option will repair or replace any E6000 emulators returned intact to the factory transportation charges prepaid which Hitachi upon inspection determine to be defective in material and or workmanship The foregoing shall constitute the sole remedy for any breach of Hitachi s warranty See the Hitachi warranty booklet for details on the warranty period This warranty extends only to you the original Purchaser It is not transferable to anyone who subsequently purchases the emulator product from you Hitachi is not liable for any claim made by a third party or made by you for a third party DISCLAIMER HITACHI MAKES NO WARRANTIES EITHER EXPRESS OR IMPLIED ORAL OR WRITTEN EXCEPT AS PROVIDED HEREIN INCLUDING WITHOUT LIMITATION THEREOF WARRANTIES AS TO MARKETABILITY MERCHANTABILITY FITNESS FOR ANY PARTICULAR PURPOSE OR USE OR AGAINST INFRINGEMENT OF ANY PATENT IN NO EVENT SHALL HITACHI BE LIABLE FOR ANY DIRECT INCIDENTAL OR CONSEQUENTIAL DAMAGES OF ANY NATURE OR LOSSES OR EXPENSES RESULTING
82. office equipment communications equipment test and measurement equipment audio and visual equipment home electronic appliances machine tools personal electronic equipment and industrial robots High Quality Transportation equipment automobiles trains ships etc traffic control systems anti disaster systems anti crime systems safety equipment and medical equipment not specifically designed for life support Specific Aircraft aerospace equipment submersible repeaters nuclear reactor control systems medical equipment or systems for life support e g artificial life support devices or systems surgical implantations or healthcare intervention e g excision etc and any other applications or purposes that pose a direct threat to human life You should use the Renesas Electronics products described in this document within the range specified by Renesas Electronics especially with respect to the maximum rating operating supply voltage range movement power voltage range heat radiation characteristics installation and other product characteristics Renesas Electronics shall have no liability for malfunctions or damages arising out of the use of Renesas Electronics products beyond such specified ranges Although Renesas Electronics endeavors to improve the quality and reliability of its products semiconductor products have specific characteristics such as the occurrence of failure at a certain rate and malfunctions un
83. onrnnvrnnvrrnrvrrrvvrnvvrnvrrnenrnrnnnvnnevnesnvesversveeenn TT Configuration Dialog Box i c c cccccceseeicieccsesseesoresndeassossenesensniscesvcnseonensbandsssscsnedenseiessys 81 Breakpoints Window rervrnvvvnnvrnvvvrnvvrnrvenrveraveravvrnvvrnvvenvunsvvevnvevnvrsvsvevssvasvrasvrnsvsesnen 83 Breakpoint Event Properties Dialog BOx rrrnvronvrrnrvenrvernvernvvrnvvrnrnenvnnevvnenverveesveeser 84 General P nela saksa 86 Rev 1 0 09 00 page viii of x Figure 5 5 Figure 5 6 Figure 5 7 Figure 5 8 Figure 5 9 Figure 5 10 Figure 5 11 Figure 5 12 Figure 5 13 Figure 5 14 Figure 5 15 Figure 5 16 Figure 5 17 Figure 5 18 Figure 5 19 Figure 5 20 Figure 5 21 Bus Area P neliuissessnsastaknnesentsnst Sigpals Panel ssces secssessccenesss vosueedecssceese Zarestsassess sss Action P n liusvarastamsgarnsnntsdskasseetebe Event Sequencing Dialog Box eee eee Event Sequence Diagram srsnvnvnovvrnnvravvrnvvrnvnsnvnen Resetting Events ccsssseccssssessseeesesesneceeeneeenes Memory Mapping Dialog Box eee eee Edit Memory Mapping Dialog Box Trace Window 5 c0ccesesessecnessnstesebsaseensbenssennserdueesoes Trace Filter Dialog Box rnrrvrrnvrrnvvrnvrrnvrrvrrvvrvvreens General Panel usususevsis issdstisssgesrssdnserdetsedssneee Bus Area Panels sn i snssissesstnedseskekamsiestssrpe Signals Panel iiciin datdinatt isse General Panel ninne etatene SLOP Panel iliac sesesessecesses soe esdesvosedetscesss
84. ormation about the general features of the HDI common to all targets refer to the Hitachi Debugging Interface User s Manual supplied separately Table 5 1 shows the correspondence between the HDI menus and the descriptions in Hitachi Debugging Interface User s Manual HDI manual and this manual Table 5 1 Menu Bar File Menu Correspondence Between HDI Menus and Descriptions in Manuals Pull Down Menu New Session HDI Manual This Manual Load Session Save Session 4 11 Save Session As Load Program 4 5 Initialize Exit Edit Menu Cut Copy Paste Find Evaluate View Menu Notes 1 O Breakpoints 4 6 4 4 9 1 5 2 5 3 Command Line 5 7 Disassembly I O Area Labels Locals 4 8 3 Memory 4 7 1 Performance Analysis Registers 4 6 3 Source Described Not described 0 0 0 0 0 01 0 01010101 0 O OF OF 0101 OF CO OC OF O 4 5 2 The numbers in the This Manual columns are the reference section numbers 8RRENESAS Rev 1 0 09 00 page 79 of 134 Table 5 1 Menu Bar View Menu cont Correspondence Between HDI Menus and Descriptions in Manuals cont Pull Down Menu Status HDI Manual This Manual 4 6 2 Trace 4 10 5 5 Watch 4 6 Run Menu Reset CPU Go 4 6 2 Reset Go 4 6 2 Go To Cursor Se
85. osnscteeseesbiesonssntees 32 322 Polarity snapas ea E ee GAA il te ENa arar a EE 32 3 2 3 Power Supply Monitor Circuit renareronvrnnvrnvnvnrnnnvnnnvnnnvrrnververrnsvrrsversrvrarvrnerresnen 32 3 3 Hardware IDterface nissjurssnimnaihrsinveimieerhestvusritveesiekvesseetesieesskrsredte 33 33 1 Signal POE CU OM sic cacsce denessevesnesitcssnsssacanesverestes orea a R R E E 33 3 3 2 User System Interface Circuits 0 ee cece cee cseecseecreeeeeeeeeeeeeeeseeeeeeeeeeeeseenaees 33 333 Clock OSCAR seeren ena ccna EERI R R RETROE 35 3 3 4 External Probes Trigger Output rrnvnrnvnnnvvrnvrvvrvvnrvernnvrnrvrnrvrnrnrervensvesvvernvesvseenn 35 335 Voltage Follower Circuit ssi openee erei oeenn aoea a EE RE Eea Spe 36 3 4 Differences between MCU and E6000 Emulator soronoronororrvvrnvernvvrnrvrnrnenvnnevnnnvvnrnvervvern 38 34 1 AMD Converters ccciciieiteen sada wie eave eet 38 3 42 Access to Unused Area 2 5 sccesiecsececscestasesogienysseessevebeetecsessnsvatebetbenressnsserbbeases 38 3 4 3 Program Execution by the Go Reset Command usersnvrnnanvnanvranvranvrnvvrnrnenrvnesveener 38 FN aan 61 fs eee ree Aen OOH En ree eee eee th ermine ey R 39 AN Jatrod GtiOi sesoses nE e E E EE EE EE tens EEE EE 39 AMM ONGRVICW s23255i55 cassk ieee E E E E E EE E EENE 39 4 2 How the Tutorial Program Works svrrnvrnnornnvrrvvrrnrvenrveravernvvrnenrnrnenvvensvesvvesvvervrrsvevensserssen 40 43 Running HDE ae ae A ep EE E E E R 43 4 3 1
86. pand it and display the individual elements in the array Watch Window O D x Name ue sectionl Oxfd80 Oxfd80 Oxfd8e Oxfd9c Oxfdaa Oxfdb8 Oxfdc6 Hou wd wd nb ow wes a Figure 4 21 Watch Window Symbol Extension A variable name can be specified to add a variable to the Watch window e Click in the Watch window with the right button of the mouse to display a pop up menu and choose Add Watch e Enter variable name count and click the OK button Rev 1 0 09 00 page 61 of 134 8RRENESAS Add Watch x Figure 4 22 Add Watch Dialog Box The int type variable count is added to the Watch window Watch Window OT OP x Name sectionl xcininruu nu ds maracas A Figure 4 23 Watch Window Adding Variables Rev 1 0 09 00 page 62 of 134 8RRENESAS 4 8 Stepping Through a Program The E6000 emulator provides a range of options for single stepping through a program 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 function calls in a single step without stepping through every statement in the called function Step Out Executes out of a function and stops at the next statement in the program that called it Step Allows you to step repeatedly at a speci
87. peed active mode cpumpre CPU instruction prefetch access cycle in medium speed active mode Example bus cpu cpupre This will cause the event to occur only if the bus state is prefetch or data access The default is to ignore the bus cycle type e area io iram irom lcdram Similarly to bus this option causes the event to occur only if the specified areas are being accessed Example area irom iram This will cause the event to occur only if internal ROM or RAM is being accessed 1 cdram indicates MCU LCD RAM area access The default is any area e action trace none break timer start stop Defines the action to occur when the event is detected The default action is to break The other options are to start and stop the event timer that measures the execution time between events There is only one timer e count lt countval gt Sets an event pass count in bus cycles decimal e delay lt delayval gt Specifies delay cycles in bus cycles for the period after an event has been occurred until operation begins e channel 1 12 Sets the event detector system channel number to be defined This is useful if you are setting up a sequence of events since the sequencing is set up by referencing the channel numbers See section 6 5 EVENT SEQUENCE Channels 1 to 8 are event detectors 9 to 12 are range detectors Rev 1 0 09 00 page 111 of 134 8RRENESAS Examples en access 100 bp en
88. performance analysis range ASSEMBLE AS O Assembles a program ASSERT O Checks conditions BREAKPOINT EVENT BP EN 6 1 Sets a breakpoint or an event BREAKPOINT_CLEAR BC 6 2 Clears a breakpoint or an EVENT_CLEAR EC event BREAKPOINT_DISPLAY BD 6 3 Displays a breakpoint or an EVENT_DISPLAY ED event BREAKPOINT_ENABLE BE 6 4 Enables or disables a EVENT_ENABLE EE breakpoint or an event BREAKPOINT_SEQUENCE BS 6 5 Defines or clears a EVENT_SEQUENCE ES breakpoint or event Notes 1 O Described Not described sequence 2 The numbers in the table show the reference section numbers RENESAS Rev 1 0 09 00 page 105 of 134 Table 6 1 Correspondence Between Command Line Functions and Descriptions in Manuals cont Abbrevia HDI This Command Name tion Manual Manual Description CLOCK CK 6 6 Sets the CPU clock rate in the E6000 emulator DEVICE TYPE DE 6 7 Selects the target device in the E6000 emulator DISASSEMBLE DA O Disassembles and displays a program ERASE ER O Clears the contents of the command window EVALUATE EV O Evaluates an expression FILE_LOAD FL O Loads an object program file FILE_SAVE FS O Saves memory contents in a file FILE_VERIFY FV O Verifies memory contents against file contents GO GO O Executes a user program GO_RESET GR O Executes a user program from the reset vector GO
89. ping Dialog Box Table 4 2 lists the two memory types available in the E6000 emulator Table 4 2 Memory Type Memory Type Description Internal Accesses the MCU internal memory Emulator Accesses the emulation memory Rev 1 0 09 00 page 48 of 134 8RRENESAS 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 e To edit the mapping select the appropriate map setting value and click the Edit button or double click the line of the appropriate map setting Double click the Internal Read only in the Memory Mapping dialog box The Edit Memory Mapping dialog box is displayed Edit Memory Mapping EG Memory Mapping To H 00003FFF Setting On Chip Read only iad Cancel Help Figure 4 6 Edit Memory Mapping Dialog Box e Click OK to close the dialog box e To display the device map information select Status from the View menu or click the Status button in the toolbar to open the System Status window and select the Memory panel The device map information is then displayed as follows Rev 1 0 09 00 page 49 of 134 8RRENESAS System Status OT OP x Item Status Target Device Configuration 00000000 00003FFF Internal ROM 00004000 0000F73F Reserved Area 0000FB80 0000FF7F Internal RAM 0000F740 0000F74C Internal IO Q0000FF8
90. rnrnrnrnvnvnvevnvevvrnvvrsversvrrrvrrersrerarvsene 84 5 3 Complex Event Systemi sisirin is esee nE En EEEE E a 85 L E E EE e l EE EE E E E E E E E E 86 332 BUS E E E EE vies iceuad sotvausevancteescweveees 87 533 S T ea eI E A E ego E E E A E A 88 S34 ACUO ea e k aA a E a a a E R AER OE 89 5 3 3 Event Sequencing eee n E E eee E E 90 53 36 Arming Events eeii ao eoa aoi E aO ERE EEE EEE AEE Sei 91 5 3 1 Resetting EVents nenei a E E E AE E E SR 92 5 4 Memory Mapping Dialog Box rerrrvrnrvrnvrrnrnvnrnvnvnervrnrnenvvnnnvennvennvrrvevrverersrvrarvrnerrnenensneesnee 93 53 Trace WindoW usnsamanasarndggnndonedmntk EEEE EE EEE ROE EEEIEE SEE EEES oa 94 SSL Filtet e ri aaaea EEEE EE E E E E E aS 95 552 E Eo E AT A A E AE 95 D9 CYC E E E aiid E E E 95 5 3 4 Pattern uns i EEE EEE E EE E EEE E EEEE 96 553 Generalene see E E E ata E E Gade 96 SXG BUS LATE Aaeeei enon gea a AE EA A ARE AEE E E EE 98 S T Sendai aaret 99 56 Tract ACGUISIION sece iese en a EE E E E RE EEE ERO ER 100 S61 Generala ee EE E nS ee 101 a AE 1 0 E E E E E E E E 102 5 0 3 Delayed Stop sve oeeie eiere terae EErEE RE E EEEE EEEE E EEEE 103 ST Command Lineesei e etenin vs Ee EE EEEE E e SEENE S E EE 104 Section 6 Command Line Functions seeeseseessesseesieeresrrssrsreesresereeresresseseresresse 105 6 1 BREAKPOINT EVENT ceii cs sdfescestcccouestiideesoterteeaie iis Eo eaae IA E Ea Eaa aisa 109 6 1 1 Program Breakpoint seio irene eriin nE ee Ere EEEE E eE
91. rnvonnnnrnnvnrerrnnnnnnnerrrnennensenrnsennensnnrnsensee 61 Add Watch Dialog BOX i s ic ccescescessndvessacndecsyaecosnasesccnnbededoeessdeessnsndadsoesctvodessedsssvacts 62 Watch Window Adding Variables enrrrnvrnnonrnnrnrnvennvnnnrnnenrnnsnrnverrnennrnsensnssnrnsener 62 Program Window Display after Step In Command Execution 1 ee 64 Program Window Display after Step In Command Execution 2 eee 65 Program Window Display after Step Out Command Execution eee 66 Program Window Display after Step In Command Execution 3 67 Program Window Display after Step Over Command Execution eee 68 Program Window Display after Step In Command Execution 4 ee 69 Locals Window ecese oneone RE R hadde E E RE REER EEE 70 Displaying Individual Elements in an Array seeeonroronnnnonrnvennnnenrneennnnssrnsennnnsnrasensener 71 Breakpoint Event Properties Dialog Box rrnorernrvrorvrnvvrnrnvnvvnenvnnnvervvrrnrrevrversverer 72 Breakpoints Window After Addition resonvvnvrrrvennnnerrrvennnnerrrvenvnnerravennnnssrsssnnenenn 73 Program Break ireren irie EEE EER T R 73 Trace WINdOW ssessctsosssctccsestes lets ietedccashestiees tesseesdescsesndecssacedeloehs ENERE EEE EEr AE CE IESE 74 General Panel in Trace Filter Dialog BOx srernrnnvennvnnnrnnvvrnvrrvrrerrverarernvvrnvvservennnee 75 Bus Area Panel in Trace Filter Dialog BOX rsrnrnrnnnvnvnvrnvvrnvrrnvrrnrrrrrrvrrvvrarrrevvrnenen 76 Showing Trace Buffer Contents wsnoranvn
92. rogram e Choose Step Over from the Run menu or click the Step Over button in the toolbar P The program executes the sort function and stops at address H 1022 Rev 1 0 09 00 page 67 of 134 8RRENESAS ine i Tutorial c oj x A Source 0000100e rd 00001012 count 0 00001018 for Ca g 0000101a sort sectionl NAME 00001022 count 0000102c sort sectionl AGE 00001036 Break count 00001040 sort sectionl ID 0000104a count 00001056 00001058 void sort list key struct namelist list ie key short i j k long min char name struct namelist worklist 0000106a switch key i Figure 4 28 Program Window Display after Step Over Command Execution Rev 1 0 09 00 page 68 of 134 8RRENESAS 4 8 3 Watching Local Variables You can watch local variables in a function using the Local window For example we will examine the local variables in the function sort e Choose Step In from the Run menu to start executing the function sort or click the Step In button in the toolbar twice H ine i T utorial c Iof x Address BP Source 0000100e roe j 00001012 count 0 00001018 for C 5 H 0000101a sort sectionl NAME 00001022 count 0000102c sort sectionl AGE 00001036 Break count 00001040 sort sectionl ID 0000104a count 00001056 00001058 void sort list key struct namelist list riii key short IJK long min char name struct namelis
93. rporation puts the maximum effort into making semiconductor products better and more reliable but there is always the possibility that trouble may occur with them Trouble with semiconductors may lead to personal injury fire or property damage Remember to give due consideration to safety when making your circuit designs with appropriate measures such as 1 placement of substitutive auxiliary circuits ii use of nonflammable material or iii prevention against any malfunction or mishap Notes regarding these materials 1 These materials are intended as a reference to assist our customers in the selection of the Renesas Technology Corporation product best suited to the customer s application they do not convey any license under any intellectual property rights or any other rights belonging to Renesas Technology Corporation or a third party Renesas Technology Corporation assumes no responsibility for any damage or infringement of any third party s rights originating in the use of any product data diagrams charts programs algorithms or circuit application examples contained in these materials All information contained in these materials including product data diagrams charts programs and algorithms represents information on products at the time of publication of these materials and are subject to change by Renesas Technology Corporation without notice due to product improvements or other reasons Itis therefore recomm
94. s 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 is read from one address and then written to another address The break can also optionally be delayed by up to 65535 bus cycles Timing You can perform precise timing measurements on sections of your program by setting up two events and then timing the execution of the program between the activation of the first event and the activation of the second event Rev 1 0 09 00 page 3 of 134 RENESAS 1 3 Hardware Features 1 3 1 Memory The E6000 emulator provides internal ROM RAM memory as standard emulation memory The emulation memory can be mapped in one byte units to the MCU address space Each of memory can be specified using the Configure Map command as user Target or emulator internal ROM RAM memory and in each case the access can be specified as read write read only or guarded The definition of each type of memory is as follows Table 1 1 Memory Type Memory type Description Internal Uses the MCU internal memory Emulator Uses the emulation board memory The contents of a specified block of memory can be displayed using the Memory command 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 1 3 2 Operating Voltage and Frequency
95. s 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 C 7 D on lt D D CENESAS H8 3802 Series E6000 Emulator HS3800EPI60H User s Manual Renesas Microcomputer Development Environment System Renesas Electronics Rev 1 0 2000 09 www renesas com Cautions 1 Hitachi neither warrants nor grants licenses of any rights of Hitachi s or any third party s patent copyright trademark or other intellectual property rights for information contained in this document Hitachi bears no responsibility for problems that may arise with third party s rights including intellectual property rights in connection with use of the information contained in this document 2 Products and product specifications may be subject to change without notice Confirm that you ha
96. s of the E6000 emulator 3 4 1 A D Converter Due to the use of a user system interface cable there is a slight degradation in the A D resolution and above that quoted in the Hardware Manual for the MCU being emulated 3 4 2 Access to Unused Area The unused area from H FF80 to H FF8F is used by the emulator system Therefore if this area is allocated to the emulator by the MAP setting the operation is not guaranteed Do not use this area 3 4 3 Program Execution by the Go Reset Command When the program is executed using the Go Reset command the E6000 emulator inputs a 500 us reset signal to the evaluation chip This reset signal input time is added when the execution time measurement result is displayed Rev 1 0 09 00 page 38 of 134 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 Hitachi debugging interface HDI software 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 an external user system 4 1 Introduction The tutorial is based on a simple C program Before reading this chapter e Set up the E6000 emulator and verify that it is working in conjunction with the HDI software by referring to 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
97. senndkerenkranstarevkikekveksne kvin 35 Figure 3 13 External Probe Connector mssnnnnnnnonnnvrnnvrnnvvrvrvvrrvvravrrarrnenrnrneevnesvnrenerenvrsversvsssvsver 36 Figure 3 14 External Probe Interface Circuit erananenaneranvrnnvrnvvrnnnnnrvnrnnnnnvernvrrnvernsvrnsvrrsvvrarvreee 36 Rev 1 0 09 00 page vii of x RENESAS Figure 3 15 Figure 4 1 Figure 4 2 Figure 4 3 Figure 4 4 Figure 4 5 Figure 4 6 Figure 4 7 Figure 4 8 Figure 4 9 Figure 4 10 Figure 4 11 Figure 4 12 Figure 4 13 Figure 4 14 Figure 4 15 Figure 4 16 Figure 4 17 Figure 4 18 Figure 4 19 Figure 4 20 Figure 4 21 Figure 4 22 Figure 4 23 Figure 4 24 Figure 4 25 Figure 4 26 Figure 4 27 Figure 4 28 Figure 4 29 Figure 4 30 Figure 4 31 Figure 4 32 Figure 4 33 Figure 4 34 Figure 4 35 Figure 4 36 Figure 4 37 Figure 4 38 Figure 5 1 Figure 5 2 Figure 5 3 Figure 5 4 Voltage Level Monitoring rsrrrvnrrvrarvrnvvrnenrnvnvnvnvnvnvenvnnvvrsvsrsvsrevsveraverarernrvsevvansnene 37 Start MENU secsec se EE E E EE S E EEE SEEE 43 Select Platform Dialog Box cccsi esesssssenessntecrcssnssersbvasesnesenssensoendearsonescnesdeebnnnesenss 44 Hitachi Debugging Interface Window ernnvrnnrnvnrvvrnvvrnvvrnenrnvnrevnnenvvsvvrsvvrsnsrevsversvesere 45 Target Configuration Dialog BOX rernnnrnvnvnvnvnnrvvnrnvrrvvnrvrrerrverarvrarvrnevrerveevvennvesnvennee 47 Memory Mapping Dialog Box erorvrnrrrnrnvnvnvnnnrnvervvrrvrrrvrrersversrvrarvrnevserveevvensvenneesnne 48
98. signals of the E6000 emulator are directly connected to the evaluation chip on the E6000 emulator with no buffering 3 3 1 Signal Protection All user system interface signals are protected from over or under voltage by use of diode arrays except for the AVcc and analog port signals Pull up resistors are connected to the port signals except for the analog port signals The E6000 monitors the signals at the head of the user system interface cable to detect whether the user system hardware is connected 3 3 2 User System Interface Circuits The circuits that interface the evaluation chip on the E6000 emulator to the user system include pull up resistors that cause signal delays Note that when an input pin is in the high impedance state the pull up resistor forces the pin to be at a high level Adjust the user system hardware to compensate for these effects The delay caused by the user system interface cable is about 3 ns The following diagrams show the user system interface signal circuits Signals Other than below O User system interface cable chip Figure 3 6 User System Interface Circuit for Other Signals OSC1 and X1 Seen O User system interface cable chip Figure 3 7 User System Interface Circuit for OSC1 and X1 Rev 1 0 09 00 page 33 of 134 RENESAS P50 WKPO SEG1 to P57 WKP7 SEG8 P60 SEG9 to P67 SEG16 P70 SEG17 to P77 SEG24 P80 SEG25 to P87 SEG32 CL1 PC0 COMP0 to PC3 COMP3 PBO ANO to PB7 AN7 Evalua
99. sseeesadsvebuscbsenstiesvebeyossdousndedsbueusssdenutesisess 89 Memory Type sieren orein E E E E EE E E T E EEE EET E E 94 ACCESS TYPOS nanena nn an a E E E E ee E 94 Correspondence Between Command Line Functions and Descriptions in Manual ansees aat senke SEG 105 MICU Bus Status iesene EE T E RE E ER A EE 111 BREAKPOINT_CLEAR EVENT_CLEAR Parameters ervnenvrrvorrvvvrvrrrvrverrveravvrer 113 BREAKPOINT ENABLE EVENT ENABLE Parameters rsorrnvrrnrrrvrvvrrvvrsvvree 115 CLOCK Parameters si erinin eee nt ssri eoe e eE re E E EE EErEE EEEE E EEE 117 MODE Parameter ceceno ni er incite en ete aie ae 120 TIMER Commands ssc sccsce sasesecseesscssbeasvenctsnitanssesbebessevecestheabensctenttane EE SEE EEES 122 USER_SIGNALS Commands 0 0 eee ee ceecesecese esse cee caeecaeeeeeeeeeeeeseeeneeseaeenaeesaees 127 Rev 1 0 09 00 page x of x RENESAS Section I Introduction The E6000 emulator is an advanced realtime in circuit emulator which allows programs to be developed and debugged for the H8 3802 series of microcomputers The E6000 emulator can either be used in stand alone mode for software development and debugging or connected via a user system interface cable to a user system for debugging user hardware The E6000 emulator works with the Hitachi debugging interface HDI a Windows based interface program This provides a powerful range of commands for controlling and interrogating the emulator hardware with a choice of either fully i
100. st short key short i j k long min char name struct namelist worklist switch key case NAME for i 0 list i name 0 i name list i name k i for j itl list j name 0 jtt if stremp list j name name lt 0 name list j name k j worklist list i list i list k list k worklist break case AGE for i 0 list i age 0 i min list i age Rev 1 0 09 00 page 41 of 134 8RRENESAS k i for j itl list j age 07 jtt if list j age lt min min list j age k j worklist list i list i list k list k worklist break case ID for i 0 list i idcode 0 i min list i idcode k i for j i l list j idcode 0 j if list j idcode lt min min list j idcode K 33 worklist list i list i list k list k worklist break Rev 1 0 09 00 page 42 of 134 8RRENESAS 4 3 Running HDI To run the HDI e Select HDI for E6000 H8_3800 from the start menu Accessories gt 3 StartUp gt 3 Favorites ey Windows Explorer MS DOS Prompt N Documents Hdi Eh Settings ap Programs 4 Uninstall HDI for E6000 H8 3800 OA Find Figure 4 1 Start Menu Rev 1 0 09 00 page 43 of 134 8RRENESAS 4 3 1 Selecting the Target Platform The HDI has extended functions for supporting multiple target platforms and if your s
101. stallation Details The installer creates the following icons in the start menu you specified by default HDI Rev 1 0 09 00 page 19 of 134 RENESAS Fie Edit View Go Fa ABV for E600 Uninstall HDI H8 3800 for E6000 2 object s Figure 2 16 HDI Program Group These icons have the following functions HDI for E6000 H8_ 3800 is the HDI program Uninstall HDI for E6000 H8_3800 will remove HDI and its associated files if you need to uninstall it 2 5 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 H8_3800 from the start menu Rev 1 0 09 00 page 20 of 134 RENESAS Js Accessaries 3 StartUp BJ Windows Explorer MS DOS Prompt Le 4 Uninstall HDI for E6000 H8 3800 S Windows98 Figure 2 17 Start Menu When the HDI window is displayed the following messages are shown in the status bar under the window Downloading firmware Setting memory map HADAD NUM Figure 2 18 Status Bar during HDI Start Up Rev 1 0 09 00 page 21 of 134 RENESAS Finally the status bar will display Link up to indicate that everything is set up correctly and the HDI screen will be displayed as shown below Al Hitachi Debugaing interface E6000 H8 3800 Emulator Bie Edit View Run Memory Setup Window Help gacra netr 0ER Ad An M
102. start measurement Timer stop measurement point to point trace Trace start trace Trace stop trace or trace stop TrStop trace stop Blank gt Break gt Timer Timer gt Trace Trace gt TrStop gt Blank gt or Trace Rev 1 0 09 00 page 54 of 134 8RRENESAS 4 6 2 Executing the Program To run the program from the address pointed to by the reset vector e Choose Reset Go from the Run menu or click the Reset Go button in the toolbar EN The program will be executed up to the breakpoint you inserted and the statement will be highlighted in the program window to show that the program has halted inti T utorial c Source 0000100e aoe 00001012 count 0 00001018 for te 3 DI 0000101a sort sectionl NAME 00001022 count 0000102c sort sectionl AGE 00001036 Break count 00001040 sort sectionl ID 0000104a count 00001056 00001058 void sort list key struct namelist list short key short iJsk Figure 4 13 Program Break The message Break Soft Ware Breakpoint is displayed in the status bar to show the cause of the break Rev 1 0 09 00 page 55 of 134 8RRENESAS You can also see the cause of the last break in the System Status window e Choose Status from the View menu or click the Status button in the toolbar to open the System Status window and choose the Platform panel E System Status iO OL x Item Status Connected To E6000 H8 3
103. t PC To Cursor Run Step In 4 8 Step Over 4 8 Step Out 4 8 Step Halt Memory Menu Refresh Load Save Verify Test Fill Copy Compare Configure Map Configure Overlay Setup Menu Notes 1 O Status bar Options Radix Customize Configure Platform Described Not described 2 The numbers in the This Manual columns are the reference section numbers Rev 1 0 09 00 page 80 of 134 O 0 0 0 0 0 010 0 O O CO CO 0 CO O OF OF O OF OF CO OC 0 0 0101 010 8RRENESAS 4 4 1 5 1 Table 5 1 Correspondence Between HDI Menus and Descriptions in Manuals cont Menu Bar Pull Down Menu HDI Manual This Manual Window Menu Cascade Tile Arrange Icons Close All Help Menu Index Using Help Search for Help on About HDI Notes 1 O Described Not described 2 The numbers in the This Manual columns are the reference section numbers o 0l 0 0l 0l0 0o o 5 1 Configuration Dialog Box E6000 H8 3800 Configuration x User Signals Device jighfatiirs Y T User Reset enable Mode Clock 0 5MHz SUB Clock 32 768KHz Timer Resolution fi 25ns M Enable read and write on the fly M Break on access error r User VCC Threshold 4 00 Kl Driver Emulator ISA Driver Figure 5 1 Configuratio
104. t an invalid clock frequency if operating at less than 5 V You can set a user V threshold in the range 5 V to 0 V by using the E6000 emulator configuration dialog box If the user V drops below this threshold the User System Status in the system status window will display Down otherwise OK is printed When the user system interface cable is disconnected the E6000 emulator Vcc level is 5 V Rev 1 0 09 00 page 36 of 134 RENESAS User Vcc level User threshold User Voc threshold Figure 3 15 Voltage Level Monitoring Rev 1 0 09 00 page 37 of 134 RENESAS 3 4 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 as shown in table 3 1 Table 3 1 Initial Value Differences between MCU and E6000 Emulator Status Register E6000 Emulator MCU Power on PC Undefined Reset vector value RO to R6 0000 Undefined R7 SP 0010 Undefined CCR The mask is set to 1 and the The mask is set to 1 and the other bits are undefined other bits are undefined Reset command PC Reset vector value Reset vector value RO to R6 Undefined Undefined R7 SP 0010 Undefined CCR The I mask is set to 1 and the The I mask is set to 1 and the other bits are undefined other bits are undefined Please refer to section 3 3 Hardware Interface for details of the protection circuitry used on the I O port
105. t options gt is the same as specified in the access breakpoints This command will set a breakpoint that will trigger either within the addresses specified or outside when the MCU accesses within or outside the specified address range 6 1 4 Options data lt data gt mask lt mask gt byte word This allows a data comparison to be specified When bits are masked the bit data corresponding to the bits that are masked to 0 are not compared Example data h 20 mask h fff0 word This will cause the event to occur only if the higher 12 bits of the data bus are set to h 002 The default is to not compare the data signal 1 2 3 4 high low With this option the event will only occur if the external probe are in the specified state Example signal 1 high 3 low This will cause the event to occur only if the signal I is high and signal 3 is low The value of the other signals is not checked The default is to ignore all signals bus cpu cpupre sadata sapre cpumdata cpumpre The event only occurs if the MCU bus is in one of the specified states Rev 1 0 09 00 page 110 of 134 8RRENESAS Table 6 2 MCU Bus Status Events MCU Status cpu CPU data access cycle in active mode cpupre CPU instruction prefetch cycle in active mode sadata CPU data access cycle in subactive mode sapre CPU instruction prefetch access cycle in subactive mode cpumdata CPU data access cycle in medium s
106. t worklist 0000106a switch key Figure 4 29 Program Window Display after Step In Command Execution 4 e Open the Locals window by choosing Locals from the View menu or clicking the Locals button in the tool bar Initially the Locals window is empty because the local variables have not yet been declared Rev 1 0 09 00 page 69 of 134 8RRENESAS e Choose Step In from the Run menu eleven times to give ten more steps or click the Step In button in the toolbar eleven times ry The Locals window will now show the local variables and their values Locals Of OP x Name blist key i min name worklist Oxff46 Figure 4 30 Locals Window e Double click the symbol in front of the variable worklist in the Locals window to display the individual elements of the array worklist Rev 1 0 09 00 page 70 of 134 8RRENESAS Locals OT OP x Name list key 1 min name Oxfdb8 worklist Oxff46 name Rie age D 19 idcode D 7777 Figure 4 31 Displaying Individual Elements in an Array e Choose Step Out from the Run menu to return to the main program or click the Step Out button in the toolbar P 4 9 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 window and Locals windows Sometimes the action o
107. tallation Make Backups Ed 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 Rev 1 0 09 00 page 15 of 134 RENESAS e Click Yes to save any files that may be replaced as part of the installation or No if you do not want to make a backup If you select Yes the following dialog box allows you to specify the backup directory Select Backup Directory EG 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 38004Backu f r Hdi 3800 DE Cancel Figure 2 9 Select Backup Directory Dialog Box Note If there are no files to backup a backup directory is not created even if the directory is specified e Enter the directory to be used and click OK Rev 1 0 09 00 page 16 of 134 RENESAS The installer then copies the HDI files to the specified directory Copying Hitachi Debugging Interface Program C Hdi_3800 Hdi exe lt q Figure 2 10 HDI Installing 1 When first disk 1 3 installation is completed the following message is displayed Then insert installation disk 2 3 and press the OK button Insert New Disk EG Place installation disk 42 into the floppy drive and press the OK button
108. tectors CES channel 1 12 C Test Sequencing 1 D Check Range Break E Range Break Test for Data please wait Testing Emulation RAM Trace Setting up A B C Free Trace D Start and Stop Event Trace Test Setting up STAMP STAMP STAMP STAMP E Time Time Time Time Test Range Trace Test Point to Point Trace Test please Trace Trace Trace Trace please wait wait Test Test 1 Test 2 Test 3 Shows the check results for the step execution controlling circuits in the E6000 normal completion Shows the check results for the forced break controlling circuits in the E6000 normal completion Shows the check results for the illegal access break controlling circuits in the E6000 normal completion Shows the check results for the internal ROM write protection controlling circuits in the E6000 normal completion Shows the check results for the hardware break control circuits in the E6000 normal completion Shows the check results for the trace controlling circuits in the E6000 normal completion Rev 1 0 09 00 page 133 of 134 8RRENESAS 13 14 Testing Runtime counter Setting up please wait Testing Internal Clock 8 00MHZ sseedeseend eee ene e ne OK Testing Internal Clock 2 00MH2 svssssasesvensesnens OK Testing Internal Clock O 5MAZ veossssevesssesassses OK Testing Internal SubClock 32 T68kHz veseveassuneseneee OK
109. the selected memory area is not used by Windows 98 e Click Memory and Add on the Reserve Resource panel Then the Edit Resource Setting dialog box is displayed Edit Resource Setting gt Enter the beginning and ending values of the memory range you would like to reserve Start value D8000 End value por Figure 2 2 Edit Resource Setting Dialog Box Rev 1 0 09 00 page 9 of 134 RENESAS e Input the start and the end addresses of the selected memory area to Start value and End value e Turn off the host computer without restarting e Using a small screwdriver rotate the selector switch in the back of the PC interface board so that the arrow points to the number corresponding to the range of addresses you have selected e Remove the cover from the host computer and install the PC interface board in a spare ISA slot e Put on the host computer cover e Connect the PC interface cable between the PC interface board and the PC interface connector on the E6000 emulator Press each plug firmly until it clicks into position e Switch on the host computer e Confirm that the System Reserved is displayed for the memory area selected in the Computer Properties dialog box Computer Properties View Resources Reserve Resources Interrupt request IRQ C C Inputdyutpul 1 0 Setting Hardware using the setting l 00000000 O009FFFF Unavailable for use by devices m OOOAFFFF Super VGA OO0B7FFF Unav
110. ting Main Board Register IDRO Register sssr tata ter edase Kase tows a a a a Barre es OK PAGE REGISEG srra i E a E a E E A OK CES G A REGISTE rusus Var av ees a a E E S OK IDRI REGUS ESP saanane a a barbie A aera arma ea ere retest OK Description Test program start message Vx x shows the version number Enter 1 because the SIMM memory module is not installed in this example Shows that the PC interface board is correctly installed in the host computer and displays the address when the ISA bus interface is installed The displayed address depends on the settings When the PCI interface board or PCMCIA interface card is installed the address is not displayed Shows that the E6000 is correctly connected to the host computer Shows the ID number of the lower board of the E6000 always 1 Shows the ID number of the upper board of the E6000 always 15 Shows whether the SIMM memory board is installed Shows the check results for the registers in the E6000 normal completion Rev 1 0 09 00 page 131 of 134 8RRENESAS 02 Testing Dual Port RAM Decode Test Marching Test 03 Testing Firmware RAM Decode Test page range Marching Test page range 04 Testing Trace RAM Decode Test page range Marching Test page range 05 Testing Mapping RAM Decode Test page range Marching Test page range 06 Testing Internal ROM and RAM Setting up Decode Test Marching Test please wait 0x0000
111. tion O User system interface cable chip Figure 3 8 User System Interface Circuit for P50 WKPO SEG1 to P57 WKP7 SEG8 P60 SEG9 to P67 SEG16 P70 SEG17 to P77 SEG24 P80 SEG25 to P87 SEG32 CL1 PCO COMP0 to PC3 COMP3 PBO ANO to PB7 AN7 AVec and AVss Evaluation Figure 3 9 User System Interface Circuit for AVcc and AVss CVec and TEST When CVcc is connected to GND or TEST is connected to Vcc level a warning message is displayed at HDI initiation Check the CVcc and TEST pins on the user system Evaluation CVcc and TEST pin monitor circuit Figure 3 10 User System Interface Circuit for CVcc and TEST V0 V1 V2 and V3 Evaluation O User system interface cable chip Figure 3 11 User System Interface Circuit for V0 V1 V2 and V3 Rev 1 0 09 00 page 34 of 134 RENESAS 3 3 3 Clock Oscillator Figure 3 12 shows the system clock oscillator on the user system interface cable This oscillator is designed to oscillate in the range of 1 MHz to 16 MHz For details refer to the user system interface cable manuals E6000 emulator HCU04 HCU04 HCU04 XTAL OSC2 System clock Sub clock Figure 3 12 Oscillator Circuit 3 3 4 External Probes Trigger Output An 8 pin connector marked EXT next to the user interface connector on the E6000 emulator case accommodates four external probe inputs and two trigger outputs The pinout of this connector is shown in figure 3 13 Rev 1 0 09 00 page 35 of 1
112. ulator or the emulator not switched on Check the power LED on the E6000 emulator e The interface cable is not correctly connected between the PC interface board and the E6000 emulator Rev 1 0 09 00 page 27 of 134 RENESAS 2 8 2 Communication Problems The following message indicates that the HDI was not able to set up the E6000 emulator correctly E6000 Platform 1 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 25 Faulty Connection Message 2 This indicates e Incorrect area of memory reserved in the CONFIG SYS file or interface switch incorrectly set on the rear panel of the PC interface board e Selected area of memory is in use by another application Check the setting according to section 2 2 Installing the PC Interface Board and section 2 3 Setting Up the PC Interface Board on Windows NT 4 0 Rev 1 0 09 00 page 28 of 134 RENESAS Section 3 Hardware This section explains how to connect the E6000 emulator to 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 detai
113. user signals Reset to be enabled or disabled With no parameters this command will display the state of the enabled disabled flags for Reset Table 6 8 USER SIGNALS Commands Command Description us Displays user signal status us enable reset Enables the signals specified us disable reset Disables the signals specified Rev 1 0 09 00 page 127 of 134 8RRENESAS 6 17 REFRESH Abbreviation RF Updates the memory related windows Rev 1 0 09 00 page 128 of 134 8RRENESAS Section 7 Diagnostic Test Procedure This section describes the diagnostic test procedure using the E6000 test program 7 1 System Set Up for Test Program Execution To execute the test program use the following hardware do not connect the user system interface cable and user system Gr Po E6000 HS3800EPI60H Host computer The E6000 PC interface board which will be one of the following boards or card Select one interface board from the following depending on the PC interface specifications ISA bus interface board HS6000EII01H PCI bus interface board HS6000EICO1H or HS6000EIC02H PCMCIA interface card HS6000EIPO1H Install the E6000 PC interface board in the host computer and connect the supplied PC interface cable to the board Connect the PC interface cable to the E6000 Connect the supplied AC adapter to the E6000 Initiate the host computer to make it enter DOS prompt command input wait state Turn on the E6000 switch Re
114. v 1 0 09 00 page 119 of 134 8RRENESAS 6 9 MODE Abbreviation MO Sets and displays the MCU mode Table 6 6 MODE Parameter Parameter Keyword Mode Type 1 3 3 Single chip mode In the MCU mode is fixed to 3 Examples mode Lists the current mode mode 3 Sets mode to 3 and maps memory again Rev 1 0 09 00 page 120 of 134 8RRENESAS 6 10 TEST_EMULATOR Abbreviation TE Tests the E6000 emulator hardware and performs a test of the E6000 emulator memory areas After running this command the E6000 emulator system must be re initialized Examples te Performs E6000 emulator testing Rev 1 0 09 00 page 121 of 134 8RRENESAS 6 11 TIMER Abbreviation TI Allows the timer resolution to be displayed and modified This will set the timer resolution for measuring the execution time and execution time between events Table 6 7 TIMER Commands Command Description ti Displays the timer resolution ti lt timer resolution gt Sets the timer resolution Timer resolutions are 20 ns 125 ns 250 ns 500 ns 1 us 2 us 4 us 8 us or 16 us Examples ti 20 Sets the timer resolution to 20 ns ti 250ns Sets the timer resolution to 250 ns ti 8 Sets the timer resolution to 8 us ti 16us Sets the timer resolution to 16 Us Rev 1 0 09 00 page 122 of 134 8RRENESAS 6 12 TRACE_ACQUISITION Abbreviation TA Sets or displays trace acquisition options Syntax TA lt suppress gt lt freetrace gt lt ran
115. v 1 0 09 00 page 129 of 134 8RRENESAS 7 2 Diagnostic Test Procedure Using the Test Program Insert the test program floppy disk HS3800EVIG6OSF supplied with the E6000 into the host computer move the current directory to A and enter one of the following commands according to the PC interface board used to initiate the test program 1 ISA bus interface board HS6000EHO1H gt A TM3800 ISA RET 2 PCI bus interface board HS6000EICO1H or HS6000EICO2H gt A TM3800 PCI RET 3 PCMCIA interface card HS6000EIPO1H gt A TM3800 PCCD RET Be sure to initiate the test program from directory A Do not initiate it from a directory other than A such as C Y gt A TM3800 ISA RET If the test program is initiated when the current directory is not A the test program will not operate correctly Rev 1 0 09 00 page 130 of 134 8RRENESAS It will take about 6 minutes to execute the test program when the host computer using Windows 95 runs at 166 MHz and the PCMCIA interface card is used The following messages are displayed during the test Tests are from no 1 to no 14 Message E6000 H8 3800 EMULATION BOARD Tests Vx x Hitachi Ltd 2000 SIMM module fitted 1 None 2 1MB 3 4MB 1 Searching for interface card visa weds nee wale e bak wl seen OK Checking emulator is connected eee ee ee eee eee eee eee OK Emulator Board Information Main Board ID HFL Emulation Board ID H 15 SIMM No SIMM module inserted 01 Tes
116. ve received the latest product standards or specifications before final design purchase or use 3 Hitachi makes every attempt to ensure that its products are of high quality and reliability However contact Hitachi s sales office before using the product in an application that demands especially high quality and reliability or where its failure or malfunction may directly threaten human life or cause risk of bodily injury such as aerospace aeronautics nuclear power combustion control transportation traffic safety equipment or medical equipment for life support 4 Design your application so that the product is used within the ranges guaranteed by Hitachi particularly for maximum rating operating supply voltage range heat radiation characteristics installation conditions and other characteristics Hitachi bears no responsibility for failure or damage when used beyond the guaranteed ranges Even within the guaranteed ranges consider normally foreseeable failure rates or failure modes in semiconductor devices and employ systemic measures such as fail safes so that the equipment incorporating Hitachi product does not cause bodily injury fire or other consequential damage due to operation of the Hitachi product 5 This product is not designed to be radiation resistant No one is permitted to reproduce or duplicate in any form the whole or part of this document without written approval from Hitachi 7 Contact Hitachi s sales offic
117. x Event System for more information Rev 1 0 09 00 page 1 of 134 RENESAS It is also possible to store all bus cycles and then just look at selected cycles This is called trace filtering 1 1 3 Execution Time Measurements The E6000 emulator allows you to make measurements of 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 I us 2 us 4 us 8 us or 16 us At 20 ns the maximum time that can be measured is six hours and at 16us the maximum time is about 200 days 1 2 Complex Event System CES In most practical debugging applications the program or hardware errors that you are trying to debug often only occur under a certain very restricted set of circumstances For example a hardware error may only occur after a specific area of memory has been accessed Tracking down such problems using simple PC breakpoints can be very time consuming The E6000 emulator provides a very sophisticated system for giving a precise description of the conditions you want to examine called the complex event system This allows you to define events which depend on the state of a specified combination of the MCU signals The complex event system provides a unified way of controlling the trace break and timing functions of the E6000 emulator 1 2 1 Event Channels The event channe
118. ystem is set up for more than one platform you will first be prompted to choose a platform to be used Select Session EG E5000 H8 3800 Emulator v Exit Previous session file Figure 4 2 Select Platform Dialog Box e For this tutorial select E6000 H8 3800 Emulator and click OK to continue Note that you can change the target platform at any time by choosing New Session from the File menu When the emulator has been successfully set up the Hitachi Debugging Interface window will be displayed with the message Link up in the status bar Figure 4 3 shows the key features of the window Rev 1 0 09 00 page 44 of 134 8RRENESAS p Hitachi Debugging Interface Tutorial E6000 H8 3800 Emulator Tutorial c Menu bar MEJ Za File Edit View Bun Memory Setup Window Help Towar 0 mem Bee BER BS OROw SER ete BPD sor outon Address B Source 0000100e mai maine 00001012 count 0 00001018 for Cit DL 0000101a sort sectionl NAME 00001022 count 0000102c sort sectionl AGE 00001036 count 00001040 sort sectionl ID 0000104a count4 3 00001056 00001058 void sort list key struct namelist list erent key Program window short i j k long min char name struct namelist worklist 0000106a switch key case NAME 00001080 for i 0 list i name O i44 f 0000108a name list i name 0000109c k i 000010a4 for q j 1 list j name 3 j

Download Pdf Manuals

image

Related Search

Related Contents

Sony PCG-505F Marketing Specifications  水抜き方法など(PDF:655KB)  EF10100 Electrophoretic KIT EXPRIME 72 ENG.  ワイヤレスロギングステーション LR8410  StarTech.com 2 Port Low Profile SATA to eSATA Plate Adapter  Cables Direct 5m CAT6a, M - M  Memory Card Drive Operating Instructions  Veltek Associates Catalog – Part 2  赤外線多成分計トラバースシステム | 株式会社チノー  installation & maintenance manual for chssi two-post  

Copyright © All rights reserved.
Failed to retrieve file