Home
H8/3664 E6000 Emulator User`s Manual
Contents
1. PTR Cycle number in the trace buffer When the most recent record is record 0 earlier record numbers go backwards 1 2 If a delay count has been set the cycle number where the trace stop condition has been satisfied is record 0 For the cycle during delay executed until the trace has stopped earlier record numbers go forward 1 2 the most recent record Address Address 6 digit hexadecimal Instruction Disassembled code of the executed instruction Data Data bus value displayed as 2 digit or 4 digit hexadecimal R W Whether access was read RD or write WR Area Memory area being accessed ROM RAM or 8 or 16 bit I O not available when a time stamp is acquired Status Bus status during this cycle PROG prefetch or Data CPU data access cycle not available when a time stamp is acquired Mode Operating mode ACT active or SUB subactive not available when a time stamp is acquired Probes A 4 bit binary number showing the four probe pins in the order of Probe 4 Probe 3 Probe 2 and Probe 1 from the left not available when a time stamp is acquired NMI Status of the NMI input not available when a time stamp is acquired Timestamp Time stamp of the record Time stamps start from zero each time the user program is executed The timer resolution depends on the time stamp clock rate selected in the trace acquisition only available when a time stamp is acquir
2. 0 x 001038 void tutorial void 001044 t long a 10 long j int i class Sample p_sam 001046 p_sam new Sample 00104e for i O i lt 10 i jf 001050 j rand s long 10 001058 iS lt O i 5 re 00105a j j R 0 H OOOOOff6 FFEF80 long R 1 H 000015fb FFEFS4 long 00105 ali j R 2 H 0000167e FFEFS8 long u R 3 H 00001cth FFEF8C l 001070 e p_sam gt sort aj I e tlong 00107a gt p_sam gt change a R 4 H 00002781 FFEF9O llong R 5 H O0003 54 FFEF94 long 001082 p_sam gt s0 a 0 R 6 H 000041c6 FFEF98 long ooiasa pisem sizali s R 7 H 0000446b FFEFSC long 001096 p_sam gt s2 a 2 i manta pisem gt s3 a 3 R 8 H 000059e2 FFEFAO long 0010ae p_sam gt s4 a 4 R 9 H OOO0794b FFEFA4 long 0010ba p_sam gt s5 a 5 i H OODa R4 int 0010c6 p_sam gt s6 a 6 001042 p_sam gt s7 a 7 0010de p_sam gt s8 a 8 0010ea p_sam gt s9 a 9 oo10f6 delete p_sam m wa Watch Watcha y BaiaEe i h watchs watcha A wat Watch 4 Figure 6 23 High performance Embedded Workshop Window Step Out The data of variable a displayed in the Watch window is sorted in ascending order 137 RENESAS 6 12 3 Executing the Step Over Command The Step Over executes a function call as a single step and stops at the next statement of the main program e To step through all statements in the change function
3. RENESAS 225 8 2 2 Notes on Mode Transitions The MCU makes a transition to some other mode when interrupts occur In the E6000 emulator a break interrupt occurs with any of the following operations or actions Therefore break interrupts will occur even when no interrupt has been set up in the user program This will lead to unexpected mode transition e Forcible breaks When the Esc key is pressed or the STOP tool bar button is clicked e Software breaks e Breaks specified by the event detection system e STEP Step In Step Over Step Out execution e When a program is executed by a Go command from the address of a Software break When emulation breaks in the emulator the operating mode immediately before the break Active mode or Subactive mode and the cause of the break are displayed in the status bar and status window The operating mode can be referred to by looking at the status bar Examples ROM Write Access Break Active User Break Subactive 8 2 3 Access to the Reserved Area When accessing the reserved area note the following If the reserved area is used the operation in the actual MCU cannot be guaranteed If the user program extends to the reserved area during debugging select the MCU having the largest ROM capacity for example debug the H8 3663 program in the H8 3664 mode In the E6000 emulator one evaluation chip emulates several types of MCU Therefore the emulator has I O regis
4. Name monto r Options Address Size byte H 0020 bA Access Format BYTE ASCII bod IV Auto Refresh at rate ms D 00500 JV Reading the Initial Value r Color Change Indicator Chane H Foreground E Background n M Mayfly m Detail DETAIL NOT SUPPORTED Detail m History Figure 6 69 Monitor Setting Dialog Box 170 RENESAS 2 Set the items in the Monitor Setting dialog box as follows Enter monitor1 in the Name edit box e Set the parameters in the Options group box as follows a Use the Locals window to refer to the address on the line where variable a which is defined within the tutorial function is allocated and enter this address in the Address edit box In this example enter H OOFFEF80 b Enter H 50 in the Size edit box c Select BYTE HEX from the Access combo box d Check the Auto refresh at rate check box and enter D 00500 e Check the Reading the Initial Value check box e Set the parameters in the Color group box as follows gt a Select Change from the Change Indicator combo box b Select red and white in the Foreground and Background combo boxes respectively c Check the Mayfly check box Note Depending on the operating system in use the foreground and background colors may not be selectable Monitor Setting Monitor Setting Name monitori r Options A
5. Opens the Debug Sessions dialog box to list add or remove the debug session Debug Settings Opens the Debug Settings dialog box to set the debugging conditions or download modules Reset CPU taut H Resets the target hardware and sets the PC to the reset vector address Go F5 Starts executing the user program at the current PC Reset Go Shift F5 JE Resets the target hardware and executes the user program from the reset vector address Go To Cursor e Starts executing the user program at the current PC until the PC reaches the address indicated by the current text cursor position Set PC To Cursor PC Sets the PC to the address at the row of the text cursor Run Launches the Run Program dialog box allowing the user to enter the PC or PC breakpoint during executing the user program Display PC Shift Ctrl Y Opens the Editor or Disassembly window at the address of the PC 234 RENESAS Table B 1 GUI Menus cont Menu Option Debug cont Step In Shortcut F11 Toolbar Button P Remarks Executes a block of user program before breaking Step Over F10 P Executes a block of user program before breaking If a subroutine call is reached then the subroutine will not be entered Step Out Shift F11 P Executes the user program to reach the e
6. Address C DoritGare Addtess C Range AddressLo 00001082 Address Hi JH oo000000 J Outside Range Data Compare Direction F Compare J Use Mask Read Value p uA jE 0 C wrie Byte C Word Mask mooo Either Figure 5 20 Breakpoint Event Properties Dialog Box Setting a Software Break In this dialog box select the address condition to set software breakpoints Type Select the type of a breakpoint Note that the Breakpoint Event Properties dialog box is used for setting software breakpoints and event points Selecting a particular type of breakpoint enables or disables other pages and parts of the dialog according to the options available to that type of breakpoint Software Break Only a single address with a program fetch can be selected Other options are invalid Event Set conditions in detail with other options on this page or on the Bus Area Signals or Action page Address Set address conditions Adderess Lo Select a single address where a software breakpoint will be set 63 RENESAS 5 7 7 Setting Event Points On the Event sheet the settings for event points are displayed modified and added Event iol xj m A t El Type Chi E Enable Address 00105 tutorial cpp 42 address count D S Break Ch2 E Empty Ch3 E Empty ch4 E Empty Ch5 E Empty Ch6 E Empty Ch E Empty Ch8 E Empty Ch9 R Empty chi0 R Empty Ch11 R E
7. 20 A Normal Mode Test B Address 23 16 00 Test GO REBEC se sortie ccak EA a RRR E RES Bus QO SEE irena n Er EER RE Sea ae area Test Normal Mode Tests run for xH xM xxS Tests passed 246 emulator functioning correctly RESERVED RESERVED RESERVED RESERVED RENESAS Shows the check results for the parallel access controlling circuits in the E6000 normal completion Shows the check results for the Go RESET controlling circuits in the E6000 normal completion Shows the check results for Normal Mode normal completion Total testing time Shows that the E6000 is correctly operating Renesas Microcomputer Development Environment System User s Manual H8 3664 E6000 Emulator Publication Date Rev 6 00 February 5 2007 Published by Sales Strategic Planning Div Renesas Technology Corp Edited by Customer Support Department Global Strategic Communication Div Renesas Solutions Corp 2007 Renesas Technology Corp All rights reserved Printed in Japan Renesas Technology Corp Sales Strategic Planning Div Nippon Bldg 2 6 2 Ohte machi Chiyoda ku Tokyo 100 0004 Japan 2CENESAS RENESAS SALES OFFICES http www renesas com Refer to http Awww renesas com en network for the latest and detailed information Renesas Technology America Inc 450 Holger Way San Jose CA 95134 1368 U S A Tel lt 1 gt 408 382 7500 Fax lt 1 gt 408 382 7501 Renesas Technology E
8. When this box is checked writing to the internal ROM area is enabled For the result of writing see the Extended Monitor window User VCC Threshold Sets the voltage level for the user system User Signals When this box is checked the reset NMI standby and bus request signals from the user system are enabled Driver Displays the E6000 driver that is currently installed Change driver in start up When this box is checked selection of a driver will be available next time the emulator is connected e The items that can be set in this dialog box vary according to the emulator in use For details refer to section 8 Software Specifications Specific to This Product or the online help 39 RENESAS 5 1 2 Selecting an MCU Not Included in the List Selecting Custom in Device of the Configuration Properties dialog box adds the Custom Device page to the dialog box 2 xi F Enable Flash memory RAM eke x Pin 120 128PinB id Modules M Enable DTC MV Enable IDA A D Converter M Enable D A Converter IM Enable ICO A i V Enable Refresh Controller M Enable IIC1 M Enable DMAC M Enable WDT1 SCI Select Enable TPU35 Enable TMR2 3 C sco C SCI0 2 M Enable PwM14 C scio3 M Enable MultiProcesserComunication SCI1 4 SCI0 4 Cancel Figure 5 2 Configuration Properties Dialog Box Custom Device Page Use this page to specify functions fo
9. 02 Test DPRAM A DEGOGE TESE Jrergi le edie gate ed aah OK B Marching TOBE sst cde ade panes OK RENESAS Description Test program start message Vx x shows the version number Shows that the PC interface board is correctly installed in the host computer Shows that the E6000 is correctly connected to the host computer Shows the ID number of the lower board of the E6000 always 5 Shows the ID number of the upper board of the E6000 always 17 Shows the ID number of the E6000 expansion I O board as f Shows whether the SIMM memory board is installed Shows the check results for the registers in the E6000 normal completion Shows the results of decoding test and marching test for the dual port RAM in the E6000 normal completion 243 03 Test Firmware RAM A Decode Test page H 700 H 71f B Marching Test page H 700 H 71f 04 Test Trace memory A Decode Test page H 000 H 04f Lower B Marching Test page H 000 H 04f Lower C Decode Test page H 000 H 04f Upper D Marching Test page H 000 H 04f Upper 05 RESERVED 06 Test Internal ROM and RAM A Decode Test Internal ROM OK B Marching Test Internal ROM OK C Decode Test Internal RAM OK D Marching Test Internal RAM OK 07 RESERVED 08 Test Emulation RAM STEP Operation A Step Operation oe cde cece enemiqierecs OK 09 Test Keybreak A REY BREAKS nereste e asain place a
10. 4 Selecting a Memory Range You can select a range by clicking on the first data column and dragging the mouse to the last column The selected range is highlighted 5 Filling a Memory Area with a Value A value can be set as the content of a memory address range using the memory fill function To fill a memory range with the same value choose Fill from the popup menu of the EEPROM window The Fill dialog box is shown in figure 8 6 Start ID Start address fo v fHoo0001 40 Cancel End ID End address fi v H0000005F Data size Data Byte amp 1 z Baa Write mode Page 7 IV Verify Figure 8 6 Fill Dialog Box If an address range has been selected in the EEPROM window the specified start and end slave addresses and the start and end addresses will be displayed Select a format from the Data size combo box and enter the data value in the Data field Then select a mode for writing from the Write mode combo box Checking the Verify check box allows comparison of memory contents before setting these values On clicking the OK button or pressing the Enter key the dialog box closes and the new value is written into the memory range 198 RENESAS 6 Copying a Memory Area You can copy a memory area using the memory copy function The following three types are available e From EEPROM to EEPROM From EEPROM to normal memory From normal memory to EEPROM a From EEPROM to EEPROM S
11. 9 Select Reset Go from the Debug menu Processing stops when the break condition is satisfied and the Performance Analysis window then displays the information shown below The value shown in the Count column is 3 which indicates that the sort function has been executed three times and the execution time lolx Rate RUN TIME MAX MIN TIME Count 0 10 20 30 1 PAL Range H 00002068 H 000020D4 19 O0h OOmin 00s O00ms 352us 480ns 3 RRHHRBHH 2 3 4 5 6 7 8 ea 2i Figure 6 68 Performance Analysis Dialog Box Displaying the Result 10 Delete the setting for performance analysis and remove the event point Click the right hand mouse button on the Performance Analysis window to display a popup menu Select Reset All from this popup menu to delete all of the settings Clicking the right hand mouse button on the Event window also displays a popup menu Select Delete All from this popup menu to remove all the event points that have been set 169 RENESAS 6 19 Monitor Function The emulator allows monitoring of the content of specified addresses in memory during execution of the user program In this example we monitor the content of the address range where variable a of the tutorial function is stored 1 Select the CPU submenu from the View menu Then selecting Monitor Setting from the Monitor submenu displays the Monitor Setting dialog box Monitor Setting
12. The timer for execution time measurement has a 40 bit counter At 20 ns the maximum time that can be measured is about six hours and at 16 us the maximum time is about 200 days When the counter overflows the maximum time possible for measurement will be displayed with prompt gt that indicates that the counter has overflowed Enable read and write on the fly When this box is checked it is possible to access the target system memory while the user program is running Do not check this box if you require realtime emulation When accessing the internal ROM or internal RAM High performance Embedded Workshop accesses the memory directly as the bus mastership is released to the emulator without breaking the user program The MCU waits for eight clock cycles in each access When accessing the internal I O Memory is accessed with breaking the user program This pause is approximately 378 us while operating at 16 MHz When the internal RAM is disabled an access to this area is not available during the user program execution Note When the content of the memory is modified during the user program execution e g modification in the Memory window or by the MEMORY_EDIT command High performance Embedded Workshop reads the content to update the value High performance Embedded Workshop also reads the memory content when the content has been updated by operations such as selecting Refresh from the popup menu o
13. if you want to use SCI3_3 209 RENESAS f While emulating the H8 36024 group note that the register specifications at address H F608 in the actual device and expansion I O board HS36024EIO61H are different Table 8 32 lists the specifications and note on them Table 8 33 Register Specifications and Note Item Register Specifications Note HS36024E1061H Bits 4 to 7 1111 Reserved None Bit 3 0 Selects the device 0 H8 36024 Bit 2 0 Selects whether or not to delete noise 0 no 1 yes Bit 1 0 Selects the TXD3 output 0 port 1 TXD_3 Bit 0 0 Selects whether or not to stop modules 0 operate 1 stop H8 36024 Bits 4 to 7 1111 Reserved For emulation with the Bit 3 1 Reserved always read as 1 and expansion I O board writing has no effect HS36024E1061 H set bits 2 and 3 to 0 Bit 2 1 Reserved always read as 1 and writing has no effect Bit 1 0 Selects the TXD3 output 0 port 1 TXD_3 Bit 0 0 Selects whether or not to stop modules 0 operate 1 stop Note The value in parentheses indicates the initial value after a reset Table 8 34 Differences between the Evaluation Chip and the H8 36014 H8 36024 Registers H8 3660 Evalua tion chip H FFF5 IENR2 IENTB3 IENTB2 IENTB1 Address Register Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 H F730 H F731 H FFEO PMR1 IRQ3 IRQ2 IRQ1 IRQO TXD2 PWM TXD TMOW H FF
14. 7 Click the Close button to close the Statistic dialog box 8 Remove the event points that have been set and clear the trace information Clicking the right hand mouse button on the Event window displays a popup menu Select Delete All from this menu to remove all the event points that have been set Clicking the right hand mouse button on the Trace window displays a further popup menu Select Clear from this menu to clear the trace information 163 RENESAS 6 16 4 Function Calls This mechanism is used to only collect trace information on the function calls 1 Make the setting such that a break occurs at the address on the line that has p_sam gt s0 a 0 within the tutorial function H 00001082 in this example for details on this refer to section 6 15 1 Software Break Function 2 Select Reset Go from the Debug menu Processing stops when the break condition is satisfied and the Trace window then displays trace information 3 Select Function Call from the popup menu displayed by clicking the right hand mouse button on the Trace window The Function Call Display dialog box will be displayed Function Call Display Setting Enable to display trace information with function call only Enable Figure 6 58 Function Call Display Dialog Box 4 Click the Enable radio button and then the OK button Only the information on function calls is now display
15. Dialog Box 2 The Open Workspace dialog box is displayed Select a directory in which you have created a workspace After that select the workspace file hws and press the Open button Look in sane d ck Ee sample File name sample hws Files of type Workspaces hws X Cancel 4 Figure 4 11 Open Workspace Dialog Box 3 This activates the High performance Embedded Workshop and recovers the state of the selected workspace at the time it was saved When the saved state information of the selected workspace includes connection to the emulator the emulator will automatically be connected To connect the emulator when the saved state information does not include connection to the emulator refer to section 4 2 Connecting the Emulator 34 RENESAS 4 2 Connecting the Emulator Select either of the following two ways to connect the emulator a Connecting the emulator after the setting at emulator activation Select Debug gt Debug Settings to open the Debug Settings dialog box It is possible to register the download module or the command chain that is automatically executed at activation When the dialog box is closed after setting the Debug Settings dialog box the emulator will automatically be connected b Connecting the emulator without the setting at emulator activation Connect the emulator by simply switching the session file to one in which the setting for the emulator use h
16. Figure 4 9 New Project Step 8 Dialog Box If multiple target platforms were selected in the New Project Step 7 dialog box shown in figure 4 9 set the name of a configuration file for each of them each time pressing the Next button to proceed to the next target Setting of the configuration file name is the end of the emulator settings Complete the creation of a new workspace according to the instructions on the screen This activates the High performance Embedded Workshop 5 After the High performance Embedded Workshop has been activated connect the emulator However it is not necessary to connect the emulator immediately after the High performance Embedded Workshop has been activated Select either of the following two ways to connect the emulator connecting the emulator after the setting at emulator activation or without the setting at emulator activation For details on the connection of the emulator refer to section 4 2 Connecting the Emulator 33 RENESAS 4 1 3 Selecting an Existing Workspace 1 In the Welcome dialog box that is displayed when the High performance Embedded Workshop is activated select Browse to another project workspace radio button and click the OK button Options C Create a new project workspace tel a Gpen a recent project workspace Administration z if e Browse to another project workspace dedki ein d Figure 4 10 Welcome
17. H FFF5 IENR2 IENTB3 IENTB2 IENTB1 H FFF9 MSTCR1 MSTS4 MSTIIC MSTS3 MSTAD MSTWD MSTTW MSTTV MSTTA H FFFA MSTCR2 MSTS3_2 MSTTB3 MSTTB2 MSTTB1 MSTTX MSTTZO MSTPWM H FFFB MSTCR3 MSTS4_2 Address Register Bit 7 Bit 6 Bit2 Bit 1 Bit 0 H F730 FFEO PMR1 IRQ3 IRQ2 H FFE1 PMRS POF56 WKP5 WKP2 WKP1 WKPO H FFE2 PMR3 H FFF1 SYSCR2 H8 36049 EGR1 FFF2 FFF4 IENR1 IEN2 IEN1 IENO H FFF5 IENR2 H FFF9 MSTCR1 MSTWD MSTTW MSTTV MSTTA H FFFA MSTCR2 MSTTZ MSTPWM E 8 Warnings that Apply to H8 36109 Group Programming a The description given in the hardware manual is Initial value 0 Reserved These bits are always read as 0 However the description in the emulator manual is Always specify 0 These bits are always read as the specified values Table 8 44 Differences between the H8 36109 Group Products 1 Target Address Register Name Bits H FFF5 Interrupt enable register 2 7 and 6 H FFF9 Module standby control register 1 7 4 and 2 H FFFA Module standby control register 2 6 5 3 and 1 215 RENESAS b The description given in the hardware manual is Reserved However the description in the emulator manual is Always specify 0 These bits are always read a
18. Purpose Time Of Specified Range Measurement Measures the execution time and execution count in the specified range Measurement of time taken for processing of functions except for that required for child functions called from the functions Start Point To End Point Measurement Measures the execution time and execution count between the specified addresses Measurement of time taken for processing of functions Start Range To End Range Measurement Measures the execution time from a specified range to another specified range Measurement of execution time spent from calling of any of sequential subroutines to calling of any of another sequential subroutines in a program that includes subroutines in sequence such as an assembly program Access Count Of Specified Range Measurement Measures the number of times a specified range is accessed from another specified range Measurement of the number of times a global variable is accessed from a specific function Called Count Of Specified Range Measurement Measures the number of times a specified range has called another specified range Measurement of the number of times a function is called from a specific function Use eight performance channels installed on the circuit for measurement of hardware performance in the emulator for setting of conditions for measurement Up to eight points can be set Note however that up to four
19. j 00001 00105 EXTS L ER4 17f4 RD ROM PROG el 1111 1 111111 ala 4 00000 00105c L 1 1 111111 Figure 6 48 Trace Window Displaying the Result If you have trouble viewing a column drag the header vertical bars below the title bar to adjust the width of the column 155 RENESAS 10 Remove the event points that have been set and clear the trace information Click the right hand mouse button on the Event window to display a popup menu Select Delete All from this menu to remove all of the event points that have been set Click the right hand mouse button on the Trace window to display a further popup menu Select Clear from this menu to clear the trace information 6 16 2 Displaying a Trace when Time Stamping is Available The following procedure is for obtaining and displaying with time stamps trace information on cycles of writing to memory locations in the specified address range 1 Clicking the right hand mouse button on the Trace window displays a popup menu Select Acquisition from this menu to display the Trace Acquisition dialog box see figure 6 41 Trace Acquisition dialog box 2 Register the address range for trace acquisition as an event condition Click the Add button in the Trace Events group box on the General page to display the Breakpoint Event Properties dialog box see figure 6 42 Breakpoint Event Properties dialog box 3 Click the Range radio button in
20. 23 RENESAS 24 RENESAS Section 4 Preparation before Use 4 1 Method for Activating High performance Embedded Workshop To activate the High performance Embedded Workshop follow the procedure listed below 1 Connect the emulator to the host computer 2 Connect the user system interface cable to the connector of the emulator if you use the user system interface cable This is not necessary when you do not use the user system interface cable 3 Turn on the emulator Be sure to turn on the user system before supplying power to the emulator if you use the user system 4 Activate the High performance Embedded Workshop from Programs in the Start menu 5 The Welcome dialog box is displayed m Options OK Md e Open a recent project workspace 4 m C Browse to another project workspace Cancel Administration lkt Figure 4 1 Welcome Dialog Box Create a new project workspace radio button Creates a new workspace Open a recent project workspace radio button Uses an existing workspace and displays the history of the opened workspace Browse to another project workspace radio button Uses an existing workspace this radio button is used when the history of the opened workspace does not remain In this section we describe the following three ways to start up the High performance Embedded Workshop e Create a new project workspace a toolchain is not in use e
21. After saving a session the High performance Embedded Workshop exits If not necessary click the No button to exit the High performance Embedded Workshop High performance Embedded Workshop x AN Session has been modified do you want to save it Yes No Cancel Figure 4 13 Session has been modified Message Box 36 RENESAS Section 5 Debugging This section describes the debugging operations and their related windows and dialog boxes Refer to the High performance Embedded Workshop user s manual about High performance Embedded Workshop common functions as below Preparations for Debugging Viewing a Program Operating Memory Displaying Memory Contents as Waveforms Displaying Memory Contents as an Image Modifying the variables Viewing the I O Memory Looking at Registers Executing Your Program Viewing the Function Call History Debugging with the Command Line Interface Elf Dwarf2 Support Looking at Labels RENESAS 5 1 Setting the Environment for Emulation 5 1 1 Opening the Configuration Properties Dialog Box Selecting Setup gt Emulator gt System or clicking the Emulator System toolbar button i opens the Configuration Properties dialog box 00 Configuration Properties 7 advanced mode single chip _ IV Single chip mode Main 1 0MHz Sub 32kHz ha ns Flash Memory Control E M M a a
22. Don t care Detects no selected probe condition High The status of the probe signal is high Low The status of the probe signal is low 91 RENESAS 8 IRQ7 0 page Select the status of IRQ signals The selection is not available when a time stamp is acquired i x General Address Data Rw Aea Status Probes IRQ 0 Setting IRQ Don t care x IRQS Dont care 7 IRQS Dont care x IRQ4 Dont care 7 IRG3 Don t care aa IRG2 Dont care x IRQ1 Dont care 7 IRQO Dont care 7 Cancel Apply Don t care Setting Figure 5 44 Trace Find Dialog Box IRQ7 0 Page Detects no IRQ input condition when this box is checked Detects the specified IRQ input condition IRQ7 to IRQO Select IRQ input conditions not available when Don t care has been 92 checked Don t care Detects no selected IRQ input condition High The status of the IRQ input is high Low The status of the IRQ input is low RENESAS 9 Timestamp page Specify the time stamp value for bus cycles The specification is not available when a time stamp is acquired Trace Find E x General Address Data R wW Timestamp Setting yae h min s me us n Cancel Apply Figure 5 45 Trace Find Dialog Box Timestamp Page Don t care Detects no time stamp value when this box is checked Setting Detects the specified time stamp value E
23. Empty ch9 R Empty chiO R Empty chi1l R Empty chiz R Empty 4 I Breakpoint Event A Trigger Figure 6 37 Event Window Setting Completed Note The items that can be displayed in this window differ depending on the product For the items that can be displayed refer to section 8 Software Specifications Specific to This Product or the online help 146 RENESAS Select Reset Go from the Debug menu to stop the tutorial program at breakpoints The program runs then stops at the condition specified under Chl 29 001038 void tutorial void 30 001044 aa long a 10 32 long j 33 int i 34 class Sample p sam 35 36 001046 p_sam new Sample 37 00104e fort i 0 i lt iG ift ji 38 001050 j rand 39 001058 25 lt Ojai 40 00105a aE 41 42 00105 gt ali i 43 Ag 001070 p_sam gt sort a 45 00107a p_sam gt change a 46 AT 001082 p_sam gt sO a 0 48 00108a p_sam gt s1 a 1 49 001096 p_sam gt s2 a 2 50 0010a2 p_sam gt s3 a 3 ab 0010ae p_sam gt s4 a 4 52 0010ba p_sam gt s5 a 5 53 0010c6 p_sam gt s6 a 6 54 0010d2 p_sam gt s7 al 7 55 0010de p_sam gt s6 a 8 56 0010ea p_sam gt s9 a 9 57 0010f6 delete p_ sam 58 0010fc 2 tutorial cpp Figure 6 38 Editor Window at Execution Stop 147 RENESAS The Status window displays the following contents Item Status Connected To H8S
24. History Displays the previous settings Notes 1 In this emulator odd addressees cannot be specified as the start addresses for monitoring 2 Selection of the foreground or background color may not be available depending on the operating system in use After setting clicking the OK button displays the Monitor window 54 RENESAS monitor monitor1 FFEF80 Ix Z 2 is Byte Hex z Address 0 1 SE ER E EE FFEF80 oo OO 13 72 OO OO 28 47 OO OO 2c 67 OO OO 33 59 FFEF9SO 00 O00 42 87 OO OO 4D AA OO OO 50 OF OO OO 64 88 FFEFAQ 00 O00 69 56 OO OO 75 66 OO 02 12 24 OO OO AA AA FFEFBO 5 70 00 O00 OO O1 80 74 OO OO 10 36 OO OO O04 IE FFEFCO 6A 18 6A 18 6A 18 6A 18 6A 18 6A 18 6A 18 6A 18 Figure 5 15 Monitor Window During user program execution the display is updated according to the setting value of the auto update interval Note Select Refresh from the popup menu when data is not displayed correctly after changing the address or content of memory 5 5 2 Changing the Monitor Settings Selecting Monitor Setting from the popup menu of the Monitor window displays the Monitor Setting dialog box which allows the settings to be changed Colors the size of accesses and the display format can be easily changed from Color or Access of the popup menu 5 5 3 Temporarily Stopping Update of the Monitor During user program execution the display of the Monitor window is automatically u
25. It is also possible to store all bus cycles and then just look at selected cycles This is called trace filtering 3 1 3 Execution Time Measurements The emulator allows you to measure the total execution time or to measure the time of execution between specified events in the complex event system You can set the resolution of the timer to any of the following values 20 ns 125 ns 250 ns 500 ns 1 us 2 us 4 us 8 us or 16 us At 20 ns the maximum time that can be measured is about six hours and at 16us the maximum time is about 200 days 3 1 4 Performance Analysis The emulator provides functions for measuring the performance of a program The performance of the specified program range can be displayed either as a histogram or in percentage form A timer resolution of 20 ns 40 ns or 160 ns can be selected In addition the execution count of the specified program range can be measured 1 to 65535 19 RENESAS 3 1 5 Bus Monitoring The emulator incorporates a bus monitoring function that monitors and displays the contents of the accessed area in High performance Embedded Workshop windows without stopping the program execution Up to eight blocks of 256 bytes can be monitored In addition the emulator can output trigger signals from external probe 2 EXT2 when specified addresses four points max are accessed Note that however some products do not support the bus monitoring function 3 2 Complex Event System CES In mo
26. MEMORY toggle button in the Copy Direction group box oo a e fF gt Fresco H oo000000 Figure 8 8 Copy Dialog Box EEPROM gt MEMORY The start slave address and end slave address as the source selected in the EEPROM window will be displayed in the Start ID and End ID combo boxes The source start address and end address will be displayed in the Start address and End address fields Checking the Verify check box enables copying while comparing the copy source and copy destination The copy unit can be selected in the Write mode combo box Enter the start address value of the destination in normal memory in the Address field of the Destination group box Then click the OK button or press the Enter key This will close the dialog box and copy the memory block to the specified address in normal memory 200 RENESAS c From normal memory to EEPROM Selecting a memory range and then Copy from the popup menu opens the Copy dialog box figure 8 9 Select the MEMORY gt EEPROM toggle button in the Copy Direction group box Copy Direction C EEPROM gt EEPROM Cancel C EEPROM gt MEMORY MEMORY gt EEPROM m Source Start ID Start address J X Ho0000000 End ID End address J v JHO00000FF r Destination ID Address fo v H o0000000 Write mode Page a V Verify Figure 8 9 Copy Dialog Box M
27. Specifies the area for searching When the Don t care check box is checked the event will be satisfied in any area Note Items set for the bus state and memory access area vary according to the emulator in use For details refer to section 5 7 4 Signals to Indicate Bus States and Areas 67 RENESAS 3 Signals page Use this page to set external signals Breakpoi tie 2 x General Bus Area Signals Action Probe 4 r Probe 3 C High High C Low C Low Don t Care m Probe 2 m Probe 1 High High C Low C Low Don t Care Don t Care Probe4 Probe3 Probe2 68 Figure 5 24 Breakpoint Event Properties Dialog Box Signals Page Detects the status of the input probe signal 4 High Detects the high level of the input probe signal Low Detects the low level of the input probe signal Don t care The status of the input probe signal is not detected Detects the status of the input probe signal 3 High Detects the high level of the input probe signal Low Detects the low level of the input probe signal Don t care The status of the input probe signal is not detected Detects the status of the input probe signal 2 High Detects the high level of the input probe signal Low Detects the low level of the input probe signal Don t care The status of the input probe signal is not detected RENESAS Probel Detects the stat
28. Window Displaying the Result If you have trouble viewing a column drag the header vertical bars below the title bar to adjust the width of the column 12 Remove the event points that have been set and clear the trace information Clicking the right hand mouse button on the Breakpoints window displays a popup menu Select Delete All from this menu to remove all the event points that have been set Clicking the right hand mouse button on the Trace window displays a further popup menu Select Clear from this menu to clear the trace information To disable time stamping select Disabled in the Clock combo box of the Time Stamp group box on the General page of the Trace Acquisition dialog box RENESAS 159 6 16 3 Statistics The number of times the internal RAM has been written to can be included in the acquired trace information 1 Make the setting such that a break occurs at the address on the line that has p_sam gt s0 a 0 within the tutorial function H 00001082 in this example for details on this refer to section 6 15 1 Software Break Function 2 Select Reset Go from the Debug menu Processing stops when the break condition is satisfied and the Trace window then displays trace information 3 Select Statistic from the popup menu that is displayed when you click the right hand mouse button on the Trace window A message box appears indicating that the trace data is being loaded
29. button to select a directory CPU family combo box Select the target CPU family Other list boxes are used for setting the toolchain the fixed information is displayed when the toolchain has not been installed Click the OK button 27 RENESAS 3 Select the target platform of the session file The following dialog box is displayed Setting the Targ for Debugging r Targets Miyyyy E6000 Emulator CPU 2600 xox E6000 Emulator CPU 2600 Target type 2500 7 lt Back Finish Cancel Figure 4 4 New Project Step 7 Dialog Box The target platform for the session file used when the High performance Embedded Workshop is activated must be selected here Check the box against the target platform and then click the Next button For details on the session file refer to the High performance Embedded Workshop user s manual 28 RENESAS 4 Set the configuration file name tting the Debugger Options Target name i E6000 Emulator CPL Configuration name Debug yyy E 6000_Emulator_CP r Detail options ltem Value Modify nn cen _ Figure 4 5 New Project Step 8 Dialog Box If multiple target platforms were selected in the New Project Step 7 dialog box shown in figure 4 5 set the name of a configuration file for each of them each time pressing the Next button to proceed to the next target Setting of the configuration fi
30. 106 Figure 5 56 Statistic Dialog Box Setting required for analysis of statistical information Sets a single input value or character string Sets the input value or character string as a range Sets the item for analysis Sets the input value or character string To set a range the start value must be specified here Specify the end value if a range has been set only available when Range has been selected Adds a new condition to the current one Creates a new condition Obtains the result of statistical information analysis Clears all conditions and results of statistical information analysis Closes this dialog box All the results displayed in the Result list will be cleared RENESAS This dialog box allows the user to analyze statistical information concerning the trace information Set the target of analysis in Item and the input value or character string by Start and End Click the Result button after setting a condition by pressing the New or Add button to analyze the statistical information and display its result in the Result list Note In this emulator only PTR can be set as a range Each of other items must be specified as a character string In analysis of statistical information character strings are compared with those displayed in the Trace window Only those that completely match are counted Note however that this test is not case sensitive The number of blanks will not be cared e
31. 2282 E6000 Emulator CPU 2000 E6000 USB Driver CPU H8S 2282 Mode ji Clock source Main 10MHz Sub 32kHz Run status Break Cause of last break Complex Event System Event Time Count 00h OOmin 00s O00ms 000us 000ns Run Time Count 00h OOmin 00s O00ms 826us 875ns A Memory Platform Events Figure 6 39 Displayed Contents of the Status Window Refer to the Watch window for the value of variable i The value is 4 indicating that the break occurred after the condition had been satisfied five times Note The items that can be displayed in this window differ depending on the product For the items that can be displayed refer to section 8 Software Specifications Specific to This Product or the online help Remove the event point Clicking the right hand mouse button on the Event window displays a popup menu Select Remove All from this menu to remove all event points 148 RENESAS 6 16 Trace Functions The trace functions of the emulator use the realtime trace buffer which is able to store the information on up to 32 768 bus cycles The content of this buffer which is constantly updated during execution is displayed in the Trace window Select Trace from the Code submenu of the View menu to display the Trace window foe e re EEE MEALA AAEE PTR Address Instruction Data R W Area Statue Clock Probes NMI IRQS 0 Timestamp Timestamp Difference Source Label Figure 6 40 Trace Window
32. 3 E6000 Emulator Functions 0 cecceeseescceseeeseeeeeceeeeeseeeeeeeeeeeeeenees 19 3 1 Debugging Features 3 1 1 Breakpoints 3 1 2 3 1 3 Execution Time Measurements 3 1 4 Performance Analysis 3 1 5 Bus Monitoring 3 2 Complex Event System CES 3 2 1 Event Channels 3 2 2 Range Channels 3 2 3 3 2 4 Timing 3 3 Hardware Features 3 3 1 Memory a 3 3 2 MCIOCIG innn R E AE E AR 3 3 3 Probes 3 4 Stack Trace Function 3 5 Online Help Section 4 Preparation before Use x sessisccecsessistesesecesviserovasnestestonestsncdsodsosescetten 4 1 Method for Activating High performance Embedded Workshop 4 1 1 Creating a New Workspace Toolchain Not Used 4 1 2 Creating a New Workspace Toolchain Used 4 1 3 Selecting an Existing Workspace 4 2 Connecting the Emulator 4 3 Reconnecting the Emulator 4 4 Ending the Emulator Section S Debugging ssrin enen Eeri E ENEE A OSRE 5 1 Setting the Environment for Emulation 5 1 1 Opening the Configuration Properties Dialog Box 5 1 2 Selecting an MCU Not Included in the List 5 1 3 Selecting the Interface to be Connected 5 1 4 Opening the Memory Mapping Dialog Box 5 1 5 Changing the Memory Map Setting 5 2 Downloading a Program 5 2 1 Downloading a Program 5 2 2 Viewing the Source Code 5 2 3 Viewing the Assembly Language Code 5 2 4 Modifying the Assembly Language Code 5 2 5 Viewing a Specific Address 5 2 6 Viewing the Cur
33. 36912F H8 36902 H8 36901 H8 36900 H8 36902F H8 36064 H8 36077 32 768 kHz Target H8 36087F H8 36087 H8 36086 H8 36085 H8 36084 H8 36083 H8 36082 H8 36079 H8 36078 Note Target in Clock and SubClock is only available when the target system is connected 185 RENESAS Table 8 3 Environment for the H8 36037 E6000 Emulator CPU 300H Debugging Platform Device Option Clock Option SubClock Option Expansion Hardware Custom The MCU previously selected H8 36037 1 MHz 32 768 kHz HS36037E1061H H8 36036 10 MHz Target H8 36035 16 MHz H8 36034 Target H8 36033 H8 36032 H8 36037F H8 36034F H8 36057 H8 36054 H8 36057F H8 36054F Note Target in Clock and SubClock is only available when the target system is connected Table 8 4 Environment for the H8 36024 E6000 Emulator CPU 300H Debugging Platform Device Option Clock Option SubClock Option Expansion Hardware Custom The MCU previously selected H8 36024 1 MHz Not available HS36024El061H H8 36022 10 MHz H8 36049 Da 32 768 kHz H8 36048 g Target H8 36047 H8 36049F Note Target in Clock and SubClock is only available when the target system is connected Table 8 5 Environment for the H8 36109 E6000 Emulator CPU 300H Debugging Platform Device Option Clock Option SubClock Option Expansion Hardware Custom The MCU previously selected H8 36109F 1 MHz 32 768 kHz HS36109EIO61H H8 36109 10 MHz Target H8 3
34. 5 0 mA it is 2 0 mA in the E6000 emulator 221 RENESAS Table 8 56 Differences between the Evaluation Chip and the H8 36064 Registers Address Register Bit 7 Bte Bits Bit4 Bt3 Bi2 Bit1 Bit 0 H F730 H F731 H FFEO PMR1 IRQ 3 IRa2 IRI IRQO TxD2 pwm TxD TMOW H FFE1 PMR5 POF57 porse wkps wkpa wkps wkp2 wkKPi wkPo H FFE2 PMR3 POF27 porze PoF25 por24 pore23 H FFE4 PCR1 PCR17 PcR16 Pcris pcria Peris pcri2 pcri1 PcRio H FFES PCR2 PCR27 pcree Pcres pcrea Pcre3 pcR22 PcR21 PcR20 H FFEA PCR7 PCR77 PCR76 PCR75 pcR74 PcR73 PCR72 PCR71 PCR70 ae H FFEB PCR8 PCR87 PCR86 PCRe5 pcrea pcres pcre2 PCR81 PCR80 tion chip H FFFo syscri _ ssBY sts2 sts1 _ sTso NESEL H FFF1 syscR2 smseL LSON DTON MA2 MAi Mmao sat SAO H FFF4 IENR1 IENDT IENTA EnwP IEN3 IEN2 IEN4 IENO H FFF5 IENR2 IENTB3 IENTB2 IENTB1 H FFF6 IRR1 IRRDT IRRTA IRRI3 IRRI2 IRR JIRRIO H FFF7 IRR2 IRRTB3 IENTB2 IENTB1 H FFF9 MSTCR1 msTs4 mstiic msts3s msTaD mstwo msttw msttv_ msTTA H FFFA MSTCR2 msTS3_2 msTTB3 msTTB2 msTTB1 msTTx MSTTZ MSTPWM H FFFB
35. 52 RENESAS 5 5 Displaying Memory Contents in Realtime Use the Monitor window to monitor the memory contents during user program execution In the Monitor function the realtime operation is retained since the bus monitoring circuit of the emulator sets the read write signal of the MCU as a trigger and holds the address bus and data bus values to update the displayed contents of the memory Up to eight points can be set by using the eight monitoring channels on the bus monitoring circuit 1 to 256 bytes can be monitored at one point It is possible that a part or all of monitoring ranges is overlapped Note Monitoring is impossible for an area such as an internal timer counter where no internal read write signal is generated to update a value 5 5 1 Opening the Monitor Window To open the Monitor window select View gt CPU gt Monitor gt Monitor Setting or click the Monitor toolbar button E to display the Monitor Settings dialog box Monitor Setting Name monitori m Options Address Size byte fH 0020 x Access Format BYTE ASCII IV Auto Refresh at rate ms o o0500 JV Reading the Initial Value r Color Change Indicator Chance Sti SY Foreground os Background M Mayfly r Detail DETAIL NOT SUPPORTED Figure 5 14 Monitor Setting Dialog Box 53 RENESAS Name Decides the name of the
36. 6 Register Dialog Box PC 124 RENESAS 6 6 Executing the Program Execute the program as described in the following e To execute the program select Go from the Debug menu or click the Go button on the toolbar es Figure 6 7 Go Button While the program is executing the current address bus value and the operating state of the MCU are displayed on the status bar The program will be executed up to the breakpoint that has been inserted and an arrow will appear on the S W Breakpoints column in the Editor window to show the position that the program has halted with the message Break Software Break in the status bar Note When the source file is displayed after a break a path of the source file may be inquired The location of the source file is as follows OS installation drive Workspace Tutorial E6000 2646 Source The directory mentioned above cannot be specified depending on the version of the software In such cases specify the following directory instead High performance Embedded Workshop installation destination directory Tools Renesas DebugComp Platform E6000 2646 Source The file path differs depending on the product If necessary replace 2646 with another name 125 RENESAS a ala 29 001038 void tutorial void 30 001044 31 long a 10 EFi long j 33 int i 34 class Sample p sam 35 36 001046 p_sam new Sample 37 00104e for i 0 i lt 10 i 38
37. 6 Saving the Trace Information in a File 5 8 7 Viewing the Editor Window 5 8 8 Trimming the Source 5 8 9 Acquiring a Snapshot of the Trace Information 5 8 10 Temporarily Stopping Trace Acquisition 5 8 11 Restarting Trace Acquisition 5 8 12 Extracting Records from the Acquired Information 5 8 13 Calculating the Difference in Time Stamping 5 8 14 Analyzing Statistical Information 5 8 15 Extracting Function Calls from the Acquired Trace Information Analyzing Performan Ossascsnsenuna 108 5 9 1 Opening the Performance Analysis Window 5 9 2 Setting Conditions for Measurement 5 9 3 Selecting the Address Detection Mode and Resolution 5 9 4 Starting Performance Data Acquisition 5 9 5 Deleting a Measurement Condition 5 9 6 Deleting All Measurement Conditions Section G Tutorial rrine E rere iter scree err reverrererr perrrrerrrreerrer tc 119 6 1 6 2 6 3 6 4 6 5 6 6 6 7 6 8 6 9 6 10 6 11 6 12 6 13 6 14 6 15 Introduction Running the High performance Embedded Workshop Downloading the Tutorial Program 121 6 3 1 Downloading the Tutorial Program 6 3 2 Displaying the Source Program Setting a Software Breakpoint Setting Registers Executing the Program Reviewing Breakpoints Referring to Symbols Viewing Memory Watching Variables Displaying Local Variables Stepping Through a Program 6 12 1 Executing the Step In Command 6 12 2 Executing the Step Out Command 6 12 3 Executing
38. Address H o0000000 Common Settings of Performance PA1 8 Address Control Mode PC Settings Time Measurement Unit 160ns Cancel Figure 5 61 Time Of Specified Range Settings Range Name The name of the range to be measured Range The range for the Time Of Specified Range Measurement Start Address Address to start measurement End Address Address to end measurement Measures the execution time and the execution count in the range between the start address and end address Starts measurement with a detected program prefetch in the range specified between the start and end addresses and then stops with a detected program prefetch out of the specified range Measurement can be restarted with a detected program prefetch in the specified range The execution count is incremented every time the program is prefetched at the end address of the specified range The execution time measured does not include the time spent while being called from the specified range 112 RENESAS 2 Start Point To End Point Measurement Performance n 2 x Measurement Method PAT Start Point To End Point Measurement Range Name PA1 Point Start Address H o0000000 fl End Address H o0000000 Time Out ooh 00min OOs 000ms 000us 000ns Count Common Settings of Performance PA1 8 Address Control Mode PC Settings Time Measurement Unit 160ns p Cancel Figure 5 62
39. Enables timer A RTC Enables RTC RENESAS 189 8 1 5 Memory Mapping Function The memory map cannot be changed with this emulator 8 1 6 Status Window Selecting View gt CPU gt Status or clicking the Status Display toolbar button displays the Status window The Status window has three sheets This emulator displays the following items 1 Memory Sheet Selecting the Memory tab on the Status window displays this sheet Table 8 6 Memory Sheet Items Item Column Status Column Target Device Configuration Displays memory mapping System Memory Resources Displays the memory resource of the emulator hardware Program Name Displays the program file name 190 RENESAS 2 Platform Sheet Selecting the Platform tab on the Status window displays this sheet Table 8 7 Platform Sheet Items Item Column Connected To Status Column Displays emulator name driver used CPU Displays the target MCU name Clock source Displays the selected clock Subclock source Displays the selected sub clock Run status Displays the execution status Break The user program breaks Running The user program is running Cause of last break Displays the cause of the emulator stopped at a break If a program breaks in the sub active state SubActive will be displayed after the cause of the break Ready User program not executed immediately after st
40. Figure 2 11 Start Menu Note If LAN Driver is not selected at installation Tools is not displayed 12 RENESAS 5 The Welcome dialog box is displayed axi OK Cancel if Opena recent project workspace Administration z gt S C Browse to another project workspace Figure 2 12 Welcome Dialog Box To use a workspace for the tutorial select the Browse to another project workspace radio button and click the OK button When the Open Workspace dialog box is opened specify the following directory OS installation drive Workspace Tutorial E6000 xxxx Note The directory mentioned above cannot be specified depending on the version of the software In such cases specify the following directory instead High performance Embedded Workshop installation destination directory Tools Renesas DebugComp Platform E6000 xxxx Tutorial After the directory has been specified select the following file and click the Open button Lookin Tuite e A e Debug_H85_2237 _E6000_Emulator _CP Source File name fT utorial hws Files of type Workspaces hws Cancel 4 Figure 2 13 Open Workspace Dialog Box 13 RENESAS When no compiler package or that of a different version is installed the following message box will be displayed High performance Embedded Workshop Tutorial A Tool Chain Hitachi H85 H8 300 Standard Toolcha
41. OK 10 Test Emulation RAM Hardware Break A GRD BREA 6a cc tecieie g eit ed ie Sele sini OK ar WDE BRAK serryn devseca te te eae RESERVED EJ WET ROMY Brak i essiiicdcearsoe inas RESERVED 244 32K 32K 32K 32K OK OK OK OK RENESAS Shows the results of decoding test for the firmware RAM in the E6000 normal completion Shows the results of marching test for the firmware RAM in the E6000 normal completion Shows the results of decoding test for the trace RAM first half in the E6000 normal completion Shows the results of marching test for the trace RAM first half in the E6000 normal completion Shows the results of decoding test for the trace RAM last half in the E6000 normal completion Shows the results of marching test for the trace RAM last half in the E6000 normal completion Shows the results of decoding test and marching test for internal ROM and RAM in the E6000 normal completion 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 11 Test Internal ROM Write Protect A Write Protect 40 0 6 a cched adc pare eamiarded OK B Write Not Protect ose ne cee eee eeeis OK 1
42. Table 8 61 Differences between the H8 36094 Group Products 5 Target Address Register Name Bits H FFCO Timer Control Status Register WD 2 f The H8 36094 group has power on reset optional low voltage detection circuit functions and on chip oscillator However the E6000 emulator does not support these functions g The H8 36094 group has port C However the E6000 emulator does not support these functions 224 RENESAS Table 8 62 Differences between the Evaluation Chip and the H8 36094 Registers H8 3660 Evalua tion chip Address Register Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 H F730 H F731 H F734 H F735 H F736 H F737 H FFEO PMR1 IRQ3 IRQ2 IRQ1 IRQO TXD2 PWM TXD TMOW H FFE1 PMR5 POF57 POF56 WKP5 WKP4 WKP3 WKP2 WKP1 WKPO H FFE2 PMR3 POF27 POF26 POF25 POF24 POF23 H FFF1 SYSCR2 SMSEL LSON DTON MA2 MA1 MAO SA1 SAO H FFF2 IEGR1 NMIEG IEG3 IEG2 IEG1 IEGO H FFF4 IENR1 IENDT IENTA IENWP IEN3 IEN2 IEN1 IENO H FFF5 IENR2 IENTB3 IENTB2 IENTB1 H FFF9 MSTCR1 MSTS4 MSTIIC MSTS3 MSTAD MSTWD MSTTW MSTTV MSTTA H FFFA MSTCR2 MSTS3_2 MSTTB3 MSTTB2 MSTTB1 MSTTX MSTTZO MSTPWM H FFFB MSTCR3 MSTS4_2 H8 3694 H FFEO H FFE1 H FFE2 WKP1 MSTWD MSTTW
43. View gt Disassembly menu option Press Ctrl D The Disassembly window opens at the current PC location slot x 001046 1480 ERO ERO a 001048 5E002000 JSR Sample Sample 24 00104C OF86 MOV L ERO ER6 ba 00104E 1944 SUB W R4 R4 te 001050 SEOO11EE JSR rand 24 001054 17F0 EXTS L ERO 001056 OF8s MOoV L ERO ERS 001058 4c02 BGE H 105 C 8 001054 1755 NEG L ERS 00105C 17F4 EXTS L ER4 00105E OFCO MOV L ER4 ERO 001060 1070 SHLL L 2 ERO 001062 OaBo ADD L ER3 ERO 001064 01006985 MOV L ERS BERO 001068 0554 INC W 1 R4 001064 79240004 CMP W H 0004 R4 00106E 4DEO0 BLT H 1050 8 001070 OFBS MOV L ER3 ERS 001072 OFD1 MOV L ERS ER1 001074 OFEO MOV L ER6 ERO 001076 SEO002068 JSR Sample sort long 24 001074 OFD1 MOV L ERS ER1 00107C OFEO MOV L ER6 ERO 00107E 5E0020D6 JSR Sample change long 24 001082 01006950 MOV L BERS ERO 001086 010069E0 MOV L ERO BERG 001084 01006F500004 MOV L H 0004 16 ERS ERO 001090 01006FE00004 MOV L ERO H 0004 16 ER6 001096 01006F500008 MOV L B H 0008 16 ERS ERO Fy Figure 5 8 Disassembly Window In this window the following information is shown on the left as information lines e Ist column Event column Event information break e 2nd column EXT 2 Trigger column EXT 2 Trigger information e 3rd column S W Breakpoints ASM column PC and breakpoint information This window is used in the same way as the source c
44. WATCH_EDIT WE Edits the value of a watch item 105 WATCH_EXPAND WX Expands or collapses a watch item 106 WATCH_RADIX WR Changes the radix of a watch item to be displayed 107 WATCH_SAVE ws Saves the contents of the Watch window to a file For the syntax of each command refer to the online help 239 RENESAS 240 RENESAS Appendix D Diagnostic Test Procedure This section describes the diagnostic test procedure using the E6000 test program D1 System Set Up for Test Program Execution To execute the test program use the following hardware do not connect the user system interface cable user system or expansion I O board er eae ee a E6000 emulator HS3664EPI61H or HS3664EPI62H Host computer The E6000 PC interface board select either from the followings according to the PC interface specifications PCI bus interface board HS6000EICO1H or HS6000EICO2H PCMCIA interface card HS6000EIP01H LAN adapter HS6000ELNO1H USB adapter HS6000EIU01H or HS6000EIU02H 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 emulator Connect the supplied AC adapter to the emulator Initiate the host computer to make it enter DOS prompt command input wait state Turn on the emulator power switch 241 RENESAS D 2 Diagnostic Test Procedure Using Test Program The CD R includes a test program for this emulator HS3664EPI62H
45. When trace information is displayed in the Trace window clicking the right hand mouse button on the Trace window displays a popup menu Select Clear from this menu to clear the trace information The following sections give an overview of the trace functions and methods for setting them 149 RENESAS 6 16 1 Displaying a Trace when Time Stamping is not Available The method used to specify an address as an event condition for the tracing of read write cycles and display the trace is described below 1 Clicking the right hand mouse button on the Trace window displays a popup menu Select Acquisition from this menu to display the Trace Acquisition dialog box Figure 6 41 Trace Acquisition Dialog Box 150 RENESAS 2 Register an address as an event condition for trace acquisition Click the Add button in the Trace Events group box on the General page to display the Breakpoint Event Properties dialog box Breakpoint Event Properties General Bus Area Signals Action Type Address Cornate C Don tCare Address Range Biza ddressLo H 00000000 Address Hi JHooooo000 F Outside Range m Data Compare Direction J Compare J Use Mask C Read Value Hie a C Write o Byte ey Word Mask pmo Either Figure 6 42 Breakpoint Event Properties Dialog Box 3 Use the Editor window to refer to the address on the lin
46. a radix in which the numerical values will be displayed and entered by default Decimal E Uses a decimal for displaying a radix in which the numerical values will be displayed and entered by default Octal Uses an octal for displaying a radix in which the numerical values will be displayed and entered by default Binary gt Uses a binary for displaying a radix in which the numerical values will be displayed and entered by default Emu System lator Memory Resource E E Opens the Configuration dialog box allowing the user to modify the debugging platform settings Opens the Memory Mapping dialog box allowing the user to view and edit the debugging platform s current memory map 236 RENESAS Appendix C Command Lines Table C 1 lists the High performance Embedded Workshop commands Table C 1 High performance Embedded Workshop Commands No Command Name Abbreviation Function a a 5 Comment 2 ADD FILE AF Adds a file to the current project 3 ANALYSIS AN Enables or disables performance analysis 4 ANALYSIS_RANGE AR Sets or displays a performance analysis range 5 ANALYSIS_RANGE_ AD Deletes a performance analysis range DELETE 6 AUTO_COMPLETE AC Enables or disables command complement function 7 ASSEMBLE AS Assembles instructions into memory 8 ASS
47. be debugged e Select Download module from the popupmenu opened by clicking the right hand mouse button on Tutorial abs of Download modules 5 E Tutorial Tutorial E C source file dbsct c 8 sbrk c B E C source file resetprg cpp sort cpp tutorial cpp J Download modules O isllsilis Unload module stacksct b Configure View lv Allow Docking Hide Figure 6 2 Downloading the Tutorial Program 121 RENESAS 6 3 2 Displaying the Source Program The High performance Embedded Workshop allows the user to debug a user program at the source level e Double click Tutorial cpp under C source file Bebe GE Tutorial Tutorial E C source file dbsct c sbrk c Eq C source file E resetprg cpp E sort cpp El tutorial cpp 3 Download modules IB oa bs 4 Dependencies void main void 001036 while 1 001034 tutorial 001038 void tutorial void 001044 long a 10 long j int 1 class Sample p sam 001046 p_sam ney Sample 00104e for 1 0 i lt 10 i 001050 j rand 001058 if j lt Ori 00105a a a 00105c ali j 001070 p_sam gt sort a 00107a p_sam gt change a 001082 p_sam gt s0 a 0 00108a p_sam gt si a 1 001096 p_sam gt s2 a 2 0010a2 p_sam gt s3 a 3 0010a
48. combo box Each of the columns is displayed in hexadecimal ID Slave address of the EEPROM Address Address of the first item in the data columns of this row Data Data is read from the EEPROM and then converted to the display width Value Data displayed in an alternative format 2 Viewing a Different Memory Area To change the memory area displayed in the EEPROM window use the Properties dialog box This box can be opened by choosing Properties from the popup menu Select the new slave address value and click the OK button or press the Enter key The dialog box closes and the EEPROM window display is updated with the data at the new address 197 RENESAS 3 Modifying the Memory Contents The memory contents can be modified via the Edit dialog box The contents of the EEPROM are changed in byte or page units depending on the mode selected in the Write mode combo box of the Properties dialog box Move the cursor on the column that you wish to change and select Edit from the popup menu Value Hor 23456789 ABCDEF Cancel Figure 8 5 Edit Dialog Box A number can be entered in the Value field After you have entered the new number click the OK button or press the Enter key Then the dialog box closes and the new value is written into memory The memory contents can also be modified by moving the cursor on a data column and entering the new value in hexadecimal through the keyboard
49. e To execute the remaining sections of the tutorial function select Go from the Debug menu or the Go button on the toolbar Figure 6 26 Go Button e The program goes into an endless loop To force a break in execution select Halt from the Debug menu or the Stop button on the toolbar Figure 6 27 Stop Button 6 14 Resetting the MCU Resetting the MCU initializes the internal I O registers and makes the program counter jump to the address set in the reset vector To reset the MCU select Reset CPU from the Debug menu or the Reset CPU button on the toolbar Figure 6 28 Reset CPU Button To execute the program from the reset vector select Reset Go from the Debug menu or the Reset Go button on the toolbar Figure 6 29 Reset Go Button Note This tutorial program is executable from the reset vector 139 RENESAS 6 15 Break Function The emulator s break functions are of two types software breaks and breaks at event points software breakpoints and event points are set in the High performance Embedded Workshop s Event window An overview and setting of the break function are described below 6 15 1 Software Break Function The emulator can set up to 256 software breakpoints e Select Eventpoints from the Code submenu of the View menu The Event window is displayed e Select the Breakpoint sheet x io A X Type Ah Breakpoint A Event A Tri
50. event point from the Event combo box To set an arm event on the selected event point select Is Armed By and check the box corresponding to each event The No occurrence of check box is used to set a condition that the arm event is in the state where its condition is not satisfied To set a reset event on the selected event point select Is Reset By and check the box corresponding to each event At the bottom of the screen is a diagram showing the current sequencing of the events figure 5 26 The S input sets arms an event and the R input resets it The legend S indicates the event is set armed by the non occurrence of the input events Figure 5 26 is an example that Ch1 is the arm event for Ch2 Ch3 and Ch4 Ch3 is the arm event for Ch4 Ch2 and Ch4 are the reset events for Chl and Ch2 respectively To satisfy the condition of the event point having an arm event the arm event must be in the state where the condition is satisfied or not when No occurrence of is selected When multiple arm events exist on one event point one of the arm events must be in the state where the condition is satisfied or not when No occurrence of selected to satisfy the condition of the event point As the condition of the arm event on one event point either of the states where the condition is satisfied or not should be set To reset an event point with a reset event the condition of the reset event must be satisfied While the condition
51. given in this section 2 This section describes general usage examples for the emulator For the specifications of particular products refer to section 8 Software Specifications Specific to This Product or the online help 3 The operation address of Tutorial abs attached to each product differs according to products Replace the address used in this section with the relevant address in each product after checking that it is placed on the corresponding line of the source program 4 TIn this tutorial the H8S 2646 E6000 emulator is taken as an example File paths or the appearance of figures differs according to products 119 RENESAS 6 2 Running the High performance Embedded Workshop Open a workspace by following the procedure listed in section 4 1 3 Selecting an Existing Workspace Select the following directory OS installation drive Workspace Tutorial E6000 2646 Note The file path differs depending on the product Refer to section 8 2 4 Environment for Execution of the Tutorial Program Then select the file indicated below Ope ace Look in ja 2646 gt ace Debug_H85_2282_E6000_Emulator_CP Source Tutorial hws Files of type HEW Workspaces hws Cancel 4 Figure 6 1 Open Workspace Dialog Box Opening this workspace automatically connects the emulator 120 RENESAS 6 3 Downloading the Tutorial Program 6 3 1 Downloading the Tutorial Program Download the object program to
52. has been selected Outside Range Used to negate the range i e the event will occur when the address is outside the range This is available when Address or Range has been selected 65 RENESAS Data Compare Sets the data condition Compare Checking this box compares data Use Mask Sets a mask condition available when Compare has been selected Value Specifies the data bus value as numerics The size of data for access can also be selected available when Compare has been selected Byte Sets access in bytes as the condition available when Compare has been selected Word Sets access in words as the condition available when Compare has been selected Mask Sets a value to be masked This value will be ANDed with the value of the data bus and data condition The result will be used to compare data available when Use Mask has been selected Direction Selects a condition with read or write cycles Read Sets read cycles as the condition Write Sets write cycles as the condition Either Sets either read or write cycles as the condition 66 RENESAS 2 Bus Area page Use this page to set the bus status and the memory area being accessed Figure 5 23 Breakpoint Event Properties Dialog Box Bus Area Page Bus State Sets the bus status as the condition When the Don t care check box is checked the event will be satisfied with any bus status Area
53. in the emulator manual is Always specify 0 These bits are always read as the specified values Table 8 16 Differences between the H8 3664 Group Products 3 Target Address Register Name Bits HFFE2 Port mode register 3 7to3 H FFF5 Interrupt enable register 2 7to5 H FFFA Module standby control register 2 7to0 H FFFB Module standby control register 3 0 202 RENESAS 2 Warnings that Apply to H8 3672 Group Programming a The description given in the hardware manual is Initial value 1 Reserved These bits are always read as 1 However the description in the emulator manual is Always specify 0 These bits are always read as the specified values Table 8 17 Differences between the H8 3672 Group Products 1 Target Address Register Name Bits H FFEO Port mode register 1 3 b The description given in the hardware manual is Initial value 0 Reserved These bits are always read as 0 However the description in the emulator manual is Always specify 0 These bits are always read as the specified values Table 8 18 Differences between the H8 3672 Group Products 2 Target Address Register Name Bits H FFEO Port mode register 1 6 and5 H FFF1 System control register 2 6 1 and O H FFF2 Interrupt edge select register 1 7 2 and 1 H FFF4 Interrupt enable register 1 6 2 and 1 H FFF9 Module standby control register 1 7 c The description given in the hardw
54. its name e Click the Watch window with the right hand mouse button and select Add Watch from the popup menu The following dialog box will be displayed Figure 6 16 Add Watch Dialog Box e Input variable i to Variable or expression edit box and click the OK button The Watch window will now also show the int type variable i Ol x E F FFEFSO long 10 i H OODa R4 lint A h Watchi A Watch2 A watchs A watcha Figure 6 17 Watch Window Displaying the Variable 132 RENESAS The user can click mark at the left side of array a in the Watch window to watch all the elements 0 1 2 3 4 5 6 7 8 9 taaa a aa a ag A bfi watchi watcha watchs A watcha i e FFEF80 H O000041c6 H O000167e H 00002781 H O000446b H O000794b H OO00015fb H O000059e2 H O0001cfb H O0003f 54 H OOO000ff6 H 000a R4 i i i i i FFEF80 FFEF84 FFEF88 FFEF8C FFEF90 FFEF94 FFEF98 FFEF9SC FFEFAO FFEFA4 a Re a er a e eg ee ilong 10 ilong ilong long ilong ilong long ilong long ilong ilong int Figure 6 18 Watch Window Displaying Array Elements RENESAS 133 6 11 Displaying Local Variables The user can display local variables in a function using the Locals window For example we will examine the local variables in the tutorial function whi
55. manual is Reserved However the description in the emulator manual is Always specify 0 These bits are always read as the specified values Table 8 53 Differences between the H8 36064 Group Products 2 Target Address Register Name Bits H FFFB Module Standby Control Register 3 0 c The hardware manual shows registers at the addresses given below For these locations however the applicable description in the emulator manual is Writing has no effect These bits are always read as undefined values because there are no registers at these locations of the emulator Table 8 54 Differences between the H8 36064 Group Products 3 Target Address Register Name Bits H F730 Low voltage detection control register 7to0 H F731 Low voltage detection status register 7to0 H FF90 Flash memory control register 1 7to0 H FF91 Flash memory control register 2 7to0 H FF92 Flash memory power control register 7to0 H FF93 Erase block register 1 7to0 H FF9B Flash memory enable register 7to0 d Although the hardware manual says that an initial value is 1 the compact emulator s initial value is 0 These bits must always be set to 1 when counting up the watchdog timer Table 8 55 Differences between the H8 36064 Group Products 4 Target Address Register Name Bits HFFCO Timer Control Status Register WD 2 e Although the hardware manual says that the allowable output high current is
56. mask specification e Bus state e Area e The value of four external probe signals e The number of delay cycles after the event has occurred 5 7 4 Signals to Indicate Bus States and Areas In the event detection system signals indicating the MCU s bus states and the accessed areas can be specified as the event detection condition These signals are output from the MCU on the emulator the signals to be acquired will vary according to the emulator in use The signals to indicate bus states and areas are used to set the Bus Area condition of the event point They can also be acquired as the trace information The bus state signals are also used to set the condition not to acquire the trace Suppress option and in the Access Count Of Specified Range Measurement mode for measuring the hardware performance Access Type option For the trace function refer to section 5 8 Viewing the Trace Information For the hardware performance function refer to section 5 9 Analyzing Performance The following tables show examples of signals to indicate the bus states and areas that can be acquired by the emulator Table 5 1 Bus State Signals Acquired by the Emulator Bus State Trace Display Status Description CPU Prefetch PROG CPU prefetch cycles CPU Data DATA CPU data access cycles Refresh REFRESH Refresh cycles DMAC DMAC DMAC cycles DTC DTC DTC cycles Other OTHER Others 61 RENESAS Table 5 2 Area Signal
57. module corresponds to a register definition section and within the section each entry defines an I O register The BaseAddress definition is for devices where the location of I O registers moves in the address space depending on the CPU mode In this case the BaseAddress value is the base address of the I O registers in one specific mode and the addresses used in the register definitions are the address locations of the registers in the same mode When the I O register file is actually used the BaseAddress value is subtracted from the defined register address and the resultant offset added to the relevant base address for the selected mode The Register definition entry is entered in the format lt name gt lt address gt lt size gt lt absolute gt 1 lt name gt register name to be displayed 2 lt address gt address of the register 3 lt size gt which may be B W or L for byte word or longword default is byte 4 lt absolute gt which can be set to A if the register is at an absolute address This is only relevant if the I O area address range moves about on the CPU in different modes In this case if a register is defined as absolute the base address offset calculation is not performed and the specified address is used directly Comment lines are allowed and must start with a character An example is shown below 229 RENESAS Comment Module definition Register definition Register nam
58. no effect These bits are always read as undefined values because there are no registers at these locations of the emulator Table 8 23 1 Differences between the H8 3687 Group Products 3 1 Target Address Register Name Bits H F730 Low voltage detection control register 7to0 H F731 Low voltage detection status register 7to0 Table 8 23 2 Differences between the H8 36077 H8 36079 Group Products 3 2 Target Address Register Name Bits H F730 Low voltage detection control register 7to0 H F731 Low voltage detection status register 7to0 H F732 Reset factor register 7to0 d The H8 3687 H8 36077 H8 36079 group has power on reset and optional low voltage detection circuit functions However the E6000 emulator does not support these functions 205 RENESAS Table 8 24 Differences between the Evaluation Chip and the H8 3687 Registers Address Register Bit7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 H F72C RTCCR2 RUN 12 24 PM RST H F730 H F731 H F732 HFFDE PDRC PDRC7 PDRC6 PDRC5 PDRC4 PDRC3 PDRC2 PDRC1 PDRCO H8 3660 HFFE2 PMR3 POF27 POF26 POF25 POF24 POF23 Evalua H FFEE PCRC PCRC7 PCRC6 PCRC5 PCRC4 PCR
59. of a function is a RTS instruction A label name or an expression can be entered instead of an address value in boxes where an address should be entered 168 RENESAS 6 Click the Settings button in the Common Settings of Performance PA1 8 group box to display the Common Settings of Performance PA1 8 dialog box Select PC from the Address Control Mode combo box and then click the OK button PC is now displayed in the Address Control Mode text field of the Common Setting of Performance PA1 8 dialog box Common Settings of Performance PA1 8 2 x Addess Contol Mode Time Measurement Unit 160ns gt Cance Figure 6 66 Common Setting of Performance PA1 8 Dialog Box 7 Click the OK button to display the content that has been set for line 1 of the No column in the Performance Analysis window This completes the settings for a Time Of Specified Range Measurement 10 x R Rate RUN TIME E 1 PAL Range H 00002068 H 000020D4 0 OOh OOmin 00s O0Oms O00us 000ns 0 No Name Condition 2 3 4 5 6 3 8 U E Figure 6 67 Performance Analysis Dialog Box Setting Completed 8 Set an event point at the address on the line that has p_sam gt change a within the tutorial function H 0000107 in this example so that a break occurs when the specified sort function has been executed three times refer to section 6 15 2 Breaking Execution at Event Points
60. of memory 55 MEMORY_TEST MT Tests a block of memory 56 MODE MO Sets or displays the CPU mode 57 MODULES MU Sets up or displays the on chip peripheral functions 58 MONITOR_CLEAR MOC Deletes a monitor point 59 MONITOR_DISPLAY MOD Displays the content of the monitor 60 MONITOR_REFRESH MOR Controls an automatic update of the content of the monitor 61 MONITOR_SET MOS Sets or displays a monitor point 62 OPEN_WORKSPACE OW Opens a workspace 63 QUIT QU Exits High performance Embedded Workshop 64 RADIX RA Sets default input radix 65 REFRESH RF Updates windows related to memory 66 REGISTER_DISPLAY RD Displays CPU register values 67 REGISTER_SET RS Sets CPU register contents 68 REMOVE FILE REM Deletes the specified file from the current project 69 RESET RE Resets CPU 70 SLEEP Delays command execution 71 SAVE_SESSION SE Saves the session of the current project 72 STATUS STS The content of the Platform sheet in the Status window is displayed 238 RENESAS Table C 1 High performance Embedded Workshop Commands cont No Command Name Abbreviation Function 73 STEP ST Steps program by instructions or source lines 74 STEP_MODE SM Sets the step mode 75 STEP_OUT SP Steps out of the current function 76 STEP_OVER SO Steps program not stepping into functions 77 STEP_RATE SR Sets or displays rate of stepping 78 SUBMIT SU Exec
61. operating supply voltage range movement power voltage range heat radiation characteristics installation and other product characteristics Renesas shall have no liability for malfunctions or damages arising out of the use of Renesas products beyond such specified ranges 10 Although Renesas endeavors to improve the quality and reliability of its products IC products have specific characteristics such as the occurrence of failure at a certain rate and malfunctions under certain use conditions Please be sure to implement safety measures to guard against the possibility of physical injury and injury or damage caused by fire in the event of the failure of a Renesas 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 applicable measures Among others since the evaluation of microcomputer software alone is very difficult please evaluate the safety of the final products or system manufactured by you 11 In case Renesas products listed in this document are detached from the products to which the Renesas products are attached or affixed the risk of accident such as swallowing by infants and small children is very high You should implement safety measures so that Renesas products may not be easily detached from your products Renesas shall have no liability for damages arising out of such detachment 12 This docu
62. or more Specifying sequencing Enable Sequencing on the Action page RENESAS 1 General page The address and data conditions are set ajx General Bus Area Signals Action m Type Address Software C Don tCare Address Range Break AddessLo H 0000105C J Outside Range m Data Compare Direction J Compare J Use Mask C Read Value mooo C Write Byte Word Mask E Either Figure 5 22 Breakpoint Event Properties Dialog Box General Page Type Select the type of a breakpoint Note that the Breakpoint Event Properties dialog box is used for setting software breakpoints and event points Selecting a particular type of breakpoint enables or disables other pages and parts of the dialog according to the options available to that type of breakpoint Software Break Only a single address with a program fetch can be selected Other options are invalid Event Set conditions in detail with other options on this page or on the Bus Area Signals or Action page Address Sets the address condition Don t care Sets no address condition Address Allows a single address to be selected Range Allows an address range to be selected Adderess Lo Set a single address or the start of an address range available when Address or Range has been selected Adderess Hi Set the end of an address range available when Range
63. register output Valid values are H for Hexadecimal D for decimal and B for binary 6 lt bitfields gt section defining the bits within the register Bitfield sections define the bits within a register each entry is of the type bit lt no gt lt name gt 1 lt no gt is the bit number 2 lt name gt is a symbolic name of the bit Comment lines are allowed and must start with a character An example is shown below 231 RENESAS Comment Module Module definition Register name Example H8S 2655 Series I O Register Definitions File Modules FileVersion 2 BaseAddress 0 Module1 Power_Down_Mode_Registers Module2 DMA_Channel_Common Module3 DMA_Channel_0 Module42 Bus_Controller Module43 System_Control Module44 Interrupt_Controller DMA_Channel_Common reg0 regDMAWER reg1 regDMATCR reg2 regDMACROA reg3 regDMACROB reg4 regDMACRIA reg5 regDMACR1B reg6 regDMABCRH reg7 regDMABCRL dep regMSTPCRH 7 0 Bit Value Register definition Register name regDMAWER id DMAWER Oxtfff00 B A H dmawer_bitfields Address Size Absolute address flag Format Bit field dmawer_bitfields Bit field bit3 WE1B definition bit2 WE1A bit1 WEOB bit0 WE0A 232 RENESAS Appendix B Menus Table B 1 shows GUI menus Table B 1 GUI Menus Toolbar Menu Option Shortcut Button Remarks View Difference Opens the Difference
64. statement of the called function e To step through the sort function select Step In from the Debug menu or click the Step In button in the toolbar Figure 6 20 Step In Button 135 RENESAS 11 002000 12 002006 13 o0201c 14 002026 15 00202c 16 002032 17 002038 18 00203e 19 002044 20 00204a 21 002050 22 002056 23 002060 24 25 002068 26 002070 27 28 29 30 002072 31 002076 32 002078 33 00207c 34 002080 35 002084 36 37 0020a4 38 0020a8 39 40 41 42 43 44 45 0020c0 46 47 0020cc 4 lt gt tutorial cpp Sample Sample gt void Sample sort long a long t int i j k gap gap 5 while gap gt 0 jf for k 0 k lt gap k for i k gap i lt 10 i i gap for j i gap j gt k j j gap if a j gt alit gap t ali a j alit tgap a j gap t else break gap gap 2 sort cpp Figure 6 21 Editor Window Step In e The highlighted line moves to the first statement of the sort function in the Editor window 136 RENESAS 6 12 2 Executing the Step Out Command The Step Out command steps out of the called function and stops at the next statement of the calling statement in the main function e To step out of the sort function select Step Out from the Debug menu or click the Step Out button in the toolbar Figure 6 22 Step Out Button
65. systems Buyers of this emulator product must notify the relevant Renesas sales offices before planning to use the product in such applications Improvement Policy Renesas Technology Corp including its subsidiaries hereafter collectively referred to as Renesas pursues a policy of continuing improvement in design performance and safety of the emulator product Renesas reserves the right to change wholly or partially the specifications design user s manual and other documentation at any time without notice Target User of the Emulator Product This emulator product should only be used by those who have carefully read and thoroughly understood the information and restrictions contained in the user s manual Do not attempt to use the emulator product until you fully understand its mechanism It is highly recommended that first time users be instructed by users that are well versed in the operation of the emulator product 7tENESAS Il LIMITED WARRANTY Renesas warrants its emulator products to be manufactured in accordance with published specifications and free from defects in material and or workmanship Renesas at its option will repair or replace any emulator products returned intact to the factory transportation charges prepaid which Renesas upon inspection determine to be defective in material and or workmanship The foregoing shall constitute the sole remedy for any breach of Renesas warranty See the Renesas warran
66. the Step Over Command Forced Breaking of Program Executions Resetting the MCU Break Function 6 15 1 Software Break Function 6 15 2 Breaking Execution at Event Points Trace Functions 6 16 1 Displaying a Trace when Time Stamping is not Available RENESAS 6 16 2 Displaying a Trace when Time Stamping is Available 6 16 3 Statistics 6 16 4 Function Calls 6 17 Stack Trace Function 6 18 Performance Measurement Function 6 18 1 Time Of Specified Range Measurement 6 19 Monitor Function m 620 What NOXE rsin E E AEE AEA EEEE R E E RE EST 172 Section 7 Hardware Specifications Specific to This Product 7 1 H8 3664 E6000 Emulator Specifications 7 1 1 Supported Items 7 1 2 Operating Voltage and Frequency Specifications 7 2 User System Interface 7 2 1 Signal Protection 7 2 2 User System Interface Circuits 7 3 Differences between MCU and Emulator 7 3 1 A D Converter and D A Converter 7 4 Handling Serial EEPROM Board 7 5 Host PC Interface Section 8 Software Specifications Specific to This Product 181 8 1 Software Specifications of the H8 3664 E6000 Emulator 8 1 1 Target Hardware 8 1 2 Selectable Platforms 8 1 3 Configuration Properties Dialog Box General Page 8 1 4 Configuration Properties Dialog Box Custom Page 8 1 5 Memory Mapping Function 8 1 6 Status Window 8 1 7 Extended Monitor Function 8 1 8 Signals to Indicate Bus
67. the settings and starts searching Clicking the Cancel button closes this dialog box without setting of conditions When a trace record that matches the search conditions is found the line for the trace record will be highlighted When no matching trace record is found a message dialog box will appear Only the trace information that satisfies all the conditions set in above pages will be searched If a find operation is successful selecting Find Next from the popup menu will move to the next found item 84 RENESAS 1 General page Set the range for searching i x Status Probes IRQ7 0 General Address Data RAV Aea Trace search range I Upward search Start PTR 22767 End PTR ef o OoOO Cancel Apply Figure 5 37 Trace Find Dialog Box General Page Trace search range Sets the range for searching Not designation Searches for information that does not match the conditions set in other pages when this box is checked Upward search Searches upwards when this box is checked Start PTR Enters a PTR value to start a search End PTR Enters a PTR value to end a search Note Along with setting the range for searching PTR values to start and end searching can be set in the Start PTR and End PTR options respectively 85 RENESAS 2 Address page Set an address condition H FFEF80 Figure 5 38 Trace Find Dialog Box Address P
68. window Command Line Ctrl L Opens the Command Line window TCL toolkit Shift m Opens the Console window Ctrl L S Workspace Alt K E Opens the Workspace window Output Alt U A Opens the Output window Disassembly Ctrl D E Opens the Disassembly window CPU Registers Ctrl R Opens the Registers window Memory Ctrl M E Opens the Memory window 10 Ctrl I Opens the IO window Status Ctrl U E Opens the Status window Extended Monitor E Opens the Extended Monitor window Monitor Monitor Shift a Opens the Monitor window Setting Ctrl E Windows Opens the Windows Select Select dialog box to list add or edit the Monitor window EEPROM E Opens the EEPROM window Sym Labels Shift E Opens the Labels window bol Ctrl A Watch Ctrl W E Opens the Watch window Locals Shift a Opens the Locals window Ctrl W Code Eventpoints Ctrl E Fal Opens the Eventpoints window Trace Ctrl T E Opens the Trace window Stack Trace Ctrl K a Opens the Stack Trace window 233 RENESAS Table B 1 GUI Menus cont Menu Option Shortcut Remarks View Gra Image Shift LJ Opens the Image window cont phic Ctrl G Waveform Shift Opens the Waveform Ctrl V window Per Performance Shift E Opens the Performance form Analysis Ctrl P Analysis window ance Debug Debug Sessions
69. 0 to H FFFF7F 2048B Sets the internal RAM area to be 2048 bytes H FFF780 to H FFFF7F 3072B Sets the internal RAM area to be 3072 bytes H FFECOO to H FFEFFF and H FFF780 to H FFFF7F 4096B Sets the internal RAM area to be 4096 bytes H FFE800 to H FFEFFF and H FFF780 to H FFFF7F 5120B Sets the internal RAM area to be 5120 bytes H FFE400 to H FFEFFF and H FFF780 to H FFFF7F 6144B Sets the internal RAM area to be 6144 bytes H FFE000 to H FFEFFF and H FFF780 to H FFFF7F 188 RENESAS Custom Device page cont Modules Check this box to validate on chip peripherals Enable TimerB1 Enables timer B1 Enable TimerB2 Enables timer B2 Enable TimerB3 Enables timer B3 Enable TimerV Enables timer V Enable TimerW Enables timer W Enable TimerX Enables timer X Enable TimerZ0 Enables timer ZO Enable TimerZ1 Enables timer Z1 Enable WatchDog Timer Enables the watchdog timer Enable A D Converter Enables the A D converter Enable SCI3 Enables SCI3 Enable SCI3 2 Enables SCI3_2 Enable SCI4 1 Enables SCI4_1 Enable SCI4 2 Enables SCI4_2 Enable 14Bit PWM Timer Enables the 14 bit pulse width modulator IIC Select Selects whether or not to enable IIC1 or IIC2 Disable Disables IIC1 and IIC2 IIC1 Enables IIC1 IIC2 Enables C2 TimerA RTC Selects whether or not to enable timer A or RTC Disable Disables timer A and RTC TimerA
70. 001050 j rvand 39 001058 ifij lt Oj 40 00105a joie ai 42 00105c afi 3 43 44 001070 p_sam gt sort a 45 00107a p_sam gt change a 46 47 001082 p_sam gt s0 a 0 48 00108a p_sam gt si a 1 49 001096 p_sam gt s2 a 2 50 0010a2 p_sam gt s3 a 3 51 0010ae p_sam gt s4 a 4 52 0010ba p_sam gt s5 a 5 53 0010c6 p_sam gt s6 a 6 54 001002 p_sam gt s7 a 7 55 0010de p_sam gt s8 a 8 56 0010ea p_sam gt s9 a 9 S 0010f6 delete p_sam 58 0010fc tutorial cpp Figure 6 8 Editor Window Break Status 126 RENESAS The user can see the cause of the break that occurred last time in the Status window e Select Status from the CPU submenu of the View menu After the Status window is displayed open the Platform sheet and check the Status of Cause of last break Item Status Connected To H8S 2282 E6000 Emulator CPU 2000 E6000 USB Driver CPU H8S 2282 Mode 7 Clock source Main 10MHz Sub 32kHz Run status Break Cause of last break Software Break Event Time Count 00h OOmin 00s O00ms O00us O00ns Run Time Count 00h OOmin 00s O0Oms 924us 375ns GTP Memory A Platform A Events 7 Figure 6 9 Status Window Note The items that can be displayed in this window differ depending on the product For the items that can be displayed refer to section 8 Software Specifications Specific to This Product or the online help
71. 1 00 6D 73 54 70 54 70 6D F2 01 20 6D F4 7A 0p 001114 00 00 15 D2 7A 01 00 OO 15 DA FA 00 40 10 01 00 001124 6p 04 01 00 6d 05 40 02 6C DA iF D4 45 FA 1F 90 001134 45 Ec 7A 00 OO OO 15 c6 7A 01 00 OO 15 D2 40 18 001144 Loop3 01 00 6D 04 01 00 6D OS 01 00 6D 06 40 06 6C 4A 001154 68 EA OB O6 iF D4 45 F6 iF 90 45 E4 01 20 6D 76 001164 6D 72 54 70 O1 20 6D F4 OF 85 46 3E 1A DS FD 01 001174 40 38 01 00 6B 26 OO FF E4 14 47 04 OF z0 40 06 001184 7A 00 OO OO 14 90 OF 84 O1 OO 6B 26 OO FF 84 OC 001194 47 04 OF E1 40 02 OF ci OF 96 5p 10 7A OO 00 00 z Figure 6 13 Memory Window 130 RENESAS 6 10 Watching Variables As the user steps through a program it is possible to watch that the values of variables used in the user program are changed For example set a watch on the long type array a declared at the beginning of the program by using the following procedure e Click the left of displayed array a in the Editor window to position the cursor e Select Instant Watch with the right hand mouse button The following dialog box will be displayed a FFEFS80 long 10 Figure 6 14 Instant Watch Dialog Box e Click the Add button to add a variable to the Watch window FFEFSO long 10 4 gt Watcha 4 watcha watch3 A Watcha Figure 6 15 Watch Window Displaying the Array 131 RENESAS The user can also add a variable to the Watch window by specifying
72. 10 H8 3694 group 4 0 5 5 1 20 5 H8 3684F 3 0 5 5 1 10 H8 3687F H8 3687N H8 3694F 4 0 5 5 1 20 H8 3694N 6 H8 36014 group 3 0 5 5 1 10 4 0 5 5 1 20 7 H8 36024 group 3 0 5 5 1 10 H8 36049 group 4 0 5 5 1 20 8 H8 36037 group 3 0 5 5 1 10 H8 36057 group 4 0 5 5 1 20 9 H8 36902 group 2 7 5 5 2 10 H8 36912 group 10 H8 36077 group 4 5 5 5 4 20 11 H8 36087 group 3 0 3 6 4 18 12 H8 36109 group 3 0 5 5 4 10 4 0 5 5 4 20 13 H8 36064 group 3 0 5 5 1 10 4 0 5 5 1 20 14 H8 36094 group 2 7 5 5 4 10 4 0 5 5 4 20 15 H8 36079 group 4 5 5 5 4 20 3 0 3 6 4 16 NOTE For details on the operating voltage and frequency specifications refer to the MCU hardware manual 174 RENESAS 7 2 User System Interface All user system interface signals are directly connected to the MCU in the emulator with no buffering except for those listed below which are connected to the MCU through control circuits e NMI e RES e OSCI e XI e TEST be Va 7 2 1 Signal Protection All user system interface signals are protected from over or under voltage by use of diode arrays except for the AVcc Pull up resistors are connected to the port signals except for the analog port signals The Vcc pins except for the AVcc pin at the head of the user system interface cable are connected together The emulator monitors the voltage level of the Vcc pins and displays the power supply status in the Extended Monitor window If the user system interface ca
73. 127 RENESAS 6 7 Reviewing Breakpoints The user can see all the breakpoints set in the program in the Event window e Select Eventpoints from the Code submenu of the View menu The Event window is displayed Select the Breakpoint sheet w Event Se x A 7 e Type Program Enable PC 001070 tutorial cpp 44 Break AAi Breakpoint Event Trigger Figure 6 10 Event Window The popup menu opened by clicking the Event window with the right hand mouse button allows the user to set or change breakpoints define new breakpoints and delete enable or disable breakpoints 128 RENESAS 6 8 Referring to Symbols The Label window can be used to display the information on symbols in modules Select Label from the Symbol submenu of the View menu The Label window is displayed so that the user can refer to the addresses of symbols in modules Son X RY BP 000400 001000 001034 001038 001104 00110 001122 oo112 c 00112 001132 001144 001152 001158 00115 001168 OO11BE 0011E0 0011E4 OO11EE 001226 001232 00123 001244 Bl Name PowerON_Reset _sbrk _main tutorial _abort __INITSCT loopl loop2 next_loop2 next_loop1 loop3 loop4 next_loop4 next_loop3 operator new unsigned long __CALL_INIT __CALL_END operator delete void _rand _srand DIVL 3 not_negX not_negY Figure 6 11 Label Window RENESAS 129 6 9 Viewing Memo
74. 2 MSTTB3 MSTTB2 MSTTB1 MSTTX MSTTZ MSTPWM RENESAS 219 Table 8 51 Differences between the Evaluation Chip and the H8 36902 H8 36912 Registers cont Address Register w pe pone poor pap prone prone F e pojo pecs a e a E E pera _ poor fese fe pee _ fore S S fs poe fe fF PP A e SS a a e Sa ce SS S H FFF1 SYSCR2 H FFF2 IEGR1 H FFF3 IEGR2 H FFF4 IENR1 H FFF5 IENR2 H FFF9 MSTCR1 H FFFA MSTCR2 220 RENESAS 10 Warnings that Apply to H8 36064 Group Programming a The description given in the hardware manual is Initial value 0 Reserved These bits are always read as 0 However the description in the emulator manual is Always specify 0 These bits are always read as the specified values Table 8 52 Differences between the H8 36064 Group Products 1 Target Address Register Name Bits H FFEO Port mode register 1 0 H FFE1 Port mode register 5 7 and 6 H FFE2 Port mode register 3 7 6 and 5 H FFF1 System control register 2 6 H FFF4 Interrupt enable register 1 6 H FFF5 Interrupt enable register 2 7 and6 H FFF9 Module standby control register 1 7 2 and O H FFFA Module standby control register 2 6 5 and 3 b The description given in the hardware
75. 2 Test Hardware Break A Break Point Initialized OK B Event Detectors CES channel 1 12 0K C Test Sequencing 1 D Check Range Break a E Range Break Test for Data OK F Check Compare Either OK 13 Test Emulation RAM Trace A Frob TAGE sh 36 wie ected heed ate ate aes OK By RANGE TRACE ee on oie cid Baye Bek aes uals OK C Point to Point Trace wa cane ee aes OK D Start and Stop Event Trace OK E Trace memory Overflow OK F Time STAMP TAGE 6 oc ees cee eens OK G ASEBKTOA B_N Trace 2 RESERVED 14 Test Runtime Counter A Internal Clock 20MHz B Internal Clock 16MHz C Internal Clock 10MHz D Internal Clock 1MHz E Internal Sub Clock 32 768KHz 15 Test Emulation Monitor A SEMAZ3 SEMAO vice cise ta20 tie dae ele laine a te alle OK ar ACST22ACSTO hrossa ea ae eds Weta aie OK C ASEST3 ASESTO i2 2tae sears ade wee OK D ASEBRKACK MONITOE OK E CNN i odes eek gee od seat ENERE OK T MOUE retede aa ee oe he eee hota Be aks OK 16 Test PERFM G A A Time Measurement OK B Point to Point Time Measurement RESERVED C Subroutine Count Measurement OK D Timeout Function TIMOT Bit OK E Timeout Function TIMOP Bit OK 17 Test Bus Monitor A REGLBESE o Aiar vies neat EA OK B Parallel RAM sperot tne e S OK I SPREBT2 raV R EN ENEAK atone e
76. 6108 16 MHz H8 36107 Target Note Target in Clock and SubClock is only available when the target system is connected 186 RENESAS 8 1 4 Configuration Properties Dialog Box Custom Page Items that can be set in this dialog box are listed below configuration Properties Leeman 2048B ha le Enable Flash memory T111aa4 E E a M M E E al Figure 8 2 Configuration Properties Dialog Box Custom Device Page 187 RENESAS Custom Device page ROM Specify the internal ROM area size 8kB Sets the internal ROM area to be 8 kbytes H 000000 to H 001FFF 12kB Sets the internal ROM area to be 12 kbytes H 000000 to H 002FFF 16kB Sets the internal ROM area to be 16 kbytes H 000000 to H 003FFF 24kB Sets the internal ROM area to be 24 kbytes H 000000 to H O05FFF 32kB Sets the internal ROM area to be 32 kbytes H 000000 to H 007FFF 40kB Sets the internal ROM area to be 40 kbytes H 000000 to H O09F FF 48kB Sets the internal ROM area to be 48 kbytes H 000000 to H OOBFFF 56kB Sets the internal ROM area to be 56 kbytes H 000000 to H O0DFFF RAM Specify the internal RAM area size 512B Sets the internal RAM area to be 512 bytes H FFFD80 to H FFFF7F 1024B Sets the internal RAM area to be 1024 bytes H FFFB80 to H FFFF7F 1536B Sets the internal RAM area to be 1536 bytes H FFF98
77. 70 amp p_sam gt sort a 45 00107a p_sam gt change a 46 47 001082 p_sam gt s0 a 0 48 00108a p_sam gt sl a 1 49 001096 p_sam gt s2 a 2 50 0010a2 p_sam gt s3 a 3 51 0010ae p_sam gt s4 a 4 52 0010ba p_sam gt s5 a 5 53 0010c6 p_sam gt s6 a 6 54 001002 p_sam gt s7 a 7 5 0010de p_sam gt s8 a 8 56 0010ea p_sam gt s9 a 9 S7 0010f6 delete p_sam 58 0010fc 4 Ger tutorial cpp Figure 6 4 Editor Window Setting a Software Breakpoint The symbol e will appear on the line containing the sort function This shows that a software breakpoint has been set 123 RENESAS 6 5 Setting Registers Set a value of the program counter before executing the program e Select Registers from the CPU submenu of the View menu The Register window is displayed ERO o000271F Hex ER1 OOFFEFA4 Hex ERZ 00000000 Hex ER3 OOFFEF80O Hex ER4 ooooo00a Hex ERS OOFFEF80O Hex ER6 OOFFEODS Hex ER 00000010 Hex PC 000400 Hex CCR 10000000 T0 222 Bin EXR Oirill 111 Bin Figure 6 5 Register Window e To change the value of the program counter PC double click the value area in the Register window with the mouse The following dialog box is then displayed and the value can be changed Set the program counter to H 00000400 in this tutorial program and click the OK button Value 000400 Radix Hex hi Set As Whole Register x Cancel Figure 6
78. 96 RENESAS ID Add 0 8 10 18 Value 00 000000 FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF 00 000020 FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF 00 000040 FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF 00 000060 FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF 00 000080 FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF 00 OOOOAO FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF 00 OOOOCO FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF 00 GOOOEO FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF 00 000100 FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF 00 000120 FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF 00 000140 FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF 00 000160 FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF 00 000180 FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF 00 GOO1LAO FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF 00 OOOLCO FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF 00 OOOLEO FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF Figure 8 4 EEPROM Window The EEPROM window has ID Address Value and data columns The number of data columns is that selected in the Column count
79. BF Internal OOFFFFCO OOFFFFFF Internal System Memory Resources SIMM Module 1MB SIMM fitted Ram Bases 0 not used l not used 2 not used 3 not used Program Name Memory Loaded Area ator_cp Tutorial abs H oooo0000 H oo000003 H 00000400 H 00000425 H 00001000 H 00001SFS H o000z000 H 00002139 Figure 5 11 Status Window The Status window has three sheets e Memory sheet Contains information about the current memory status including the memory mapping resources and the areas used by the currently loaded object file e Platform sheet Contains information about the current status of the debugging platform typically including CPU type and mode and run status e Events sheet Contains information about the current event breakpoint status including resource information Note The items that can be set in this dialog box vary according to the emulator in use For details refer to section 8 Software Specifications Specific to This Product or the online help 50 RENESAS 5 4 Reading and Displaying the Emulator Information Regularly Use the Extended Monitor window to know the changing information on the emulator no matter the user program is running or halted Note The Extended Monitor function does not affect the execution of the user program since it monitors the user system or the signal output from the MCU in the emulator by using the emulator s hardware circuit 5 4 1 Opening the Ext
80. C3 PCRC2 PCRC1 PCRCO tion chip HFFF5 IENR2 IENTB3 IENTB2 IENTB1 H FFF9 MSTCR1 MSTS4 MSTIIC MSTS3 MSTAD MSTWD MSTTW MSTTV MSTTA H FFFA MSTCR2 MSTS3_2 MSTTB3 MSTTB2 MSTTB1 MSTTX MSTTZ MSTPWM H FFFB MSTCR3 MSTS4_2 Address Register Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 H F72C RTCCR2 RUN 12 24 PM RST H F730 H F732 H FFDE H8 3687 H FFE2 H FFEE H FFF5 H FFF9 MSTCR1 MSTS3 MSTTA H FFFA MSTCR2 MSTS3_2 MmsTPwm H FFFB O CO Address Register Bit7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 H F72C RTCCR2 H FFDE PDRC H8 36077 H FFE2 H8 36079 H FFEE Hers ENR O o Enemi H FFF9 MSTCR1 f MmsTic MsTs3 MSTAD MSTWD MSTTV MSTTA H FFFA MSTCR2 lustss2 Site MSTTz_ MSTPWM H FFFB 206 RENESAS 4 Warnings that Apply to H8 3694 Group Programming a The description given in the hardware manual is Initial value 1 Reserved These bits are always read as 1 and cannot be modified However the description in the emulator manual is Always specify 0 These bits are always read as the specified values Table 8 25 Differences between the H8 3694 Group Products 1 Target Address Register Name Bits H FFEO Port mode register 1 3 and 2 b The description given in the hardware manual is Initial value 0 Reserved These bits are always read as 0 and cannot be modified However the description in the emulator manual is Always sp
81. Create a new project workspace a toolchain is in use e Browse to another project workspace The method to create a new workspace depends on whether a toolchain is or is not in use Note that this emulator product does not include a toolchain Use of a toolchain is available in an environment where the H8S H8 300 series C C compiler package has been installed For details on this refer to the manual attached to the H8S H8 300 series C C compiler package 25 RENESAS 4 1 1 Creating a New Workspace Toolchain Not Used 1 In the Welcome dialog box that is displayed when the High performance Embedded Workshop is activated select Create a new project workspace radio button and click the OK button Figure 4 2 Welcome Dialog Box 26 RENESAS 2 Creation of a new workspace is started The following dialog box is displayed i 2 x Workspace Name sample Project Name sample Directory CAH ew3 sample Browse CPU family H85 H87300 Tool chain N one fy Debugger only E6000 Emul Properties Figure 4 3 New Project Workspace Dialog Box Workspace Name edit box Enter the new workspace name Project Name edit box Enter the project name When the project name is the same as the workspace name it needs not be entered Directory edit box Enter the directory name in which the workspace will be created Click the Browse
82. E1 PMR5 POF57 POF56 WKP5 WKP4 WKP3 WKP2 WKP1 WKPO H FFE2 PMR3 POF27 POF26 POF25 POF24 POF23 H FFF1 SYSCR2 SMSEL LSON j DTON MA2 MA1 MAO SA1 SAO H FFF2 IEGR1 NMIEG IEG3 IEG2 IEG1 IEGO H FFF4 IENR1 IENDT IENTA IENWP IEN3 IEN2 IEN1 IENO H FFF9 MSTCR1 MSTS4 MSTIIC MSTS3 MSTAD MSTWD MSTTW MSTTV MSTTA H FFFA MSTCR2 MSTS3_2 MSTTB3 MSTTB2 MSTTB1 MSTTX MSTTZO MSTPWM H FFFB MSTCR3 MSTS4_2 210 RENESAS Address Register Bit 7 H F730 LVDSELJLVDRE JLVDDE LVDUE jose vere oor oor r r fe E WKP2 F731 H FFEO PMR1 IRQ3 POF56 WKP5 H FFE1 WKP3 WKP1 WKPO H8 36014 H8 36024 H FFF1 SYSCR2 H FFF2 IEGR1 H FFF5 MSTCR1 MSTCR2 6 Warnings that Apply to H8 36037 H8 36057 Group Programming a The description given in the hardware manual is Initial value 0 Reserved These bits are always read as 0 However the description in the emulator manual is Always specify 0 These bits are always read as the specified values Table 8 35 Differences between the H8 36037 H8 36057 Group Products 1 Target Address Register Name Bits H FFEO Port mode register 1 2 and 0 H FFF4 Interrupt enable register 1 6 H FFF5 Interrupt enable register 2 7 and 6 H FFF9 Mod
83. EMORY gt EEPROM Enter the source start address and end address in normal memory in the Start address and End address fields Checking the Verify check box enables copying while comparing the copy source and copy destination The copy unit can be selected in the Write mode combo box As the destination select the start slave address from the ID combo box and enter the start address value in the Address field of the Destination group box respectively Then click the OK button or press the Enter key This will close the dialog box and copy the memory block to the new address 7 Disabling Update of the Window Contents Automatic update of the EEPROM window contents which is performed when user program execution stops or in other cases can be disabled This is done by checking Lock Refresh in the popup menu 8 Updating the Window Contents The EEPROM window contents can be forcibly updated This is done by checking Refresh in the popup menu 201 RENESAS 8 2 Notes on Usage of the H8 3664 E6000 Emulator There are the following notes on usage of the emulator 8 2 1 T O Register In the E6000 emulator one evaluation chip emulates several types of MCU Therefore there are some differences in I O registers between an actual MCU and the emulator Note these differences when accessing the T O registers T O port is in the input state at default The I O register contents indicate the emulator port status Whe
84. EPI62H such as gt lt Drive gt Diag HS3664EPI62H TM3664_62 PCI RET If the test program is initiated when the current directory is not lt Drive gt Diag HS3664EPI62H the test program will not operate correctly When S is added to the command line such as gt TM3664_62 PCI S RET steps 1 to 20 will be repeatedly executed To stop the execution enter Q Notes 1 lt Drive gt is a drive name for the CD ROM drive 2 Do not remove the CD R from the CD ROM drive during test program execution 242 RENESAS The following messages are displayed during test This test consists of steps 1 to 20 This example assumes that HS3664EPI62H is in use Time required for this test depends on performance of the host computer and PC interface in use approximately 2 to 10 minutes Message E6000 H8 3664 Emulator Tests Vx x Copyright c 2001 2003 Renesas Technology Corp Toading Arivar 6 5 00 i356 dc8 2 4046 ha Sw OK Initializing AEIVED ccd dee pees wk OK Searching for interface card OK Checking emulator is connected OK Emulator Board Information Main Board ID H 05 Emulation Board ID H 17 SUB board ID HIE Option memory board None 01 Test Register A IDRO Register OK B PAGE Register OK C TRACE G A Register OK D PERFM G A Register E CES G A Register B IORI REGisterd ic 2tigieea cease G TDR REGISTER 0 ons see eed
85. ERT Checks if an expression is true or false 9 BREAKPOINT BP Sets a breakpoint at an instruction address 10 BREAKPOINT_CLEAR BC Deletes breakpoints 11 BREAKPOINT_ BD Displays a list of breakpoints DISPLAY 12 BREAKPOINT_ENABLE BE Enables or disables a breakpoint 13 BREAKPOINT_ BS Sets sequential breakpoints SEQUENCE 14 BUILD BU Starts a build operation on the current project 15 BUILD_ALL BL Starts a build all operation on the current project 16 CHANGE_ cc Sets the current configuration CONFIGURATION 17 CHANGE_PROJECT CP Sets the current project 18 CHANGE_SESSION CS Changes the session of the current project 19 CLOCK CK Set the CPU clock rate in the emulator 20 CONFIGURE_ CPF Sets the debugging environment for the emulator PLATFORM 21 CLOSE_WORKSPACE CW Close the current workspace 22 DEFAULT_OBJECT_ DO Sets the default object program format FORMAT 23 DEVICE_TYPE DE Selects a device type to emulate 24 DISASSEMBLE DA Disassembles memory contents 25 EEPROM_COPY EEPC Transfers data between EEPROMs or EEPROM and normal memory 26 EEPROM_DISPLAY EEPD Displays the content of the EEPROM 27 EEPROM_EDIT EEPE Changes the content of the EEPROM 28 EEPROM FILL EEPF Fills a block of the EEPROM with a specified value 29 EEPROM_SETMODE EEPS Selects the slave address of the EEPROM and the mode for writing data 30 ERASE ER Clears the Command Line window 31 EVALUATE EV Evaluates an expression 32 EXMONITOR_DISPLAY EXMD Displays the conte
86. F730 H F731 H FFEO PMR1 IRQ3 IRQ2 IRQ1 IRQO TXD2 H FFE1 PMR5 POF57 POF56 WKP5 WKP4 WKP3 ae H FFE2 PMR3 PoF27 PoF26 POF25 POF24 PoF23 valua tion chip H FFF1 syscr2 smseL fison joron maz mai mao sai sao H FFF2 IEGR1 NMIEG IEG3 IEG2 IEG1 IEGO H FFF4 IENR1 IENDT IENTA IENWP IEN3 IEN2 IEN1 IENO H FFF5 IENR2 IENTB3 IENTB2 IENTB1 H FFF9 MSTCR1 MSTS4 MSTIIC MSTS3 MSTAD MSTWD MSTTW MSTTV MSTTA H FFFA MSTCR2 MSTS3_2 MSTTB3 MSTTB2 MSTTB1 MSTTX MSTTZO MSTPWM H FFFB MSTCR3 MSTS4_2 Address Register Bit7 Bit 6 Bit5 Bit 4 Bit3 H FFEO H FFE1 PMR5 POF57 POF56 WKP5 WKP4 H8 36057 H FFF1 SYSCR2 SMSEL LSON DTON MA2 H FFF2 IEGR1 NMIEG H FFF4 IENR1 H FFF5 IENR2 H FFF9 MSTCR1 H FFFA MSTCR2 MSTPWM H FFFB 212 RENESAS 7 Warnings that Apply to H8 36049 Group Programming a The description given in the hardware manual is Initial value 0 Reserved These bits are always read as 0 However the description in the emulator manual is Always specify 0 These bits are always read as the specified values Table 8 39 Differences between the H8 36049 Group Products 1 Target Address Register Name Bits H FFF2 Port mode register 3 7 6 and 5 H F
87. FF5 Interrupt enable register 2 7 and 6 H FFF9 Module standby control register 1 7 H FFFA Module standby control register 2 6 5 and 3 b The description given in the hardware manual is Reserved However the description in the emulator manual is Always specify 0 These bits are always read as the specified values Table 8 40 Differences between the H8 36049 Group Products 2 Target Address Register Name Bits H FFFB 0 c The hardware manual shows registers at the addresses given below For these locations however the applicable description in the emulator manual is Writing has no effect These bits are always read as undefined values because there are no registers at these locations of the emulator Table 8 41 Differences between the H8 36049 Group Products 3 Target Address Register Name Bits H F730 Low voltage detection control register 7to0 H F731 Low voltage detection status register 7to0 d The H8 36049 group has power on reset and optional low voltage detection circuit functions However the E6000 emulator does not support these functions e While emulating the H8 36049 group set PCR9 to 0 if you want to use SCI3_3 213 RENESAS f While emulating the H8 36049 group note that the register specifications at address H F608 in the actual device and expansion I O board HS36024EIO61H are different Table 8 41 lists the specifications and note on them Tabl
88. Figure 5 1 Configuration Properties Dialog Box General Page This dialog allows the user to set conditions for the target MCU before downloading a program to the emulator 38 RENESAS General page Device Selects the MCU to be emulated To use an MCU not included in the list select CUSTOM to specify the functions required for this MCU See the hardware manual for details Mode Selects the MCU s operating mode Clock Selects the speed of the MCU s clock and sub clock Timer Resolution Selects the resolution of the timer for use in execution time measurement The value 20 ns 125 ns 250 ns 500 ns 1 us 2 us 4 us 8 us or 16 us can be selected The timer for execution time measurement has a 40 bit counter At 20 ns the maximum time that can be measured is about six hours and at 16 us the maximum time is about 200 days When the counter overflows the maximum time possible for measurement will be displayed with prompt gt that indicates that the counter has overflowed Enable read and write on the ly When this box is checked it is possible to access the target system memory while the user program is running Do not check this check box if you require realtime emulation Break on access error When this box is checked a break the user program stops occurs if your program accesses a guarded memory area or writes to a write protected area Enable internal ROM area write
89. H8 3694 Registers Address Register Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 H F730 H F731 H FFEO PMR1 IRQ3 IRQ2 IRQ1 IRQO TXD2 PWM TXD TMOW H FFE1 PMR5 POF57 POF56 WKP5 WKP4 WKP3 WKP2 WKP1 WKPO Ea H FFE2 PMR3 PoF27 PoF26 PoF25 PoF24 PoF23 valua tion chip H FFF1 SYSCR2 fsmseL Lson DTON fma2 MA1 MAO fsa1 SAO H FFF2 IEGR1 NMIEG IEG3 IEG2 IEG1 IEGO H FFF4 IENR1 IENDT IENTA IENWP IEN3 IEN2 IEN1 IENO H FFF5 IENR2 IENTB3 IENTB2 IENTB1 H FFF9 MSTCR1 MSTS4 MSTIIC MSTS3 MSTAD MSTWD MSTTW MSTTV MSTTA H FFFA MSTCR2 MSTS3_2 MSTTB3 MSTTB2 MSTTB1 MSTTX MSTTZO MSTPWM H FFFB MSTCR3 MSTS4_2 Address Register Bit7 Bit 6 Bit5 Bit 4 Bit 3 H FFEO PMR1 H FFE1 H FFE2 H8 3694 SYSCR2 H FFF2 IEGR1 NMIEG IEG3 IENR1 208 RENESAS 5 Warnings that Apply to H8 36014 H8 36024 Group Programming a The description given in the hardware manual is Initial value 0 Reserved These bits are always read as 0 However the description in the emulator manual is Always specify 0 These bits are always read as the specified values Table 8 30 Differences between the H8 36014 H8 36024 Group Products 1 Target Address Register Name Bits H FFE
90. If the check box is gray the column is enabled in some files and disabled in others Deselect the check box e uwv Ne of a column you want to switch off 5 Click the OK button for the new column settings to take effect al Editor Column States AE vent EXT 2 Trigger a 9 3 5 Line Number Cancel v v v S W Breakpoints S W Breakpoints ASM Source Address Figure 5 7 Global Editor Column States Dialog Box gt To switch off a column in one source file 1 Click the right hand mouse button on the Editor window which contains the column you want to remove to display the popup menu 2 Click the Columns menu item to display a cascaded menu item The columns are displayed in this popup menu If a column is enabled it has a tick mark next to its name Clicking the entry will toggle whether the column is displayed or not 47 RENESAS 5 2 3 Viewing the Assembly Language Code If you have a source file open right click to open the pop up menu and select the View Disassembly option to open a Disassembly view at the same address as the current Source view It is also possible to view the disassembly using the new integrated Disassembly view in the source file If you do not have a source file but wish to view code at assembly language level then select one of the following operations Click on the View Disassembly toolbar button Choose the
91. Items For emulation of the H8 36057 group or the H8 36037 group an expansion I O board HS36037EIO61H is required For emulation of the H8 36024 group or the H8 36049 group an expansion I O board HS36024EIO61H is required For emulation of the H8 36109 group an expansion I O board HS36109EIO61H is required For notes on the user cable and the expansion I O board refer to the user s manual provided for each of them See the development support tool catalog for the MCU type names and packages supported by the E6000 emulator and for the combination of the E6000 user system interface cables and optional boards 173 RENESAS 7 1 2 Operating Voltage and Frequency Specifications Table 7 1 shows the MCU operating voltage and frequency specifications supported by the E6000 emulator If the emulator is used in an environment that exceeds the operating voltage range and operating frequency range guaranteed for the MCU operation normal emulator operation is not guaranteed Note that the operation with low voltage or high frequency is not supported in some MCUs Table 7 1 Operating Voltage and Frequency Specifications Operating Frequency No MCU Types Operating Voltage V MHz 1 H8 3664 group except for H8 3664F 2 7 5 5 1 10 4 0 5 5 1 16 2 H8 3664F 3 0 5 5 1 10 H8 3664N 4 0 5 5 1 16 3 H8 3672 group 3 0 5 5 1 10 4 0 5 5 1 16 4 H8 3687 group 2 7 5 5 1
92. MSTCR3 MSTS4_2 Address Register Bit 7 Bte Bits Bit4 Bt3 Bit2 Bit1 Bito H FFEO PMR1 IRa3 iRa2 IRQ1 IRQO TxD2 pwm TXD H FFE1 PMR5 wkP4 wkP3 wkp2 wkP1 wkPo H FFE2 PMR3 POF24 PoF23 H FFE4 PCR1 PCR17 PCR16 PCR15 PCRi4 E Fee PCR11 PCR10 H FFES PCR2 PCR24 PCR23 PCR22 PCR21 PCR20 H8 36064 H FFEA PCR7 PCR76 PCR75 H FFEB PCR8 PCR87 PCR86 PCR85 H FFFO syScRi sssey sTs2 sTS1 H FFF1 SYSCR2 DTON Ma2 MA1 Mao E E H FFF4 IENR1 IEnwP IEN3 IEN2 JIEN1 IENO H FFF5 IENR2 ENTB1 H FFF6 IRR1 IRRI2 H FFF7 IRR2 H FFF9 MSTCR1 H FFFA MSTCR2 MSTS3_2 MSTTZ MSTPWM H FFFB MSTCR3 E 222 RENESAS 1 Warnings that Apply to H8 36094 Group Programming a The description given in the hardware manual is Initial value 1 Reserved These bits are always read as 1 and cannot be modified However the description in the emulator manual is Always specify 0 These bits are always read as the specified values Table 8 57 Differences between the H8 36094 Group Products 1 Target Address Register Name Bits HFFEO Port mode register 1 3 and 2 b The description given in the hardware manual is Initial value 0 Reserved These bits are always read as 0 and cannot be modified However the description in the emulator manual is Always specify 0 These bits are always read as the specified values Table 8 58 Differences between the H8 36094 Group Products 2 Target Add
93. NESAS Notes 1 114 When Time Out is selected in the Start Point To End Point Measurement mode the execution time will not be measured correctly When Time Out and Count are selected satisfaction of either of these options stops execution of the user program performance break Only channel 1 can be used for Time Out and Count Use other channels if you do not want to select Time Out or Count in the Start Point To End Point Measurement mode RENESAS 3 Start Range To End Range Measurement Performance An rtie 2 x Measurement Method PAT Start Range To End Range Measurement Range Name PA1 Start Range End Range Start Address H o0000000 E Start Address H o0000000 E End Address H o0000000 End Address fH oooo0000 Common Settings of Performance PA1 8 Address Control Mode PC Settings Time Measurement Unit 160ns Cancel Figure 5 63 Start Range To End Range Measurement Settings Range Name The name of the range to be measured Start Range The start range for the Start Range To End Range Measurement Start Address Start address End Address End address End Range The end range for the Start Range To End Range Measurement Start Address Start address End Address End address Starts measurement with a detected prefetch cycle in the specified start address range and then stops with a detected prefetch cycle in the specified end addre
94. O Port mode register 1 6 5 2 and O H FFF1 System control register 2 6 1 and O H FFF2 Interrupt edge select register 1 7 2 and 1 H FFF4 Interrupt enable register 1 6 2 and 1 H FFF9 Module standby control register 1 7 and 0 H FFFA Module standby control register 2 6 to0 b The description given in the hardware manual is Reserved However the description in the emulator manual is Always specify 0 These bits are always read as the specified values Table 8 31 Differences between the H8 36014 H8 36024 Group Products 2 Target Address Register Name Bits HFFE2 Port mode register 3 7to3 H FFF5 Interrupt enable register 2 7to5 H FFFB Module standby control register 3 0 c The hardware manual shows registers at the addresses given below For these locations however the applicable description in the emulator manual is Writing has no effect These bits are always read as undefined values because there are no registers at these locations of the emulator Table 8 32 Differences between the H8 36014 H8 36024 Group Products 3 Target Address Register Name Bits H F730 Low voltage detection control register 7to0 H F731 Low voltage detection status register 7to0 d The H8 36014 H8 36024 group has power on reset and optional low voltage detection circuit functions However the E6000 emulator does not support these functions e While emulating the H8 36024 group set PCR1 and PCRS to 0
95. OO 00 2F 95 00 OO 24 89 OO OO OS 40 FFEFAO 0p G0 02 GO OO OL Al 00 02 12 24 00 00 AA AA FFEFBO o 70 00 OO GO O1 80 74 00 OO 10 36 OO 00 04 IE FFEFCO 6A 18 6A 18 6A 18 6A 18 6A 18 GA 18 6A 18 6A 18 Figure 6 72 Monitor Window during Execution 5 After you have finished checking the states in the Monitor window select Halt Program from the Debug menu to halt the program s execution 6 20 What Next This tutorial has described the major features of the emulator and the use of the High performance Embedded Workshop Sophisticated debugging can be carried out by using the emulation functions that the emulator offers This provides for effective investigation of hardware and software problems by accurately isolating and identifying the conditions under which such problems arise 172 RENESAS Section 7 Hardware Specifications Specific to This Product This section describes the hardware specifications on the H8 3664 E6000 emulator 71 H8 3664 E6000 Emulator Specifications The H8 3664 E6000 emulator supports the system development using the following microcomputers e H8 3664 group e H8 3664N e H8 3672 group e H8 3687 group e H8 3687N e H8 3694 group e H8 3694N e H8 36014 group e H8 36057 group e H8 36037 group e H8 36024 group e H8 36049 group e H8 36902 group e H8 36912 group e H8 36077 group e H8 36087 group e H8 36109 group e H8 36064 group e H8 36094 group e H8 36079 group 7 1 1 Supported
96. RAM Opening the Memory sheet of the System Status window allows you to check which optional SIMM memory module if any is installed and also allows the four banks to be relocated to the required addresses from the Memory Mapping dialog box RENESAS 2 6 Hardware Interface All signals are directly connected to the MCU in the emulator with no buffering with the exception of those listed in section 7 Hardware Specifications Specific to This Product 2 6 1 Signal Protection on the emulator All signals are over under voltage protected by use of diode arrays The only exceptions being the AV and Vref All ports have pull up resistors except for analog port All V pins on the cable head assembly are connected together with the exception of the AV o pin and are then monitored by the emulator to detect powered user system presence 2 6 2 User System Interface Circuits The interface circuit between the MCU in the emulator and the user system has a signal delay of about 8 ns due to the user system interface cable and it includes pull up resistors Therefore high impedance signals will be pulled up to the high level When connecting the emulator to a user system adjust the user system to compensate for propagation delays The following diagrams show the equivalent circuit examples of the interface signals The interface circuits depend on the MCU type For details refer to section 7 Hardware Specifications Specific to This Produc
97. REJ1 0J1 133 0600 Everywhere you imagine E 2 E N ESAS H8 3664 E6000 Emulator User s Manual Renesas Microcomputer Development Environment System H8 Family H8 300H Tiny Series HS3664EPI62HE U2 Rev 6 00 Renesas Technology Revision Date Feb 05 2007 www renesas com Notes regarding these materials This document is provided for reference purposes only so that Renesas customers may select the appropriate Renesas products for their use Renesas neither makes warranties or representations with respect to the accuracy or completeness of the information contained in this document nor grants any license to any intellectual property rights or any other rights of Renesas or any third party with respect to the information in this document 2 Renesas shall have no liability for damages or infringement of any intellectual property or other rights arising out of the use of any information in this document including but not limited to product data diagrams charts programs algorithms and application circuit examples 3 You should not use the products or the technology described in this document for the purpose of military applications such as the development of weapons of mass destruction or for the purpose of any other military use When exporting the products or technology described herein you should follow the applicable export control laws and regulations and procedures req
98. Source from the popup menu e Double click a trace record The Editor or Disassembly window opens and the selected line is marked with a cursor 5 8 8 Trimming the Source Choose Trim Source from the popup menu to remove the white space from the left side of the source When the white space is removed a check mark is shown to the left of the Trim Source menu To restore the white space choose Trim Source while the check mark is shown 5 8 9 Acquiring a Snapshot of the Trace Information A snapshot can be acquired when you need to check the trace information during execution of the user program This is useful for checking time stamping or probe input signals To acquire a snapshot of trace information select Snapshot from the popup menu Trace acquisition is temporarily stopped to display a record of the latest trace information and then restarted A snapshot of trace information is only acquired during execution of the user program 5 8 10 Temporarily Stopping Trace Acquisition To temporarily stop trace acquisition during execution of the user program select Halt from the popup menu This stops trace acquisition and updates the trace display Use this method to check the trace information without stopping execution of the user program 5 8 11 Restarting Trace Acquisition To restart trace acquisition being stopped during execution of the user program select Restart from the popup menu 94 RENESAS 5 8 12 Extract
99. Start Point To End Point Measurement Settings Range Name Point Start Address End Address Time Out Count The name of the range to be measured The range for the Start Point To End Point Measurement Address to start measurement Address to end measurement The timeout value to finish measurement When the minimum time for measurement is 160 ns 40 ns or 20 ns enter the value as follows Example 1h 2min 3s 123ms 456us 789ns If the CPU operating mode is target enter a hexadecimal number in 10 digits Example 123456789A A break occurs every time a value measured in the specified range exceeds the timeout value not the total time This is only available for channel 1 The count up value used in measurement of the execution count A break occurs every time the execution count exceeds the count up value This is only available for channel 1 Measures the execution time and the execution count in the range between start address and end address Starts measurement with a detected program prefetch at the start address and then stops with a detected program prefetch at the end address The execution count is incremented every time the program is prefetched at the end address of the specified range The execution time measured includes the time spent while being called from the specified range When either from one to four points is selected the maximum and minimum time in the specified range can be measured 113 RE
100. States and Areas 8 1 9 Monitoring Function 8 1 10 Trigger Points 8 1 11 Trace Information 8 1 12 Searching for a Trace Record 8 1 13 Trace Filtering Function 8 1 14 Reading from and Writing to the EEPROM 8 2 Notes on Usage of the H8 3664 E6000 Emulator 8 2 1 I O Register 8 2 2 Notes on Mode Transitions 8 2 3 Access to the Reserved Area 8 2 4 Environment for Execution of the Tutorial Program m 8 2 5 Note on Emulation of the H8 36912 Group and H8 36902 Group s ss s1 s11s1 227 193 Appendix A I O File Format ssssssscssssssssessscessssssesesssesssssseecessecnesasseversnes 229 A l File format Bit Field Not Supported s231 A 2 File format Bit Field Supported Appendix B Menus iisrit srias rriet ra Ar E AO a aes 233 Appendix C Command Lines s ss srererersresersrreerssesrorsnesestsosrsrsrsesrsstseieresereseseses 237 Appendix D Diagnostic Test Procedure cece cece eseeeeceeeeecseeeeseseeeeeaeeneeaee 241 vi D 1 D 2 System Set Up for Test Program Execution cccccceeesseeeeeeeseeesseeeeseeeseesseenseeeeeeees Diagnostic Test Procedure Using Test Program ccccccseeseseeseseseeecsesenssseeeeeeneeeneeans RENESAS vii viii RENESAS Emulator Debugger Part RENESAS Section Overview 11 Features The breakpoint memory map performance and trace can be set through the dialog box Intuitive user interface Online hel
101. a page Set a data condition Trace Filter E xi Status Probes IRQ7 0 General Address Data Rw Aea Point Range From F Figure 5 48 Trace Filter Dialog Box Data Page Don t care Detects no data when this box is checked Setting Detects the specified data Point Specifies single data not available when Don t care has been checked Range Specifies a data range not available when Don t care has been checked From Enter single data or the minimum value of the data range not available when Don t care has been checked To Enter the maximum value of the data range only available when Range has been selected Note Along with setting the data range the minimum and maximum values can be set in the From and To options respectively 98 RENESAS 4 R W page Select the type of access cycles i x Status Probes IRQ 7 0 General Address Data RAW Aea Lens Figure 5 49 Trace Filter Dialog Box R W Page Don t care Detects no read write condition when this box is checked Setting Detects the specified read write condition RD Detects read cycles when this box is checked not available when Don t care has been checked WR Detects write cycles when this box is checked not available when Don t care has been checked 99 RENESAS 5 Area page Select the area bein
102. a ata OK D RAM Monitor 6c ck ee ed me ned retrete OK RENESAS 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 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 results for analysis controlling circuits in the E6000 normal completion Shows the check results for the bus monitor controlling circuits in the E6000 normal completion 245 18 A B c D E F G H I J K L Test Parallel Access Internal Internal Internal Internal Internal Internal Internal Internal Option Option Option Option ROM ROM ROM ROM RAM RAM Parallel Parallel Parallel Parallel Parallel Parallel RAM Parallel RAM Parallel RAM Parallel Read Access WORD RAM Parallel Write Access WORD Read Access WORD Write Access WORD Read Access WORD Write Access WORD RAM Parallel Write Access High Byte Write Access High Byte Write Access Low Byte Write Access High Byte Write Access Low Byte RAM Parallel Write Access Low Byte 19 Test Go Reset A B
103. age Don t care Detects no address when this box is checked Setting Detects the specified address Value Enter the address value not available when Don t care has been checked 86 RENESAS 3 Data page Set a data condition Figure 5 39 Trace Find Dialog Box Data Page Don t care Detects no data when this box is checked Setting Detects the specified data Value Enter the data value not available when Don t care has been checked 87 RENESAS 4 R W page Select the type of access cycles Trace Find Figure 5 40 Trace Find Dialog Box R W Page Don t care Detects no read write condition when this box is checked Setting Detects the specified read write condition String Select a read write condition not available when Don t care has been checked RD Read cycle WR Write cycle 88 RENESAS 5 Area page Select the area being accessed The selection is not available when a time stamp is acquired Trace Find x Status Probes IRQ 7 0 General Address Data RAW Area Setting Sting ROM ba Cancel Apply Figure 5 41 Trace Find Dialog Box Area Page Don t care Detects no area condition when this box is checked Setting Detects the specified area condition String Select an area condition not available when Don t care has been checked Note Available areas
104. al Page Only selects the cycle number when this box is checked Other options become invalid Enables the filter when this box is checked Filters information that does not match the conditions set in those pages when this box is checked Sets the range for filtering Enters a PTR value to start filtering Enters a PTR value to end filtering Note Along with setting the range for filtering PTR values to start and end filtering can be set in the Start PTR and End PTR options respectively 96 RENESAS 2 Address page Set address conditions i x Status Probes IRQ 7 0 General Address Data RAY Area T Don t care Setting Point C Range From F To Figure 5 47 Trace Filter Dialog Box Address Page Don t care Detects no address when this box is checked Setting Detects the specified address Point Specifies a single address not available when Don t care has been checked Range Specifies an address range not available when Don t care has been checked From Enter a single address or the start of the address range not available when Don t care has been checked To Enter a single address or the end of the address range only available when Range has been selected Note Along with setting the address range the start and end of the address range can be set in the From and To options respectively 97 RENESAS 3 Dat
105. alysis Properties dialog box Performance An Measurement Method PA1 Time Of Specified Range Measurement Range Name PA1 Range Start Address H 00000000 End Address H 00000000 Common Settings of Performance PA1 8 Address Control Mode Prefetch Settings Time Measurement Unit 160ns conc Figure 6 64 Performance Analysis Properties Dialog Box 4 Select Time Of Specified Range Measurement from the Measurement Method PA1 combo box 5 The parameter settings are as follows Enter sort in the Range Name edit box Click the button to the right of the Start Address edit box to display the Input Function Range dialog box Enter the function name Sample sort long in the Function edit box of this dialog box and then click the OK button The corresponding addresses for the function Sample sort long will now be set in the Start Address and End Address edit boxes Input Function Range a 21x Function Sa mple sort long Cancel Figure 6 65 Input Function Range Dialog Box Note The addresses figured out in the Input Function Range dialog box are just for reference In some cases the end address of a function may be different Check the last instruction of the function in the Disassembly window to correct the value set in End Address so that it will be the address of the last instruction in general the last instruction
106. amp is acquired i x General Address Data Aw Area Status Probes IRQ 7 0 Setting Probe4 Don t care Probe3 Dont care x Probe2 Dont care 7 Probel Dont care 7 Cancel Apply Figure 5 52 Trace Filter Dialog Box Probes Page Don t care Detects no probe signal condition when this box is checked Setting Detects the specified probe signal condition Probe4 to Probe1 Select probe conditions not available when Don t care has been checked Don t care Detects no selected probe condition High The status of the probe signal is high Low The status of the probe signal is low 102 RENESAS 8 IRQ7 0 page Select the status of IRQ signals The selection is not available when a time stamp is acquired i x General Address Data Rw Aea Status Probes IRQ 0 Setting IRQ Don t care x IRQS Dont care 7 IRQS Dont care x IRQ4 Dont care 7 IRG3 Don t care aa IRG2 Dont care x IRQ1 Dont care 7 IRQO Dont care 7 Cancel Apply Figure 5 53 Trace Filter Dialog Box IRQ7 0 Page Don t care Detects no IRQ input condition when this box is checked Setting Detects the specified IRQ input condition IRQ7 to IRQO Select IRQ input conditions not available when Don t care has been checked Don t care Detects no selected IRQ input condition High The status of the IRQ input is high Low The stat
107. an event point is disabled the event point will remain in the list but an event will not occur when the specified conditions have been satisfied 5 7 13 Deleting an Event Point Select an event point and choose Delete from the popup menu to remove the selected event point To retain the event point but not have it cause an event when its conditions are met use the Disable option see section 5 7 12 Disabling an Event Point Note No trigger point can be deleted Use the Disable option to clear the settings 5 7 14 Deleting All Event Points Choose Delete All from the popup menu to remove all event points Note No trigger point can be deleted If Delete All is selected the settings of all channels become disabled 5 7 15 Viewing the Source Line for an Event Point Select an event point and choose Go to Source from the popup menu to open the Editor or Disassembly window at address of event point The Go to Source menu is only available when one event point that has the corresponding source file is selected 73 RENESAS 5 8 Viewing the Trace Information The emulator acquires the results of each instruction execution into the trace buffer as trace information and displays it in the Trace window The conditions for the trace information acquisition can be specified in the Trace Acquisition dialog box Since trace information in bus cycles is acquired by the hardware circuit and stored in the trace buffer the rea
108. and that for the previous version of the emulator HS3664EPI61H that does not incorporate the USB interface Usually refer to the descriptions for the HS3664EPI62H below Insert the CD R HS3664EPI62SR supplied with the emulator into the CD ROM drive of the host computer and move the current directory to either of those listed below with a command prompt When HS3664EPI61H is in use lt Drive gt Diag HS3664EPI61H When HS3664EPI62H is in use lt Drive gt Diag HS3664EPI62H Then enter one of the following commands according to the PC interface board in use to initiate the test program 1 PCI bus interface board HS6000EICO1H or HS6000EICO2H When HS3664EPI61H is in use gt TM3664 PCI RET When HS3664EPI62H is in use gt TM3664_62 PCI RET 2 PCMCIA interface card HS6000EIP01H When HS3664EPI61H is in use gt TM3664 PCCD RET When HS3664EPI62H is in use gt TM3664_62 PCCD RET 3 LAN adapter HS6000ELNO01H When HS3664EPI62H is in use gt TM3664_62 ELN RET 4 USB adapter when using the USB interface in the emulator When HS3664EPI62H is in use gt TM3664_62 USB RET Note When HS3664EPI61H is in use the test program is not supported for the LAN or USB adapter The High performance Embedded Workshop must be installed before the test program is executed Be sure to initiate the test program from lt Drive gt Diag HS3664EPI62H Do not initiate it from a directory other than lt Drive gt Diag HS3664
109. and the Statistic dialog box will be displayed Start End Result Figure 6 54 Statistic Dialog Box 160 RENESAS 4 Select R W in the Item combo box and enter WR in the Start edit box After that click the New button R W WR is now displayed in the Condition column of the Result list box IC Statistic Analysis Default Range ltem RAV z Start wr Ed O SS Result Do Result Figure 6 55 Statistic Dialog Box New Condition 161 RENESAS 5 Then select Area from the Item combo box and enter RAM in the Start edit box After that click the Add button the new condition is now added to the R W WR display in the Condition column of the Result list box so that it now shows R W WR amp Area RAM This completes setting of the condition Default Range ltem fArea x RAW WR amp Area RAM Figure 6 56 Statistic Dialog Box Condition Added 162 RENESAS 6 To start statistical analysis of the specified condition press the Result button The number of write operations that satisfy the condition and the PTR values will be displayed ic r Statistic Analysis Default Range ltem Area F Start RAM Enda Result RAW WR amp Area RAM 1525 09101 091 00 0909 Figure 6 57 Statistic Dialog Box Result of Analysis
110. are manual is Reserved However the description in the emulator manual is Always specify 0 These bits are always read as the specified values Table 8 19 Differences between the H8 3672 Group Products 3 Target Address Register Name Bits H FFE2 Port mode register 3 7to3 H FFF5 Interrupt enable register 2 7to5 H FFFA Module standby control register 2 7to0 H FFFB Module standby control register 3 0 203 RENESAS Table 8 20 Differences between the Evaluation Chip and the H8 3664 H8 3672 Group Products Address Register Bit7 Bit 6 Bit5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 H FFEO PMR1 IRQ3 IRQ2 IRQI IRQO TXD2 PwMm TXD TMOW H FFE1 PMR5 POF57 POF56 WKP5 WKP4 WKP3 WKP2 WKP1 WKPO H8 3660 H FFE2 PMR3 POF27 POF26 POF25 POF24 POF23 R H FFF1 SYSCR2 SMSEL LSON DTON MA2 MA1 MAO SA1 SA0 H FFF2 IEGR1 NMIEG IEG3 IEG2 IEGI IEGO H FFF4 IENR1 IENDT IENTA IENWP IEN3 IEN2 IEN1 IENO H FFF5 IENR2 IENTB3 IENTB2 IENTB1 H FFF9 MSTCR1 MSTS4 MSTIIC MSTS3 MSTAD MSTWD MSTTW MSTTV MSTTA H FFFA MSTCR2 MSTS3_2 MSTTB3 MSTTB2 MSTTB1 MSTTX MSTTZo MSTPWM H FFFB MSTCR3 MSTS4_2 Address Register Bit7 Bi
111. art of the Editor window Line Number column This column displays the line number for the source file 45 RENESAS Source Address column When a program is downloaded an address for the current source file is displayed on the Source address column These addresses are helpful when setting the PC value or a breakpoint Event column The Event column displays the following items Address condition break by an event or a range channel Starts time measurement by an event channel Ends time measurement by an event channel Starts a point to point range trace Ends a point to point range trace B Halts trace These are also set by using the popup menu EXT 2 Trigger column The EXT 2 Trigger column displays the following items ha EXT 2 1 trigger condition hia EXT 2 2 trigger condition ha EXT 2 3 trigger condition hs EXT 2 4 trigger condition h Two or more EXT 2 trigger conditions It is also possible to set them by using the popup menu S W Breakpoints column This column displays the following items B A bookmark is set A Software Break is set PC location 46 RENESAS gt To switch off a column in all source files Right click on the Editor window or select the Edit menu Click the Define Column Format menu item The Global Editor Column States dialog box is displayed A check box indicates whether the column is enabled or not If it is checked the column is enabled
112. arting the High performance Embedded Workshop User Break Break by the user Software Break Break by software breakpoint On Chip Break A Break by On Chip Break Complex Event System Break by complex event system Stepping Completed Break by stepping completed Stepping Aborted Break by stepping aborted ROM Write Access Break Break by writing to ROM Unused Area Access Break Break by accessing to a guarded memory Performance Break Break by Performance Analysis Invalid breakpoint Break by a break instruction without Software Break Event Time Count Displays the measured result of the timer between events Run Time Count Displays the total execution time of the program 3 Events Sheet Selecting the Events tab on the Status window displays this sheet Table 8 8 Events Sheet Item Item Column Status Column Resources Displays the resource information and the information on events such as the breakpoint 191 RENESAS 8 1 7 Extended Monitor Function Selecting View gt CPU gt Extended Monitor or clicking the Extended Monitor toolbar button displays the Extended Monitor window This emulator displays the following items Table 8 9 Extended Monitor Window Items Item Column Value Column User NMI Displays the status of the NMI pin User Reset Displays the status of the reset pin User System Voltage Displays whether or not the user VCC is
113. as been registered sane le __ am Sse rajonaa te Mn Anrre Figure 4 12 Selecting the Session File In the list box that is circled in figure 4 12 select the session name including the character string that has been set in the Target name text box in figure 4 9 New Project Step 8 dialog box The setting for using the emulator has been registered in this session file After the session name is selected the emulator will automatically be connected For details on the session file refer to the High performance Embedded Workshop user s manual 35 RENESAS 4 3 Reconnecting the Emulator When the emulator is disconnected use the following way for reconnection Select Debug gt Connect or click the Connect toolbar button The emulator is connected Note Before reconnecting the emulator a load module must be registered to the High performance Embedded Workshop 4 4 Ending the Emulator When using the toolchain the emulator can be exited by using the following two methods e Canceling the connection of the emulator being activated e Exiting the High performance Embedded Workshop 1 Canceling the connection of the emulator being activated Select Debug gt Disconnect or click the Disconnect toolbar button E 2 Exiting the High performance Embedded Workshop Select File gt Exit A message box is displayed If necessary click the Yes button to save a session
114. at a single step select Step Over from the Debug menu or click the Step Over button in the toolbar Figure 6 24 Step Over Button 001038 001044 001046 00104e 001050 001058 00105a 00105c 001070 00107a 001082 00108a 001096 0010a2 0010ae 0010ba 0010c6 0010d2 0010de 0010ea oo10f6 0010fc void tutorial void long a 10 long j int i class Sample p_sam 15 x RR ilo x p_sam new Sample Boe teOrniciosairennt ae type ET D RE FFEF80 long 10 TA R 0 H 0000794b FFEF80 long R 1 H 000059e2 FFEF84 long ali 3 R 2 H 0000446b FFEF88 long R 3 H 000041c6 FFEF8C long p_sam gt sort a psam enande a R 4 H 00003 54 FFEF90 long R 5 H 00002781 FFEF94 long p_sam gt s0 a 0 R 6 H 00001cfh FFEF98 long a R 7 H 0000167e FFEF9C long p_sam gt s3 a 3 R 8 H 000015fb FFEFAO long p_sam gt s4 a 4 R 9 H OOOOOff6 FFEFA4 long p_sam gt s5 a 5 i H 000a R4 lint p_sam gt s6 a 6 p_sam gt s7 a 7 p_sam gt s8 a 8 p_sam gt s9 a 9 delete p_sam Ah Watchi watcha watcha watcha 7 138 Figure 6 25 High performance Embedded Workshop Window Step Over RENESAS 6 13 Forced Breaking of Program Executions The High performance Embedded Workshop can force a break in the execution of a program e Cancel all the breaks
115. ator and noise filter of SCI However the E6000 emulator does not support these functions d The initial value of WDON bit of Timer control status register in H8 36902 H8 36912 group is 1 in the hardware manual When using E6000 however the initial value is 0 and thus please write 1 when you count up the watch dog timer Table 8 50 Differences between the H8 36902 H8 36912 Group Products 3 Target Address Register Name Bits H FFCO Timer control status register 2 218 RENESAS Table 8 51 Differences between the Evaluation Chip and the H8 36902 H8 36912 Registers H8 3660 Evalua tion chip Address Register Bit 7 Bte Bit5 Bit4 Bt3 Bit2 Bit1 BitO H F730 H F731 H F734 H F735 H F736 H F737 H FF90 H FF91 H FF93 H FF9B H FFAE H FFEO PMR1 IRQ3 IRa2 fiRQI IRQO TXD2 PwM_ TxD TMOW H FFE1 PMR5 POF57 POF56 WKP5 wKP4 wkP3 wkKP2 WKP1 fwkPo H FFF1 SYSCR2 SMSEL LSON DTON ma2 MA1 Mao sat SA0 H FFF2 IEGR1 NMIEG IEG3 IEG2 JIEG1 IEGO H FFF3 IEGR2 WPEGS WPEG4 WPEG3 WPEG2 WPEG1 WPEGO H FFF4 IENR1 IENDT IENTA IENWP IEN3 IEN2 fIEN1 IENO H FFF5 IENR2 IENTB3 IENTB2 IENTB1 H FFF9 MSTCR1 MsTSs4 mMsTIIC MsTs3 MmstraD MmsTwD msTTw MmsTTV MSTTA H FFFA MSTCR2 MSTS3_
116. ble is not connected to the user system the Uvcc of the MCU is 5 V 7 2 2 User System Interface Circuits The interface circuit between the MCU in the emulator and the user system has a signal delay of about 8 ns due to the user system interface cable and it includes pull up resistors Therefore high impedance signals will be pulled up to the high level When connecting the E6000 emulator to a user system adjust the user system hardware to compensate for propagation delays Default User system interface cable Figure 7 1 Default User System Interface Circuit RES and NMI The NMI signal is input to the MCU through the emulator control circuit The rising falling time of the signal must be 8 ns V or less Emulator control circuit User system interface cable Figure 7 2 User System Interface Circuit for RES and NMI 175 RENESAS PBO to PB7 pins used for ANO to AN7 AVcc and AVss 472 PBO ANO to PB7 AN7 User system interface cable AVss O AVcc MCU User system interface cable O AVss 0 022 uF Figure 7 3 User System Interface Circuit for PBO to PB7 AVcc and AVss Signals Va and TEST When V is connected to GND or the TEST pin is connected to the Vcc level a warning message to indicate that the pin connections are incorrect will be displayed when the emulator is connected Recheck these pins on the user system O VeL MCU 0 1 uF TEST J TEST O TEST Pin mo
117. ch declares four local variables a j i and p_sam e Select Locals from the Symbol submenu of the View menu The Locals window is displayed The Locals window shows the local variables in the function currently pointed to by the program counter along with their values Note however that the Locals window is initially empty because local variables are yet to be declared long 10 5 H OOOOOff6 ERS long i H 000a R4 lint p_sam OxO00ffe0d8 ER class Sample Figure 6 19 Locals Window e Click mark at the left side of array a in the Locals window to display the elements e Refer to the elements of array a before and after the execution of the sort function and confirm that random data is sorted in descending order 134 RENESAS 6 12 Stepping Through a Program The High performance Embedded Workshop provides a range of step menu commands that allow efficient program debugging Table 6 1 Step Option Menu Command Description Step In Executes each statement including statements within functions Step Over Executes a function call in a single step Step Out Steps out of a function and stops at the statement following the statement in the program that called the function Step Steps the specified times repeatedly at a specified rate 6 12 1 Executing the Step In Command The Step In command steps into the called function and stops at the first
118. cord 0 For the cycle during delay executed until the trace has stopped earlier record numbers go forward 1 2 the most recent record Address Address 6 digit hexadecimal Instruction Disassembled code of the executed instruction Data Data bus value displayed as 2 digit or 4 digit hexadecimal R W Whether access was read RD or write WR Area Memory area being accessed ROM RAM 8 or 16 bit I O 8 or 16 bit EXT external or DTC RAM not available when a time stamp is acquired 74 RENESAS Status Clock Probes NM IRQ7 0 Timestamp Source Label Timestamp Difference Bus status during this cycle DTC operation PROG prefetch Data CPU data access cycle Refresh refresh cycle or DMAC DMAC cycle not available when a time stamp is acquired Number of clock cycles in bus cycle as 1 to 8 To indicate more clock cycles OVR is displayed not available when a time stamp is acquired A 4 bit binary number showing the four probe pins in the order of Probe 4 Probe 3 Probe 2 and Probe 1 from the left not available when a time stamp is acquired Status of the NMI input not available when a time stamp is acquired Status of eight IRQ inputs not available when a time stamp is acquired Time stamp of the record Time stamps start from zero each time the user program is executed The timer resolution depends on the time stamp clock rate select
119. cribed in the component list unpacking If the components are not complete contact a Renesas sales office RENESAS Contents Emulator Debugger Part Section 1 Overview 1 1 Features 1 2 Warnings 1 3 Environmental Conditions 14 Emulator External Dimensions and Mass 0 cececeeeeeseseseeeeeeeeeseeeeeeseraeeaeeaceeseaseeeeeeaees 3 Section 2 Preparation before Use cc ccessssssesssssesesessessssecssssesssessscessssenees 5 2 1 Emulator Preparation 2 2 Installing Emulator s Software 23 Connecting to the User Systeat ccsccncicocascccadencnisnmnarnimiennnaiionanconans 6 2 3 1 Example of Connecting the User System Interface Cable Head to the User System 2 3 2 Plugging the User System Interface Cable Body into the Emulator 2 3 3 Plugging the User System Interface Cable Body into the Cable Head 2 4 Power Supply 2 4 1 AC Adapter 2 4 2 Polarity 2 4 3 Power Supply Monitor Circuit 2 5 SIMM Memory Module 2 5 1 Optional SIMM Memory Module Configuration 2 6 Hardware Interface 2 6 1 Signal Protection on the emulator 2 6 2 User System Interface Circuits 2 6 3 Clock Oscillator 2 6 4 External Probe 1 EXT1 Trigger Output 2 6 5 External Probe 2 EXT2 Trigger Output 2 6 6 Voltage Follower Circuit 2 7 System Check 2 8 Communication Problems 2 9 Other Methods for Activating the Emulator 2 10 Uninstalling the Emulator s Software Section
120. cts are not designed manufactured or tested for applications or otherwise in systems the failure or malfunction of which may cause a direct threat to human life or create a risk of human injury or which require especially high quality and reliability such as safety systems or equipment or systems for transportation and traffic healthcare combustion control aerospace and aeronautics nuclear power or undersea communication transmission If you are considering the use of our products for such purposes please contact a Renesas sales office beforehand Renesas shall have no liability for damages arising out of the uses set forth above 8 Notwithstanding the preceding paragraph you should not use Renesas products for the purposes listed below 1 artificial life support devices or systems 2 surgical implantations 3 healthcare intervention e g excision administration of medication etc 4 any other purposes that pose a direct threat to human life Renesas shall have no liability for damages arising out of the uses set forth in the above and purchasers who elect to use Renesas products in any of the foregoing applications shall indemnify and hold harmless Renesas Technology Corp its affiliated companies and their officers directors and employees against any and all damages arising out of such applications 9 You should use the products described herein within the range specified by Renesas especially with respect to the maximum rating
121. ddress HFEF gl Size byte fHoos0 tC Access Format BvTE HEX o JV Auto Refresh at rate ms oso JV Beading the Initial Value r Color Change Indicator Change X Foreground oe Background gt ii M Mayfly m Detail DETAIL NOT SUPPORTED Detall m History Figure 6 70 Monitor Setting Dialog Box Setting Completed 171 RENESAS 3 Click the OK button to open the Monitor window monitor monitor1 FFEF80 j x g 2 fie z Byte Hex 7 Address Ezoi 1 2 ESE ESES E EB C D EEE E FFEF80 oo oOo 13 72 OO OO 28 47 OO OO 2c 67 OO OO 33 59 FFEF9O oo 00 42 87 OO OO 4D AA OO OO 50 OF OO OO 64 88 FFEFAQ oo 00 69 56 00 OO 75 66 OO 02 12 24 OO OO AA AA FFEFBO 57 70 00 00 00 O1 80 74 00 OO 10 36 OO OO 04 IE FFEFCO 6A 18 6A 18 6A 18 6A 18 6A 18 6A 18 6A 18 6A 18 Figure 6 71 Monitor Window 4 Select Reset Go from the Debug menu When the content of the address range changes with execution the updated values are red i e the color that was selected in the Foreground and Background combo boxes Values will be displayed in black if they have not been updated or a certain period of time has elapsed since the last update monitor monitor1 FFEF80 g 2 fie evte tex 7 00515ms 0 1 2 3 4 5 6 7 8 9 a B tc D E P FFEF80 00 OO 6D 57 OO OO 67 E5 OO OO 4 VF OO OO 3B EE FFEF9O 00 00 39 cE
122. dify the setting of the sequence in the Event Sequencing dialog box 81 RENESAS e Range Only acquires the trace information that satisfies the specified condition NS Figure 5 35 Range Trace Setting Range Range Event Selects an event point for which a trace acquisition condition has been set Edit Changes the setting for the selected event point Only acquires trace information from all bus cycles that matches the condition set in the selected event This mode uses one event channel or range channel 82 RENESAS e Event Acquires trace information controlling the start and end of trace acquisition with the specified condition Acquisition General Stop Delayed Stop 1 2 3 4 m Conditions Disabled Point to Point C Range Event Start Event Edit 7 E H 107E address X Stop Event Edit 8 E H 108A address M Cyclic Cancel Figure 5 36 Range Trace Setting Event Start Event Selects the event point for which the condition to start trace acquisition has been set Stop Event Selects the event point for which the condition to stop trace acquisition has been set Edit Changes the setting for the selected event point Cyclic When this box is checked the event sequencing is configured so that the events reset themselves which causes tracing to be restarted when the start event occurs after the stop event Starts and stops trace acquis
123. e Address Example H8S 2655 Series I O Register Definitions File Modules BaseAddress 0 Module1 Power_Down_Mode_Registers Module2 DMA_Channel_Common Module3 DMA_Channel_0 Module42 Bus_Controller Module43 System_Control Module44 Interrupt_Controller DMA_Channel_Common DMAWER Oxffff00 B A DMATCR O0xffff01 B A DMACROA Oxffff02 B A DMACROB Oxffff03 B A DMACR1A 0xffff04 B A DMACR1B 0xffff05 B A DMABCRH 0xffff06 B A DMABCRL 0Xffff07 B A DMA_Channel_0 MAROAH 0xfffeeO W A MAROAL Oxfffee2 W A IOAROA Oxfffee4 W A ETCROA O0xfffee6 W A MAROBH O0xfffee8 W A MAROBL Oxfffeea W A IOAROB Oxfffeec W A ETCROB O0xfffeee W A Size Absolute address flag 230 RENESAS A 2 File format Bit Field Supported Each module name must be defined in the Modules definition section and the numbering of each module must be sequential Each module corresponds to a register definition section and within the section each entry defines an I O register The user must define FileVersion 2 at the start of the section It means that this I O register file is described with the version that supports the bit field The BaseAddress definition is for devices where the location of I O registers moves in the address space depending on the CPU mode In this case the BaseAddress value is the base address of the I O registers in one specific mode and the addresses used in the register definitions are the address locations of th
124. e 8 42 Register Specifications and Note Item Register Specifications HS36024E1061H Bits 4 to 7 1111 Reserved Bit 3 0 Selects the device 1 H8 36049 Bit 2 0 Selects whether or not to delete noise 0 no 1 yes Bit 1 0 Selects the TXD3 output 0 port 1 TXD_3 Bit 0 0 Selects whether or not to stop modules 0 operate 1 stop Note None H8 36049 wW its 4 to 7 1111 Reserved Bit 3 1 Reserved always read as 1 and writing has no effect Bit 2 0 Selects whether or not to delete noise 0 no 1 yes Bit 1 0 Selects the TXD3 output 0 port 1 TXD_3 Bit 0 0 Selects whether or not to stop modules 0 operate 1 stop For emulation with the expansion I O board HS36024EI061H set bits 3 to 1 Note 214 The value in parentheses indicates the initial value after a reset RENESAS Table 8 43 Differences between the Evaluation Chip and the H8 36049 Registers Address Register Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 H F730 H F731 H FFEO PMR1 IRQ3 IRQ2 IRQ1 IRQO TXD2 PWM TXD TMOW H FFE1 PMR5 POF57 POF56 WKP5 WKP4 WKP3 WKP2 WKP1 WKPO Ea H FFE2 PMR3 POF27 POF26 POF25 POF24 PoF23 valua tion chip H FFF1 SYSCR2 fsmseL Lson DTON fma2 MA1 MAO fsa1 SAO H FFF2 IEGR1 NMIEG IEG3 IEG2 IEG1 IEGO H FFF4 IENR1 IENDT IENTA IENWP IEN3 IEN2 IEN1 IENO
125. e There is a lot of dust e There is a lot of vibration For details refer to section 1 3 Environmental Conditions Protect the emulator from excessive impacts and stresses Only supply the specified voltage and power supply frequency When moving the emulator take care not to vibrate or damage it After connecting the cable check that it is connected correctly For details refer to section 2 Preparation before Use Supply power to the connected equipment after connecting all cables For the supplying procedures refer to section 2 7 System Check Cables must not be connected or disconnected while the power is on RENESAS 1 3 Environmental Conditions CAUTION Observe the conditions listed in table 1 1 when using the emulator Failure to do so will cause illegal operation in the user system the emulator product and the user program Table 1 1 Environmental Conditions Item Specifications Temperature Operating 10 C to 35 C Storage 10 C to 50 C Humidity Operating 35 RH to 80 RH no condensation Storage 35 RH to 80 RH no condensation Vibration Operating 2 45 m s max Storage 4 9 m s max Transportation 14 7 m s max Ambient gases No corrosive gases may be present 1 4 Emulator External Dimensions and Mass Table 1 2 Emulator External Dimensions and Mass Item Specifications Dimensions 219 x 170 x 54 mm Mass Approximately 850 g RENESAS RENESAS S
126. e and assembly language for Renesas microcomputers Its aim is to provide a powerful yet intuitive way of accessing observing and modifying the debugging platform in which the application is running High performance Embedded Workshop is a powerful development environment for embedded applications targeted at Renesas microcontrollers The main features are e A configurable build engine that allows you to set up compiler assembler and linker options via an easy to use interface e An integrated text editor with user customizable syntax coloring to improve code readability e A configurable environment to run your own tools e An integrated debugger which allows you to build and debug in the same application e Version control support High performance Embedded Workshop has been designed with two key aims firstly to provide you the user with a set of powerful development tools and secondly to unify and present them in a way that is easy to use RENESAS About This Manual This manual contains the following information Emulator Debugger Part Preparation before use E6000 emulator functions debugging function tutorial and hardware and software specifications of the E6000 emulator Refer to the High performance Embedded Workshop User s Manual for details on the information on the basic usage of the High performance Embedded Workshop customization of the environment build functions and debugging functions common to each High per
127. e cable interface connector connector External probe gt connector Screw Screw Figure 2 2 E6000 Emulator Connectors 2 3 1 Example of Connecting the User System Interface Cable Head to the User System Screw x 4 User system interface cable head Figure 2 3 Example of Connecting User System Interface Cable Head to User System e Ensure that all power is off to the emulator and the user system e Insert the cable head into the socket on the user system Note Depending upon the package it may be possible to orientate this cable head in any position on the socket so care should be taken to correctly identify pin 1 on the emulator and socket when installing RENESAS e Screw the cable head to the socket with the screws provided Progressively tighten the screws in the sequence shown in figure 2 4 until all are finger tight Figure 2 4 Sequence of Screw Tightening Note Be careful not to over tighten the screws as this may result in contact failure on the user system or damage the cable head Where provided use the solder lugs on the QFP socket to provide extra strength to the emulator user system connection 2 3 2 Plugging the User System Interface Cable Body into the Emulator Plug the cable body into the emulator taking care to insert it straight and push it firmly into place User system interface cable body User system interface cable head User system i
128. e p_sam gt s4 a 4 0010ba p_sam gt s5 a 5 0010c6 p_sam gt s6 a 6 0010d2 p_sam gt s7 a 7 0010de p_sam gt s6 a 8 0010ea p_sam gt s9 a 9 o0010f6 delete p_sam o010fc tutorial cpp Figure 6 3 Editor Window Displaying the Source Program e Select a font and size that are legible if necessary For details refer to the High performance Embedded Workshop user s manual Initially the Editor window shows the start of the user program but the user can use the scroll bar to scroll through the user program and look at the other statements 122 RENESAS 6 4 Setting a Software Breakpoint A software breakpoint is a simple debugging function The Editor window provides a very simple way of setting a software breakpoint at any point in a program For example to set a software breakpoint at the sort function call e Select by double clicking the S W Breakpoints column on the line containing the sort function call zi Tutorial Tutorial 5 C source file 29 001038 void tutorial void A dbsct c 30 001044 A TE JE long a 10 Sy C source file 32 long j f resetprg cpp 33 Anora B sort cpp 34 class Sample p sam tutorial cpp dz Download modules Perce ER E PA DREZ S PEATUS E 3 arn 38 001050 j rand 39 001058 fij lt O 4 40 00105a J j 41 42 00105c ali 3 43 44 0010
129. e registers in the same mode When the I O register file is actually used the BaseAddress value is subtracted from the defined register address and the resultant offset added to the relevant base address for the selected mode Each module has a section that defines the registers forming it along with an optional dependency The dependency is checked to see if the module is enabled or not Each register name must be defined in the section and the numbering of each register must be sequential The dependency is entered in the section as dep lt reg gt lt bit gt lt value gt 1 lt reg gt is the register id of the dependency 2 lt bit gt is the bit position within the register 3 lt value gt is the value that the bit must be for the module to be enabled The Register definition entry is entered in the format id lt name gt lt address gt lt size gt lt absolute gt lt format gt lt bitfields gt 1 lt name gt register name to be displayed 2 lt address gt address of the register 3 lt size gt which may be B W or L for byte word or longword default is byte 4 lt absolute gt which can be set to A if the register is at an absolute address This is only relevant if the I O area address range moves about on the CPU in different modes In this case if a register is defined as absolute the base address offset calculation is not performed and the specified address is used directly 5 lt format gt format for
130. e that has a i j within the tutorial function and enter this address in the Address Lo edit box of the Address group box on the General page of the Breakpoint Event Properties dialog box In this example enter H 0000105c This address has thus been set Click the OK button to close the Breakpoint Event Properties dialog box rent Properties General Bus Area Signals Action Type Address Software C Dont Care Address Range Biza Address Lo H 0000105C Event Address Hi F o0000000 F Outside Range m Data Compare Direction I Compare F Use Mask C Bead Value i 3 nE C write CB yte Cc Word Mask mooo Either Figure 6 43 Breakpoint Event Properties Dialog Box after Setting an Event 151 RENESAS 4 The event that has been set is now displayed in the Event combo box of the Trace Events group box on the General page of the Trace Acquisition dialog box zi x Stop DelyedStopp r woe a Disabled gt Dj Crm ee Dee oaa Figure 6 44 Trace Acquisition Dialog Box Adding an Event 152 RENESAS 5 To enable the event condition that has been set uncheck the Free Trace check box on the General page This will add pages 1 to 4 to the Trace Acquisition dialog box Trace Acquisition 1 f st Demedseo 1 J2 19 le L F E Ej Figure 6 45 Trace Acquis
131. e the trigger output point by checking the check box on the left in the screen Trigger1 Enables the output of trigger channel 1 Trigger2 Enables the output of trigger channel 2 Trigger3 Enables the output of trigger channel 3 Trigger4 Enables the output of trigger channel 4 Address Sets the address condition of the channel 72 RENESAS Notes 1 When the condition set for the trigger output 1 to 4 is satisfied the high level signal will be output from the corresponding pin 1 to 4 of the external probe 2 EXT2 during reading or writing 2 Some emulators may not support the trigger point For details refer to section 8 Software Specifications Specific to This Product or the online help 5 7 9 Editing Event Points Handlings for settings other than software breakpoints event points and trigger points are common The following describes examples of such handling 5 7 10 Modifying Event Points Select an event point to be modified and choose Edit from the popup menu to open the dialog box that corresponds the event which allows the user to modify the event conditions The Edit menu is only available when one event point is selected 5 7 11 Enabling an Event Point Select an event point and choose Enable from the popup menu to enable the selected event point 5 7 12 Disabling an Event Point Select an event point and choose Disable from the popup menu to disable the selected event point When
132. ecify 0 These bits are always read as the specified values Table 8 26 Differences between the H8 3694 Group Products 2 Target Address Register Name Bits H FFE1 Port mode register 5 7 and 6 H FFF9 Module standby control register 1 7 c The description given in the hardware manual is Reserved However the description in the emulator manual is Always specify 0 These bits are always read as the specified values Table 8 27 Differences between the H8 3694 Group Products 3 Target Address Register Name Bits H FFE2 Port mode register 3 7to3 H FFF5 Interrupt enable register 2 7to5 H FFFA Module standby control register 2 7to0 H FFFB Module standby control register 3 0 d The hardware manual shows registers at the addresses given below For these locations however the applicable description in the emulator manual is Writing has no effect These bits are always read as undefined values because there are no registers at these locations of the emulator Table 8 28 Differences between the H8 3694 Group Products 4 Target Address Register Name Bits H F730 Low voltage detection control register 7to0 H F731 Low voltage detection control register 7to0 e The H8 3694 group has power on reset and optional low voltage detection circuit functions However the E6000 emulator does not support these functions 207 RENESAS Table 8 29 Differences between the Evaluation Chip and the
133. ection 2 Preparation before Use Emulator Preparation Unpack the emulator and prepare it for use as follows A WARNING READ the reference sections shaded in figure 2 1 before using the emulator product Incorrect operation will damage the user system and the emulator product The USER PROGRAM will be LOST Reference Unpack the emulator Component list Check the components against the component list Set up the emulator Insert the optional board Install the High performance Embedded Workshop Setup Section 3 Connect the interface cable Turn on the user system Section 4 Only when the user system is connected Turn on the emulator Activation Start the High performance Embedded Workshop Figure 2 1 Emulator Preparation Flowchart Installing Emulator s Software To install the High performance Embedded Workshop refer to the Setup Guide for the E6000 Emulator supplied together with the emulator RENESAS 2 3 Connecting to the User System To connect the 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 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 2 2 gives details of the connectors provided on the emulator lt PC interface cable connector User system N USB interfac
134. ed Source Source program Label Label information that corresponds to the address if defined Timestamp Difference from the timestamp value shown on the previous line only Difference available when a time stamp is acquired 194 RENESAS 8 1 12 Searching for a Trace Record While using the emulator the Trace Find dialog box has the following pages Table 8 12 Trace Find Dialog Box Pages Page Description General Sets the range for searching Address Sets an address condition Data Sets a data condition R W Selects the type of access cycles Area Selects the area being accessed not available when a time stamp is acquired Status Selects the status of a bus not available when a time stamp is acquired Probes Selects the status of four probe signals not available when a time stamp is acquired Timestamp Specify the time stamp value for bus cycles only available when a time stamp is acquired 8 1 13 Trace Filtering Function While using the emulator the Trace Filter dialog box has the following pages Table 8 13 Trace Filter Dialog Box Pages Page Description General Selects the range for filtering Address Sets address conditions Data Sets data conditions R W Selects the type of access cycles Area Selects the area being accessed not available when a time stamp is not acquired Status Sets the status of a bus not avai
135. ed in the Trace window the Label column s right side boundary has been moved to the left in the Trace window to show the function calls Address Instruction Data Area Status PowerON_Reset 09108 000400 MOV L H OOFFEFCO ER7 7a07 RD ROM PROG 1 1111 1 1111 _main 03582 001034 BSR tutorial 8 5502 RD ROM PROG 1 Wit i ni tutorial 03578 001038 MOV L ER3 ER7 0100 RD ROM PROG 1 iii i Jii Sample Sample 03558 002000 MOV L ER2 ER7 0100 RD ROM PROG 1 ia i a _sbrk 03369 001000 sT M L ER2 ER3 SP 0110 RD ROM PROG 1 D i n Sample sort long 01667 002068 S L ER2 ER3 SP 0110 RD ROM PROG 1 mii 3 1i change long 00469 0020d6 MOV ER3 ER7 0100 1 1 Figure 6 59 Trace Window Function Calls 5 To return the display in the Trace window to its previous state follow the procedure in 3 to display the Function Call Display dialog box Click the Disable button and then the OK button 6 Remove the event points that have been set and clear the trace information Clicking the right hand mouse button on the Breakpoints window displays a popup menu Select Delete All from this menu to remove all the event points that have been set Clicking the right hand mouse button on the Trace window displays a further popup menu Select Clear from this menu to clear the trace information 164 RENESAS 6 17 Stack Trace Function The emulator uses the information on the stack to displa
136. ed in the trace acquisition only available when a time stamp is acquired Source program Label information that corresponds to the address if defined Displays the difference from the timestamp value shown on the previous line only available when a time stamp is acquired Note Items other than PTR Address Instruction Data R W Area Status Probes Timestamp Source Label and Timestamp Difference vary according to the emulator in use For details refer to section 8 Software Specifications Specific to This Product or the online help It is possible to hide any column not necessary in the Trace window Selecting a column you want to hide from the popup menu displayed by clicking the right hand mouse button on the header column hides that column To display the hidden column select the column from the said popup menu again 75 RENESAS 5 8 3 Specifying Trace Acquisition Conditions The capacity of the trace buffer is limited When the buffer becomes full the oldest trace information is overwritten Setting the trace acquisition condition allows acquisition of useful trace information and effective use of the trace buffer The condition is enabled by the event point to control starting stopping and ending the trace acquisition For event points refer to section 5 7 Using the Event Points The trace acquisition condition is set in the Trace Acquisition dialog box that is displayed by selecting Ac
137. electing a memory range and then Copy from the popup menu opens the Copy dialog box figure 8 7 Select the EEPROM gt EEPROM toggle button in the Copy Direction group box Copy Direction EEPROM gt EEPROM Cancel EEPROM gt MEMORY C MEMORY gt EEPROM m Source Start ID Start address fo X Ho00001 Ed End ID End address fi 7 Ho000001 F r Destination ID Address E v H o0000000 Write mode Page v V Verify Figure 8 7 Copy Dialog Box EEPROM gt EEPROM The start slave address and end slave address as the source selected in the EEPROM window will be displayed in the Start ID and End ID combo boxes The source start address and end address will be displayed in the Start address and End address fields Checking the Verify check box enables copying while comparing the copy source and copy destination The copy unit can be selected in the Write mode combo box As the destination select the start slave address from the ID combo box and enter the start address value in the Address field of the Destination group box respectively Then click the OK button or press the Enter key This will close the dialog box and copy the memory block to the new address 199 RENESAS b From EEPROM to normal memory Selecting a memory range and then Copy from the popup menu opens the Copy dialog box figure 8 8 Select the EEPROM gt
138. ended Monitor Window Selecting View gt CPU gt Extended Monitor or clicking the Extended Monitor toolbar button E displays this window The interval of updating the display is approximately 100 ms during user program execution or 1 000 ms while breaking respectively 10 x Item Value User Standby Inactive User NMI Inactive User Reset Inactive User Wait Inactive User System Voltage OK User System VoltageZ Down User Cable Not Connected Running status Break Software Break ROM Write Done Target Mode 7 Target Clock No Clock Target Sub Clock No Clock Figure 5 12 Extended Monitor Window 51 RENESAS 5 4 2 Selecting Items to be Displayed Selecting Properties from the popup menu displays the Extended Monitor Configuration dialog box Extended Monitor Configuration 2x Update millsecond Bunning 100 Break 1000 Settings Cancel User Standby Inactive User NMI Inactive User Reset Inactive User Wait Inactive User System Voltage OK User System Voltage Down User Cable Not Connected Running status Break Ready Figure 5 13 Extended Monitor Configuration Dialog Box This dialog box allows the user to set the items to be displayed in the Extended Monitor window Note The items that can be set in this dialog box vary according to the emulator in use For details refer to section 8 Software Specifications Specific to This Product or the online help
139. equal to or exceeds the value set in User VCC Threshold on the General page of the Configuration Properties dialog box User Cable Displays whether or not the user cable is connected Running status Displays the address bus value in the MCU and the status of the CPU while the user program is running and the cause of a break while the user program is halted Break lt Cause of break gt Displays the cause of a break Address lt Address bus value gt Displays the address bus value during the user program execution While in subactive mode SubActive is displayed after the address bus value Status lt Status of the CPU gt Displays the status of the CPU PREFETCH CPU instruction prefetch cycles DATA CPU data access cycles SLEEP Sleep mode STANDBY Standby mode SUBSLEEP Subsleep mode ROM Write Displays whether or not the ROM has been written to during the user program execution Once the ROM has been written to the state is retained until the Configure Platform is set again Target Clock Displays whether or not there is a clock signal to be input from the user system Note In this emulator the update interval in the Extended Monitor window cannot be selected or changed 192 RENESAS 8 1 8 Signals to Indicate Bus States and Areas The following tables show examples of signals to indicate the bus states and areas that can be acquired by the emulator Table 8 10 Bus Sta
140. f the Memory window In this case the content of memory is read and then updated in each of the windows To prevent unnecessary reading of the memory content close the window displaying the memory content such as the Memory or Disassembly window or make the settings so that the content will not be updated The Monitor window or the Watch window that satisfies the conditions listed below displays the memory content Note that however opening hese windows does not prevent realtime operation because the method of updating the memory content in these windows is different Conditions 1 Registered symbols are only allocated to general purpose registers 2 Registered symbols are only allocated to the monitor range set by the Monitor function the mark R is colored in blue 3 Registered symbols are comprised of those with the conditions 1 and 2 listed above 183 RENESAS General page cont Break on access error When this box is checked a break the user program stops occurs if your program accesses an access prohibited area or writes to a write protected area Enable internal ROM area write When this box is checked writing to the internal ROM area is enabled For the result of writing see the Extended Monitor window Transit to active mode at break Checking this box causes the emulator to enter the active mode when a break occurs if the emulator has been in the subactive mode immed
141. f the sort function and that the sort function is called from the tutorial function To remove the software breakpoint double click the Editor column in the sort function again 166 RENESAS 6 18 Performance Measurement Function Performance measurement by the emulator is in the following modes e Time Of Specified Range Measurement e Start Point To End Point Measurement e Start Range To End Range Measurement e Access Count Of Specified Range Measurement e Called Count Of Specified Range Measurement In this tutorial we describe the Time Of Specified Range Measurement 6 18 1 Time Of Specified Range Measurement 1 Select Performance Analysis from the Performance submenu of the View menu to display the Select Performance Analysis Type dialog box Performance Analysis E6000 Performance Analysis Figure 6 62 Select Performance Analysis Type Dialog Box 2 Select E6000 Performance Analysis from the Performance Analysis combo box in the Select Performance Analysis Type dialog box and click the OK button The Performance Analysis window will be displayed Performance Rate RUN TIME Figure 6 63 Performance Analysis Window 167 RENESAS 3 Select the line of the Performance Analysis window that has 1 in its No column and click the right hand mouse button to display a popup menu Select Set from this popup menu to display the Performance An
142. for any problems caused by misuse abuse misapplication neglect improper handling installation repair or modifications of the emulator product without Renesas prior written consent or any problems caused by the user system All Rights Reserved This user s manual and emulator product are copyrighted and all rights are reserved by Renesas No part of this user s manual all or part may be reproduced or duplicated in any form in hard copy or machine readable form by any means available without Renesas prior written consent Other Important Things to Keep in Mind 1 Circuitry and other examples described herein are meant merely to indicate the characteristics and performance of Renesas semiconductor products Renesas assumes no responsibility for any intellectual property claims or other problems that may result from applications based on the examples described herein 2 No license is granted by implication or otherwise under any patents or other rights of any third party or Renesas Figures Some figures in this user s manual may show items different from your actual system Limited Anticipation of Danger Renesas cannot anticipate every possible circumstance that might involve a potential hazard The warnings in this user s manual and on the emulator product are therefore not all inclusive Therefore you must use the emulator product safely at your own risk Ul 7tENESAS SAFETY PAGE READ FIRST e READ this user s ma
143. formance Embedded Workshop product This manual does not intend to explain how to write C C or assembly language programs how to use any particular operating system or how best to tailor code for the individual devices These issues are left to the respective manuals Microsoft MS DOS Windows Windows NT are registered trademarks of Microsoft Corporation Visual SourceSafe is a trademark of Microsoft Corporation IBM is a registered trademark of International Business Machines Corporation All brand or product names used in this manual are trademarks or registered trademarks of their respective companies or organizations Document Conventions This manual uses the following typographic conventions Table 1 Typographic Conventions Convention Meaning Menu gt Menu Option Bold text with gt is used to indicate menu options for example File gt Save As FILENAME C Uppercase names are used to indicate filenames enter this string Used to indicate text that must be entered excluding the quotes Key Key Used to indicate required key presses For example CTRL N means press the CTRL key and then whilst holding the CTRL key down press the N key When this symbol is used it is always located in the left hand margin It indicates that the text to its immediate right is describing how to The how to symbol g do something Components Check all the components des
144. g accessed The selection is not available when a time stamp is acquired i x Status Probes IRQ 0 General Address Data RAV Area r Setting OROM RAM 140 16 1 0 8 CJEXT 16 EXT 8 RAM DTC Cancel Apply Figure 5 50 Trace Filter Dialog Box Area Page Don t care Detects no area condition when this box is checked Setting Detects the specified area condition not available when Don t care has been checked Note Available area conditions vary according to the emulator in use For details refer to section 5 7 4 Signals to Indicate Bus States and Areas 100 RENESAS 6 Status page Select the status of a bus The selection is not available when a time stamp is acquired x General Address Data Rew Area Status Probes Razo O OPROG DATA REFRESH DMAC DTC OTHER Figure 5 51 Trace Filter Dialog Box Status Page Don t care Detects no bus condition when this box is checked Setting Detects the specified bus condition not available when Don t care has been checked Note Available bus conditions vary according to the emulator in use For details refer to section 5 7 4 Signals to Indicate Bus States and Areas 101 RENESAS 7 Probes page Select the status of four probe signals The selection is not available when a time st
145. gger Fi Figure 6 30 Event Window Before Setting a Software Breakpoint e Click the Event window with the right hand mouse button and select Add from the popup menu e The Breakpoint Event Properties dialog box is displayed 140 RENESAS Address C Don t Care Address C Range AddressLo fH 00001082 Address Hi JHooo00000 F Outside Range r Data Compare Direction 4 J Compare J Use Mask Read Value po RAE Wale C wite Byte C Word Mask mooo Either Figure 6 31 Breakpoint Event Properties Dialog Box e Check the Software Break radio button in the Type group box e Use the Editor window to refer to the address on the line that has p_sam gt s0 a 0 within the tutorial function and enter this address in the Address Lo edit box of the Address group box In this example enter H 00001082 Note This dialog box differs according to the product For the items of each product refer to section 8 Software Specifications Specific to This Product or the online help e Click the OK button 141 RENESAS The software breakpoint that has been set is displayed in the Event window Bf X Type Program Enable PC 001082 tutorial cpp 47 Break GTP Breakpoint Event Triger Figure 6 32 Event Window Software Breakpoint Setting Note The items that can be displayed in this window differ depending on the produc
146. h is output during the read or write cycles when a trace condition 1 to 4 of the bus monitor function is satisfied The trigger output is available as user V level Note that however some products do not support the external probe 2 EXT2 RENESAS 2 6 6 Voltage Follower Circuit CAUTION 1 Do not connect the user system interface cable to the emulator without user system connection 2 Turn on the user system before starting up the emulator A voltage follower circuit is implemented on the 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 emulator and is derived from the 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 emulator the emulator will operate at a specified voltage and all clock frequencies will be available to the user If the user system interface cable is attached the emulator will match the voltage supplied to the user target in all cases i e even when the user V_ is below the operating voltage for the MCU You must be careful not to select an invalid clock frequency When the emulator is connected to the user system and the user system is turned off the voltage follower circuit output voltage level is 0 V In this case the emulator will not operate correctly You can set a user V threshold
147. hat of the MCU In the MCU specifying an unused area addresses by a range channel of an event point allows the program to stop when an illegal access occurs For how to set event points refer to section 5 15 7 Setting Event Points Table 8 57 Differences on the ROM RAM Capacity MCU E6000 Emulator Device Name ROM RAM ROM RAM H8 36911 4 kbytes 256 bytes 8 kbytes 512 bytes H8 36901 4 kbytes 256 bytes 8 kbytes 512 bytes H8 36900 2 kbytes 256 bytes 8 kbytes 512 bytes RENESAS 227 228 RENESAS Appendix A I O File Format High performance Embedded Workshop formats the IO window based on information it finds in an I O Register definition file When you select a debugging platform High performance Embedded Workshop will look for a lt device gt IO file corresponding to the selected device and load it if it exists This file is a formatted text file that describes the I O modules and the address and size of their registers You can edit this file with a text editor to add support for memory mapped registers or peripherals you may have specific to your application e g registers in an ASIC device mapped into the microcomputer s address space The following describes two formats of the lt device gt IO file that supports or not the bit field A l File format Bit Field Not Supported Each module name must be defined in the Modules definition section and the numbering of each module must be sequential Each
148. iately before the occurrence of a break This allows a break processing by the system clock User VCC Threshold Sets the voltage level for the user system Down will be displayed in User System Voltage of the Extended Monitor window when the actual user VCC of the target system is lower than the specified value User Signals When this box is checked the reset and NMI signals from the user system are enabled Driver Displays the E6000 driver that is currently installed Change driver in start up When this box is checked selection of a driver will be available next time the emulator is connected The MCUs selectable by the Device option and options that depend on the MCUs are listed below To emulate an MCU with a description in the Expansion Hardware column connect the correct expansion hardware 184 RENESAS Table 8 2 Environment for the H8 3664 E6000 Emulator CPU 300H Debugging Platform Device Option Clock Option SubClock Option Expansion Hardware Custom The MCU previously selected H8 3664 1 MHz 32 768 kHz None H8 3663 10 MHz Target H8 3662 16 MHz H8 3661 Target H8 3660 H8 3664F H8 3664N H8 3687 H8 3686 H8 3685 H8 3684 H8 3683 H8 3682 H8 3687F H8 3684F H8 3687N H8 3694 H8 3693 H8 3692 H8 3691 H8 3690 H8 3694F H8 3694N H8 36094 H8 36093 H8 36092 H8 36091 H8 36090 H8 36094F H8 36014F Not available H8 36012F H8 3672F H8 3670F H8 36912 H8 36911 H8
149. if an I O register is written to after a specified area of RAM has been accessed 20 RENESAS 3 2 2 Range Channels The range channels can be set up to be triggered on a combination of one or more of the following e Address or address range inside the range e Read or Write or either e Data with an optional mask e MCU access type e g DMAC and instruction prefetch e MCU access area e g on chip ROM and on chip RAM e A signal state on one or more of the four external probes e Delay cycles after an event The complex event system can be used to control the following functions of the emulator 3 2 3 Breaks Use breaks to interrupt program execution when a specified event or sequence of events is activated For example you can set up a break to halt execution when the program reads from one address and then writes to another address The break can also optionally be delayed by up to 65535 bus cycles 3 2 4 Timing You can set up two events and then measure the execution time of the program between the activation of the first event and second event 21 RENESAS 3 3 Hardware Features 3 3 1 Memory The emulator provides standard emulation memory as the substitute for on chip ROM memory and on chip RAM memory When a device type or device mode without an on chip ROM or on chip RAM is selected the standard emulation memory is disabled When debugging with only the emulator and the user program and data are stored in an ex
150. iicetttittt iret ttttr rir r ttt rrr cert ett riers ret retires gy Download modules O Tutorial abs E Dependencies ifdef cplusplus extern ah endif void abort void ifdet _ cplusplus 4 endif include sort h include lt stdlib h gt void tutorial void void main void k while 1 tutorial The memory map information have been initialized The trace memory has been initialized User Reset signal is Inactive User NMI signal is Inactive User Wait signal is Inactive User Standby signal is Inactive Connection to the emulator has been completed successfully Connected Figure 2 17 High performance Embedded Workshop Window 16 RENESAS 2 8 Communication Problems The following message box will be displayed when the emulator power is turned off or the PC interface cable is not correctly connected 00 Emulator l xi 4 verification error has occurred during the transfer of a firmware File This is probably because the emulator has been turned off or another emulator has been connected Figure 2 18 Error Message For information on other errors refer to the Setup Guide for the E6000 Emulator 2 9 Other Methods for Activating the Emulator Refer to section 4 Preparation before Use 2 10 Uninstalling the Emulator s Software For details on uninstallation refer to the Setup Guide for the E6000 Emulator 17 RENESAS RENESAS Section 3 E6000 E
151. in version xxx x is missing From the Following project s there is no compatible toolchain available Figure 2 14 Message Box 6 The E6000 Driver Details dialog box is displayed This dialog box is only displayed at the first initiation When only one of interface drivers is selected this dialog box is not displayed E6000 Driver Details Driver Emulator PCI Card Driver x r Details hterface PCI v Channel Emulator PCI Card Interface z Configuration Configure J Change driver in start up Figure 2 15 E6000 Driver Details Dialog Box e Inthe Driver combo box select the driver to connect the emulator e Interface displays the name of the interface to be connected e Click the Close button RENESAS 7 Set up the emulator During this process the following dialog box is displayed Connecting Figure 2 16 Connecting Dialog Box 15 RENESAS 8 When Connected is displayed in the Output window of the High performance Embedded Workshop the emulator initiation is completed Project Build Debug Setup Tools Window Help ix 3 Tutorial JHRURRRRATAAAEERRREATAERR ERAT TATERRR ERA TAATRERRRAATAAEERRRRERER ERR RE EEE E E C source file Z k E dbscte 4 R FILE Tutorial cpp GZA DESCRIPTION Main Program wf Bes xf This file is generated by Hitachi Project Generator Ver 2 4 f be Vertttereectittittt
152. in the range Vcc max 0 V by using the emulator configuration dialog box If the user V_ drops below this threshold User System Voltage in the Extended Monitor window will display Down otherwise OK is displayed User Vcc level User Vcc threshold E6000 Vcc level The user system interface cable is not connected Figure 2 10 Voltage Level Monitoring Example for Vcc 3 3 V 11 RENESAS 2 7 System Check When the software is executed use the procedure below to check that the emulator is connected correctly Here use the workspace for a tutorial provided on the product Refer to section 2 9 Other Methods for Activating the Emulator for the other activating method to create a new project or use a workspace for the High performance Embedded Workshop of the old version Connect the emulator to the host computer Connect the user system interface cable to the connector of the emulator Turn on the emulator a ade E Activate the High performance Embedded Workshop from the Programs in the Start menu figure 2 11 fa Accessories gt E Documents gt Startup gt E3 Settings dia Renesas iEn High performance Embedded Workshop gt fa Tools Ez Search A Renesas AutoUpdate ge Help Renesas Tools HomePage F aun Gp Shut Down High performance Embe 10p E High performance Embedded Workshop Help E High performance Embedded Workshop Read Me
153. ing Records from the Acquired Information Use the filtering function to extract the records you need from the acquired trace information The filtering function allows the trace information acquired by hardware to be filtered by software Unlike the settings made in the Trace Acquisition dialog box for acquiring trace information by conditions changing the settings for filtering several times to filter the acquired trace information allows easy extraction of necessary information which is useful for analysis of data The content of the trace buffer will not be changed even when the filtering function is used Acquiring useful information as much as possible by the Trace Acquisition settings improves the efficiency in analysis of data because the capacity of the trace buffer is limited Use the filtering function in the Trace Filter dialog box To open the Trace Filter dialog box select Filter from the popup menu The Trace Filter dialog box has the following pages Table 5 6 Trace Filter Dialog Box Pages Page Description General Selects the range for filtering Address Sets address conditions Data Sets data conditions R W Selects the type of access cycles Area Selects the area being accessed not available when a time stamp is acquired Status Sets the status of a bus not available when a time stamp is acquired Probes Selects the states of four probe signals not available when a ti
154. ion to halting the user program Several event points can be used to set more complex conditions Note Event points acquire the data test conditions and execute an action such as halting the user program by the hardware circuit of the emulator Therefore a delay of several cycles will occur from the satisfaction of the condition to the execution of an action 5 7 3 Event Detection System In addition to the 4 range channels the emulator also has 8 event channels The event channels have more functions such as sequencing or counting than the range channels Event Channels Ch1 to Ch8 The emulator has 8 event channels The event channel can be defined as a combination of one or more of the followings e An address or an address range e Outside of an address range e A read a write or either e Data with a mask specification e Bus state e Area e The value of four external probe signals e The number of times the event has occurred e The number of delay cycles after the event has occurred 60 RENESAS A maximum of eight points can be used as a combination in a sequence The program is activated or halted by an occurrence of the previous event in each sequence Range Channels Ch9 to Ch12 The emulator has 4 range channels The range channel can be defined as a combination of one or more of the followings e An address or an address range e Outside of an address range e A read a write or either e Data with a
155. is Always specify 0 These bits are always read as the specified values Table 8 48 Differences between the H8 36902 H8 36912 Group Products 1 Target Address Register Name Bits H FFEO Port mode register 1 6 5 3 2 and O H FFE1 Port mode register 5 7 6 4to0 H FFF1 System control register 2 6 1 and O H FFF2 Interrupt edge select register 1 7 2 and 1 H FFF3 Interrupt edge select register 2 4to0 H FFF4 Interrupt enable register 1 6 2 and 1 H FFF5 Interrupt enable register 2 7 and 6 H FFF9 Module standby control register 1 7 and 0 H FFFA Module standby control register 2 7 to5 3to0 b The hardware manual shows registers at the addresses given below For these locations however the applicable description in the emulator manual is Writing has no effect These bits are always read as undefined values because there are no registers at these locations of the emulator Table 8 49 Differences between the H8 36902 H8 36912 Group Products 2 Target Address Register Name Bits H F730 Low voltage detection control register 7to0 H F731 Low voltage detection status register 7to0O H F734 Clock control status register 7to0 H F735 RC control register 7to0 H F736 RC trimming data protect register 7to0 H F737 RC trimming data register 7to0 H FFAE Sampling mode register 7to0 c The H8 36902 H8 36912 group has power on reset low voltage detection on chip oscill
156. ither 5 8 15 Extracting Function Calls from the Acquired Trace Information To extract function calls from the acquired trace information select Function Call from the popup menu The Function Call Display dialog box will be displayed Function Call Display Setting Enable to display trace information with function call only C Disable OK Cancel Figure 5 57 Function Call Display Dialog Box Setting Selects whether or not to extract function calls Enable Extracts function calls Disable Does not extract function calls When Enable is selected only the cycles that include function calls are extracted for display from the acquired trace information The content of the trace buffer is not changed by extraction of function calls Using this function for the result of the free trace or the trace information that includes function calls allows the user to know the order of function calls 107 RENESAS 5 9 Analyzing Performance Use the performance analysis function to measure the rate of execution time The performance analysis function does not affect the realtime operation because it measures the rate of execution time in the specified range by using the circuit for measurement of hardware performance included in the emulator Select either of the following five modes according to the purpose of measurement Table 5 7 Mode Available Measurement Modes Description
157. ition Dialog Box Pages Added 153 RENESAS 6 Select page 1 and click the Range radio button in the Conditions group box This will display the Range Event combo box and the Edit button Trace Acquisition Figure 6 46 Trace Acquisition Dialog Box Displaying Page 1 154 RENESAS 7 Select the event you have registered from the Range Event combo box The event is now enabled Click the OK button to complete the trace setting Trace Acquisition General Stop DelayedStop 1 2 Ja 4 r Conditions Disabled Point to Point Range C Event Range Event Edit 9 R H 105C address Figure 6 47 Trace Acquisition Dialog Box Setting Completed 8 Make the setting such that the break occurs after the instruction at the address on the line that has a i j within the tutorial function H 0000105C in this example has been executed five times for details on this refer to section 6 15 2 Breaking Execution at Event Points 9 Select Reset Go from the Debug menu Processing stops when the break condition is satisfied and the Trace window then displays the following content Address Instruction Status Clock Probes IRQ5 0 00004 00105 EXTS L ER4 17f4 RD ROM PROG 1 1111 1 111111 ali j 00003 00105 EXTS L ER4 17f4 RD ROM PROG 1 1111 1 111111 ali j 00002 0010S EXTS L ER4 17f4 RD ROM PROG 1 1111 1 111111 ali
158. ition when the conditions for starting and ending are satisfied respectively Selecting Cyclic allows a continuous acquisition of trace information that can be acquired with the specified condition 83 RENESAS 5 8 4 Searching for a Trace Record Use the Trace Find dialog box to search for a trace record To open this dialog box choose Find from the popup menu The Trace Find dialog box has the following options Table 5 5 Trace Find Dialog Box Pages Page Description General Sets the range for searching Address Sets an address condition Data Sets a data condition R W Selects the type of access cycles Area Selects the area being accessed not available when a time stamp is acquired Status Selects the status of a bus not available when a time stamp is acquired Probes Selects the status of four probe signals not available when a time stamp is acquired IRQ7 0 Selects the status of eight probe input signals not available when a time stamp is acquired Timestamp Specify the time stamp value for bus cycles only available when a time stamp is acquired Note Items other than General Address Data R W Area Status Probes and Timestamp vary according to the emulator in use For details refer to section 8 Software Specifications Specific to This Product or the online help Clicking the OK button after setting conditions in those pages stores
159. lable when a time stamp is not acquired Probes Selects the states of four probe signals not available when a time stamp is not acquired Timestamp Specifies the time stamp value for bus cycles only available when a time stamp is acquired RENESAS 195 8 1 14 Reading from and Writing to the EEPROM With this emulator users can view and write to memory areas in the EEPROM This section describes how to look at memory areas and how to fill and move a memory block 1 Viewing a Memory Area in the EEPROM To look at a memory area in the EEPROM choose View gt CPU gt EEPROM or click the EEPROM toolbar button to open the EEPROM window This will open the Properties dialog box shown in figure 8 3 E eme Page x Column count ff Display value as ANSI character gt Figure 8 3 Properties Dialog Box Select the range of slave addresses of the EEPROM you wish to display from the ID combo box A1 displays all memory areas in the EEPROM incorporated in the emulator Select mode to write to memory from the Write mode combo box Then select the number of columns to be displayed in a row from the Count column combo box and the format for display of data from the Display value as combo box Click the OK button or press the Enter key and the dialog box closes and the EEPROM window opens The display can be scrolled within the range of the selected slave addresses 1
160. le name is the end of the emulator settings Click the Finish button to display the Summary dialog box Pressing the OK button activates the High performance Embedded Workshop 5 After the High performance Embedded Workshop has been activated the emulator is automatically connected The message Connected is displayed on the Debug tab in the Output window to indicate the completion of connection 29 RENESAS 4 1 2 Creating a New Workspace Toolchain Used 1 In the Welcome dialog box that is displayed when the High performance Embedded Workshop is activated select Create a new project workspace radio button and click the OK button Figure 4 6 Welcome Dialog Box 30 RENESAS 2 Creation of a new workspace is started The following dialog box is displayed Workspace Name E Assembly Application sampe ET D emonstration Eain q Empty Application B Import Makefile sample Library Directory DH ew3 sample Browse CPU family H85 H87300 7 Tool chain Hitachi H85 H8 300 Standard hal Properties Figure 4 7 New Project Workspace Dialog Box Workspace Name edit box Enter the new workspace name Here enter test Project Name edit box Enter the project name When the project name is the same as the workspace name it needs not be entered Directory edit box Enter the directory name in which the workspace wi
161. led is selected Checking this box enables the free trace mode When the free trace mode is enabled Starts acquiring the data immediately after program execution has been started Only the trace halt condition is available The range trace is unavailable and four range trace pages 1 to 4 become disabled When the free trace mode is disabled Sets the start and halt conditions of trace acquisition Event Add Edit Sequence ete All Sets event points to be used as trace acquisition conditions Lists the event points to be used as trace acquisition conditions Adds a new event point Changes the setting for the selected event point Configures an event sequence for the event point being used as a trace acquisition condition To set up the sequence an event must have been set Deletes the selected event point Deletes all event points Notes 1 The bus cycles that can be specified by the Suppress option vary according to the emulator in use 2 For details refer to section 5 7 4 Signals to Indicate Bus States and Areas The trace buffer is used for the time stamp information and some of the trace information Therefore when the time stamp is acquired it is impossible to acquire the trace information other than PTR Address Instruction Data R W Source Label Timestamp and Timestamp Difference If an event that is used for the range trace or trace stop function is deleted that fu
162. les Disabled 7 I Refresh Cycles IV Free Trace r Trace Events Event fg R H FFEF80 range to H FFEFA write 7 Edit Delete Del All Sequence Figure 6 50 Trace Acquisition Dialog Box Adding an Event 6 To enable time stamping select 125ns from the Clock combo box of the Time Stamp group box x Trace Acq T General stop Delayed Stop r Suppress Time Stamp IV Free Trace T DMAC Cycles Clock T DIC Cycles I Refresh Cycles m Trace Events Event fg R H FFEF80 range to H FFEFA write 7 Add Edit Delete Del All Sequence Figure 6 51 Trace Acquisition Dialog Box Time Stamping is Available 157 RENESAS 7 To enable the event condition that has been set uncheck the Free Trace check box on the General page This will add pages 1 to 4 see figure 6 45 Trace Acquisition dialog box 8 Select page 1 and click the Range radio button in the Conditions group box This will display the Range Event combo box and the Edit button see figure 6 46 Trace Acquisition dialog box 9 Click the Range Event combo box to select the event you have registered The event is now enabled Click the OK button to complete the trace setting Trace Acquisition Figure 6 52 Trace Acquisition Dialog Box Setting Completed 10 Make the setting such that the break occur
163. ll be created Click the Browse button to select a directory CPU family combo box Select the target CPU family Tool chain combo box Select the target toolchain name when using the toolchain Otherwise select None Project type list box Select the project type to be used Notes 1 When Demonstration is selected in the emulator note the followings The Demonstration is a program for the simulator attached to the H8S H8 300 compiler package To use the generated source file delete the Printf statement in the source file 31 RENESAS 3 Make the required setting for the toolchain When the setting has been completed the following dialog box is displayed 2x r Targets yyyy E6000 Emulator GPU 2000 xoxox E6000 Emulator CPU 2600 Target type fa Targets 7 lt Back Finish Cancel Figure 4 8 New Project Step 7 Dialog Box The target platform for the session file used when the High performance Embedded Workshop is activated must be selected here Check the box against the target platform and then click the Next button For details on the session file refer to the High performance Embedded Workshop user s manual 32 RENESAS 4 Set the configuration file name New Proje Target name J Emulator GPU 2 Configuration name Debug _yyyy E6000 Emu lator_GP m Detail options Value Modify lt Back Finish Cancel
164. lt of tracing in acquisition of time stamp information Difference m Select 2 line First PTR 32764 Second PTR fo Timestamp difference information Timestamp Difference 0000h 00min 000s 0O3ms 897us 875ns Get Difference Clear u x Select 2 line First PTR Second PTR Timestamp Difference Get Difference Clear OK Figure 5 55 Timestamp Difference Dialog Box Select trace records to calculate the time stamp difference Specifies the first pointer to measure the difference The pointer of the line selected on the Trace window is displayed by default Specifies the second pointer to measure the difference Displays the results of calculation Calculates the difference between the specified two points and display its result in the Timestamp Difference list Clears all the results in the Timestamp Difference list Closes the dialog box All the results in the Timestamp Difference list are cleared 105 RENESAS 5 8 14 Analyzing Statistical Information Choose Statistic from the popup menu to open the Statistic dialog box and analyze statistical information under the specified conditions rm Statistic Analysis C Range ltem lt None gt 7 Start End Result Statistic Analysis Default Range Item Start End Set New Result Clear Close
165. ltime operation is disabled because the CPU stops operation This method is only available for accessing the internal ROM internal RAM and emulation memory The area used here or this method may not be available depending on the emulator in use For details refer to section 8 Software Specifications Specific to This Product or Enable read and write on the fly on the General page of the Configuration Properties dialog box in the online help 3 Temporarily stops the user program and reads the memory contents Note The realtime operation is disabled because the user program is stopped temporarily This method is only available for accessing the areas internal I O DTCRAM and user memory other than those in item 2 mentioned above It is possible to recognize the method for updating the value during user program execution according to the color of the R mark Blue outline R The variable s address is within the range that has been set for the monitoring function and the data is readable by using the monitoring function Blue R An updated value of the data at this location has been read by the monitoring function Black outline R The variable s address is outside the range that has been set for the monitoring function and the data is not readable by using the monitoring function Black R A value has been updated by reading the normal data Notes 1 This function can be set per variable or per element or body for struct
166. ltime operation is retained The Trace window displays the content of the trace buffer which records up to 32 768 bus cycles from the last program run and is always updated 5 8 1 Opening the Trace Window To open the Trace window choose View gt Code gt Trace or click the Trace toolbar button 5 8 2 Acquiring Trace Information When the emulator does not set the acquisition condition of the trace information all bus cycles are acquired by default without any condition free trace mode In the free trace mode trace acquisition is started with the execution of the user program and stopped by halting the user program The acquired trace information is displayed in the Trace window e eee iojxj g IB T un PTR Address Instruction Data R W Area Status Clock Probes WMI IRO5 0 Timestamp Timesi ifference Source Label 1111 1122 1111 1111 002008 M L Bees ttet ftet76 DATA DATA 2 00200e BNE t PROG 1111 00200e suB t Boos PROS 111 i PROG un i Mw Bene PROS 1111 i ISR Pros un i PROG nu 001 sS L ee PROS nn ope ffef70 DATA nu Figure 5 29 Trace Window This window displays the following trace information items PTR Cycle number in the trace buffer When the most recent record is record 0 earlier record numbers go backwards 1 2 If a delay count has been set the cycle number where the trace stop condition has been satisfied is re
167. mance Embedded Workshop as a load module 44 RENESAS 5 2 2 Viewing the Source Code To view a source file s code double click on its icon in the file tree or right click on the source file and select the Open option on the pop up menu The Editor window is displayed w tutoria 001038 001044 void tutorial void long a 10 long J int i class Sample p sam 001046 00104e p_sam new Sample for i O i lt 10 i 001050 j randi 001058 ifij lt 0 00105a 3 j 00105 gt ali j p_sam gt sort a p_sam gt change a 001070 00107a 001082 00108a 001096 0010a2 0010ae 0010ba 0010c6 0010d2 0010de 0010ea o010f6 o0010fc p_sam gt sO0 a 0 p_sam gt s1l a 1 p_sam gt s2 a 2 p_sam gt s3 a 3 p_sam gt s4 a 4 p_sam gt s5 a 5 p_sam gt s6 a 6 p_sam gt s7 a 7 p_sam gt s6 a 8 p_sam gt s9 a 9 delete p_ sam Figure 5 6 Editor Window In this window the following items are shown on the left as information on lines 1st column Line Number column A line number for the source file 2nd column Source Address column Address information for the source line 3rd column Event column Event information break 4th column EXT 2 Trigger column EXT 2 Trigger information Sth column S W Breakpoints column PC bookmark and breakpoint information The text area is displayed in the right p
168. me stamp is acquired IRQ7 0 Selects the states of eight IRQ input signals not available when a time stamp is acquired Timestamp Specifies the time stamp value for bus cycles only available when a time stamp is acquired Note Items other than General Address Data R W Area Status Probes and Timestamp vary according to the emulator in use For details refer to section 8 Software Specifications Specific to This Product or the online help Set filtering conditions and then press the OK button This starts filtering according to the conditions Clicking the Cancel button closes the Trace Filter dialog box which holds the settings at the time when the dialog box was opened In filtering only the trace information that satisfies one or more filtering conditions set in the above pages will be displayed in the Trace window Filtering conditions can be changed several times to analyze data because the content of the trace buffer is not changed by filtering 95 RENESAS 1 General page Set the range for filtering Trace Filter x Status Probes IRQ7 0 General Address Data RAV Aea J Enable Filter nit care other pages em I Not designation Trace display range Start PTR End PTR Don t care other pages Enable Filter No Trace display range Start PTR End PTR Figure 5 46 Trace Filter Dialog Box Gener
169. ment may not be reproduced or duplicated in any form in whole or in part without prior written approval from Renesas 13 Please contact a Renesas sales office if you have any questions regarding the information contained in this document Renesas semiconductor products or if you have any other inquiries IMPORTANT INFORMATION READ FIRST e READ this user s manual before using this emulator product KEEP the user s manual handy for future reference Do not attempt to use the emulator product until you fully understand its mechanism Emulator Product Throughout this document the term emulator product shall be defined as the following products produced only by Renesas Technology Corp excluding all subsidiary products e Emulator station e User system interface cables e PC interface board e Optional SIMM memory module e Optional board The user system or a host computer is not included in this definition Purpose of the Emulator Product This emulator product is a software and hardware development tool for systems employing the Renesas microcomputer hereinafter referred to as the MCU This emulator product must only be used for the above purpose Limited Applications This emulator product is not authorized for use in MEDICAL atomic energy aeronautical or space technology applications without consent of the appropriate officer of a Renesas sales company Such use includes but is not limited to use in life support
170. monitor window Options Sets monitor conditions Address Sets the start address for monitoring Size Sets the range for monitoring Access Sets the access size to be displayed in the monitor window Auto Refresh at rate ms Sets the interval for acquisition by monitoring 500 ms at minimum Reading the Initial Value Selects reading of the values in the monitored area when the monitor window is opened Color Sets the method to update monitoring and the attribute of colors Change Indicator Selects how to display the values that have changed during monitoring available when Reading the Initial Value has been selected No change No color change Change Color is changed according to the Foreground and Background options Gray Those data with values that have not been changed are displayed in gray Appear A value is only displayed after changed Foreground Sets the color used for display available when Change has been selected Background Sets the background color available when Change has been selected Mayfly A check in this box selects restoration of the color of those data which have not been updated in a specified interval to the color selected in the Background option The specified interval is the interval for monitor acquisition available when Change Gray or Appear has been selected Detail Sets the items specific to the emulator Not used with this emulator
171. mory and Emulator emulation memory attributes can be modified e On chip Read write Cannot be changed e On chip Read only Cannot be changed e On chip Guarded Cannot be changed e User Read write Cannot be selected when the single chip mode is selected e User Read only Cannot be selected when the single chip mode is selected e User Guarded e Emulator Read write e Emulator Read only e Emulator Guarded 43 RENESAS 5 2 Downloading a Program This section describes how to download a program and view it as source code or assembly language mnemonics Note After a break occurs the High performance Embedded Workshop displays the location of the program counter PC on the editor In most cases for example if an Elf Dwarf2 based project is moved from its original path at the build the source file may not be automatically found In this case the High performance Embedded Workshop will open a source file browser dialog box to allow you to manually locate the file This path will then be used to update any other source files in this debug project 5 2 1 Downloading a Program A load module to be debugged must be downloaded To download a program select the load module from Debug gt Download or select Download from the popup menu opened by clicking the right hand mouse button on the load module in Download modules of the Workspace window Note Before downloading a program it must be registered to the High perfor
172. mpty Ch12 R Empty 4 i Breakpoint h Event A Trigger 7 Figure 5 21 Event Window Event Sheet Select Add or the event point displayed in this window and then select Edit from the popup menu to display the Breakpoint Event Properties dialog box The conditions for the event point are set on the General Bus Area Signals and Action pages The search condition for the event point is set by multiple conditions set on these pages Notes 1 Channel 8 has the trigger output function When the condition on channel 8 is satisfied the low level signal will be output from the external probe 1 EXT1 for a bus cycle 2 When the event point is used as the condition for acquiring the trace information select Trace Acquisition from the popup menu For the trace function refer to section 5 8 Viewing Trace Information 3 Ifa condition that is unavailable for a range channel is set in editing of the range channels Ch9 to Ch12 the selected channel is automatically replaced by an unused event channel Ch1 to Ch8 Table 5 3 Conditions Unavailable for a Range Channel Condition Related Options Selecting outside the Outside Range on the General page specified address range Selecting the start or Start Timer and Stop Timer on the Action page end of the execution time measurement Specifying the count Required number of event occurrences on the Action page when an event occurs twice
173. mulator Functions 3 1 Debugging Features 3 1 1 Breakpoints The emulator provides a comprehensive range of alternative types of breakpoints to give you the maximum flexibility in debugging applications and user system Hardware Break Conditions Up to 12 break conditions can be defined using the event and range channels in the complex event system CES For more information about the hardware break conditions see section 3 2 Complex Event System CES Software Breakpoints Up to 256 software breakpoints can be defined These software breakpoints are set by replacing the user instruction by a BREAK instruction In target ROM only one breakpoint on chip break can be set 3 1 2 Trace The 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 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
174. n the user system interface cable is not connected the read value is 1 due to pull up resistors In the emulator accesses to the following registers for controlling the flash memory are invalid e Flash memory control register 1 FLMCR1 H FF90 e Flash memory control register 2 FLMCR2 H FF91 e Flash memory power control register FLPWCR H FF92 e Block register 1 EBR1 H FF93 e Flash memory enable register FENR H FF9B Note The addresses indicate the lower 16 bits 1 Warnings that Apply to H8 3664 Group Programming a The description given in the hardware manual is Initial value 1 Reserved These bits are always read as 1 However the description in the emulator manual is Always specify 0 These bits are always read as the specified values Table 8 14 Differences between the H8 3664 Group Products 1 Target Address Register Name Bits H FFEO Port mode register 1 3 and 2 b The description given in the hardware manual is Initial value 0 Reserved These bits are always read as 0 However the description in the emulator manual is Always specify 0 These bits are always read as the specified values Table 8 15 Differences between the H8 3664 Group Products 2 Target Address Register Name Bits H FFE1 Port mode register 5 7 and6 H FFF9 Module standby control register 1 7 c The description given in the hardware manual is Reserved However the description
175. nction becomes disabled 77 RENESAS 2 Stop page Sets trace stop conditions It is possible to set trace stop conditions with and without delay with both allowed simultaneously Figure 5 31 Trace Acquisition Dialog Box Stop Page Stop Without Delay Defines a trace stop condition Enable Checking this box enables a trace stop Events Lists the event points where trace acquisition conditions have been set If the box that corresponds to an event point is checked trace acquisition will be stopped when that event is satisfied only available when Enable has been selected 78 RENESAS 3 Delayed Stop page Sets trace stop conditions It is possible to set trace stop conditions with and without delay with both allowed simultaneously Figure 5 32 Trace Acquisition Dialog Box Delayed Stop Page Stop With Delay Defines a trace stop condition Enable Checking this box enables a trace stop Delay Count Sets the delay count in bus cycles range 1 to 65535 This function allows you to acquire a number of trace records after any of the specified events occur Events Lists the event points where trace acquisition conditions have been set If the box that corresponds to an event point is checked trace acquisition will be stopped when that event is satisfied only available when Enable has been selected 79 RENESAS 4 1 to 4 pages Sets a range trace Thi
176. nd of the current function Step Launches the Step Program dialog box allowing the user to modify the settings for stepping Step Auto Mode Steps only one source line when the Source window is active When the Disassembly window is active stepping is executed in a unit of assembly instructions Assembly Executes stepping in a unit of assembly instructions Source Steps only one source line Halt Program Esc Stops the execution of the user program Initialize Disconnects the debugging platform and connects it again Connect Connects the debugging platform Disconnect Disconnects the debugging platform Save Memory Saves the specified memory area data to a file Verify Memory Verifies file contents against memory contents Configure Overlay Selects the target section group when the overlay function is used Download Modules Downloads the object program Unload Modules Unloads the object program RENESAS 235 Table B 1 GUI Menus cont Menu Setup Toolbar Option Shortcut Button Customize Remarks Customize the High performance Embedded Workshop application Options Sets option of the High performance Embedded Workshop application Format Views Configure fonts colors keywords and so on for the window Radix Hexadecimal 16 Uses a hexadecimal for displaying
177. nitor circuit Figure 7 4 V and TEST System Interface Circuit 176 RENESAS 7 3 Differences between MCU and Emulator When the emulator is turned on or initialized or the system is reset there are some differences in the initial values in some of the general registers between the MCU and the emulator as shown in table 7 2 Table 7 2 Initial Value Differences between MCU and Emulator Status Register E6000 Emulator MCU Power on PC Reset vector value Reset vector value initialized ERO to ER6 Undefined Undefined ER7 SP H 10 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 ERO to ER6 Undefined Undefined ER7 SP H 10 Undefined CCR The mask is set to 1 and the other bits are undefined 7 3 1 A D Converter and D A Converter The mask is set to 1 and the other bits are undefined Due to the use of a user system interface cable there is a slight degradation in the A D and D A conversion than that quoted in the Hardware Manual for the MCU being emulated RENESAS 177 7 4 Handling Serial EEPROM Board AWARNING Always switch OFF the emulator and user system before connecting or disconnecting the serial EEPROM board and make sure that the pin 1 on both sides are correctly aligned Failure to do so will result in a FIRE HAZARD and will damage the user
178. nt Time Count 00h OOmin 00s O00ms 000us 000ns Run Time Count 00h OOmin 00s OOlms 098us 625ns Ly Memory A Platform Events Figure 6 34 Displayed Contents of the Status Window Software Break Note The items that can be displayed in this window differ depending on the product For the items that can be displayed refer to section 8 Software Specifications Specific to This Product or the online help 144 RENESAS 6 15 2 Breaking Execution at Event Points Setting up of an event point on event channel 1 Ch1 such that a break is triggered when the event point s conditions have been satisfied five times is explained as an example of the use of event points e Select Eventpoints from the Code submenu of the View menu The Event window is displayed e The breakpoint that has been previously set must be deleted Click the Breakpoints window with the right hand mouse button and select Delete All from the popup menu to delete all the breakpoints that have been set e Click the Event tab Up to 12 event points eight event channels and four range channels can be set up as independent conditions In this example we are setting the condition for event channel 1 a I X Type Chi E Empty Ch2 E Empty Ch3 E Empty ch4 E Empty Ch5 E Empty Ch6 E Empty Ch E Empty Ch8 E Empty Ch9 R Empty Chi0 R Empty Chi1 R Empty Chiz R Empty 4 R Breakpoint Event A Trigger Figu
179. nt of the expansion monitor 33 EXMONITOR_SET EXMS Selects whether or not to display the items in the expansion monitor 237 RENESAS Table C 1 High performance Embedded Workshop Commands cont No Command Name Abbreviation Function 34 EXMONITOR_ EXMSR Sets the time to update the expansion monitor during SETRATE emulation or a break 35 FILE_LOAD FL Loads an object program file 36 FILE_SAVE FS Saves memory to a file 37 FILE_UNLOAD FU Unloads a file 38 FILE_VERIFY FV Verifies file contents against memory 39 GENERATE_MAKE_ GM Creates a makefile to be built outside the High FILE performance Embedded Workshop 40 GO GO Executes user program 41 GO_RESET GR Executes user program from reset vector 42 GO_TILL GT Executes user program until temporary breakpoint 43 HALT HA Halts the user program 44 HELP HE Displays the syntax of a command 45 INITIALIZE IN Initializes the debugging platform 46 LOG LO Controls command output logging 47 MAP_DISPLAY MA Displays memory mapping 48 MAP_SET MS Sets memory mapping 49 MEMORY_COMPARE MC Compares memory contents 50 MEMORY_DISPLAY MD Displays memory contents 51 MEMORY_EDIT ME Modifies memory contents 52 MEMORY FILL MF Modifies the content of a memory area by specifying data 53 MEMORY FIND MI Searches for data within the memory range 54 MEMORY_MOVE MV Moves a block
180. nterface cable Figure 2 5 Plugging User System Interface Cable Body to Emulator 2 3 3 Plugging the User System Interface Cable Body into the Cable Head Plug the cable body into the cable head on the user system RENESAS 2 4 Power Supply 2 4 1 AC Adapter The AC adapter supplied with the emulator must be used at all times 2 4 2 Polarity Figure 2 6 shows the polarity of the power supply plug 5 V outside GND inside Figure 2 6 Polarity of Power Supply Plug 2 4 3 Power Supply Monitor Circuit The emulator incorporates a power supply monitor circuit which only lights the green LED when a voltage higher than 4 75 V is supplied If this LED is not illuminated you should check the emulator voltage level An input voltage less than 4 75 V could indicate that enough current cannot be supplied to the emulator Note Use the provided AC adapter for the emulator 2 5 SIMM Memory Module E6000 emulator s optional SIMM memory modules are available which provide emulation memory for user code without needing a user system The optional SIMM memory modules are available in different memory size but all are partitioned into four equal banks These banks can be relocated on page boundaries anywhere in the user area Note that however some products do not support the SIMM memory module 2 5 1 Optional SIMM Memory Module Configuration The configuration of the optional SIMM memory module is controlled by the mapping
181. nual before using this emulator product KEEP the user s manual handy for future reference Do not attempt to use the emulator product until you fully understand its mechanism DEFINITION OF SIGNAL WORDS 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 indicates a potentially hazardous situation which if not avoided may result in minor or moderate injury CAUTION CAUTION used without the safety alert symbol indicates a potentially hazardous situation which if not avoided may result in property damage NOTE emphasizes essential information lt RENESAS AWARNING Observe the precautions listed below Failure to do so will result in a FIRE HAZARD and will damage the user system and the emulator product or will result in PERSONAL INJURY The USER PROGRAM will be LOST 1 Do not repair or remodel the emulator product by yourself for electric shock prevention and quality assurance 2 Always switch OFF the E6000 emulator and user system before connecting or disconnecting any CABLES or PARTS 3 Alwa
182. o Monitor window and removes the check mark at the left of the list To display the Monitor window again select the hidden the Monitor window J Monitor Setting Shift Ctrl E V monitor2 H 0OFFBODS monitor H QOOFFEF80 Windows Select Figure 5 16 Monitor Setting List 56 RENESAS 5 5 7 Managing the Monitor Window Selecting Display gt CPU gt Monitor gt Windows Select displays the Windows Select dialog box In this window the current monitoring condition is checked and the new monitoring condition is added edited and deleted in succession Selecting multiple monitoring conditions enables a temporary stop of update hiding and deletion Address v monitor2 H OOFFBOD8 v monitori H OOFFEF80 Edit Lock Refresh Hide Remove Close Figure 5 17 Selection in the Monitor Window Add Adds a new monitoring condition Edit Changes the settings of the selected Monitor window disabled when selecting multiple items Lock Refresh Unlock Refresh Automatically updates or stops updating the display of the selected Monitor window Hide UnHide Displays or hides the selected Monitor window Remove Removes the selected monitoring conditions Close Closes this dialog box 57 RENESAS 5 6 Viewing the Variables This section describes how you can look at variables in the source program 5 6 1 Watch Wind
183. ode window 48 RENESAS 5 2 4 Modifying the Assembly Language Code You can modify the assembly language code by double clicking on the instruction that you want to change The Assembler dialog box will be opened Address Code Mnemonic 00001040 79370028 SUB W H 0028 R7 OK Cancel Figure 5 9 Assembler Dialog Box The address instruction code and mnemonic are displayed Enter the new instruction or edit the old instruction in the Mnemonics field Pressing the Enter key will replace the memory content with the new instruction and move on to the next instruction Clicking the OK button will replace the memory content with the new instruction and close the dialog box Clicking the Cancel button or pressing the Esc key will close the dialog box without modifying the memory contents Note The assembly language code being displayed is the current memory content If the memory contents are changed the Assembler dialog box and the Disassembly window will show the new assembly language code but the source file displayed in the Editor window will be unchanged This is the same even if the source file contains an assembler 5 2 5 Viewing a Specific Address When you are viewing your program in the Disassembly window you may wish to look at another area of your program s code Rather than scrolling through a lot of code in the program you can go directly to a specific address Select Set Address fr
184. of the MCUs that have the H8 300H CPU as the core without any expansion I O board in use H8 36037 E6000 Emulator CPU 300H For emulation of the MCUs that have the H8 300H CPU as the core with the expansion I O board HS36037E1061H in use H8 36024 E6000 Emulator CPU 300H For emulation of the MCUs that have the H8 300H CPU as the core with the expansion I O board HS36024E1061H in use H8 36109 E6000 Emulator CPU 300H For emulation of the MCUs that have the H8 300H CPU as the core with the expansion I O board HS36109EI061H in use RENESAS 181 8 1 3 Configuration Properties Dialog Box General Page Items that can be set in this dialog box are listed below Figure 8 1 Configuration Properties Dialog Box General Page 182 RENESAS General page Device Selects the MCU to be emulated To use an MCU not included in the list select Custom to specify the functions required for this MCU See the hardware manual for details Clock Selects the speed of the MCU s clock SubClock Selects the speed of the MCU s sub clock Note that selection is not available when emulating the H8 3672 group H8 36014 group H8 36024 group H8 36902 group H8 36912 group or H8 36064 group Timer Resolution Selects the resolution of the timer for use in execution time measurement The value 20 ns 125 ns 250 ns 500 ns 1 us 2 us 4 us 8 us or 16 us can be selected
185. of the reset point is satisfied no event point is reset even if the condition of the reset event is satisfied again When multiple reset events exist on one event point the event point is reset when the condition of one of reset events is satisfied 71 RENESAS 5 7 8 Setting Trigger Points The trigger point is an event to output a trigger when the specified address has been accessed Up to four trigger points can be set by using the trigger outputs four channels on the bus monitoring circuit of the emulator The settings of the trigger point are displayed and modified on the Trigger sheet CM ox Bf XK e Type EXT 2 1 Enable Address 001082 tutorial cpp 47 Trigger output EXT 2 2 Enable Address 001096 tutorial cpp 49 Trigger output EXT 2 3 Enable Address 002072 sort cpp 30 Trigger output EXT 2 4 Enable Address 002072 sort cpp 30 Trigger output 4 Breakpoint Event A Trigger Figure 5 27 Event Window Trigger Sheet Selecting Add or the event point and Edit from the popup menu in this window displays the Set Address For Trigger dialog box For Trigger E 2 x Address i H OOFFDEEO M Triggeri n M Trigg HOOFFD404 M Trigger Ho00011A0 M Triggers HOOFFEFAC Figure 5 28 Set Address For Trigger Dialog Box This dialog box allows the user to specify the address to be accessed as the trigger output condition during the user program execution Enable or disabl
186. om the popup menu and the dialog box shown in figure 5 10 is displayed Set Addr o _main Cancel Figure 5 10 Set Address Dialog Box Enter the address in the Address edit box and either click on the OK button or press the Enter key A label name can also be specified as the address The Disassembly window will be updated to show the code at the new address When an overloaded function or a class name is entered the Select Function dialog box opens for you to select a function 5 2 6 Viewing the Current Program Counter Address Wherever you can enter an address or value into the High performance Embedded Workshop you can also enter an expression If you enter a register name prefixed by the character the contents of that register will be used as the value in the expression Therefore if you open the Set Address dialog box and enter the expression pc the Editor or Disassembly window will display the current PC address It also allows the offset of the current PC to be displayed by entering an expression with the PC register plus an offset e g PC 0x100 49 RENESAS 5 3 Viewing the Current Status Choose View gt CPU gt Status or click the View Status toolbar button to open the Status window and see the current status of the debugging platform Target Device Configuration 00000000 OOOLFFFF Internal OOFFBOOO OOFFEFBF Internal OOFFFS00 OOFFFF3F Internal OOFFFF60 OOFFFF
187. or external guarded access prohibited write protected or read write in a byte unit Add Displays the Edit Memory Mapping dialog box allowing the user to modify the address range and attributes of a memory map Modify Displays the Edit Memory Mapping dialog box allowing the user to modify the address range and attributes of a memory map Reset Resets the map memory to its default settings Close Closes the dialog box The memory configuration of the device being emulated is displayed by the Memory sheet in the Status window Note Some emulators may not support the emulation memory or the memory mapping function For details refer to section 8 Software Specifications Specific to This Product or the online help 42 RENESAS 5 1 5 Changing the Memory Map Setting Clicking the Add button on the Memory Mapping dialog box or clicking the Modify button after selecting the information on the memory map setting you want to change opens the Edit Memory Mapping dialog box lapping 2 x Memory Mapping Erom Cancel Io Setting On Chip Read write Ad Figure 5 5 Edit Memory Mapping Dialog Box Use this dialog box to change the address range and attributes of a memory map From Enter the start address of the map range To Enter the end address of the map range Setting Enter the memory map setting The choices given are listed below The User external me
188. ory contents Therefore the user program stops for a maximum of 2 ms in reading 256 bytes 25 MHz emulation memory 22 RENESAS 3 3 2 Clocks The clock can be specified as emulator internal clock or target clock The frequencies that can be specified as the emulator internal clock depend on the MCU For details refer to section 8 Software Specifications Specific to This Product 3 3 3 Probes External probes 1 and 2 EXT1 and EXT2 can be connected to the emulator to make use of signals on the user system for break or trace The signal for external probe 1 can be set as the condition for the event detection system depending on the low or high level Since the signal for external probe 2 outputs high level when the trigger setting 1 to 4 condition is matched in the bus monitor function the signal can be used for the trigger condition for such as an oscilloscope 3 4 Stack Trace Function The emulator uses the stack s information to display the name of the calling function for a function at which the program counter is currently pointing This function can be used only when the load module that has the Dwarf2 type debugging information is loaded For the usage of this function refer to section 6 17 Stack Trace Function 3 5 Online Help An online help explains the usage of each function or the command syntax that can be entered from the command line window Select Emulator Help from the Help menu to view the emulator help
189. ow Performance No Name Condition 0 10 20 30 Rate RUN TIME MAX MIN TIME Count 1 PAL Range H 00002068 H 000020D4 19 OOh OOmin 00s 000ms 352us 480ns 3 HHHHHHHHH 2 3 4 5 6 7 8 BE o w Figure 5 59 Performance Analysis Window This window displays the rate of execution time in the area selected by the user during the last program run in percentages histogram or numerical values It is possible to hide any column not necessary in the Performance Analysis window Selecting a column you want to hide from the popup menu displayed by clicking the right hand mouse button on the header column hides that column To display the hidden column select the column from the said popup menu again 110 RENESAS 5 9 2 Setting Conditions for Measurement Conditions for measurement can be displayed and changed in the Performance Analysis window Select a point where a condition is to be set and then select Set from the popup menu to display the Performance Analysis Properties dialog box Select either from the following five modes as the condition by the Measurement Method option Table 5 9 Conditions for Measurement Measurement Method Measurement Method Option Time Of Specified Range Measurement Start Point To End Point Measurement Start Range To End Range Measurement Access Count Of Specified Range Measurement Called Count Of Specified Range Meas
190. ow You can view any value in the Watch window a FFEFSO ilong 10 R 0 H 0000794b FFEF80 long R 1 H 000059e2 FFEF84 long R 2 H O0000446b FFEF88 long R 3 H OO0041c6 FFEF8C long R 4 H OO003f54 FFEF90 long R 5 H 00002781 FFEF94 long R 6 H OOO00lcfb FFEF98 long R 7 H 0000167e FFEF9C long R 8 H 000015fb FFEFAO long R 9 H OOOOOff6 FFEFA4 long 4 H OOffef80 ERS long H 000a R4 lint A gt i Watcha 4 watcha watchs A watcha Figure 5 18 Watch Window The R mark shows that the value of the variable can be updated during user program execution For updating of the content of the variable that has been registered in the Watch window there are the following three methods 1 Use the Monitor function without halting the user program The read write signal of the MCU is set as a trigger and holds the address bus and data bus values to update the value of the variable Note Although the realtime operation is retained the size and number points to be monitored are limited For the Monitor function refer to section 5 5 Displaying Memory Contents in Realtime 58 RENESAS 2 Read the memory content directly from the High performance Embedded Workshop to update the values without halting the user program since the bus mastership is owned by the emulator Note While the emulator reserves the bus mastership the rea
191. p Common display and operability Supported host interfaces The PCI interface PC card PCMCIA interface USB interface or LAN interface can be used for connecting to the host computer Realtime emulation Realtime emulation of the user system is enabled at the maximum operating frequency of the CPU Excellent operability Using the High performance Embedded Workshop enables user program debugging using a pointing device such as a mouse The High performance Embedded Workshop enables high speed downloading of load module files Various debugging functions Various break and trace functions enable efficient debugging Breakpoints and break conditions can be set by the specific window trace information can be displayed on a window and command line functions can be used Memory access during emulation During emulation the memory contents can be read and modified RENESAS 1 2 Warnings SD Gu CAUTION READ the following warnings before using the emulator product Incorrect operation will damage the user system and the emulator product The USER PROGRAM will be LOST Check all components against the component list after unpacking the emulator Never place heavy objects on the casing Do not place the emulator in places where e The temperature becomes high such as in direct sunlight or near a heater For details refer to section 1 3 Environmental Conditions e The temperature or humidity changes greatly
192. pdated according to the auto update interval Select Lock Refresh from the popup menu of the Monitor window to stop the update of display The characters in the address section are displayed in black and the update of display is stopped Selecting Lock Refresh again from the popup menu cancels the stopped state 5 5 4 Deleting the Monitor Settings Selecting Close from the popup menu of the Monitor window to be deleted closes the Monitor window and deletes the monitor settings 5 5 5 Monitoring Variables Using the Watch window refers to the value of any variables When the address of the variable registered in the Watch window exists within the monitoring range that has been set by the Monitor function the value of the variable can be updated and displayed This function allows checking the content of a variable without affecting the realtime operation 55 RENESAS 5 5 6 Hiding the Monitor Window When using the Monitor function to monitor the value of a variable from the Watch window hide the Monitor window for the effective use of the screen The current monitoring information is listed as the submenu when selecting Display gt CPU gt Monitor The list consists of the Monitor window name and the address to start monitoring When the left of the list is checked the Monitor window is being displayed Selecting items of the Monitor window you want to hide from the monitor setting list displays n
193. points can be set in Start Range To End Range Measurement Access Count Of Specified Range Measurement or Called Count Of Specified Range Measurement because two sequential points are used for setting a condition in these modes 108 RENESAS Table 5 8 Mode Settings for Measurement Point Page 1 2 3 4 5 6 7 8 Time Of Specified Range o o o o o oO o o Measurement Start Point To End Point o o Oo oO O oO 0 o Measurement Start Range To End o o o m o Range Measurement Access Count Of o o o m o Specified Range Measurement Called Count Of o o o o Specified Range Measurement Note O Available Not available Note Only one point is used in Time Of Specified Range Measurement and Start Point To End Point Measurement while two sequential points are used in Start Range To End Range Measurement Access Count Of Specified Range Measurement and Called Count Of Specified Range Measurement The conditions that have been set will be canceled when switching these modes of different types 109 RENESAS 5 9 1 Opening the Performance Analysis Window Choose View gt Performance gt Performance Analysis or click the PA toolbar button amp to open the Select Performance Analysis Type dialog box 10 Performance Figure 5 58 Select Performance Analysis Type Window Select E6000 Performance Analysis and then click the OK button to open the Performance Analysis wind
194. quisition from the popup menu The Trace Acquisition dialog box has the following pages Table 5 4 Trace Acquisition Dialog Box Pages Page Item General Sets trace acquisition conditions Stop Sets trace stop conditions without a delay Delayed Stop Sets trace stop conditions with a delay 1 to 4 Sets the range trace only available when the free trace mode is disabled 1 General page Sets trace acquisition conditions ce Acquisition 2 x General Stop DelayedStop 1 2 3 4 Suppress r Time Stamp I Free Trace Clock I DIC Cycles Disabled x T Refresh Cycles m Trace Events Event cai address x d Edit Sequence Delete Del All Cancel Figure 5 30 Trace Acquisition Dialog Box General Page 76 RENESAS Suppress Time Stamp Free Trace Trace Events Acquires no trace information of the specified types of bus cycle Clock De De Sets a condition for time stamping Select either from Disabled 125 ns 250 ns 500 ns 1 us 2 us 4 us 8 us 16 us or 100 us as the resolution for time stamping A time stamp has a 32 bit counter At 125 ns the maximum time that can be measured is about 9 minutes and at 100 us the maximum time is about 5 days When the counter overflows its content will be cleared to continue counting No time stamp information will be acquired when Disab
195. r However since the E6000 emulator does not incorporate this function software debugging on the on chip oscillator and the general input output function of port J cannot be performed in the emulator 216 RENESAS Table 8 47 Differences between the Evaluation Chip and the H8 36109 Registers Address Register Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 H F730 H F731 H F734 H F738 H F739 H F73A H F73C H F73D H8 3660 Evalua FF7SE tion chip H F73F H FFEE PCRC PCRC7 PCRC6 PCRC5 PCRC4 PCRC3 PCRC2 PCRC1 PCRCO H FFEF H FFF5 IENR2 IENTB3 IENTB2 IENTB1 H FFF7 IRR2 IRRTB3 IENTB2 IENTB1 H FFF9 MSTCR1 MSTS4 MSTIIC MSTS3 MSTAD MSTWD MSTTW MSTTV MSTTA H FFFA MSTCR2 MSTS3_2 MSTTB3 MSTTB2 MSTTB1 MSTTX MSTTZ MSTPWM H FFFB MSTCR3 MSTS4_2 H FFFC TSCR IICRST IICX Address Register Bit7 Bit 6 Bit5 Bit 4 Bit 3 Bit 2 Bit 0 pompen oor H8 36109 RENESAS 217 9 Warnings that Apply to H8 36902 H8 36912 Group Programming a The description given in the hardware manual is Initial value 0 Reserved These bits are always read as 0 However the description in the emulator manual
196. r an MCU not included in the list of MCUs The items are adopted by the device last selected Custom Device page ROM Specify the internal ROM area size RAM Specify the internal RAM area size Pin Specify the product package Modules Check this box to validate on chip peripherals Note The items that can be set in this dialog box vary according to the emulator in use Some emulators may not support the Custom Device function For details refer to section 8 Software Specifications Specific to This Product or the online help 40 RENESAS 5 1 3 Selecting the Interface to be Connected Checking Change driver in start up on the Configuration Properties dialog box allows a selection of the driver next time the emulator is connected E6000 Driver Details Driver More m Details Interface fuse interface x Channel E6000 USB Interface x M Configuration Configure I Change driver in start up Figure 5 3 Driver Details Dialog Box Driver Selects the driver that connects the High performance Embedded Workshop and the emulator Details Sets the details of the driver being connected Interface The name of the interface to be connected This should not be changed in this emulator Channel Channel for the selected interface This should not be changed in this emulator Configuration Driver setting Configure A dialog box for set
197. race acquisition condition 69 RENESAS Required number of event occurrences Allows a 16 bit pass count to be set The event must occur the specified number of times before the action is taken The range of values is D 0 to D 65 535 Enable Sequencing Allows the event to take part in a sequence of events setting this requires the event to use an event detector Configure Sequence Displays the Event Sequencing dialog box to allow the event sequencing to be configured only available when Enable Sequencing has been selected 5 Event Sequencing dialog box This dialog box allows the user to define which events are triggered by other events If this dialog box is accessed directly or indirectly from Trace Acquisition only those events assigned to the trace subsystem are displayed If accessed from the Eventpoint window only the breakpoint or timer events are shown Event Sequencing 2j x s Armed By T No occurrence of C Is Reset By The following events Cancel P 1 E H1038 address J 2 E H 105C address count D 10 J 3 E H 10F6 address count D 2 I 4 E H 10FC address J undefined or unavail F undefined or unavailable J undefined or unavai J undefined or unay Figure 5 26 Event Sequencing Dialog Box Event Selects an event point to be set Is Armed By Arms the selected event Is Reset By Resets the selected event No occurrence of Arms an e
198. re 6 35 Event Window Event Channel 1 Ch1 e Select the line for Ch1 in the Event window Double click on this line that is highlighted e The Breakpoint Event Properties dialog box is displayed e Make the following settings in the boxes on the General page Select the Event radio button in the Type group box Select the Address radio button in the Address group box Then use the Editor window to refer to the address on the line that has a i j within the tutorial function and enter this address in the Address Lo edit box In this example enter H 0000105c e Enter D 5 as the number of times the event condition is to be satisfied in the Required number of event occurrences edit box on the Action page 145 RENESAS vent Propi General Bus Area Signals Action m Type Address Software Don tCare Address C Range Break Address Lo H 0000105C Address Hi Froo000000 F Outside Range m Data Compare Direction J Compare F Use Mask C Bead Value i she C Write Byte Word Mask mooo Either Figure 6 36 General Page Breakpoint Event Properties Dialog Box e Click the OK button The Event window is displayed as shown below a s X Type Condition Chi E Enable Address 00105 tutorial cpp 42 address count D S Break Ch2 E Empty Ch3 E Empty ch4 E Empty Ch5 E Empty Ch6 E Empty Ch E Empty ch8 E
199. rement Performance n Measurement Method PAT Called Count Of Specified Range Me Range Name PA1 Range Call Range Start Address H o0000000 E Start Address H o0000000 E End Address H o0000000 End Address fH oooo0000 Common Settings of Performance PA1 8 Address Control Mode PC Settings Time Measurement Unit 160ns Cancel Figure 5 65 Called Count Of Specified Range Measurement Settings Range Name The name of the range to be measured Range The range for the Called Count Of Specified Range Measurement Start Address Start address End Address End address Call Range The range for the Called Count Of Specified Range Measurement As the call range specify the start and end addresses of the selected subroutine Start Address Start address End Address End address Measures the number of times the range specified as the call range is called from the range specified by the start and end addresses The execution time in the specified range can be measured with Time Of Specified Range Measurement mode As the call range specify the start and end addresses of the selected subroutine 117 RENESAS 5 9 3 Selecting the Address Detection Mode and Resolution In measurement of hardware performance there are two types of address detection modes prefetch address detection mode and PC address detection mode Select the appropriate address detection mode according to the measu
200. rement mode in use The resolution can also be selected here To select an address detection mode and resolution click the Settings button on the Performance Analysis Properties dialog box The Common Settings of Performance PA1 8 dialog box will be displayed Common ings of Performance PA1 8 Address Control Mode Frefetch O O x Time Measurement Unit C Cancel Figure 5 66 Common Settings of Performance PA1 8 Dialog Box Address Control Mode Select the method to detect addresses for the rate of execution time PC PC address detection mode Prefetch Prefetch address detection mode Time Measurement Unit Select the timer resolution to be used for measurement from 160ns 40ns 20ns or Target The timer for execution time measurement has a 40 bit counter At 20 ns the maximum time that can be measured is about six hours and at 160 us the maximum time is about two days When the counter overflows Timer Overflow is displayed as the result of measurement When Target is selected the counter is incremented by an input clock The result of measurement is displayed as 10 digits in hexadecimal Select the prefetch address detection mode in Access Count Of Specified Range Measurement and PC address detection mode in other measurement modes Otherwise the result of the measurement will be incorrect 5 9 4 Starting Performance Data Acquisition Executing the user program clears the result of previous meas
201. rent Program Counter Address 5 3 Viewing the Current Status 5 4 Reading and Displaying the Emulator Information Regularly 5 4 1 Opening the Extended Monitor Window 5 4 2 Selecting Items to be Displayed 5 5 Displaying Memory Contents in Realtime 5 5 1 Opening the Monitor Window 5 5 2 Changing the Monitor Settings 5 5 3 Temporarily Stopping Update of the Monitor 5 5 4 Deleting the Monitor Settings 5 5 5 Monitoring Variables 5 5 6 Hiding the Monitor Window 5 5 7 Managing the Monitor Window 5 6 Viewing the Variables 5 6 1 Watch Window 5 7 Using the Event Points 5 7 1 Software Breakpoints 5 7 2 Event Points 5 7 3 Event Detection System 5 7 4 Signals to Indicate Bus States and Areas 5 7 5 Opening the Event Window 5 7 6 Setting Software Breakpoints 5 7 7 Setting Event Points 5 7 8 Setting Trigger Points 5 7 9 Editing Event Points 5 7 10 Modifying Event Points 5 7 11 Enabling an Event Point RENESAS 5 8 5 9 S712 Disabling an Event Fonte arenae E 73 5 7 13 Deleting an Event Point 5 7 14 Deleting All Event Points 5 7 15 Viewing the Source Line for an Event Point Viewing the Trace Information 5 8 1 Opening the Trace Window 5 8 2 Acquiring Trace Information 5 8 3 Specifying Trace Acquisition Conditions 5 8 4 Searching for a Trace Record 5 8 5 Clearing the Trace Information 5 8
202. ress Register Name Bits H FFE1 Port mode register 5 7 and 6 H FFF9 Module standby control register 1 7 c The description given in the hardware manual is Reserved However the description in the emulator manual is Always specify 0 These bits are always read as the specified values Table 8 59 Differences between the H8 36094 Group Products 3 Target Address Register Name Bits HFFE2 Port mode register 3 7to3 H FFF5 Interrupt enable register 2 7to5 H FFFA Module standby control register 2 7to0 H FFFB Module standby control register 3 0 d The hardware manual shows registers at the addresses given below For these locations however the applicable description in the emulator manual is Writing has no effect These bits are always read as undefined values because there are no registers at these locations of the emulator Table 8 60 Differences between the H8 36094 Group Products 4 Target Address Register Name Bits H F730 Low voltage detection control register 7to0 H F731 Low voltage detection control register 7to0 H F734 Clock control status register 7to0 H F735 RC control register 7to0 H F736 RC trimming data protect register 7to0 H F737 RC trimming data register 7to0 223 RENESAS e Although the hardware manual says that an initial value is 1 the compact emulator s initial value is 0 These bits must always be set to 1 when counting up the watchdog timer
203. ry When the label name is specified the user can view the memory contents that the label has been registered in the Memory window For example to view the memory contents corresponding to _main in byte size e Select Memory from the CPU submenu of the View menu or click the View Memory toolbar button E to open the Display Address dialog box Enter _main in the Display Address edit box Display Address _main al Scroll Start Address oo00000 7 Scroll End Address FFFFFFF al cee Figure 6 12 Display Address Dialog Box e Click the OK button The Memory window showing the selected area of memory is displayed mory _main F ASCII 001034 main 55 02 40 Fe 01 00 6D F3 01 20 6D F4 79 37 OO 28 U G 001044 OF F3 1A 80 SE OO 20 OO OF 86 19 44 SE OO 11 EE 001054 i7 FO OF 85 4c O2 17 BS 17 F4 OF cO 10 70 OA BO 001064 01 00 69 85 OB 54 79 24 00 OA 4D EO OF BS OF D1 001074 OF EO SE OO 20 68 OF Di OF EO SE OO 20 D6 O1 QO 001084 69 50 01 OO 69 0 01 OO 6F 50 OO 04 01 OO 6F ED 001094 00 04 01 00 6F 50 00 08 01 OO 6F EO OO 08 01 00 001044 6F SO 00 Oc 01 00 6f z0 OO Oc 01 00 6f 50 00 10 001054 01 00 6F E0 OO 10 01 OO 6F SO OO 14 01 OO GF 0 0010c4 00 14 O1 00 6F 50 00 18 01 OO 6F EO OO 18 01 00 001004 6F 50 00 ic 01 00 6F EHO OO ic 01 00 6F SO OO 20 0010 4 01 00 6F E0 OO 20 01 00 GF 55 00 24 01 00 GF ES 0010F4 00 24 OF 820 SE 00 11 Z4 79 17 OO 28 O1 20 6D 76 001104 0
204. s Acquired by the Emulator Area Trace Display Status Description On chip ROM ROM ROM On chip RAM RAM RAM On chip I O 16bit 1 0 16 16 bit I O On chip I O 8bit 1 0 8 8 bit I O External I O 16bit EXT 16 16 bit EXT external External I O 8bit EXT 8 8 bit EXT external DTC RAM RAM DTC DTCRAM Note The signals to indicate the bus states and areas vary according to the emulator in use For details refer to section 8 Software Specifications Specific to This Product or the online help 5 7 5 Opening the Event Window Select View gt Code gt Eventpoints or click the Eventpoints toolbar button to open the Event window The Event window has the following three sheets Breakpoint sheet Displays the settings made for software breakpoints It is also possible to set modify and cancel software breakpoints Event sheet Displays or sets event points Trigger sheet Displays or sets trigger points 5 7 6 Setting Software Breakpoints It is possible to display modify and add software breakpoints on the Breakpoint sheet Ti cx a 7 X e Type Program Enable PC 001082 tutorial cpp 47 Break TIP Breakpoint A Event A Trigger Fi Figure 5 19 Event Window Breakpoint Sheet 62 RENESAS Select Add or the software breakpoint displayed in this window and then select Edit from the popup menu to display the Breakpoint Event Properties dialog box
205. s after the instruction at the address on the line that has p_sam gt s0 a 0 within the tutorial function H 00001082 in this example for details on this refer to section 6 15 1 Software Break Function 158 RENESAS 11 Select Reset Go from the Debug menu Processing stops when the break condition is satisfied and the Trace window then displays the following content Address R W Al S C P N I Timestamp Timestamp Difference 00012 ffef8e 00011 ffef90 00010 ffef92 00009 ffef94 00008 ffef96 00007 ffef98 00006 ffef9a 00005 ffef9c 00004 ffef9e 00003 ffefa0 00002 ffefa2 WR WR WR WR WR WR WR WR WR O0000h000min000s00 1ms08 1us875ns 0000h000min000s001ms084us125ns 0000h000min000s00 1ms08 4us250ns O000h000min000s00 1ms08 6us37Sns O0000h000min000s001ms08 6us500ns 0000h000min000s00 1ms088us750ns O0000h000min000s00 1ms088us87Sns O000h000min000s001ms091us000ns O000h000min000s001ms091us125ns 0000h000min000s00 1ms093 us375ns 0000h000min000s00 1ms093us37Sns O0000h000min000s000ms000us000ns O000h000min000s000ms002 us2 50ns O0000h000min000s000ms000us12 5ns O0000h000min000s000ms002 us125ns O0000h000min000s000ms000us125ns O000h000min000s000ms002 us2 50ns 0000h000min000s000ms000us12 5ns O0000h000min000s000ms002 usi25ns O0000h000min000s000ms000us12 5ns O000h000min000s000ms002 us2 50ns O0000h000min000s000ms000us000ns O000h000min000s000ms002 us2 50ns Figure 6 53 Trace
206. s is only available when the free trace mode is disabled Select either of the following four modes Disabled Point to Point Range and Event e Disabled Disables a range trace Trace Acquisition Figure 5 33 Range Trace Setting Disabled 80 RENESAS e Point to Point Acquires trace information in the specified range Acquisition General Stop Delayed Stop 1 2 3 4 m Conditions Disabled Point to Point C Range C Event Start Address JH 0000107E Stop ddress fH 00007084 M Cyclic Cancel Figure 5 34 Range Trace Setting Point to Point Start Address Address where trace acquisition starts Stop Address Address where trace acquisition stops Cyclic When this box is checked the event sequencing is configured so that the events reset themselves which causes tracing to be restarted when the start event occurs after the stop event Sets the event points that are required to start or stop trace acquisition when the start or end address is accessed respectively Point to Point mode is an easy method to set up the event mode The event to start or sop trace acquisition is an access to a single address Select Cyclic to continue acquisition of the trace information only in the specified address range Note This function automatically configures a sequence of event points Note however that an unexpected result may arise In such cases mo
207. s the specified values Table 8 45 Differences between the H8 36109 Group Products 2 Target Address Register Name Bits H FFFB 0 c The hardware manual shows registers at the addresses given below For these locations however the applicable description in the emulator manual is Writing has no effect These bits are always read as undefined values because there are no registers at these locations of the emulator Table 8 46 Differences between the H8 36109 Group Products 3 Target Address Register Name Bits H F731 Low voltage detection status register 7to0O H F734 Clock control status register 7to0 H F738 RC control register 7to0 H F739 RC trimming data protect register 7to0 H F73A RC trimming data register 7to0 H F73C nterrupt control registers A 7to0 H F73D nterrupt control registers B 7to0 H F73E nterrupt control registers C 7to0 H F73F nterrupt control registers D 7to0 H FF90 Flash memory control register 1 7to0 H FF91 Flash memory control register 2 7to0 H FF92 Flash memory power control register 7to0 H FF93 Erase block register 1 7to0 H FF9B Flash memory enable register 7to0 H FFEF System control register 3 7to0 d The H8 36109 group has power on reset and optional low voltage detection circuit functions However the E6000 emulator does not support these functions e The product chip incorporates an on chip oscillato
208. ss range The execution count is incremented every time the program passes the end address range 115 RENESAS 4 Access Count Of Specified Range Measurement Range Name PA1 Range Access Area Range Start Address H o0000000 fl Start Address H o0000000 a End Address fHroooooo00 End Address fH oooo0000 Access Type M Don t Care 7 DMAC IT Befresh IT CPU Prefetch IT CPU Dats 7 DIC Common Settings of Performance P41 8 Address Control Mode Prefetch Settings Time Measurement Unit 160ns cava Figure 5 64 Access Count Of Specified Range Measurement Settings Range Name The name of the range to be measured Range The range for the Access Count Of Specified Range Measurement Start Address Start address End Address End address Access Area Range The access range for the Access Count Of Specified Range Measurement Start Address Start address End Address End address Access Type The bus cycle on the access range to be measured Measures the number of times the range specified as the access range is accessed from the range specified by the start and end addresses The execution count in the range is measured with Time Of Specified Range Measurement mode Note Available bus cycle conditions vary according to the emulator in use For details refer to section 5 7 4 Signals to Indicate Bus States and Areas 116 RENESAS 5 Called Count Of Specified Range Measu
209. st practical debugging applications the program or hardware errors that you are trying to debug occur under a certain restricted set of circumstances For example a hardware error may only occur after a specific area of memory has been accessed Tracking down such problems using simple software breakpoints can be very time consuming The 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 emulator 3 2 1 Event Channels The event channels allow you to detect when a specified event has occurred The event can be defined as a combination of one or more of the followings e Address or address range e Address outside range e Read or Write or either e Data with an optional mask e MCU access type e g DMAC and instruction prefetch e MCU access area e g on chip ROM and on chip RAM e A signal state on one or more of the four external probes e A certain number of times that the event must be triggered e Delay cycles after an event Up to eight events can be combined into a sequence in which each event is either activated or deactivated by the occurrence of the previous event in the sequence For example you can cause a break
210. system and the emulator product or will result in PERSONAL INJURY The USER PROGRAM will be LOST To remove and fasten the emulator cover take the following steps m a oe Remove four screws from the sides of the emulator station Pull the emulator cover upward and remove it Install the serial EEPROM board in the serial EEPROM socket M1 of the emulator Close the emulator cover and fasten it with the four screws E6000 casing 178 Figure 7 5 Removing and Fastening the Emulator Cover This emulator includes a serial EEPROM board HS3664PWB65H for evaluation of the H8 3664N on chip EEPROM Figure 7 6 shows the installation of this serial EEPROM board Align pin 1 with pin 1 of serial EEPROM socket M1 on the emulator The serial EEPROM board must be installed to evaluate the H8 3664N When evaluating any other MCU remove the serial EEPROM board The slave address code of the serial EEPROM board is always H 00 Note that the slave address code can be rewritten to H 00 to H 07 however the slave address of this serial EEPROM board must always be H 00 initial value of H8 3664N on chip EEPROM The EEPROM can be programmed up to 100 000 times If programming exceeds 100 000 times purchase a new serial EEPROM board HS3664PWB65H and change it with the old one RENESAS Figure 7 6 Installing Serial EEPROM Board 75 Host PC Interface This emulator HS3664EPI62H incorporates a USB interface circ
211. t 2 6 3 Clock Oscillator The oscillator circuit has been implemented on the user system interface cable head For details on the oscillator circuit refer to the user s manual for each user system interface cable 2 6 4 External Probe 1 EXT1 Trigger Output An 8 pin connector marked EXT1 on the right under the user system interface cable connector on the emulator case accommodates four external probe inputs and two trigger outputs The pin assignment of this connector is shown in figure 2 7 OOOOO0O0O0O0 x GND GND 1 2 a Tuvcc T5v Probe Trigger output Figure 2 7 External Probe Connector 1 RENESAS The interface circuit for the external probe 1 is shown in figure 2 8 HD151015 Figure 2 8 Interface Circuit for External Probe 1 Vec 10 kQ O External probe 1 2 3 4 The trigger output is controlled by event channel 8 and is an active low signal The trigger output is available as either T5V within the range from 2 5 V to 5 V does not depend on the user V level or TUV the user Voc level 2 6 5 External Probe 2 EXT2 Trigger Output A 6 pin connector marked EXT2 on the left under the user system interface cable connector on the emulator case accommodates four trigger outputs The pin assignment of this connector is shown in figure 2 9 OO0000 EXT2 12 3 4 Trigger output Figure 2 9 External Probe 2 Connector The trigger output is an active high signal whic
212. t For the items that can be displayed refer to section 8 Software Specifications Specific to This Product or the online help 142 RENESAS e Close the Event window e To stop the tutorial program at the breakpoint select Reset Go from the Debug menu The program runs until it stops at the breakpoint that has been set 29 001038 void tutorial void 30 001044 zal long a 10 32 long j 33 int i 34 class Sample p sam 35 36 001046 p_sam new Sample 37 00104e for i O i lt 10 i 38 001050 j rand 39 001058 if 3 lt Oj 40 00105a Josj 41 42 00105 afi 37 43 A4 001070 p_sam gt sort a 45 00107a p_sam gt change a 46 47 001082 p_sam gt s0 a 0 48 00108a p_sam gt si a 1 49 001096 p_sam gt s2 a 2 50 0010a2 p_sam gt s3 a 3 51 0010ae p_sam gt s4 a 4 52 0010ba p_sam gt s5 a 5 53 0010c6 p_sam gt s6 a 6 54 0010d2 p_sam gt s7 a 7 55 0010de p_sam gt s8 a 8 56 0010ea p_sam gt s9 a 9 S7 oo10f6 delete p_sam 58 0010fc Z tutorial cpp Figure 6 33 Editor Window at Execution Stop Software Break 143 RENESAS The Status window displays the following contents Status i xi teme sems Connected To H8S 2282 E6000 Emulator CPU 2000 E6000 USB Driver CPU H85 2282 Mode Ri Clock source Main 10MHz Sub 32kHz Run status Break Cause of last break Software Break Eve
213. t 6 Bit5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 H FFEO PMR1 IRQO TXD TMOW PMR5 WKP2 WKP1 WKPO Haee SYSCR2 MAO SA1 SA0 H FFF2 IEGR1 NMIEG IEG3 IEG2 IEGI IEGO IENR1 MSTCR1 Address Register Bit7 H FFEO PMR1 IRQ3 H FFE1 PMRS5 H FFE2 Heige72 FFF SYSCR2 H FFF2 IEGR1 H FFF4 H FFF9 204 RENESAS 3 Warnings that Apply to H8 3687 H8 36077 H8 36079 Group Programming a The description given in the hardware manual is Initial value 0 Reserved These bits are always read as 1 and cannot be modified However the description in the emulator manual is Always specify 0 These bits are always read as the specified values Table 8 21 Differences between the H8 3687 Group Products 1 Target Address Register Name Bits H FFE2 Port mode register 3 7to5 H FFF5 Interrupt enable register 2 7 and 6 H FFF9 Module standby control register 1 7 and2 H FFFA Module standby control register 2 6 5 and3 b The description given in the hardware manual is Reserved However the description in the emulator manual is Always specify 0 These bits are always read as the specified values Table 8 22 Differences between the H8 3687 Group Products 2 Target Address Register Name Bits HFFFB Module standby control register 3 0 c The hardware manual shows registers at the addresses given below For these locations however the applicable description in the emulator manual is Writing has
214. te Signals Acquired by the Emulator Bus State Trace Display Status Description CPU Prefetch PROG CPU prefetch cycles CPU Data DATA CPU data access cycles Table 8 11 Area Signals Acquired by the Emulator Area Trace Display Area Description On chip ROM ROM ROM On chip RAM RAM RAM On chip I O 16bit 0 16 16 bit I O On chip I O 8bit 0 8 8 bit I O Note The signals to indicate bus states and areas are used to set the Bus Area condition of the event point They can also be acquired as the trace information The bus state signals are also used to set the condition not to acquire the trace Suppress option and in the Access Count Of Specified Range Measurement mode for measuring the hardware performance Access Type option 8 1 9 Monitoring Function This emulator incorporates the bus monitoring circuit as the standard which thus allows a use of the monitoring function to update the content of memory without affecting the realtime operation 8 1 10 Trigger Points This emulator incorporates the bus monitoring circuit as the standard which thus allows a use of trigger points that can be set on the Trigger sheet in the Event window 193 RENESAS 8 1 11 Trace Information Selecting View gt Code gt Trace or clicking the Trace toolbar button displays the Trace window Trace information that can be acquired by the emulator and trace information items to be displayed are as listed below
215. ternal address space an optional SIMM memory module must be used The optional SIMM memory modules can be separately purchased The emulation memory can be mapped in 64 byte units to any number of separate memory blocks in the MCU address space Each memory block can be specified using the memory mapping function as user Target or emulator SIMM memory module and in each case the access can be specified as read write read only or guarded The definition of each type of memory is as follows Table 3 1 Memory Types Memory Type Description On chip Uses the MCU on chip memory User Accesses the user system memory Emulator Accesses the emulator SIMM memory module The contents of a specified block of memory can be displayed using the memory function The contents of memory can be modified at any time even during program execution and the results are immediately reflected in all other appropriate windows Note that modifying memory contents during program execution has the following time requirements 1 MCU on chip ROM or RAM or emulator SIMM memory module The emulator modifies the memory contents by temporarily switching the memory bus to the emulator side without stopping the user program execution Therefore the emulator uses the memory bus for up to 80 us in reading of 256 bytes 25 MHz on chip ROM 2 MCU on chip I O DTCRAM or user system memory The emulator stops the user program execution then modifies the mem
216. ters other than those of the target MCU Therefore do not access unused addresses in the I O register area The values when such unused address areas are read from and written to cannot be guaranteed Note that the address range H F000 to H F77F is used by the emulator system so do not access this area Values are not guaranteed when addresses in this range are read or written to An access error break will not occur 8 2 4 Environment for Execution of the Tutorial Program 1 This tutorial program runs on the debugging platform H8 3664 E6000 emulator CPU 300H Be sure to remove the expansion I O board from the H8 3664 E6000 emulator before running the tutorial program 2 To execute the tutorial program specify Tutorial hws stored in the following directory OS installation drive Workspace Tutorial E6000 3664 The directory mentioned above cannot be specified depending on the version of the software In such cases specify the following directory instead High performance Embedded Workshop installation destination directory Tools Renesas DebugComp Platform E6000 3664 Tutorial 226 RENESAS 8 2 5 Note on Emulation of the H8 36912 Group and H8 36902 Group The ROM RAM capacity for the H8 36911 of the H8 36912 group and the H8 36901 and H8 36900 of the H8 36902 group is different in the MCU and the emulator When you create a user program be careful of the ROM RAM usage because the size of the ROM RAM in the emulator is larger than t
217. the Address group box on the General page of the Breakpoint Event Properties dialog box Use the Locals window to refer to the address on the line where variable a which is defined within the tutorial function is allocated H 0OFFEF80 in this example and enter this address in the Address Lo edit box Then enter an address which is H 27 added to that entered in the Address Lo edit box H 0OFFEFA7 in this example in the Address Hi edit box This procedure sets the memory range for variable a of the tutorial function 4 Click the Write radio button in the Direction group box to set a write cycle for the specified range This completes the setting of a memory range Click the OK button to close the Breakpoint Event Properties dialog box 21x General Bus Area Signals Action Type Address C Don tCare Address Range Address Lo H O0FFEF80 C Event Address Hi H O0FFEFA7 I Outside Range r Data Compare Direction I Compare IF Use Mask Read value A Word Figure 6 49 Breakpoint Event Properties Dialog Box after Setting an Event 156 RENESAS 5 The event that has been set in the Event combo box of the Trace Events group box on the General page of the Trace Acquisition dialog box is displayed Trace Acc General Stop Delayed Stop m Suppress _ r Time Stamp I DMAC Cycles Clock J DIC Cyc
218. ting will be displayed when the driver supports the configuration dialog Note that this item is not available with this emulator Change driver in start up Checking this box selects the driver when the emulator is connected the next time 41 RENESAS 5 1 4 Opening the Memory Mapping Dialog Box From To Mapping Add 1MB SIMM fitted 00040 FAFFF User Guard Wares Ram Bases QOFFBO00 OOFFEFEF On Chip Read write Toa D not used OOFFEFCO OOFFF7FF User Guarded 1 not used OOFFFS00 OOFFFFFF On Chip Read write Reset 2 not used 3 not used Eee Target Device Configuration 00000000 OO03FFFF Internal ROM OOFFB000 OOFFEFBF Internal RAM OOFFF800 OOFFFF3F Internal 10 OOFFFFE60 OOFFFFBF Internal 10 OOFFFFCO OOFFFFFF Internal RAM Figure 5 4 Memory Mapping Dialog Box This dialog box displays the current memory map The E6000 H8S or H8 300 series supports four blocks of user memory These can be 256 kbyte or 1 Mbyte each depending on the SIMM fitted Each block can be placed in the address space on a 256 kbyte or 1 Mbyte boundary The memory mapping has a granularity of H 40 D 64 byte Each 64 byte block can be set to the internal emulation or external memory and can be guarded access prohibited write protected or read write The H8 300 series E6000 generally incorporates an emulation memory In the memory map the memory can be set as an internal emulation
219. ty booklet for details on the warranty period This warranty extends only to you the original Purchaser It is not transferable to anyone who subsequently purchases the emulator product from you Renesas is not liable for any claim made by a third party or made by you for a third party DISCLAIMER RENESAS MAKES NO WARRANTIES EITHER EXPRESS OR IMPLIED ORAL OR WRITTEN EXCEPT AS PROVIDED HEREIN INCLUDING WITHOUT LIMITATION THEREOF WARRANTIES AS TO MARKETABILITY MERCHANTABILITY FITNESS FOR ANY PARTICULAR PURPOSE OR USE OR AGAINST INFRINGEMENT OF ANY PATENT IN NO EVENT SHALL RENESAS BE LIABLE FOR ANY DIRECT INCIDENTAL OR CONSEQUENTIAL DAMAGES OF ANY NATURE OR LOSSES OR EXPENSES RESULTING FROM ANY DEFECTIVE EMULATOR PRODUCT THE USE OF ANY EMULATOR PRODUCT OR ITS DOCUMENTATION EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES EXCEPT AS EXPRESSLY STATED OTHERWISE IN THIS WARRANTY THIS EMULATOR PRODUCT IS SOLD AS IS AND YOU MUST ASSUME ALL RISK FOR THE USE AND RESULTS OBTAINED FROM THE EMULATOR PRODUCT RENESAS State Law Some states do not allow the exclusion or limitation of implied warranties or liability for incidental or consequential damages so the above limitation or exclusion may not apply to you This warranty gives you specific legal rights and you may have other rights which may vary from state to state The Warranty is Void in the Following Cases Renesas shall have no liability or legal responsibility
220. uired by such laws and regulations 4 All information included in this document such as product data diagrams charts programs algorithms and application circuit examples 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 products listed in this document please confirm the latest product information with a Renesas sales office Also please pay regular and careful attention to additional and different information to be disclosed by Renesas such as that disclosed through our website http www renesas com 5 Renesas has used reasonable care in compiling the information included in this document but Renesas assumes no liability whatsoever for any damages incurred as a result of errors or omissions in the information included in this document 6 When using or otherwise relying on the information in this document you should evaluate the information in light of the total system before deciding about the applicability of such information to the intended application Renesas makes no representations warranties or guaranties regarding the suitability of its products for any particular application and specifically disclaims any liability arising out of the application and use of the information in this document or Renesas products 7 With the exception of products specified by Renesas as suitable for automobile applications Renesas produ
221. uit as the host PC interface The specifications of this emulator comply with USB 1 1 full speed and can also be connected to a USB 2 0 host computer Connecting the attached USB interface cable to the host computer enables a direct connection between the host computer and the emulator Thus connection of the USB interface adapter for the E6000 such as HS6000EIU02H is no longer necessary To use a host PC interface other than USB PCI PCMCIA or LAN prepare a corresponding host PC interface board for the E6000 separately sold and connect it to the emulator Note however that the USB interface will not be available if a PC interface cable is connected to the emulator To enable the USB interface function disconnect the PC interface cable from the emulator The USB interface is also not available with the Windows NT environment 179 RENESAS 180 RENESAS Section 8 Software Specifications Specific to This Product This section describes the software specifications of the H8 3664 E6000 emulator 8 1 Software Specifications of the H8 3664 E6000 Emulator Information specific to this emulator is given below 8 1 1 Target Hardware This emulator software conforms to the H8 3664 E6000 HS3664EPI61H HS3664EPI62H emulator 8 1 2 Selectable Platforms The debugging platforms selectable in this emulator are listed below Table 8 1 Selectable Target Platforms Debugging Platform Remark H8 3664 E6000 Emulator CPU 300H For emulation
222. ule standby control register 1 7 6 2 and 0 H FFFA Module standby control register 2 6 5 and 3 b The description given in the hardware manual is Reserved However the description in the emulator manual is Always specify 0 These bits are always read as the specified values Table 8 36 Differences between the H8 36037 H8 36057 Group Products 2 Target Address Register Name Bits H FFE2 Port mode register 3 7to5 HFFFB Module standby control register 3 0 c The hardware manual shows registers at the addresses given below For these locations however the applicable description in the emulator manual is Writing has no effect These bits are always read as undefined values because there are no registers at these locations of the emulator Table 8 37 Differences between the H8 36037 H8 36057 Group Products 3 Target Address Register Name Bits H F730 Low voltage detection control register 7to0 H F731 Low voltage detection status register 7to0O d The H8 36037 H8 36057 group has power on reset and optional low voltage detection circuit functions However the E6000 emulator does not support these functions 211 RENESAS e While emulating the H8 36037 H8 36057 group set PCR9 to 0 if you want to use TinyHCAN or SSU Table 8 38 Differences between the Evaluation Chip and the H8 36037 H8 36057 Registers Address Register Bit7 Bit 6 Bit5 Bit 4 Bit3 H
223. urement Set a condition for measurement according to the mode being selected The parameters to be set depend on the modes The Performance Analysis window has a support function to enter the address range of a function automatically if the name of the function is entered to set an address range Entering a function name in the Input Function Range dialog box displayed by clicking the button on the Performance Analysis Properties dialog box automatically enters the address range of the function Input Function Range 2 x Function Sample Cancel Figure 5 60 Input Function Range Window Notes 1 Entering the name of an overload function or a class opens the Select Function dialog box Select a function in this dialog box 2 The addresses figured out are just for reference In some cases the end address of a function may be different Check the last instruction of the function in the Disassembly window to correct the value set in End Address so that it will be the address of the last instruction in general the last instruction of a function is a RTS instruction A label name or an expression can be entered instead of an address value in boxes where an address should be entered 111 RENESAS 1 Time Of Specified Range Measurement Performance n gt 2 x Measurement Method PAT Time OF Specified Range Measurement Range Name PA1 Range Start Address H o0000000 fl End
224. urement and automatically starts measuring the rate of execution time according to the conditions that have been set Stopping the user program displays the result of measurement in the Performance Analysis window 5 9 5 Deleting a Measurement Condition Select Reset from the popup menu with a measurement condition selected to delete the condition 5 9 6 Deleting All Measurement Conditions Choose Reset All from the popup menu to delete all the conditions that have been set 118 RENESAS Section 6 Tutorial 6 1 Introduction The following describes the main functions of the emulator by using a tutorial program The tutorial program is based on the C program that sorts ten random data items in ascending or descending order The tutorial program performs the following actions e The main function repeatedly calls the tutorial function to repeat sorting e The tutorial function generates random data to be sorted and calls the sort and tutorial functions in order e The sort function enters the array where the random data generated by the tutorial function are stored and sorts them in ascending order e The change function then sorts the array which was sorted in ascending order by the sort function in descending order The file tutorial cpp contains source code for the tutorial program The file Tutorial abs isa compiled load module in the Dwarf2 format Notes 1 After recompilation the addresses may differ from those
225. ures of data 2 The color of an R in the Name column changes according to the trace and monitoring settings 3 A variable that is allocated to a register cannot be selected for monitoring 59 RENESAS 5 7 Using the Event Points The emulator has the event point function that performs breaking tracing and execution time measurement by specifying higher level conditions along with the software breakpoints standard for the High performance Embedded Workshop 5 7 1 Software Breakpoints When the instruction of the specified address is fetched the user program is stopped Up to 256 points can be set Note that however only one software breakpoint can be set in the ROM area of the user system This particular breakpoint is called the on chip breakpoint which stops the user program after executing the instruction of the specified address When it is necessary to set two or more software breakpoints to the external ROM area of the user system allocate this area to the emulation memory copy the code and then set the software breakpoints 5 7 2 Event Points Event points can be used for higher level conditions such as the data condition as well as specification of the single address Up to 12 event points can be set by using event channels and range channels in the event detection system When the condition is satisfied event points are also used as the start end conditions for execution time measurement or trace acquisition in addit
226. urope Limited Dukes Meadow Millboard Road Bourne End Buckinghamshire SL8 5FH U K Tel lt 44 gt 1628 585 100 Fax lt 44 gt 1628 585 900 Renesas Technology Shanghai Co Ltd Unit 204 205 AZIACenter No 1233 Lujiazui Ring Rd Pudong District Shanghai China 200120 Tel lt 86 gt 21 5877 1818 Fax lt 86 gt 21 6887 7898 Renesas Technology Hong Kong Ltd 7th Floor North Tower World Finance Centre Harbour City 1 Canton Road Tsimshatsui Kowloon Hong Kong Tel lt 852 gt 2265 6688 Fax lt 852 gt 2730 6071 Renesas Technology Taiwan Co Ltd 10th Floor No 99 Fushing North Road Taipei Taiwan Tel lt 886 gt 2 2715 2888 Fax lt 886 gt 2 2713 2999 Renesas Technology Singapore Pte Ltd 1 Harbour Front Avenue 06 10 Keppel Bay Tower Singapore 098632 Tel lt 65 gt 6213 0200 Fax lt 65 gt 6278 8001 Renesas Technology Korea Co Ltd Kukje Center Bldg 18th FI 191 2 ka Hangang ro Yongsan ku Seoul 140 702 Korea Tel lt 82 gt 2 796 3115 Fax lt 82 gt 2 796 2145 Renesas Technology Malaysia Sdn Bhd Unit 906 Block B Menara Amcorp Amcorp Trade Centre No 18 Jalan Persiaran Barat 46050 Petaling Jaya Selangor Darul Ehsan Malaysia Tel lt 603 gt 7955 9390 Fax lt 603 gt 7955 9510 Colophon 6 0 H8 3664 E6000 Emulator User s Manual 2CENESAS Renesas Technology Corp 2 6 2 Ote machi Chiyoda ku Tokyo 100 0004 Japan
227. us of the IRQ input is low 103 RENESAS 9 Timestamp page Specify the time stamp value for bus cycles The specification is not available when a time stamp is acquired x General Address Data RAW Timestamp Setting Point Range Cancel Apply Figure 5 54 Trace Filter Dialog Box Timestamp Page Don t care Detects no time stamp value when this box is checked Setting Detects the specified time stamp value Point Specifies a single time stamp not available when Don t care has been checked Range Specifies a time stamp range not available when Don t care has been checked From Enter a single time stamp value or the minimum value of the time stamp range The format is as follows hour h minute min second s millisecond ms microsecond us nanosecond ns Not available when Don t care has been checked To Enter the maximum value of the time stamp range The format is as follows hour h minute min second s millisecond ms microsecond us nanosecond ns Only available when Range has been selected Note Along with setting the time stamp range the minimum and maximum time stamp values can be set in the From and To options respectively 104 RENESAS 5 8 13 Calculating the Difference in Time Stamping Select Timestamp Difference from the popup menu to calculate the time difference between the two points selected by the resu
228. us of the input probe signal 1 High Detects the high level of the input probe signal Low Detects the low level of the input probe signal Don t care The status of the input probe signal is not detected 4 Action page Use this page to decide what action the emulator takes when the defined event occurs 2 xi T Start Timer T Stop Timer Delay after detection before break occurs oo bus cycles Required number of event occurrences T Enable Sequencing Figure 5 25 Breakpoint Event Properties Dialog Box Action Page Action Selects an action that occurs when the event is satisfied This cannot be used for an event point being used as the trace acquisition condition Break Causes a break stop in the user program when the event occurs This is the default action Start Timer Starts the run timer the run timer value is displayed in the Status window Stop Timer Stops the run timer the run timer value is displayed in the Status window Delay after detection before break occurs Sets a 16 bit delay in bus cycles after the event has occurred before the action is taken The delay is only applicable to break events and there is only one delay counter in hardware therefore only one breakpoint can have a non zero delay The range of values is D 0 to D 65 535 only available when Break has been selected This cannot be used for an event point being used as the t
229. utes a command file 79 SYMBOL_ADD SA Defines a symbol 80 SYMBOL_CLEAR Sc Deletes a symbol 81 SYMBOL_LOAD SL Loads a symbol information file 82 SYMBOL_SAVE SS Saves a symbol information file 83 SYMBOL_VIEW SV Displays symbols 84 SAVE_WORKSPACE SW Saves the current workspace 85 TCL Enables or disables the TCL 86 TIMER TI Sets or displays the timer resolution 87 TOOL_INFORMATION TO The information on the tool registered is outputted by the file 88 TRACE TR Displays trace information 89 TRACE_ACQUISITION TA Sets or displays trace acquisition parameters 90 TRACE_BINARY_ TBC Compares a trace binary file with the current trace COMPARE information 91 TRACE_BINARY_SAVE TBV Outputs trace information into a binary file 92 TRACE_FILTER TF Filter the trace information 93 TRACE_STATISTIC TST Analyzes statistic information 94 TRACE_SAVE TV Outputs trace information into a file 95 TRIGGER_CLEAR TGC Deletes the trigger output condition for EXT 2 96 TRIGGER_DISPLAY TGD Displays the trigger output condition for EXT 2 97 TRIGGER_SET TGS Sets the trigger output condition for EXT 2 98 UPDATE_ALL_ UD Updates the dependencies for the current project DEPENDENCIES 99 USER_SIGNALS US Enables or disables the user signal information 100 WATCH_ADD WA Adds a watch item 101 WATCH_AUTO_UPDATE WU Selects or cancels automatic update of watch items 102 WATCH_DELETE WD Deletes a watch item 103 WATCH_DISPLAY wi Displays the contents of the Watch window 104
230. vary according to the emulator in use For details refer to section 5 7 4 Signals to Indicate Bus States and Areas RENESAS 6 Status page Select the status of a bus The selection is not available when a time stamp is acquired Trace Find k x General Address Data RAV Area Status Probes mazo e Setting String PROG 7 Cancel Apply Figure 5 42 Trace Find Dialog Box Status Page Don t care Detects no bus condition when this box is checked Setting Detects the specified bus condition String Select a bus condition not available when Don t care has been checked Note Available bus conditions vary according to the emulator in use For details refer to section 5 7 4 Signals to Indicate Bus States and Areas 90 RENESAS 7 Probes page Select the status of four probe signals The selection is not available when a time stamp is acquired Trace Find x General Address Data Raw Area Status Probes IRQ7 0 r Setting Probe4 Don t care x Probe3 Don t care gt Probe2 Don t care 7 Probel Dont care a Cancel Apply Figure 5 43 Trace Find Dialog Box Probes Page Don t care Detects no probe signal condition when this box is checked Setting Detects the specified probe signal condition Probe4 to Probe1 Select probe conditions not available when Don t care has been checked
231. vent when the set of events being selected does not occur only available when Is Armed By has been selected The test of conditions on event points is started with the execution of the user program The conditions on event points have not been satisfied immediately after the execution of the user program is started Satisfaction of the condition on an event point allows a transition of the state to that where the condition is satisfied 70 RENESAS The state where the condition is satisfied is retained until the user program is stopped or the event point is reset When the condition on the event point is satisfied no action will be taken even if the condition is satisfied again If you want the action to be taken again reset the event point so that the state transits to that where no condition is satisfied When the user program is stopped the states of all the event points transit to that where no condition is satisfied When an event point must be in the state where its condition is satisfied or not when No occurrence of is selected as the satisfaction condition of another event point this event point is called the arm event An event point can reset the tested states of conditions of other event points or itself by satisfying the condition This event point is called a reset event A reset event resets event points regardless of their states where the condition is satisfied or not e g resetting the pass count Select an
232. very field must be filled in Value Enter the time stamp value The format is as follows hour h minute min second s millisecond ms microsecond us nanosecond ns Not available when Don t care has been checked 5 8 5 Clearing the Trace Information Select Clear from the popup menu to empty the trace buffer that stores the trace information If several Trace windows are open all Trace windows will be cleared as they all access the same buffer 5 8 6 Saving the Trace Information in a File Select Save from the popup menu to open the Save As file dialog box which allows the user to save the information displayed in the Trace window as a text file A range can be specified based on the PTR number saving the complete buffer may take several minutes Note that this file cannot be reloaded into the Trace window Note In filtering of trace information the range to be saved cannot be selected All the trace information displayed in the Trace window after filtering will be saved Select a filtering range on the General page in the Trace Filter dialog box if you want to save the selected range For details on the filtering function refer to section 5 8 12 Extracting Records from the Acquired Information 93 RENESAS 5 8 7 Viewing the Editor Window The Editor window corresponding to the selected trace record can be displayed in the following two ways e Select a trace record and choose View
233. y the function call history Notes 1 This function can be used only when the load module that has the Dwarf2 type debugging information is loaded Such load module is supported in H8S H8 300 C C compiler V4 0 or later 2 For details on the stack trace function refer to the online help e Double click the Editor column in the sort function and set a software breakpoint 25 002068 26 002070 27 28 29 30 002072 31 002076 32 002078 33 00207c 34 002080 35 002084 36 37 0020a4 38 0020a8 39 20 41 42 43 T 45 0020c0 46 47 0020cc void Sample sort long a long t int i j K gap gap 5 while gap gt 0 jf for k 0 k lt gap for i k gap for j3 i gap k i lt 10 j gt k i i gap j j gap if a j gt a j gap t alj a j a j gap a j gap t else break gap gap 2 sort cpp Figure 6 60 Editor Window Software Breakpoint Setting e Select Reset Go from the Debug menu e After the break in program execution select Stack Trace from the Code submenu of the View menu to open the Stack Trace window RENESAS 165 Kind Name Value F Sample sort long 002084 F tutoriall OO1O7A F main 001036 F PowerON_Reset OOO41E Figure 6 61 Stack Trace Window Figure 6 61 shows that the position of the program counter is currently at the selected line o
234. ys before connecting any CABLES make sure that pin 1 on both sides are correctly aligned 4 Supply power according to the power specifications and do not apply an incorrect power voltage Use only the provided power cable 7tENESAS CAUTION This equipment has been tested and found to comply with the limits for a Class A digital device pursuant to part 15 of the FCC Rules These limits are designed to provide reasonable protection against harmful interference when the equipment is operated in a commercial environment This equipment generates uses and can radiate radio frequency energy and if not installed and used in accordance with the instruction manual may cause harmful interference to radio communications Operation of this equipment in a residential area is likely to cause harmful interference in which case the user will be required to correct the interference at his own expense VI RENESAS Introduction The E6000 emulator is an advanced realtime in circuit emulator which allows programs to be developed and debugged for the H8 family microcomputers The E6000 emulator can either be used without a user system for developing and debugging software or connected via a user system interface cable to a user system for debugging user hardware High performance Embedded Workshop is a Graphical User Interface intended to ease the development and debugging of applications written in C C programming languag
Download Pdf Manuals
Related Search
Related Contents
Keithley - Alcatel OneTouch 318D Owner's Manual 発熱者の早期発見に(PDF 432 KB) Infinity TSS-SAT1200 User's Manual NAVGPS PRO & NAVGPS PRO/PCFS USER`S MANUAL World Marketing of America Winchester II Rotazione a 180 - Bolzoni Auramo 愛情点検 LED LENSER®* Copyright © All rights reserved.
Failed to retrieve file