Home

SH7660 E10A Emulator User`s Manual

image

Contents

1. Hitachi Debugging Interface This Menu Bar Pull Down Menu User s Manual Manual View Menu Breakpoints O 3 11 3 17 1 4 2 4 6 5 5 Command Line O Disassembly O I O Area O Labels O Locals O 3 16 Memory O 3 12 Performance Analysis O Profile List O 3 21 Profile tree O 3 21 Registers O 3 9 Source O 3 7 2 Stack Trace X 3 20 Status O 3 10 3 17 1 4 2 9 Trace O 4 2 7 6 5 3 6 5 7 Watch O 3 13 Run Menu Reset CPU O Go O 3 10 Reset Go O Go to Cursor O Set PC To Cursor O Run O Step In O 3 14 1 Step Over O 3 14 3 Step Out O 3 14 2 Step O Halt O 98 3 N SAS Table 4 1 HDI Window Menus and Related Manual Entries cont Menu Bar Memory Menu Pull Down Menu Refresh Hitachi Debugging Interface User s Manual This Manual Load Save Verify Test Fill Copy Compare Setup Menu Status bar Options Radix Customise Configure Platform Window Menu Cascade Tile Arrange Icons Close All Help Menu Index Using Help Search for Help on About HDI OO O CO O O O OC O CO OF O CO CO OOO 0O 0 0 O 3 NE SAS 99 4 2 Descriptions of Each Window This section describes each window Figures in this section are used as examples Each E10A emulator type has explanatory notes Read section 6 SHxxxx
2. Item Contents SDRAM addresses H 0C000000 to H OCO7FFFF Bus width of SDRAM addresses 16 bits Flash memory addresses H 00000000 to H 0007FFFF Bus width of flash memory addresses 16 bits Operating CPU operating mode 3 environment Input clock 19 8 MHz Value in the frequency H 1003 change register FRQCR Endian Big 217 RENESAS Figure 6 17 shows a connection of the flash memory using the sample program SH7660 DA28F640J5 150 AO AO A22 to Al A22 to A1 D15 to DO DQ15 to DQO cso CEO RD CE2 and CE1 OE WE 7 74 Figure 6 17 Example of Connecting the Flash Memory 218 RENESAS 6 5 12 Notes on HDI 1 Moving Source File Position after Creating Load Module When the source file is moved after creating the load module the Open dialog box may be displayed to specify the source file during the debugging of the created load module Select the corresponding source file and click the Open button Source level Execution Source file Do not display source files that do not correspond to the load module in the program window For a file having the same name as the source file that corresponds to the load module addresses are displayed in the program window but operation in the window may not work properly Step Even standard C libraries are executed To return to a higher level function enter Step Out In a for statement or a while statement
3. eene 18 Can not find RESET signal Dialog Box eee 19 Check the connection Dialog Box eese nennen enne 19 COMMUNICATION TIMEOUT ERROR Dialog Box esee 19 INVALID ASERAM FIRMWARE Dialog Box eee 20 Error JTAG boot Dialog Box seen enne enne 20 Unable to restore the previous driver settings Dialog Box 20 Exit HDI Dialog Box rere Re erret N e d 21 Save session Dialog BOX 4 eie e Fiere ers esee nece trag tenders een 21 Start Menu ueber eee tee aca e iacet ter beet 27 HDI Wad OW eere eU gerent ne te RAI HERE RUE URN eq 28 Configuration Dialog Box esee rennen 30 Open Memory Window Dialog Box seen 31 Memory Window rem Heec iet en ree 31 Load Program Dialog Box eee eh tet t eR e RERO 33 HDI Dialog BOX re EUER S RE ree YI E EE ERE EPOR ees 33 Open Dialog Box oer eet eee it neon 34 Source Window Displaying the Source Program esee 35 Source Window Setting a Software Breakpoint eee 36 Registers Window ene eerte terre ERR ER EE EEP EE Ptr e ER R aa 37 Register Dialog BOx BG eere rettet ete orn e erit 38 Go Button eei peer te idee ee Ee eii peret 39 Source Window Break Status seessssssssssesseeee eene 39 System Status Window
4. esses nennen nente entente een nnne 40 Br akpoints WindOW eresse eet rp tie ree ree eter er ete net 41 Open Memory Window Dialog Box esee 42 Memory WIndOWs scettr UE mtr UE BER ERES R sere bene t idt 42 Instant Watch Dialog Box esses enne enne R nene 43 Watch Window Displaying the Array essen 44 13 NE SAS Figure 3 21 Figure 3 22 Figure 3 23 Figure 3 24 Figure 3 25 Figure 3 26 Figure 3 27 Figure 3 28 Figure 3 29 Figure 3 30 Figure 3 31 Figure 3 32 Figure 3 33 Figure 3 34 Figure 3 35 Figure 3 36 Figure 3 37 Figure 3 38 Figure 3 39 Figure 3 40 Figure 3 41 Figure 3 42 Figure 3 43 Figure 3 44 Figure 3 45 Figure 3 46 Figure 3 47 Figure 3 48 Figure 3 49 Figure 3 50 Figure 3 51 Figure 3 52 Figure 3 53 Figure 3 54 Figure 3 55 Figure 3 56 Figure 3 57 Figure 3 58 Figure 3 59 Figure 3 60 Figure 3 61 Figure 3 62 Figure 3 63 Add Watch Dialog BOX ecrit 44 Watch Window Displaying the Variable seen 45 Watch Window Displaying Array Elements see 45 Step In Button epe Er Per ER e RI REUS 46 Source Window Step In eese nennen enne nnne entente 47 Step Out Button cette eter rer eae ere RE ER ERIS ERE 48 HDI Window Step OU eoriet neie i ree eiie eee erede 48 HDI Window Step In Step In eene enne enne 49 Source Window Before Step Ov
5. eisein eose er nennen nennen nennen 116 Address Page Options 3th Re DURO RE 118 Setting Conditions in Break Condition Dialog Boxes eesesss 121 Break Condition Dialog Box Pages essere 122 Address Page Options ipen e ee e eree peet eene trennen nennen 124 Address OPtlOns 4 s o re etre d et rep este m SE Pug 124 Data Page Options eie npo RINT 126 ASTD Pag e O pton sissies irit eter cte AREE EE N eE 127 Bus State Page Options sess enne nenne enat 129 Count Page Options ero Ue RO n Ute is 130 General Page Options eem ate eeu 132 Trace Window Display Items essen nennen nenne 134 Trace Acquisition Dialog Box Page Options see 135 Trace mode Page Options eee US Rer Uo RE eee 137 System Status Window Display Items eeeeeeeee 139 ELOA HDI Commands iecit Pe e p id eere tiec acides 143 AUD CLOCK Command Parameter eeeeeeeeee eene nnne nnne 145 AUD MODE Command Parameter eeeeeeeeeeeeeee eene nnne nnn 147 AUD TRACE Command Parameter eseeeee emen nnne 149 BREAKCONDITION CLEAR Command Parameter eeeeee 151 RENESAS Table 5 6 BREAKCONDITION_DISPLAY Command Parameter eee 152 Table 5 7 BREAKCONDITION ENABLE Command Parameters eee 153 Table 5 8 BREAKCONDITION SET Command Parameters
6. Source Value long a 10 Ox0cO000bd8 long 10 long j H 0000200 Ox0c000bd8 int i min max H 00000f16 x cO 00bdc H 00002c8c Ox0c000be0 Oc000094 for i 0 i 10 i 4 H 00002f 82 Ox0c000be4 Oc000076 j rand H 000036c9 Ox0c000be8 Oc00007e if j O f H 000047b3 Ox0c000bec H 00005ed3 Oc000086 a i Ji H 00006422 0x0c000bf 4 0x0c000bf8 Ox0c000bfc Ox0c000bc8 H 00006 bf 0c0000a2 e H EfIfffff ji t j 0c000082 J 3 H 00004e5a Ox0cO000bf0 t ti 0c0000ae max a 9 OcO000b2 min 0 Oc0000b6 max 0 c0000ba change a c0000c2 min a 9 Oc0000c6 max a 0 Oc0000ca while 1 void abort void Oc0000d8 abort O0c0000dc _sort void sort long a For Help press F1 A mNM Figure 3 27 HDI Window Step Out e The data of variable a displayed in the Watch window is sorted in ascending order 48 RENESAS e To execute two steps use Step In twice Al Hitachi Debugging Interface tutorial rial SHxxxx E10A Emulator _ SESE Eile Edit View Bun Memory Setup Window Help mom gt aay En nTa ict a Ea Ge el be td Af CIC a a rce long a 10 long j int i min max Ox0c000bd8 long 10 H 00000200 Ox0c000bd8 H 00000f16 Ox0c000bde H 00002c8c Ox0c000be0 H 00002 82 Ox0c000be4 H 000036c9 Ox0cO00be8 H 000047b3 Ox0c000bec H 00004e5a Ox0c000bE0 H 00005ed3 Ox0c
7. Entry point group box Sets the calling destination address of the write erase module All erasing module address edit box Inputs the calling destination address of the erase module Writing module address edit box Inputs the calling destination address of the write module Note Although the values that can be set are D 0 to D 65535 the TIMEOUT hours may be extended according to the set value Therefore it is recommended to input the minimum value The value to be input must only be positive integer Notes on using the flash memory download function The following are notes on downloading to the flash memory e When the flash memory download is enabled downloading other than to the flash memory area is disabled e Downloading is only enabled to the flash memory area Perform memory write or software break only to the RAM area e When the flash memory erase is enabled the Stop button cannot stop erasing e The entry area for the user module must be MMU disabled space 107 3 NE SAS 4 2 3 Breakpoints Window Function This window lists all break conditions that have been set Window Breakpoints Enable File Line Symbol Address Type sort c 27 Break condition 1 sort c 24 00000048 Break condition 2 Figure 4 6 Breakpoints Window 108 3 NE SAS Description The Breakpoints window displays breakpoint setting information The items listed in the following tab
8. essere nennen nennen nennen 4 Operating Environments uode tete pet He decre 5 Recommended H UDI Port Connector sese 12 Contents of the CD R Directories esee 23 Tutorial Program Configuration and Parts sess 25 Step Optom MC 46 Sequential Break Conditions essere nennen 68 AUD Trace Hunt Ons iR ERU URBIS ERU eerie Seats 74 Address Translation Tables eseeeeeeeeeeeeeeee nennen eene rennen en 81 Mod le Interfaces etit ere o b ee i HR RR EUER HERE 89 Loading flash memory Page Options sseeeeeneen eene 91 Example of Board Specifications 00 0 eee cee ceecseeeseeeeeeeeceseeeeseesecesecsecaecaeesaeaes 92 Sample Program Specifications sess nennen nene 93 HDI Window Menus and Related Manual Entries eee 97 Configuration Dialog Box Page seen 101 General Pase Options ere Bora e RUE teers tbat 103 Options for the E10A Driver Details Dialog Box eene 105 Loading flash memory Page Options seen 107 Breakpoints Window Display Items seeeeeeeeeeeeeeneenenen nen 109 Breakpoints Window Pop up Menu Operation serene 110 Break Dialog Box Pages teme terrere rere reati erre ene e 112 Pont Pag Options 1 ien re dere re ee e ir deer ir eis 114 Condition Page Options
9. menu becomes invalid Use the BREAKPOINTS and Stop At in the Run menu with 255 or less total settings Note on RUN TIME Display The execution time of the user program displayed in the Status window may not be accurate since the timer in the host computer is used Note on Displaying COMMUNICATION TIMEOUT ERROR If COMMUNICATION TIMEOUT ERROR is displayed the emulator cannot communicate with the chip Select Initialize from the File menu to initialize the emulator Note on Downloading Program In the Load Program dialog box which is opened when Load Program is selected the verify function is invalid After downloading the program perform verify in the Verify S Record File with Memory dialog box which is opened when Verify is selected from the Memory menu Support of Double Float Format In the following memory operations the double float format is not supported Fill Memory dialog box Search Memory dialog box MEMORY FILL command The Format specification in the Copy Memory dialog box is ignored Memory is copied in a byte unit Double float display at little endian operation Note on Continuous Step Execution When the step is continuously executed by selecting Step from the Run menu do not use the BREAKPOINT because this will cause the HDI to abnormally operate 224 RENESAS 27 Note on Using the Run program Dialog Box When Run is selected from the
10. Types of buses that can be specified are listed below e bus CPU ALL Indicates an instruction fetch and data access including a hit to the cache memory e L bus CPU Data Indicates a data access by the CPU including a hit to the cache memory e bus CPU DMA Indicates a CPU cycle when the cache memory is not hit and a data access by the DMA Internal I O break condition Breaks when the SH7660 accesses the internal I O Count Breaks when the conditions set are satisfied the specified number of times Note When U RAM and X Y RAM are accessed from the PO space the I bus must be selected and when accessed from the P2 space the L bus must be selected When cache fill cycle is acquired the I bus must be selected 200 RENESAS Table 6 5 lists the combinations of conditions that can be set under Break Condition 1 2 3 Table 6 5 Dialog Boxes for Setting Break Conditions Type Address Data Bus Bus State Count Bus Condition Condition Condition Condition Internal Dialog Box Address Data Bus Status Count I O Break Break Condition 1 O O O O X dialog box Break Condition 2 O X O X X dialog box Break Condition 3 X X X X O dialog box Note O Can be set in the dialog box X Cannot be set in the dialog box 6 5 3 Trace Functions The SH7660 E10A emulator supports the trace functions listed in table 6 6 Table 6 6 Trace Functions Function Internal Trace AUD Trace Branch
11. Break Condition 1 Dialog Box ene 123 Data Page Break Condition 1 Dialog Box e 125 ASID Page Break Condition Dialog Box eee 127 Bus State Page Break Condition Dialog Box eene 128 Count Page Break Condition Dialog Box eene 130 General Page Break Condition Dialog Box eene 131 Trace WindoW te oec eese tect eL Uds cree neces 133 Trace mode Page Trace Acquisition Dialog Box esses 136 System Status Window desete nengendi a r i 138 TLB Error Message Dialog nerens ninien nynner e r E E nennen 176 Connecting Ferrite COFe see EH cte ERA D R A mU Ot or 185 Pin Arrangement of the H UDI Port Connector 14 Pins ssessss 186 Pin Arrangement of the H UDI Port Connector 36 Pins esses 188 User System Interface Circuit in the Emulator HS7660KCM01H Model Name HS0005KCM0O3H essere eene enne enne 190 User System Interface Circuit of the H UDI Pin in the Emulator HS7660KCM02H Model Name HSOOOSKCMO04H esee 191 User System Interface Circuit of the AUD Pin in the Emulator HS7660KCMO02H Model Name HSOOOSKCMO04H eee 192 User System Interface Circuit in the Emulator HS7660KCIO1H Model Name HS0005KCIO03H essere enne nennen enn
12. E104 Emulator E104 PCI Card Driver4 CPU SH xxxx Run status Break Cause of last break BREAK CONDITION 1 Run time count Oh Omin 0s 16ms Emulation mode Sequential break condition 2 1 Pig endian Exist N Session Platform Memory amp Events fo Figure 3 53 Displayed Contents of the System Status Window Sequential Break Note The items that can be displayed in this window differ according to the product For the items that can be displayed refer to the online help 72 3 NE SAS 3 19 Trace Functions The E10A emulator has two branch instruction trace functions 1 Internal Trace Function The branch source and branch destination addresses mnemonics operands and source lines are displayed Since this function uses the trace buffer built into the MCU a realtime trace can be acquired Notes 1 The number of branch instructions that can be acquired by a trace differs according to the product For the number that can be specified for each product refer to the online help 2 The internal trace function is not supported for all products For the specifications of each product refer to the section related to the trace functions in section 6 SHxxxx E10A Emulator Specifications or to the online help 3 The internal trace function is not extended for all products For the specifications of each product refer to the section related to the trace functions in section 6 SHxxxx E10A Emulator Specificati
13. Figure 3 21 Add Watch Dialog Box e Input variable max and click the OK button 44 3 NE SAS The Watch window will now also show the int type variable max Watch Window Oo OF xi Value ta Ox0c000bd8 long 10 max H ffffffff x cO000bc8 F int Figure 3 22 Watch Window Displaying the Variable The user can double click the symbol to the left of any variable in the Watch window to watch the all elements in array a Watch Window Of O xi Value Q0x0c000bd8 long 10 H 000036c9 Ox0cO000bd8 H 00002c8c x c 0 bdc H 00006422 OxOcO00be0 H 00000 16 Ox0cO00be4 H 00004e5a OxO0cO00be8 H 00005ed3 x cO00bec i H 00002 82 0x0c000bf 0 H 00000200 Ox0c000bf 4 H 00006fbf Ox0c000bf8 H 000047b3 Ox0c000bfc H Ifffffft Ox0c000bc8 DT o8 M D cO O CHR CO PO EA CO a ol Figure 3 23 Watch Window Displaying Array Elements 45 2tENESAS 3 14 Stepping Through a Program The HDI provides a range of step menu commands that allow efficient program debugging Table 3 2 Step Option Menu Description Command 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 ra
14. Table 4 11 Address Page Options Option Description Value edit box Sets a breakpoint address with a number or a symbol Normal radio button Does not set an address area Physical Space radio button Shows that the break condition is the physical area Virtual Space radio button Shows that the break condition is the virtual area ASID edit box Sets an ASID value 0 to 255 when the breakpoint address is in the virtual area Nothing is set as default Note These options are not supported in a device in which the MMU is not built in Clicking the OK button enables breakpoints to be set If the Cancel button is clicked this dialog box is closed without setting breakpoints Related Commands BREAKPOINT command BREAKPOINT_CLEAR command BREAKPOINT_DISPLAY command BREAKPOINT_SET command 118 3 NE SAS 4 2 5 Break Condition Dialog Box Function This dialog box sets hardware break conditions Window Break Condition 1 Figure 4 11 Break Condition Dialog Box Note The items that can be set in this window differ according to the product For the settings for each product refer to the online help 119 3 NE SAS Description The Break Condition dialog box consists of multiple pages A condition to halt the program can be set in each page Contents to be set by each page are described in section 4 2 6 Break Condition Dialog Box Pages Clicking the O
15. Window Break Condition 3 Figure 4 17 General Page Break Condition Dialog Box 3 NE SAS 131 Description Table 4 20 General Page Options Group Box Option Description LDTLB group box Don t Care radio Does not set break conditions when the LDTLB instruction button is executed Stop after Sets the LDTLB instruction execution as break conditions executing LDTLB instruction radio button DMA radio button Sets the DMA cycle as break conditions I O group box Don t Care radio Does not set break conditions when the internal I O area is button accessed Stop on accessing Sets the internal I O area access as break conditions internal I O area radio button Write radio button Sets only write cycle as break conditions Note Some products are not supported by this function For the specifications of each product refer to the online help 132 3 NE SAS 4 2 7 Function This window displays the trace buffer contents Window Trace Window 000014 000013 p 0 000012 000011 D 0 000010 000009 p 0 000008 000007 D O 000006 000005 p 0 000004 000003 D 0 000002 000001 p 0 000000 s no filter BRANCH 00000188 DESTIN 00000162 BRANCH 00000188 DESTIN 00000162 BRANCH 00000188 DESTIN 00000162 BRANCH 00000188 DESTIN 00000162 BRANCH 00000188 DESTIN 00000162 BRANCH 00000188 DESTIN 000001
16. a 9 000001 D 000001 RD MEMORY L bus Q0007FA4 00001957 000000 D 000000 RD MEMORY L bus 00007F80 00007EFF Figure 6 13 Trace Window Double clicking the source line jumps the cursor to the corresponding section on the Source window The TYPE ADDR and DATA columns have different meanings according to the selected AUD trace types When the TYPE column displays LOST it means that the trace information being output in the realtime trace mode has been suspended When that column displays CPU WAIT it means that a wait has been generated in the CPU to output a trace in the non realtime trace mode 206 13 N SAS Table 6 9 Trace Window Display Contents Trace Type TYPE Column ADDR Column DATA Column Branch trace BRANCH Branch source address No display DESTINATION Branch destination address No display Window trace RD_MEMORY Memory access address Memory access data WR_MEMORY Software trace S_TRACE Address at which the Trace Register value x function is executed Information LOST None None CPU WAIT None None Notes 1 When the trace display is performed during user program execution the mnemonics operands or source is not displayed The AUD trace function outputs the differences between newly output branch source addresses and previously output branch source addresses The window trace function outputs the differences between newly output addresses and previously outp
17. 12 GND 30 GND 13 NC 31 RESETP Output D13 User reset 14 GND 32 GND 15 NC 33 GND Output 16 GND 34 GND 17 TCK Input K2 35 NC 18 GND 36 GND Notes 1 Input to or output from the user system 2 The slash means that the signal is active low 3 The emulator monitors the GND signal of the user system and detects whether or not the user system is connected Figure 6 3 Pin Arrangement of the H UDI Port Connector 36 Pins 188 RENESAS Notes 1 Handling of the TCK TMS TDI TRST ASEBRKAK and ASEMDO pins depends on the use conditions of the H UDI as follows a When the user system is used by connecting the emulator the ASEMD0 pin must be grounded The TCK TMS TDI TRST and ASEBRKAK pins must be pulled up by a resistance of several kilo ohms to protect the devices b When the emulator is used and the user system is independently used the ASEMD0 pin should be switched on the board as the method of handling this pin depends on whether the emulator is used or not The TCK TMS TDI and ASEBRKAK pins must be pulled up by a resistance of several kilo ohms to protect the devices The TRST pin must be pulled down by a resistance of several kilo ohms and controlled individually c When the user system is independently used without using the emulator and H UDI the ASEMDO pin must be pulled up by a resistance of several kilo ohms It is recommended to pull up the TCK TMS
18. Profile List window click the right hand mouse button then select Enable Profiler from the pop up menu Profile List INITSCT H OCOOO0000 ucc rand z change sort abort main Figure 3 62 Selection of Enable Profiler 2 N SAS e Data to be measured for the selected function is now set Select Select Data from the pop up menu by clicking with the right mouse button The Select Data dialog box is displayed Select Data Data 1 Jail operand access count bd Data Jelansed time cycle z Figure 3 63 Select Data Dialog Box e Use the Select Data dialog box to select the data to be measured All operand access count is selected for Datal as a first item to be measured Elapsed time cycle is selected for Data2 as a second item to be measured e After the data has been selected press the OK button e Double click the BP column for the while statement of the main function to set a software breakpoint 86 RENESAS i tutorial c IBEX int i min max 0c00006e for i 0 i 10 i 0c000076 j rand 0c00007e if j 0 0c000082 j j H 0c000086 ali j c0000a2 sort a 0c0000aa min a 0 Oc0000ac max a 9 OcOO000b2 min D OcO000b6 max 0 0c0000ba change a c0000c2 min a 9 Oc0000c6 max a 0 OcO000ca e while 1 Figure 3 64 Source Window Software Break Setting e Set the same program
19. Run menu to specify the stop address there is the following note When the breakpoint that has been set as Disable is specified as the stop address note that the breakpoint becomes Enable when the user program stops 28 Memory Test Function This product does not support the memory test function which is used by selecting test from the memory menu 29 Illegal Instructions If illegal instructions are executed by STEP type commands the emulator cannot go to the next program counter RENESAS 225 226 RENESAS SH7660 E10A Emulator User s Manual 2 NE SAS Renesas Electronics Corporation 1753 Shimonumabe Nakahara ku Kawasaki shi Kanagawa 211 8668 Japan REJ10B0001 0100H
20. and TDI pins by a resistance of several kilo ohms For the TRST pin input the same signal as for the RESETP pin or pull it down by a resistance of several kilo ohms 2 The RESET signal in the user side is input to the RESETP pin of the SH7660 Connect this pin to the H UDI port connector as the output from the user system 3 The TRST pin must be low for a certain period when the emulator is turned on whether the H UDI is used or not Input the same signal as for the RESETP pin to the TRST pin or pull it down by a resistance of several kilo ohms 189 RENESAS 6 3 User System Interface Circuit The emulator is connected to the user system via the user interface cable Figure 6 4 shows the user system interface circuit of the emulator HS7660KCMO01H JTAG controller EPF6016ATC144 2 3Vcc To user system 74LVT244 4 7kQ TDO TCK TMS TDI TRST RESETP 74LVT125 eta AY ASEBRKAK YA Figure 6 4 User System Interface Circuit in the Emulator HS7660K CM01H Model Name HS0005KCM03H 190 RENESAS The user system interface circuits of the emulator HS7660KCM02H are shown Figures 6 5 and 6 6 show the circuits of the H UDI pin and AUD pin respectively JTAG controller EPF6024ATC144 2 3Vcc To user system 10 kQ TDO TCK TMS TDI TRST 3Vcc 10 ko RESETP 3Vcc 10 kQ ASEBRKAK ASEBRKAK Figure 6 5 User System Interface Circuit of the H UDI Pin in the Emulator HS7660KCM02H
21. executing a single step does not move execution to the next line To move to the next line execute two steps Operation During Accessing Files Do not perform other operations during saving in the Load Program Verify Memory Save Memory or Trace window because this will not allow correct saving to be performed Source Window at Program Change When a program being displayed in the source window is changed and the source file and load module are reloaded close and reopen the source window once If the window is not closed and reopened the display may be incorrect Watch Local variables at optimization Depending on the generated object code local variables in a C source file that is compiled with the optimization option enabled will not be displayed correctly Check the generated object code by displaying the Disassembly window If the allocation area of the specified local variable does not exist displays as follows Example The variable name is asc asc target error 2010 xxxx 219 3 N SAS Variable name specification When a name other than a variable name such as a symbol name or function name is specified no data is displayed Example The function name is main main Array display When array elements exceed 1000 elements from after 1000 will not be displayed 6 Memory Load Function When Load is selected from the Memory menu the Memory Load function can be us
22. j i min and max e Select Locals from the View menu The Locals window is displayed Initially the Locals window is empty because local variables have not yet been declared The Locals window will now show the local variables and their values Locals i or Oy x Value f x c 00bd8 long 10 D 18355 Ox0c0O00bd4 long D i0 x cO00bd0 int D 512 Ox0cO000bec int D 28607 Ox0c000bc8 int Figure 3 34 Locals Window e Double click the symbol in front of array a in the Locals window to display the elements of array a e Refer to the elements of array a before and after the execution of the sort function and confirm that random data is sorted in descending order RENESAS 53 3 17 Break Function The emulator has software and hardware break functions With the HDI a software breakpoint can be set using the Breakpoints window and a hardware break condition can be set using the Break Condition dialog box An overview and setting of the break function are described below 3 17 1 Software Break Function The emulator can set up to 255 software breakpoints Other methods for setting a software breakpoint than in section 3 8 are described below e Select Breakpoints from the View menu The Breakpoints window is displayed e Click the Breakpoints window with the right mouse button and select Delete All from the pop up menu to cancel all the breakpoints
23. refer to the online help Click the OK button and close the Configuration dialog box 69 2 ENESAS Set hardware break conditions as follows Break condition 1 When address H Oc0000c6 is accessed in a read cycle a break condition is satisfied Break condition 2 When address H Oc0000b2 is accessed in a read cycle a break condition is satisfied Follow the setting method described in the previous section e When Break Condition 1 2 setting has been completed the state of the Breakpoints window is as follows Breakpoints lof Ini x Symbol ss Type tutorial c 50 DCO0000C6 Break condition 1 tutorial c 46 0CO000B2 Break condition 2 Figure 3 51 Breakpoints Window After Sequential Break Condition Setting Close the Breakpoints window e Set the program counter and stack pointer values PC H 0c00006c and R15 H 0c000c00 that have been set in section 3 9 Setting Registers in the Registers window Click the Go button 70 RENESAS The program runs then stops at the condition specified under Break Condition 1 inci tutorial c IE x OcO00086 Oc0000a2 c 000aa 0cO0000ae 0c0000b2 0c0000b 0c0000ba Oc0000c2 Oc0000ca while 1 void abort void Oc0000d8 Figure 3 52 Source Window at Execution Stop Sequential Break 71 7 ENESAS The System Status window displays the following contents System Status Item Status Connected to SH
24. 10 RET To set the following conditions for channel 2 hardware breakpoint accessopt item Execution cycles r wopt item Read cycles bcs channel 2 access dat direction read RET To set the following conditions for channel 3 hardware breakpoint lt lIdtlbopt gt item Breaks during LDTLB instruction execution ioopt item Breaks when the internal I O area is accessed bcs channel 3 ldtlb break io RET Related Items BCC BCD BCE and TM commands Breakpoints window Break and Break Condition dialog boxes 157 RENESAS 5 2 8 BREAKPOINT BP Description Sets software breakpoints Note The function will differ according to the devices used Format bp lt address gt lt address_space gt lt asidopt gt lt address_space gt space lt space gt lt asidopt gt asid lt asid gt Table 5 9 BREAKPOINT Command Parameters Parameter Type Description lt address gt Numerical value Breakpoint address When an odd address is set the address is rounded down to an even address lt space gt Keyword Breakpoint address area Set either of the following keywords physical physical address virtual virtual address lt asid gt Numerical value ASID value of a breakpoint when virtual is set to the lt space gt parameter Note When virtual is set and the lt asidopt gt item is omitted in the lt address_space gt item a breakpoint is set to a virtual address corresponding to the ASID
25. 2 Then the Save session dialog box is displayed If necessary click the Yes button to save session After saving session the HDI ends If not necessary click the No button to end the HDI HDI Lx Q ee we cmn Figure 2 19 Save session Dialog Box 3 Turn the user system off 21 2 NE SAS 2 7 Uninstalling the HDI Follow this procedure to remove the installed HDI from the user s host computer 1 Open Add Remove Programs Properties from the control panel Select the HDI program from the list and click the Add Remove button 2 The setup program is executed again and the installed application can be changed modified or removed When the application is to be uninstalled select removal CAUTION A shared file may be detected while the program is being removed If another HDI may be using the shared file do not remove the file When Microsoft Windows NT 4 0 operating system is used the removal of the registry information on the driver may be asked If other HDI may use the target driver do not remove the registry information If another HDI does not start up after the removal process re install that HDI 22 RENESAS 2 8 CD R 2 8 1 Configuration of the CD R The root directory of the CD R contains a setup program for HDI installation The folders contain the files and programs listed below Table 2 2 Contents of the CD R Directories Director
26. 3 21 Profiling Function The profile function can measure performance for each function Notes 1 Realtime operation is not possible while this function is in operation since internal breaks are generated during program execution Measuring the profile itself affects the measurements For details refer to section 6 SHxxxx Emulator Specifications 2 When this function is to be used click the Load stack information file SNI file check box in the Load Program dialog box to load the stack information file 3 Performance profile measurement is not supported for all products On those products for which it is supported its characteristics differ according to the product For specifications for each product refer to the section related to the trace functions in section 6 SHxxxx E10A Emulator Specifications or to the online help file 4 For details refer to section 13 in the Hitachi Debugging Interface User s Manual e Select Profile List from the View menu to open the Profile List window A different set of data to be measured can be set for each function Profile List FI ES Address Size H OcOoO0000 H OO000006C 0 H OcOoO01FC H O0000002C O0 H OCOOO019A H O0000062 0 0 0 H OCOOOO0DC H O00000BE H OCOOOO0D8 H 00000004 H OcOO006C H 0000006C OOoOoooouu O 0O 0O 0o oog Figure 3 61 Profile List Window 84 RENESAS e The profile function is now enabled Place the mouse cursor on an entry in the
27. AY AUDCK YA OE Figure 6 9 User System Interface Circuit of the AUD Pin in the Emulator HS7660KCI02H Model Name HS0005KCI04H 195 RENESAS 6 4 Differences between the SH7660 and the Emulator When the emulator system is initiated it initializes the general registers and part of the control registers as shown in table 6 2 The initial values of the actual SH7660 registers are undefined Table 6 2 Register Initial Values at Emulator Power On Register Emulator at Power on RO to R14 H 00000000 R15 SP H A0000000 RO BANK to R7 BANK H 00000000 PC H A0000000 SR H 700000F0 GBR H 00000000 VBR H 00000000 MACH H 00000000 MACL H 00000000 PR H 00000000 SPC H 00000000 SSR H 000000F0 RS H 00000000 RE H 00000000 MOD H 00000000 A0G A1G H 00000000 AO A1 H 00000000 XO X1 H 00000000 YO Y1 H 00000000 MO M1 H 00000000 DSR H 00000000 e The emulator uses the H UDI do not access the H UDI e Low Power States Sleep Software Standby and Module Standby For low power consumption the SH7660 has sleep software standby and module standby states The sleep software standby and module standby states are switched using the SLEEP instruction When the emulator is used only the sleep state can be cleared with either the normal clearing function or with the Stop button and a break will occur 196 RENESAS Note The memory must not be accessed or modified in sl
28. Driver4 XXXX Run status Break Cause of last break BREAK POINT Run time count Oh Omin 0s 16ms Emulation mode Norma Big endian AUD Exist 4 h Session Platform Memory Events fo Figure 3 15 System Status Window Note The items that can be displayed in this window differ according to the product For the items that can be displayed refer to the online help 40 3 NE SAS 3 11 Reviewing Breakpoints The user can see all the breakpoints set in the program in the Breakpoints window e Select Breakpoints from the View menu Breakpoints iof Ini xi File Line Type Symbo tutorial c 43 OCO000A2 Breakpoint physical space Figure 3 16 Breakpoints Window The pop up menu opened by clicking the Breakpoints window with the right mouse button also allows the user to set or change breakpoints define new breakpoints and delete enable or disable breakpoints 41 2 N SAS 3 2 Viewing Memory When the label name is specified the user can view the memory contents that the label has been registered in the Memory window For example to view the memory contents corresponding to the _main in word size e Select Memory from the View menu enter __main in the Address edit box and set Word in the Format combo box Open Memory Window main Cancel Format Word Figure 3 17 Open Memory Window Dialog Box e Click the OK butt
29. E10A Emulator Specifications 4 2 1 Configuration Dialog Box Function This dialog box sets the emulation conditions of the emulator Window General Loading flash memory Mode E Emulation mode Normal Y Step option Disables interrupts during single step execution s UBC mode EML Memory area Normal Physical Virtual 45 0 po AUD clock five CPU clock JTAG clock 41 25MHz Driver Change Cancel Apply Help Figure 4 1 Configuration Dialog Box Note The items that can be set in this window differ according to the product For the settings for each product refer to the online help 100 3 NE SAS Description The Configuration dialog box consists of the General page listed in table 4 2 Table 4 2 Configuration Dialog Box Page Page Name Description General Sets and displays the emulation mode conditions Loading flash memory Sets the download function for the flash memory Clicking the OK button sets the emulation conditions If the Cancel button is clicked this dialog box is closed without setting the emulation conditions 3 NE SAS 101 1 General Page Configuration Dialog Box Function This page sets the emulator operation conditions displays the device name sets the emulation mode UBC mode and memory area only for a product that supports a device with the MMU function sets and displays the AUD clo
30. 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 Device names Sections 1 to 5 in this user s manual use SHxxxx as an example of the device names 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 Hl RENESAS SAFETY PAGE READ FIRST READ this user s manual before using this emulator product KEEP the user s manual handy for future reference Do not attempt to use the emulator product until you fully understand its mechanism DEFINITION OF SIGNAL WORDS P 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 hazar
31. Model Name HS0005KCM04H 191 RENESAS AUD logic circuit EPF6024ATC144 2 AUDATA 3 0 3Vcc To user system AUDATA 3 0 AUDSYNC AUDCK Figure 6 6 User System Interface Circuit of the AUD Pin in the Emulator HS7660KCM02H Model Name HS0005KCM04H 192 RENESAS Figure 6 7 shows the user system interface circuit of the emulator HS7660KCIO1H JTAG controller EPF10K20RC208 3 7ALVT244 47 kQ TDO 74LVT244 AT kO 220 A Y TCK 3Vcc 74LVT244 47kQ 220 A Y TMS 3Vcc 7ALVT244 47kQ 220 A Y I N TDI 3Vcc 74LVT244 AT kO Q rn TRST 3Vcc 74LVT244 a i 47kQ URESET RESETP 3Vcc 74LVT125 47 kQ 220 AY ASEBRKAK YA 3Vcc TO user system Figure 6 7 User System Interface Circuit in the Emulator HS7660KCI01H Model Name HS0005KCI03H RENESAS 193 The user system interface circuits of the emulator HS7660KCIO2H are shown Figures 6 8 and 6 9 show the circuits of the H UDI pin and AUD pin respectively JTAG controller EPF10K10AQC208 3 To user system 74LVT244 TCK A Y 74LVT244 74LVT244 TDO A Y Y A ASEBRKAK Figure 6 8 User System Interface Circuit of the H UDI Pin in the Emulator HS7660KCI02H Model Name HS0005KCI04H 194 RENESAS AUD logic circuit 3Vcc To user system 74LVT244 47 ko AUDATA I 3 0 AUDATA 3 0 AUDATA O 3 0 4 7 KQ AUDSYNC 3Vcc 3Vcc CDC351 OE 4 7 kQ
32. NT 4 0 Operating System 1 When the emulator is a PCI card 1 Shut the operating system down and turn off the power to the host computer 2 Insert the PCI card emulator in a slot on the host computer Refer to section 2 3 Connecting the Card Emulator to the Host Computer 3 Start the host computer and log on with an administrator level user name 4 Install the HDI For a component be sure to select PCI Card Driver There is a check box for selecting the type name of the product under the PCI Card Driver component Select the appropriate type name If the correct name is not selected the correct driver will not be installed and the emulator will not operate 5 Restart the host computer 2 When the emulator is a PCMCIA card 1 Shut the operating system down and turn off the power to the host computer 2 Insert the PCMCIA card emulator in the host computer s slot Refer to section 2 3 Connecting the Card Emulator to the Host Computer 3 Start the host computer and log on with an administrator level user name 4 During HDI installation the setting value should be checked beforehand because inquiries are made about the resource used by the PCMCIA card emulator Start the Start menu gt Programs gt Administrative Tools Common gt Windows NT Diagnostics check the status of the IRQ I O port and memory from the resource panel and determine the setting values that do not conflict with other devices The following
33. P E E UR A AE EA 77 rx di P TEAM cA L 2 Insert into the PCMCIA TYPE Il slot Figure 2 2 Inserting the PCMCIA Card Emulator in the Host Computer s Slot PCI card emulator 4 Insert into the PCI slot ke 4 amp WS ON Host computer Figure 2 3 Inserting the PCI Card Emulator in the Host Computer s Slot Use the procedure described in section 2 4 to connect the emulator to the user system with the user system interface cable or to disconnect them when moving the emulator or the user system 11 RENESAS A WARNING When inserting the PCl card emulator note the following Failure to do so will damage the host computer 1 Turn off the host computer 2 Insert the emulator into the PCI slot in parallel 3 Screw in the emulator after checking the connector and cable positions 2 4 Connecting the Card Emulator to the User System 1 The H UDI port connector must be installed to the user system Table 2 1 shows the recommended H UDI port connector for the emulator Table 2 1 Recommended H UDI Port Connector Connector Type Number Manufacturer Specifications 14 pin connector 2514 6002 Minnesota Mining amp 14 pin straight type Manufacturing Ltd 36 pin connector DX10M 36S Hirose Electric Co Ltd Screw type DX10M 36SE Lock pin type DX10GM 36SE Note When the 14 pin connect
34. Prohhn g FUDCHOD utere ey e eR Ue Ore ertet d EUR RI Sieh 84 322 Download Function to the Flash Memory Area sese 89 3 23 What Next 5 codenine ets eee dti petii erecto tede tees eio feo d 95 Section 4 Descriptions of WIDnOOWS iiri t HARI AMI S IRE Ede Rees 97 LEE CIE ES 97 4 2 Descriptions of Each Window ssssssseeeeeeneneeee nennen nene een rennen eene nene 100 4 2 1 Configuration Dialog Box esee 100 42 2 Br akpomts WindOW eere preteen eiie dee iet eMe repe dd 108 42 5 Break Dialog BOX etre e eter titer malen E PXR ee eE RUE 111 42 4 Break Point Dialog Box oerte ttr tente ree need 117 4 2 5 Break Condition Dialog Box esee nnne 119 4 2 6 Break Condition Dialog Box Pages eene 121 42 7 Trace Window eere rete RESTER ei P Pre 133 4 2 8 Trace Acquisition Dialog Box eene 135 4 29 System Status Window sessi en nnne en 138 Section 5 Command line Functions 1202 2 eigen ci olet eiua inea 141 5 1 Table and Symbol Description eren eene eene nennen nen 141 Sd Formats eee ete ew ee epe utei bep 141 3 L2 Parameter Inp t ose opto Une ORDRE monti 141 25 1 3 Examples E EE A URSUS EUHNRRRUBI UU SHENA 142 DAA Related Itefns hetero e eni erp rr e b tte Ree teet 142 52 Command Descriptions eee dette e plecti Eee t eripe 143 32 JAAUD CLOC
35. Renesas sales agency RENESAS Section 2 Preparation before Use 2 1 Emulator Preparation 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 Unpack the emulator and prepare it for use as follows Reference Unpack the emulator Component list Check the components against the component list When the emulator is used first Set up the emulator Section 2 Install the HDI Insert the card emulator Start the HDI Section 3 When the emulator Turn on the user system is used for second time or later Input the user system reset signal Figure 2 1 Emulator Preparation Flow Chart RENESAS 2 2 HDI Installation When the CD R is inserted in the host computer s CD ROM drive the HDI installation wizard is automatically activated holding the Shift key down while the CD R is inserted cancels this automatic activation To run the installation wizard when it has not been automatically activated execute Setup exe from the root directory of the CD R Follow the cues given by the installation wizard to install the HDI Since hardware settings are also made during installation the installation procedure differs according to the operating system or interface PCI or PCMCIA being used Follow the installation steps carefully according to the environment
36. Technology Corporation or a third party Renesas Technology Corporation assumes no responsibility for any damage or infringement of any third party s rights originating in the use of any product data diagrams charts programs algorithms or circuit application examples contained in these materials All information contained in these materials including product data diagrams charts programs and algorithms represents information on products at the time of publication of these materials and are subject to change by Renesas Technology Corporation without notice due to product improvements or other reasons It is therefore recommended that customers contact Renesas Technology Corporation or an authorized Renesas Technology Corporation product distributor for the latest product information before purchasing a product listed herein The information described here may contain technical inaccuracies or typographical errors Renesas Technology Corporation assumes no responsibility for any damage liability or other loss rising from these inaccuracies or errors Please also pay attention to information published by Renesas Technology Corporation by various means including the Renesas Technology Corporation Semiconductor home page http www renesas com When using any or all of the information contained in these materials including product data diagrams charts programs and algorithms please be sure to evaluate all information as a total system
37. address for the eight latest branch instructions are displayed See figure 6 10 Trace mode Page Notes 1 If an interrupt is generated at the program execution start or end including a step execution the emulator address may be acquired In such a case the following message will be displayed Ignore this address because it is not a user program address 2 If a completion type exception occurs during exception branch acquisition the next address to the address in which an exception occurs is acquired 3 Trace information cannot be acquired for the following branch instructions e The BF and BT instructions whose displacement value is 0 e Branch to H A0000000 by reset 4 The internal trace acquisition is not available when User is selected in the UBC mode list box of the Configuration dialog box In this case close the Trace window 6 5 4 Notes on Using the JTAG Clock TCK and AUD Clock AUDCK 1 Set the JTAG clock TCK frequency to less than the frequency of the SH7660 peripheral module clock CKP 2 Set the AUD clock AUDCK frequency to 50 MHz or below for PCMCIA and PCI cards 6 5 5 Notes on Setting the Breakpoint Dialog Box 1 When an odd address is set the next lowest even address is used 2 A BREAKPOINT is accomplished by replacing instructions of the specified address Accordingly it can be set only to the internal RAM area However a BREAKPOINT cannot be set to the following addresses e An area oth
38. and R15 H 0c000c00 that have been set in section 3 9 Setting Registers in the Registers window Click the Go button The program runs and stops at the set breakpoint inci tutorial c OE x 0c000086 0c0000a2 Oc0000aa min DcO000ae max 0c0000b2 min 0c0000b 0c0000ba Oc0000c6 max a 0 Oc0000ca while 1 void abort void Oc0000d8 abort Figure 3 40 Source Window at Execution Stop Software Break 58 RENESAS The System Status window displays the following contents System Status Item Status Connected to SH ex E104 Emulator E104 PCI Card Driver4 CPU SH xxx Run status Break Cause of last break BREAK POINT Run time count Oh Omin 0s 16ms Emulation mode Norma Big endian AUD Exist Session Platform Memory L events 7 y y y EA Figure 3 41 Displayed Contents of the System Status Window Software Break Note The items that can be displayed in this window differ according to the product For the items that can be displayed refer to the online help 59 2 N SAS 3 18 Hardware Break Function A method is given below in which the address bus condition and the read cycles for the bus status condition are set under Break Condition as hardware break conditions e Select Breakpoint Window from the View menu The Breakpoints window is displayed Click the Breakpoints window with the right mous
39. before making a final decision on the applicability of the information and products Renesas Technology Corporation assumes no responsibility for any damage liability or other loss resulting from the information contained herein Renesas Technology Corporation semiconductors are not designed or manufactured for use in a device or system that is used under circumstances in which human life is potentially at stake Please contact Renesas Technology Corporation or an authorized Renesas Technology Corporation product distributor when considering the use of a product contained herein for any specific purposes such as apparatus or systems for transportation vehicular medical aerospace nuclear or undersea repeater use The prior written approval of Renesas Technology Corporation is necessary to reprint or reproduce in whole or in part these materials If these products or technologies are subject to the Japanese export control restrictions they must be exported under a license from the Japanese government and cannot be imported into a country other than the approved destination Any diversion or reexport contrary to the export control laws and regulations of Japan and or the country of destination is prohibited Please contact Renesas Technology Corporation for further details on these materials or the products contained therein IMPORTANT INFORMATION READ FIRST READ this user s manual before using this emulator product KEEP the us
40. cleared Window Figure 4 8 Point Page Break Dialog Box 3 NE SAS 113 Description Table 4 9 Point Page Options Option Break point list box Description Lists the software breakpoints currently being set The display contents are lt breakpoint address gt and lt address space gt address space is displayed as follows e Physical Space e Virtual Space ASID D xxx xxx is the ASID value displayed in decimal form Add button Sets software breakpoints Clicking this button displays the Break Point dialog box Edit button Changes the software breakpoint selected in the Break point list box Clicking this button displays the Break Point dialog box Reset button Clears the software breakpoint selected in the Break Point list box Reset All button Related Commands BREAKPOINT command Clears all software breakpoints displayed in the Break Point list box BREAKPOINT_CLEAR command BREAKPOINT_ENABLE command BREAKPOINT_DISPLAY command 114 3 NE SAS 2 Condition Page Break Dialog Box Function This page displays the Break Condition settings These conditions can also be set or cleared in this page Window 1 Enable Figure 4 9 Condition Page Break Dialog Box Note The number of hardware break conditions differs according to the product For the number that can be specified
41. counter and stack pointer values PC H 0c00006c and R15 H 0c000c00 as were set in section 3 9 Setting Registers again use the Registers window Click the Go button e After the break in execution the results of the measurements are displayed in the Profile List window Profile List Function Variable Address Size INITSCT H co00000 H O0000006c rand H O coO001FC H O0000002c change H 0cO0019A H 00000062 H c 000pC H O0O00000BE H OCOODO0DS8 H O00000004 H O co000 6c H O0000006C Figure 3 65 Profile List Window 87 3 NE SAS e Figures 3 66 and 3 67 show the Profile Tree and Profile Chart windows respectively Profile Tree Function Address Size Stack Size Application INITSCT H Ocoo00000 H O0000006c H O00000008 abort H cOO000D8 H O00000004 H O00000000 main H 0cOo000 c H 0000006c H 00000038 H co00iFC H O00000ZcC H O00000000 H 0cO00194 H O00000062 H 00000030 H co000pc H O000000BE H 00000018 Figure 3 66 Profile Tree Window rt main main change Figure 3 67 Profile Chart Window 88 3 NE SAS 3 22 Download Function to the Flash Memory Area The E10A emulator enables downloading to the flash memory area This function requires a program for writing the flash memory hereinafter referred to as a write module a program for erasing the flash memory hereinafter referred to as an erase module and the
42. during the program s execution will be reduced 5 This section describes general usage examples for the emulator For the specifications of particular products refer to section 6 or the online help file 26 RENESAS 3 2 Running the HDI To run the HDI select the HDI for E10A SHxxxx gt Hitachi Debugging Interface from the Start menu Accessories UA Internet Explorer x Favorites StartUp H amp S MS DOS Prompt N Documents By Windows Explorer amp HDI for E104 SHxox d Hitachi Debugaing Interface Eh Settings Log Off Administrator Uy Shut Down jeg Figure 3 1 Start Menu For the procedure of running the HDI refer to section 2 5 System Check 27 13 NE SAS 3 3 HDI Window tutorial SH XX Al Hitachi Debugumg interface E10A Emulator tutorial c 1 gt Ee Edt View Bun Memoy Setup Window Heb _ e Pe aaa ae E 5 P Label Source Oc00006c _main void main void long a 10 3 long j int i min max Oc00006e for i 0 i 10 i 1 Oc000076 j rand c 0007e if j 0 1 Oc000082 j 3 Oc000086 ali ij Oc0000a2 sort a c 000aa min a 0c0000ae Max a 9 OcO000b2 min 0 c 000b6 max 0 Oc0000ba change a c 000c2 min a 9 Oc0000c6 max a 0 Oc0000ca while 1 m 4 b 4 For Help press F1 NUM A Figure 3 2 HDI Window The key functions of the HDI are described in secti
43. hexadecimal is input specify the prefix code such as B 20 BREAKPOINT Session file When the contents of the BREAKPOINT address set in the session file is H O the BREAKPOINT will not be set If the address set as the BREAKPOINT is wrong the error message is not output The BREAKPOINT is registered as DISABLE in the Breakpoints window Breakpoint cancellation When the contents of the BREAKPOINT address is modified during user program execution the following message is displayed when the user program stops BREAKPOINT IS DELETED A xxxxxxxx If the above message is displayed cancel all BREAKPOINT settings with the Delete AII or Disable button in the Breakpoints window Run program dialog box If a disabled BREAKPOINT address is specified as a stop address in the Run Program dialog box the disabled BREAKPOINT will become enabled after the user program has stopped 223 RENESAS 2 22 23 24 25 CA 26 Breakpoints window During user program execution it is impossible to jump from the breakpoint to the source or address line on the Source or Disassembly window by using Go to Source in the popup menu displayed on the Breakpoints window Number of BREAKPOINT and Stop At Settings in the Run Menu The maximum number of BREAKPOINTS and Stop At settings allowed in the Run menu is 255 Therefore when 255 BREAKPOINTS are set specification by Stop At in the Run
44. of the VP MAP table enable Enables the setting of the VP MAP table disable Disables the setting of the VP MAP table Note The setting of the VP MAP table is disabled at the emulator initiation Example To enable the setting of the VP MAP table ve enable RET Related Items VC VD and VS commands Note This command is not supported in a device in which the MMU is not built in 181 RENESAS 5 2 25 VPMAP SET VS Description Sets the address translation VP_MAP table in the emulator Format vs lt lsaddress gt lt leaddress gt lt paddress gt Table 5 26 VPMAP_SET Command Parameters Parameter Type Description lt lsaddress gt Numerical value Specifies the virtual start address to be set in the VP_MAP table in the page size units supported by the MMU Setting a physical fixed area or an internal I O area as a virtual address will result in an error lt leaddress gt Numerical value Specifies the virtual end address to be set in the VP_MAP table in the page size units supported by the MMU Setting a physical fixed area or an internal I O area as a virtual address will result in an error lt paddress gt Numerical value Specifies the physical start address to be set in the VP MAP table Note The virtual address range to be newly set cannot overlap a virtual address that has already been set Clear the previous set range when making a new setting Example To set the virtual address rang
45. referred to as the emulator is a software and hardware development support tool for application systems using the microprocessor developed by Renesas Ltd The PCMCIA card emulator or PCI card emulator hereafter referred to as the card emulator which is the main unit of the emulator is connected through the H UDI user debug interface port to the user system The user system can be debugged under the conditions similar to the actual application conditions The emulator enables debugging anywhere indoors or out The host computer for controlling the emulator must be an IBM PC compatible machine with a PCMCIA type II or PCI slot Figures 1 1 and 1 2 show the system configuration using the emulator Note The H UDI is an interface compatible with the Joint Test Action Group JTAG specifications Host computer PC with PCMCIA TYPE II slot f f J i card emulator jis e oon oH 7577 A AES P User system interface cable CF be LF BS A SHxxxx Insert into the PCMCIA TYPE II slot Connect to the H UDI port connector User system Figure 1 1 System Configuration with the Emulator PCMCIA Card Emulator Used RENESAS User system interface cable PCI card emulator SHxxxx M Insert into e the PCI slot E 1j DCN User system Host computer kj Figure 1 2 S
46. rennen ens 36 39 Setting RESiSters s isc eto e eU eR REPRE e E pute E E oe trees 37 3 10 Executing the Program sog emere tere e oli rp Re 39 3 11 Reviewing Breakpoits icone ete eerte ed ie rie iee tiiis 41 3 12 Wie wing Memoty o rait eed GIRO HE RE RO P DE E PORE prt eie es 42 3 13 Watching Variables iine eet ose v RE e Re E p e Su EE 43 3 14 Stepping Through a Program ene imet tete ttti etie 46 3 14 1 Executing Step In Command eese 46 3 14 2 Executing Step Out Command sees 48 13 NE SAS 3 14 3 Executing Step Over Command 0 0 ccc eese 50 3 15 Forced Breaking of Program Executions eeeeeeseeeeeeee eene nennen 52 3 16 Displaying Local Variables 4 eire tto He a biete a RE Hs 53 35 17 Break Function iere eR RERO ERE ee dessa eeb clams 54 3 17 1 Software Break Function i cssccecen eot rere Ep tete P ERE Eo eve P PERS 54 3 18 Hardware Break Function eeeseeesseesee esee enne enne enn innen enne entente ennt 60 3 18 1 Setting the Sequential Break Condition esee 68 3 19 Trace Functions en e eve epe rfe rpe eerie arie Eee eren peces 73 5 19 1 Internal Trace Function Lice erret rrr E EAS ERE UE EPI ERERN 75 3 19 2 AUD Trace Function ect tree enero eie nne cot teneees TI 3 1923 VP MAP Translations isos ere Rete reete etec tede eese roger 79 3 20 Stack Trace Function em rep E De repere 82 32
47. resources are used IRQ one channel I O port H F byte and memory H 4000 byte 5 Install the HDI For a component be sure to select PC Card Driver PCMCIA There is a check box for selecting the type name of each product under the PC Card Driver PCMCIA component Select the appropriate type name If the correct name is not selected the correct driver will not be installed and the emulator will not operate 6 Restart the host computer Notes 1 For the SH7729 SH7729R and SH7622 E10A emulators there is a check box for selecting the MODEL name that appears on the component list Select the correct type name 2 The driver that has been selected in the Drivers component starts after the host computer is initiated If the host computer is initiated with the card disconnected or with the incorrect driver installed the driver cannot initiate and the service control manager informs the system of an error This however is not a problem RENESAS 2 2 3 Installing under Windows 2000 Operating System 1 When the emulator is a PCI card 1 2 3 4 Log on with an administrator level user name Install the HDI When a component is selected be sure to select PCI Card Driver Shut the operating system down and turn off the power to the host computer Insert the PCI card emulator in a slot on the host computer Refer to section 2 3 Connecting the Card Emulator to the Host Computer Restart the host computer and lo
48. rial De bug t Browse Load only debugging information Iv Load stack information file S NI file Figure 3 6 Load Program Dialog Box Notes 1 When installing the emulator if no directory is specified and the HEW is in use the program is installed under Hew hdi5 e10a When the HEW is not in use the program is installed under root directory E10A 2 The SNI file is required so that the profiler function can be used 3 The Verify check box is disabled in this product After the file has been loaded the following dialog box displays information about the memory areas to which the program code has been transferred HDI ii Module name C HewSHdi5 E104 x tutorial tutorial D ebug tutorial abs Areas loaded OCO00000 OC00023F 1 Figure 3 7 HDI Dialog Box e Click the OK button to continue 33 RENESAS 3 7 2 Displaying the Source Program The HDI allows the user to debug a program at the source level e Select Source from the View menu The Open dialog box is displayed e Select the C source file that corresponds to the object file the user has loaded Open 24x aw A a Release initsct c tutorial c Figure 3 8 Open Dialog Box e Select tutorial c and click the Open button The Source window is displayed 34 3 N ESAS inci tutorial c OF xi OcO0006c Oc00006e OcO00076 0
49. specifications of each product refer to the online help 160 RENESAS Examples To clear all breakpoints gt be RET To clear all software breakpoints whose address value is H 1000000 gt be H 1000000 RET To clear a software breakpoint whose virtual address is H 1000000 according to the ASID value at command input bc H 1000000 space virtual RET To clear the software breakpoint at virtual address H 1000000 whose ASID value is H 10 bc H 1000000 space virtual asid H 10 RET Related Items BP BD BE VC VD VE and VS commands Breakpoints window Break dialog box 161 RENESAS 5 2 10 BREAKPOINT_DISPLAY BD Description Displays software breakpoints that have been set Format bd Table 5 11 BREAKPOINT DISPLAY Command Parameter Parameter Type Description None Example To display the software breakpoints that have been set gt bd RET H 00000110 physical enable H 0000011c virtual asid H 0 disable H 00000250 physical enable Note The items displayed with this command differ according to the product For the display specifications of each product refer to the online help Related Items BP BC and BE commands Breakpoints window Break dialog box 162 RENESAS 5 2 11 BREAKPOINT_ENABLE BE Description Enables or disables software breakpoints that have been set Format be lt address gt lt address_space gt lt asidopt gt lt mode gt lt address_space gt space l
50. states VS Branch instruction counts BT Number of execution instructions DSP instruction execution counts DI Instruction data conflict cycle MAC Other conflict cycles than instruction data OC Exception interrupt counts EA Interrupt counts INT Number of BL 1 instructions BL1 Number of MD 1 instructions MD1 Instruction cache miss counts IC Data cache miss counts DC Instruction fetch stall IF Data access stall DA Instruction cache miss stall ICS Data cache miss stall DCS Cacheable access stall CS U RAM access stall US X Y RAM access stall XYS Instruction data access stall cycle MA Other access cycles than instruction data NMA Non cacheable area access cycle NCC Non cacheable area instruction access cycle NCI Non cacheable area data access cycle NCD 213 RENESAS Table 6 11 Measurement Item cont Selected Name Option Name Cacheable area access cycle CC Cacheable area instruction access cycle CIC Cacheable area data access cycle CDC Access counts other than instruction data NAM Non cacheable area access counts NCN Non cacheable area instruction access counts NCIN Non cacheable area data access counts NCDN Cacheable area access counts CN Cacheable area instruction access counts CIN Cacheable area data access counts CDN Each measurement condition is also counted when conditions in table 6 12 are generated Table 6 12 Performance Measurement Conditions to be Counted Measurement Condition Notes C
51. that have been set Breakpoints Enable File Line Figure 3 35 Breakpoints Window Before Software Breakpoint Setting 54 RENESAS Click the Breakpoints window with the right mouse button and select Add from the pop up menu The Break dialog box is displayed The Point page is displayed as a default dE Seta Figure 3 36 Point Page Break Dialog Box RENESAS 55 e Click the Add button to display the Breakpoint dialog box e Enter H 0c0000c2 to the Value edit box Breakpoint H 0c0000c2 Figure 3 37 Break Point Dialog Box e Click the OK button 56 RENESAS The Break dialog box is displayed The address set in the value field of Breakpoint and the memory space are displayed ISRTTGES innu Figure 3 38 Point Page Break Dialog Box After Software Breakpoint Setting Click the Close button or OK button in some emulator products 57 RENESAS The software breakpoint that has been set is displayed in the Breakpoints window Breakpoints Oo Oy x Symbol ress Type tutorial c 49 0CO000C2 Breakpoint physical space Figure 3 39 Breakpoints Window Software Breakpoint Setting To stop the tutorial program at the breakpoint the following procedure must be executed e Close the Breakpoints window e Set the program counter and stack pointer values PC H 0c00006c
52. the Emulator Product This emulator product should only be used by those who have carefully read and thoroughly understood the information and restrictions contained in the user s manual Do not attempt to use the emulator product until you fully understand its mechanism It is highly recommended that first time users be instructed by users that are well versed in the operation of the emulator product RENESAS LIMITED WARRANTY 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 replace any emulator products returned intact to the factory transportation charges prepaid which Renesas upon inspection shall 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 warranty booklet for details on the warranty period This warranty extends only to you the original Purchaser It is not transferable to anyone who subsequently purchases the emulator product from you Renesas is not liable for any claim made by a third party or made by you for a third party DISCLAIMER RENESAS MAKES NO WARRANTIES EITHER EXPRESS OR IMPLIED ORAL OR WRITTEN EXCEPT AS PROVIDED HEREIN INCLUDING WITHOUT LIMITATION THEREOF WARRANTIES AS TO MARKETABILITY MERCHANTABILITY FITNESS FOR ANY PARTICULAR PURPOSE OR USE OR AGAINST INFR
53. translation table translation look aside buffer TLB in the MCU The MMU operates during command input wait state as well as during user program execution When a command for memory access is executed while the MMU address translation function is enabled the address translated by the MMU is accessed If the specified address is not within the TLB a TLB miss occurs and the TLB must be updated by the user program The emulator has address translation functions according to the VP MAP tables The VP MAP tables are the address translation tables for the emulator created with the VPMAP SET command The following shows an example of how to use the VP MAP tables Example 1 Create VP MAP tables for translating virtual addresses H 10000 to H 10FFF to physical addresses H 4000000 to H 4000FFF and virtual addresses H 11000 to H 11FFF to physical addresses H O to H FFF gt vs 10000 10FFF 4000000 RET gt vs 11000 11FFF 0 RET vd RET XVADDR TOP VADDR END PADDR TOP 00010000 00010FFF 04000000 00011000 00011FFF 00000000 DISABLE 2 Then enable the VP MAP tables When the tables are disabled addresses are not translated ve enable RET vd RET XVADDR TOP VADDR END PADDR TOP 00010000 00010FFF 04000000 00011000 00011FFF 00000000 ENABLE Here virtual addresses correspond to physical addresses as shown in figure 3 58 79 RENESAS H 10000 H FFF H 10FFF H 11000 H 1
54. value at command input Note The parameters for this command differ according to the product For the specifications of each product refer to the online help 158 RENESAS Examples To set a software breakpoint at physical address H 10002C8 gt bp H 10002C8 space physical RET To set a software breakpoint at logical address H 1000000 whose ASID value is H 10 gt bp H 1000000 space virtual asid H 10 RET Related Items BC BD BE VC VD VE and VS commands Breakpoints window Break dialog box RENESAS 159 5 2 9 BREAKPOINT_CLEAR BC Description Clears software breakpoints that have been set Format bc lt address gt lt address_space gt lt asidopt gt lt address_space gt space lt space gt lt asidopt gt asid lt asid gt Table 5 10 BREAKPOINT CLEAR Command Parameters Parameter Type Description lt address gt Numerical value Breakpoint address space Keyword Address area of a breakpoint Set either of the following keywords physical physical address virtual virtual address lt asid gt Numerical value ASID value of a breakpoint when virtual is set to the lt space gt parameter Notes 1 When no parameters are set all software breakpoints are cleared 2 When lt address_space gt and lt asidopt gt are not set all software breakpoints that match the specified address are cleared Note The parameters for this command differ according to the product For the
55. value in the trace display range as numerical values By default the start pointer is CD 8191 and the end pointer is D 0000 In the PCMCIA card emulator D 8191 to D 0 can be set to the trace pointer In the PCI card emulator D 32767 to D O can be set 137 3 NE SAS 4 2 9 System Status Window Function This window lists information such as conditions that have been set to the emulator and execution results Window System Status Item Status tees to SHxex E104 Emulator E104 PCI Card Driver4 SH xxxx Run status Break Cause of last break BREAK POINT Run time count Oh Omin 0s 16ms Emulation mode Norma Big endian AUD Exist 4 h Session Platform Memory 4 Events fo Figure 4 20 System Status Window Note The items that can be displayed in this window differ according to the product For the items that can be displayed refer to the online help 138 ztENESAS The items listed in the following table are displayed in the System Status window Table 4 24 System Status Window Display Items Page Item Description Session Target System Always displays Connected Session Name Displays the session file name Program Name Displays the load module file name Platform Connected To Displays the name of the connected emulator and the selected driver name CPU Displays the target device name Run status Displays the execution status RUNN
56. you are using 2 2 1 Installing under Windows 98 and Windows Me Operating Systems 1 When the emulator is a PCI card 1 Install the HDI when the component type has to be selected during installation be sure to select PCI Card Driver 2 Shutthe operating system down and turn off the power to the host computer 3 Insert the PCI card emulator in a slot on the host computer Refer to section 2 3 Connecting the Card Emulator to the Host Computer 4 Restart the host computer The hardware is now recognized and the driver is automatically installed 2 When the emulator is a PCMCIA card 1 Install the HDI when the component type has to be selected during installation be sure to select PC Card Driver PCMCIA 2 Insert the PCMCIA card emulator in the host computer s slot Refer to section 2 3 Connecting the Card Emulator to the Host Computer 3 The hardware is now recognized and the driver is automatically installed Note When Add New Hardware Wizard is displayed select the Search for the best driver for your device Recommended radio button and then the Specify a location check box to select the path to be searched for drivers The location must be specified according to the emulator type as indicated below When using the PCI card emulator Drive ADRIVERSWPCIN95 When using the PCMCIA card emulator lt Drive gt DRIVERS PCMCIA 95 Drive is the CD ROM drive name RENESAS 2 2 2 Installing under Windows
57. 0 Figure 5 1 Figure 6 1 Figure 6 2 Figure 6 3 Figure 6 4 Figure 6 5 Figure 6 6 Figure 6 7 Figure 6 8 Figure 6 9 viii Source Window Software Break Setting seen 87 Profile List Window cccccccccssccecsssceceessececsseececseececeseaeeecsessececseseecseseeecseaeess 87 Profile Tree Window e e an renra e aaner apare e enne enne rennen nennen 88 Profile Chart Window sees nennen ener nennen rennen enters 88 Loading flash memory Page seen eene 90 Flash Memory Wiin gaaon oeenn nennen e enne nenne tenete en rennes 92 Loading flash memory Page seen nennen nennen 93 Configuration Dialog Box eese nennen eene enne 100 General Page Configuration Dialog Box eene 102 Warning Message BOX eei tette de eei E reete E Rege 104 E10A Driver Details Dialog Box eese enne 105 Loading flash memory Page Configuration Dialog Box 106 Breakpoints Window ersen aiie nea a ce er e eee e ert o eee BUS 108 Break Dialog BOX ertet eren E ere eee PME e erra Ree iea 111 Point Page Break Dialog Box enne 113 Condition Page Break Dialog Box eene 115 Break Point Dialog BOX temor UR tbe pet 117 Break Condition Dialog Box 0 ce eeceesceesseceeceeceseceeneecesaeceeneeesaeceeeeenaeceereeenaeees 119 Address Page
58. 105 3 NE SAS 3 Loading flash memory Page Configuration Dialog Box Function Downloading to the flash memory is set on the Loading flash memory page Window Configuration Figure 4 5 Loading flash memory Page Configuration Dialog Box 106 3 NE SAS Description Table 4 5 Loading flash memory Page Options Option Loading flash memory radio button Description Sets Enable for flash memory downloading At Enable when File load is selected from the File menu for downloading the write module is always called Enable Download to the flash memory Disable Not download to the flash memory Erasing flash memory radio button Sets Enable for erasing before the flash memory is written At Enable the erase module is called before calling the write module Enable Erase the flash memory Disable Not erase the flash memory File name edit box Sets the write erase module name The file that has been set is loaded to the RAM area before loading to the flash memory A maximum of 128 characters can be input for the file name Bus width of flash memory list box Sets the bus width of the flash memory Flash memory erasing time edit box Sets the TIMEOUT value at flash memory erasing Increase the value if erasing requires much time the default time is three minutes The radix for the input value is decimal It becomes hexadecimal by adding H
59. 1FFF H 12000 H 12000 H 12FFF H 12FFF d 227272 4000000 Weak 4000FFF Virtual address Physical address Figure 3 58 Address Translation according to VP_MAP Tables How to translate addresses depends on the settings of the radio buttons of the memory area group in the Configuration dialog box The following shows how to translate addresses in each setting state e When the Normal radio button is selected The VP_MAP table has a priority over the TLB When the VP_MAP table is enabled and the specified address is within the VP_MAP table settings the emulator translates the address according to the VP_MAP table If the specified address is outside the VP_MAP table settings even when the VP MAP table is enabled or when the VP MAP table is disabled the emulator translates the address according to the MMU state e When the Virtual radio button is selected The address is translated according to the TLB If the specified address is outside the TLB table settings a TLB error will occur e When the Physical radio button is selected The address is not translated 80 RENESAS Table 3 5 Address Translation Tables VP MAP MMU Within Radio Enabled Outside Enabled Within Outside Table Used for Button Disabled the range Disabled the TLB Range Translation Normal Enabled Within the Enabled Within the Range Translated according to Range the VP_MAP table Outside the range Translated according to t
60. 47b3 Ox0c000be8 long 0c00007e if j 001 5 H 000036c9 0x0c000bec long 0c000082 j j 6 H 00002 82 Ox0c000bf0 long 7 H 00002c8c 0x0c000bf4 long 0c000086 8 H 00000f16 i 0x0c000bf8 long 9 H 00000200 0x0c000bfc long 0c0000a2 e max H 00000000 0x0c000bc8 int 0c0000aa 0c0000ae 0c0000b2 0c0000b 0c0000ba 0c0000c6 max a 0 0c0000ca while 1 void abort void 0c0000d8 abort H _sort void sort long a Oc0000dc Figure 3 31 HDI Window Step Over 51 2 N ESAS 52 3 5 Forced Breaking of Program Executions The HDI can force a break in the execution of a program To execute the remaining sections of the main function select Go from the Run menu or the Go button on the toolbar Figure 3 32 Go Button e The program goes into an endless loop To force a break in execution select Halt from the Run menu or the Stop button on the toolbar D Figure 3 33 Stop Button e The highlighted line of the Program window moves to the while statement and the value of max displayed in the Watch window is updated to the most recent value RENESAS 3 16 Displaying Local Variables The user can display local variables in a function using the Locals window For example we will examine the local variables in the main function which declares five local variables a
61. 62 BRANCH 00000188 DESTIN 00000162 BRANCH 00000180 DESTIN 00000058 ADDR DATA BF MOV BF MOV BF MOV BF MOV BF MOV BF MOV BF MOV RTS MOV OPERAND H 0162 8 GR15 R1 H 0162 8 R15 R1 H 0162 8 GR15 R1 H 0162 8 R15 R1 H 0162 8 GR15 R1 GH 0162 8 R15 R1 H 0162 8 GR15 R1 H 34 4 Source a i a i a i a i a i a i a i min a 9 tmp 9 tmp 9 tmp 9 tmp 9 tmp 9 tmp 9 tmp 9 il il il il il il il Note Figure 4 18 Trace Window 2eENESAS The types of information and the number of branch instructions differ according to the product For the settings for each product refer to the online help 133 Description This window displays the trace buffer contents The items listed in table 4 21 are displayed Table 4 21 Trace Window Display Items Item Description No Displays the number in ascending order as the trace stop point is 0 signed decimal IP Displays the instruction pointer signed decimal TYPE For the branch instruction trace displays the information type that is branch source or branch destination BRANCH Branch source DESTINATION Branch destination ADDR DATA Forthe branch instruction trace displays the branch source or branch destination address MNEMONIC Displays the execution instruction mnemonic OP
62. ERAND Displays the execution instruction operand Source Displays the C source line of the address that the trace has been acquired The pop up menu opened by clicking the right mouse button can be used to set change and clear trace conditions For details refer to the Hitachi Debugging Interface User s Manual Notes 1 In some cases the emulator address may be acquired by trace In such a case the following message will be displayed Ignore this address because it is not a user program address EML 2 The Halt menu in the pop up menu is active only when the Trace window is open during user program execution When the internal trace is used realtime emulation cannot be performed by using the Halt menu Related Command TRACE DISPLAY command 134 3 NE SAS 4 2 8 Trace Acquisition Dialog Box Function This dialog box sets trace acquisition conditions When the Acquisition menu is selected from the pop up menu which is displayed by clicking the right mouse button in the Trace window the Trace Acquisition dialog box is displayed Table 4 22 Trace Acquisition Dialog Box Page Options Page Name Description Trace Mode Sets the conditions of trace mode 135 3 NE SAS 1 Trace Mode Page Trace Acquisition Dialog Box Function This page sets the conditions for trace mode Window Figure 4 19 Trace mode Page Trace Acquisition Dialog Box No
63. Enables interrupts disable Disables interrupts Example To enable interrupts during step execution Si enable RET To display interrupt status during step execution gt si RET Emulator step interrupt mode ENABLE 175 RENESAS 5 2 20 TRACE_DISPLAY TD Description Displays the acquired trace information The information to be acquired is the branch source and branch destination addresses when a branch is made during the user program execution Format td Table 5 21 TRACE DISPLAY Command Parameter Parameter Type Description None Notes 1 In some cases the emulator address may be acquired In such a case the following message will be displayed at the place where the mnemonic or operand is displayed Ignore this address because it is not a user program address 2 Ifa TLB error occurs while acquired trace information is displayed the following error message will be displayed HDI Lx TLB ERROR occurred Will you clear the EXPEVT register value Figure 5 1 TLB Error Message Dialog 176 RENESAS Example To display trace information according to information acquired during user program execution gt td RET IP TYPE ADDR MNEMONIC OPERAND D XXXXXX BRANCH 01000010 JSR GRO DESTINATION 01000020 MOV L R1 GR1 a b c d e a Instruction pointer signed decimal b Types of branch source or branch destination BRANCH Branch source DESTINATIO
64. Figure 3 12 Register Dialog Box PC Change the value of the stack pointer SP in the same way Set H Oc000c00 for the value of the stack pointer in this tutorial program RENESAS 3 10 Executing the Program Execute the program as described in the following e To execute the program select Go from the Run menu or click the Go button on the toolbar sil Figure 3 13 Go Button The program will be executed up to the breakpoint that has been inserted and a statement will be highlighted in the Source window to show the position that the program has halted with the message Break BREAKPOINT in the status bar tutorial c Line Address BP Label Source OcO0006c main void main void long a 10 long j int i min max 0c00006e for i 0 i lt 10 i 0c000076 j rand 0c00007e if j lt 0 4 0c000082 j 3 0c 00086 0c0000aa min OcO000ae max OcO000b2 min OcO000b6 max f OcO000ba change a Oc0000c2 min a 9 OcO0000c6 max a 0 Oc0000ca while 1 void abort void Figure 3 14 Source Window Break Status 39 RENESAS The user can see the cause of the break that occurred last time in the System Status window e Select Status from the View menu After the System Status window is displayed open the Platform page and check the status of Cause of last break System Status Item Status ener to SH E104 Emulator E104 PCI Card
65. ING Being executed Break Stopped Cause of last break Displays the cause of the emulator stopping at break In this example the cause of the stop is BREAK POINT Run time count Displays the program execution time The display format is h hours min minutes s seconds and ms milliseconds In this example Oh 0min 0s 16ms is displayed Emulator mode Displays the emulator operating mode setting information for Emulation Mode of the Configuration dialog box Big Endian Little Displays the endian state Big Endian or Little Endian Endian In this example Big Endian is displayed AUD Displays whether the AUD function can be used This item is displayed by the emulator with the AUD function Memory Loaded Memory Displays the loaded area of the load module Areas Events Resources Displays the usage states of BREAKPOINT and Break Condition 139 3 N SAS 140 3 NE SAS Section 5 Command line Functions 5 1 Table and Symbol Description This section describes the format used in section 5 2 Command Descriptions The descriptions of some commands are given over two or more pages 5 1 1 Format The input format for each command is as follows Characters shown in bold italics are to be input Parameters enclosed by can be omitted lt gt Contents shown in lt gt are set oo gt The parameter to the left of the sign is input in the format shown to the right This represents a
66. INGEMENT 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 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
67. K button sets the hardware break conditions If the Cancel button is clicked the dialog box is closed without setting the hardware break conditions Related Commands BREAKCONDITION_CLEAR command BREAKCONDITION_DISPLAY command BREAKCONDITION_ENABLE command BREAKCONDITION_SET command 120 3 NE SAS 4 2 6 Break Condition Dialog Box Pages Function The Break Condition dialog box pages allow a number of hardware break conditions to be set Some functions may not be supported by some types of emulators The setting conditions may differ from the dialog box name in table 4 12 For details refer to section 6 5 2 Break Condition Functions Table 4 12 Setting Conditions in Break Condition Dialog Boxes LDTLB Instruction Break and Bus State and Internal I O Address Bus Data Bus Read Write Count Access Break Dialog Box Condition Conditions Condition Conditions Break Condition 1 O O O X dialog box Break Condition 2 X O X X dialog box Break Condition 3 X X X O dialog box Note O Can be set by checking the radio button in the dialog box X Cannot be set in the dialog box 3 NE SAS 121 Table 4 13 shows all the Break Condition dialog box pages Table 4 13 Break Condition Dialog Box Pages Page Name Function Address Sets the address conditions of Break Condition 1 and Break Condition 2 Address condition is not displayed in the Break Condition 3 dialog box page Data Sets
68. K AUGE ire Nein een p S 145 5 22 AUD MODE AUM dn eerie redet oe Date Denise a ree Pee ee Eee dts 147 3 23 t AUD TRAGE AUT echte pie He cnc tede e KENESE 149 5 2 4 BREAKCONDITION CLEAR BCC esee nennen 151 5 2 95 5h BREAKCONDITION DISPLAY BCD eee 152 5 2 6 BREAKCONDITION ENABLE BCE eene eene 153 5 2 4 BREAKCONDITION SET BES hehe nene fret eene 154 iv RENESAS 5 2 5 BREAKPOINT CLEAR BC eee eese eene neret 160 5 2 10 BREAKPOINT DISPLAY BD eese nne ener eene 162 5 2 11 BREAKPOINT ENABLE BE eene nennen enne 163 52 12 DEVICE TYPE DE eret eee pP Ets 165 25 2 13 GO OPTION GP eie ede UAI e ed 166 35 2 14 TTAG CEOCK JCR iet ro tpi choos tones ede p e te 168 5 2 15 MEMORYAREA SET MAS isssssseeeeeeennen EEE ea EEEN nennt trennen 170 52 16 REBRESH BE poo eR eR erbe siesta tunel eae 172 5 2 17 RESTARE RST e esgUeHveenp pee eee 173 23 2 18 STATUS STS erc io Pe dead rasadevaessestsaceady EE 174 25 2 19 STEP INTERRUPT SI uiri Rau 175 322 20 TRACE DISPLAY TD no RSnee e USt etr PU p ARES 176 5 221 UBC MODE UM 3 dtd ee a 178 952 227 NPMAP CLEAR VG eoe pietre teque dieto eec re ie e s 179 9 52 23 VPMAP DISPLAY VD a ial aie i bis A ee A 180 32 24 VPMAP ENABLE VE o etereoteU quuni citati era tes 181 23 2 2y MPMAPESET VS iue ro nee ern Pene 182 Section 6 SH7660 E10A Em
69. N Branch destination c Address of instruction word d Instruction mnemonic e Instruction operand Related Items TM command Trace window Trace Acquisition dialog box 177 13 NE SAS 5 2 21 UBC MODE UM Description Sets or displays the current UBC state Format um lt ubc_mode gt Table 5 22 UBC MODE Command Parameter Parameter Type Description ubc mode Keyword Selects the UBC mode EML Uses the UBC as Break Condition by the emulator USER Releases the UBC to the user Break Condition cannot be used Note When option is omitted the current setting conditions are displayed Note The parameters for this command differ according to the product For the specifications of each product refer to the online help Examples To release the UBC to the user UBC mode user RET UBC mode USER To display the current UBC state UBC mode RET UBC mode EML Note The items displayed with this command differ according to the product For the display specifications of each product refer to the online help Related Item Configuration dialog box 178 RENESAS 5 2 22 VPMAP CLEAR VC Description Clears the address translation VP_MAP table that is set in the emulator Format vc lt address gt Table 5 23 VPMAP CLEAR Command Parameter Parameter Type Description lt address gt Numerical value Sets the virtual start address of the VP_MAP table range to b
70. O000bf 4 H 00006422 Ox0cO000bE8 H 00006fbf Ox0c000bfc H 00006 bf Ox0c000bc8 D0c000034 for i 0 i 10 0c000076 j rand Oc00007e if j 0 1 0c 00082 3 Se ne M D 00 0 On CO PO H CO c r a H 0c000086 a i 0c0000a2 e sort a c0000aa min Sro 0c0000ae BESSLSPBPESE Oc0000b6 max 0 OcO000ba change a Oc0000c2 min Oc0000c6 max 3 Oc0000ca while 1 3 void abort void ETE Ga Oc0000d8 _abort Oc0000dc _sort void sort long a X Hp Break STOP ADDRESS NUM Figure 3 28 HDI Window Step In Step In e The value of max displayed in the Watch window is changed to the maximum data value 49 RENESAS 3 14 3 Executing Step Over Command The Step Over executes a function call as a single step and stops at the next statement of the main program e Using Step Over execute two steps to reach the change function statement BEE Al Hitachi Debugging interface tutorial SHxxxx E10A Emulator File Edit View Run Memor Setup Window Help a mma Seas mumstwmoeeomc j gmmtotumEgeELESWERB MEMXS28AfM r3 Walch Window a Line Address BP Label Source Value I long a 10 x c 0 0bd8 long 10 E long j 0 H 00000200 Ox0c000bd8 long 34 int i min max 1 H 00000f 16 x cOD00bdc long A 35 2 H 00002c8c 0x0c000be0 long 36 Oc
71. PC value at execution and the contents of one general register are acquired by trace Describe the Trace x function x is a variable name to be compiled and linked beforehand For details refer to the SHC manual When the load module is loaded on the emulator and a valid software trace function is executed the PC value that has executed the Trace x function the general register value for x and the source lines are displayed To activate the software trace function select the Software trace check box in the AUD function group box of the Trace mode page AUD Trace Display Figure 6 13 shows an example of the AUD trace display ords no filter No IP TYPE ADDR DATA 000014 D 000011 RD MEMORY L bus 00007F58 00002746 000013 D 000010 VR MEMORY L bus X 00007F9C 00002746 000012 D 000009 BRANCH OOOD11AG 2333333 BF GH 118A 8 000011 DESTINATION D000118A sss MOV R15 R7 a i 000010 D 000008 RD MEMORY L bus 00007F54 00001AES 000009 D 000007 WR MEMORY L bus 00007F 0 00001AES 000008 D 000006 BRANCH DO00011A6 sxeeexsexe BF H 118A 8 0 00007 DESTINATION D0000118A sese MOV R15 R7 a i 000006 D 000005 RD MEMORY L bus 00007F50 00001957 000005 D 000004 WR MEMORY L bus X 00007F 4 00001957 000004 D 000003 RD MEMORY L bus 00007F7C 0000000 OPERAND 000003 D 000002 BRANCH D000011AC 33633623 RTS 000002 DESTINATION ODOQIDAD xxxxxxxx HOV R15 R6 min
72. RAM area for downloading and executing these modules Note The write erase module must be prepared by users Interface with write erase module and E10A emulator firmware The write erase module is branched from the E10A emulator firmware To branch from the E10A emulator firmware to the write erase module or to return from the write erase module to the E10A emulator firmware the following conditions must be observed e Describe all the write erase modules with the assembly language e Guarantee all the general control register values before and after calling the write erase module e Return the write erase module to the calling source after processing The module interface must be as follows to pass correctly the information that is required for flash memory accessing Table 3 6 Module Interface Module Name Argument Return Value Write module R4 L Write address RO L End code R7 L Verify option Normal end 0 0 no verify Abnormal end other than 0 1 verify Verify error BT R5 L Access size 0x4220 byte 0x5720 word 0x4C20 longword R6 L Write data Erase module R4 L Access size None 0x4220 byte 0x5720 word 0x4C20 longword Note The L means the longword size Note Write module The write data for the access size is set to the R6 register When the access size is word or byte 0 is set to the upper bit of the R6 register 89 RENESAS Flash memory download method I
73. S Figures Figure 1 1 Figure 1 2 Figure 2 1 Figure 2 2 Figure 2 3 Figure 2 4 Figure 2 5 Figure 2 6 Figure 2 7 Figure 2 8 Figure 2 9 Figure 2 10 Figure 2 11 Figure 2 12 Figure 2 13 Figure 2 14 Figure 2 15 Figure 2 16 Figure 2 17 Figure 2 18 Figure 2 19 Figure 3 1 Figure 3 2 Figure 3 3 Figure 3 4 Figure 3 5 Figure 3 6 Figure 3 7 Figure 3 8 Figure 3 9 Figure 3 10 Figure 3 11 Figure 3 12 Figure 3 13 Figure 3 14 Figure 3 15 Figure 3 16 Figure 3 17 Figure 3 18 Figure 3 19 Figure 3 20 vi System Configuration with the Emulator PCMCIA Card Emulator Used 1 System Configuration with the Emulator PCI Card Emulator Used 2 Emulator Preparation Flow Chart 7 Inserting the PCMCIA Card Emulator in the Host Computer s Slot 11 Inserting the PCI Card Emulator in the Host Computer s Slot 11 Connecting the User System Interface Cable to the User System when the 14 pin Straight Type Connector is Used sssseee 13 User System Example e Grm ero tiu edo ime NERE 14 Start Menu scene eerie per e p IS 15 Select Session Dialog BOR eene eene eene ener tenete nennen en 16 E10A Driver Details Dialog Box nennen nennen 17 Dialog Box of the RESET Signal Input Request Message eee 18 HDI Status Bart eerie De Ea Pere SEa ek 18 JTAG Connector Disconnected Dialog Box
74. Setting Close the Breakpoints window e Set the program counter and stack pointer values PC H 0c00006c and R15 H 0c000c00 that have been set in section 3 9 Setting Registers in the Registers window Click the Go button 65 RENESAS The program runs then stops at the condition specified under Break Condition 1 inci tutorial c OF XI Line Address BP Label Source a 31 32 long a 10 33 long j 34 int i min max 35 36 OcO00006e for 1 0 i 10 i jf 37 0c000076 j rand 38 0c00007e ifij lt 0 41 39 0c000082 j j 40 41 0cO000086 ali j 42 43 Oc0000a2 sort a 44 B0c0000aa min a 0 45 c 000ae max a 9 47 Oc0O000b6 max D 48 Oc0000ba change a Re 4 Z Figure 3 48 Source Window at Execution Stop Break Condition 1 66 RENESAS The System Status window displays the following contents System Status Item Status Connected to SH E104 Emulator E104 PCI Card Driver4 CPU SH xxx Run status Break Cause of last break BREAK CONDITION 1 Run time count Oh Omin 0s 16ms Emulation mode Norma Big endian AUD Exist Session Platform Memory events 7 y y y Figure 3 49 Displayed Contents of the System Status Window Break Condition 1 Note The items that can be displayed in this window differ according to the product For the items that can be di
75. TION OCOOQO1LEC Ld EIL R15 R1 D 000026 MEMORY O0cO00B98 00000007 D 000025 MEMORY OCOOO0BCA OCOOOBDB D 000024 MEMORY 0cO00B98 00000007 D 000023 MEMORY OcOOOBA4 00002A14 D 000022 MEMORY OCOOOBF4 00002A14 D 000021 MEMORY OCOO0B98 00000007 D 000020 MEMORY OcO00B98 00000008 D 000019 MEMORY OcO00B98 00000008 D OOO018 BRANCH 0c000210 ea teree H COOOLEC 8 DESTINATION OCOOO1EC Mice GR15 R1 D 000017 MEMORY OCOO0B98 00000008 D 000016 MEMORY OCOO0BCA4 OCOOOBD8 D OOO015 MEMORY OCOO0B98 00000008 D 000014 MEMORY OCOO0BAO 000006Cc D 000013 MEMORY OCOOOBF8 000006CC D 000012 MEMORY OcOO0B98 00000008 D 000011 MEMORY OCOO0B98 00000009 D 000010 MEMORY OcOO0B98 00000009 D 000009 BRANCH 0c000210 LEY E H COOO1EC 8 DESTINATION OCcOO01EC emer EE QR15 R1 D 000008 MEMORY OCOO0B98 00000009 D 000007 MEMORY OCOOO0BCA OCOOO0BDB D 000006 MEMORY OC000B 98 00000009 D 000005 MEMORY OcOO0B9C 00000063 D 000004 MEMORY OCOOOBFC 00000063 D 000003 MEMORY OCOO0B98 00000009 D 000002 MEMORY OCcOO0B98 0000000A D 000001 MEMORY OCOO0B98 0000000A D OOO000 BRANCH 0c000214 EON DESTINATION OCO000DA ae ET Q H 34 4 R15 R2 min a 9 Figure 3 57 Trace Window in the SH7751 E10A Emulator 78 3 N ESAS 3 19 35 VP MAP Translation The MCU which has an MMU translates internal addresses virtual addresses to actual memory addresses physical addresses Address translation is performed according to the address
76. To our customers Old Company Name in Catalogs and Other Documents On April 1 2010 NEC Electronics Corporation merged with Renesas Technology Corporation and Renesas Electronics Corporation took over all the business of both companies Therefore although the old company name remains in this document it is a valid Renesas Electronics document We appreciate your understanding Renesas Electronics website http www renesas com April 1 2010 Renesas Electronics Corporation Issued by Renesas Electronics Corporation http www renesas com Send any inquiries to http www renesas com inquiry 24 N S AS 10 11 12 Notice All information included in this document is current as of the date this document is issued Such information however is subject to change without any prior notice Before purchasing or using any Renesas Electronics products listed herein please confirm the latest product information with a Renesas Electronics sales office Also please pay regular and careful attention to additional and different information to be disclosed by Renesas Electronics such as that disclosed through our website Renesas Electronics does not assume any liability for infringement of patents copyrights or other intellectual property rights of third parties by or arising from the use of Renesas Electronics products or technical information described in this document No license express implied or otherwise
77. ache on counting Accessing the non cacheable area is counted less than the actual number of counts Accessing the cacheable U memory and X Y memory areas are counted more than the actual number of counts Branch count The counter value is incremented by 2 This means that two cycles are valid for one branch Notes 1 In the non realtime trace mode of the AUD trace normal counting cannot be performed because the generation state of the stall or the execution cycle is changed 2 Since the clock source of the counter is the CPU clock counting also stops when the clock halts in the sleep mode 214 RENESAS 2 Displaying the measured result The measured result is displayed in the Performance Analysis window or the PERFORMANCE_ANALYSIS command with hexadecimal 32 bits Performan Normal Break CONDITION RESULT AC 0198FCE1 VS 0171FACF BT QO4DESEC DISABLE 00000000 Figure 6 16 Performance Analysis Window Note Ifa performance counter overflows as a result of measurement will be displayed 3 Initializing the measured result To initialize the measured result select Initialize from the popup menu in the Performance Analysis window or specify INIT with the PERFORMANCE ANALYSIS command 6 5 10 Notes on Using the Profile Function 1 Errors The profile function internally breaks user program execution collects the measured data and re executes the user program Since
78. annel lt channel_number gt Table 5 5 BREAKCONDITION CLEAR Command Parameter Parameter Type Description lt channel number gt Numerical value Hardware break channel number Note When lt channel gt is omitted all hardware breakpoints that have been set are cleared Examples To clear all hardware breakpoints bcc RET To clear a hardware breakpoint set at channel 2 bcc channel 2 RET Related Items BCD BCE and BCS commands Breakpoints window Break and Break Condition dialog boxes RENESAS 151 5 2 5 BREAKCONDITION_DISPLAY BCD Description Displays hardware breakpoints that have been set The display contents include a hardware breakpoint channel number enable or disable of the setting and setting conditions Format bed lt channel gt lt channel gt channel lt channel_number gt Table 5 6 BREAKCONDITION DISPLAY Command Parameter Parameter Type Description channel number Numerical value Hardware breakpoint channel number Note When channel is omitted all hardware breakpoints that have been set are displayed Examples To display all hardware breakpoint settings gt bcd RET Break Condition 1 Enable data 20 long Break Condition 2 Disable address 126 Break Condition 3 Disable LDTLB break To display the hardware breakpoint set at channel 1 gt bcd channel 1 RET Break Condition 1 Enable data 20 long Note The items displayed with this command differ according to
79. ardware breakpoints that have been set CLEAR 5 BREAKCONDITION_ BCD Displays hardware breakpoints that have been set DISPLAY 6 BREAKCONDITION BCE Enables or disables hardware breakpoints that have ENABLE been set 7 BREAKCONDITION_ BCS Sets hardware breakpoints SET 8 BREAKPOINT BP Sets software breakpoints 9 BREAKPOINT_CLEAR BC Clears software breakpoints that have been set 10 BREAKPOINT DISPLAY BD Displays software breakpoints that have been set 11 BREAKPOINT ENABLE BE Enables or disables software breakpoints that have been set 12 DEVICE TYPE DE Displays device type currently selected 13 GO OPTION GP Displays or sets the emulation mode during user program execution 14 JTAG CLOCK JCK Displays or sets a JTAG clock TCK frequency 15 MEMORYAREA SET MAS Displays or sets memory area at command input such as load verify save memory display or memory change 143 RENESAS Table 5 1 E10A HDI Commands cont No Command 16 REFRESH RF Abb Function Updates the HDI memory information to the latest contents 17 RESTART RST Restarts the emulator 18 STATUS STS Displays emulator state information 19 STEP_INTERRUPT Sl Displays or sets the enable or disable status of interrupts during step execution 20 TRACE_DISPLAY TD Displays acquired trace buffer information 21 UBC MODE UM Displays or sets UBC use states 22 VPMAP CLEAR VC Clears the emulator address tra
80. ask bits when User mask is selected Mark a bit to be masked with For masked bits the break conditions will be satisfied regardless of the data values Note This page is displayed when the conditions of Break Condition 1 are set 126 3 NE SAS 3 ASID Page Break Condition Dialog Box Function This page sets the ASID conditions Window Break Condition 1 Ed Address Data ASID Bus State Count ASID Don t Care Figure 4 14 ASID Page Break Condition Dialog Box Description Table 4 17 ASID Page Options Option Description Don t Care check box Does not set ASID conditions ASID edit box Sets the ASID condition value The default is 0 Note This page is displayed when the conditions of Break Condition 1 and Break Condition 2 are set Note These options are not supported in a device in which the MMU is not built in 127 RENESAS 4 Bus State Page Break Condition Dialog Box Function This page sets bus state conditions and read write cycle conditions Window Break Condition 1 Figure 4 15 Bus State Page Break Condition Dialog Box Note The items that can be set in this window differ according to the product For the settings for each product refer to the online help 128 3 NE SAS Description Table 4 18 Bus State Page Options Group Box Option Bus State group AIl radio button box Descr
81. ation according to this sample The SH7751 E10A emulator must be used when the SH7751 CPU board is used Table 3 8 Example of Board Specifications Item Contents SDRAM address H 0C000000 to H OFFFFFFF Flash memory address H 01000000 to H 01FFFFFF Bus width of flash memory 32 bits Operating CPU internal frequency 167 MHz environments Bus frequency 55 7 MHz CPU internal module frequency 27 83 MHz Endian Big endian Flash memory SHxxxx 32 Mbytes A2 A24 FIA bus buffer FIA bus buffer FD bus buffer 92 Figure 3 69 Flash Memory Wiring RENESAS Table 3 9 Sample Program Specifications Item Contents RAM area to be used H 0C001000 to H 0C0015BF Write module start address H 0C001100 Erase module start address H 0C001000 i Since the SDRAM is used the bus controller is set ii Options on the Loading flash memory page in the Configuration window are set as follows Configuration 9 E 9 CXHDI CE f mtool F mtool mot 32 bit bus width H 0C001000 H 0C001100 Figure 3 70 Loading flash memory Page 93 RENESAS When the data has already been written in the flash memory be sure to select Enable for Erasing flash memory If Disable is selected a verify error occurs 2 When Erasing flash memory is selected it takes about one minute Notes 1 iii Load Program is selected from the File menu for downloading to t
82. c00007e 0c 00082 c 00086 0c0000a2 Oc0000aa 0cO0000ae 0c0000b2 0c0000b 0c0000ba Oc0000c2 Oc0000c6 Oc0000ca main void main void long a 10 long j int i min max for i 0 i 10 i jf j TANI if j D J J ai alij j sort a min a 0 max a 9 min D max 0 change a min a 9 max a 0 while 1 void abort void Figure 3 9 Source Window Displaying the Source Program e If necessary select the Font option from the Customise submenu on the Setup menu to select a font and size that are legible Initially the Source window shows the start of the main program but the user can use the scroll bar to scroll through the program and look at the other statements 35 2 N ESAS 3 8 Setting a Software Breakpoint A breakpoint is a simple debugging function The Source window provides a very simple way of setting a software breakpoint at any point in a program For example to set a breakpoint at the sort function call e Select by double clicking the BP column on the line containing the sort function call inci tutorial c OF xi Line Address BP Label Source Oc00006c main void main void long a 10 long j int i min max 0cO00006e for i20 i 10 i OcOO00076 j rand 0c00007e i f j DM 0c000082 j j OcO000086 afi 3 0c0000a2 e sort a Oc0000aa min a 0 Oc0000ae hax a 9 0cO000b2 mi
83. ck AUDCK and JTAG clock TCK and selects the driver Window General Loading flash memory Mode E Emulation mode Normal m Step option Disables interrupts during single step execution UBC mode EML hd Memory area Normal Physical Virtual 45 0 po AUD clock five CPU clock JTAG clock 4 25MHz Driver Change Cancel Apply Help Figure 4 2 General Page Configuration Dialog Box Note The items and displayed contents that can be set in this window differ according to the product For the settings for each product refer to the online help 102 3 NE SAS Description Table 4 3 General Page Options Option Mode combo box Description Displays the device name Emulation mode combo box Selects the execution mode Select Normal to perform normal emulation Select No Break to disable breakpoint settings Select Sequential break Condition 2 1 etc to use the sequential break function For Sequential break Condition 2 1 execution stops when conditions are satisfied in the order of Break Condition 2 and Break Condition 1 Step option combo box Enables or disables interrupts during step execution Disables interrupts during single step execution Interrupts during step execution are masked Enables interrupts during single step execution Interrupts during step execution are released UBC mode combo box EML Th
84. ddress radio button The Address and ASID pages can be set however no mask can be set Only program fetched address after radio The Address and ASID pages can be set button Note This function differs according to the product For the specifications of each product refer to section 6 5 2 Break Condition Functions or to the online help 124 3 NE SAS 2 Data Page Break Condition Dialog Box Function This page sets the data bus conditions Window Break Condition 1 H 12000000 e e 2 fe MESK Figure 4 13 Data Page Break Condition 1 Dialog Box Note The items that can be set in this window differ according to the product For the settings for each product refer to the online help 125 3 NE SAS Description Table 4 16 Data Page Options Option Don t Care check box Description Does not set data conditions Value edit box Sets the data bus value with a number Byte radio button Sets byte data access cycles Word radio button Sets word data access cycles Long radio button Sets longword data access cycles X bus data radio button Sets X bus data access cycles Y bus data radio button Sets Y bus data access cycles Non user mask radio button Does not set mask conditions User mask radio button Sets mask conditions Mask edit box Sets the m
85. differ according to the product For the settings for each product refer to the online help 62 3 NE SAS e Select Bus State to display the Bus State page e Select the Read radio button in the Read Write group box Break condition 1 Figure 3 45 Bus State Page Break Condition 1 Dialog Box Note The items that can be set in this window differ according to the product For the settings for each product refer to the online help 63 RENESAS e Click the OK button e The Break dialog box is displayed and the first point display in the Break Condition list box changes from Empty to Enable 1 Enable Figure 3 46 Break Dialog Box After Hardware Break Condition Setting Note The number of hardware break conditions differs according to the product For the number that can be specified for each product refer to the online help e Click the OK button 64 ztENESAS The newly set hardware breakpoint is displayed in the Breakpoints window With this setting Break Condition 1 is displayed in Type in the Breakpoints window This completes the setting of the Break Condition hardware break condition When the program is executed a break will occur when address H 0c0000b2 is accessed in a read cycle Breakpoints iof inixi File Line Symbol Type tutorial c 46 OCOO000B2 Break condition 1 Figure 3 47 Breakpoints Window Break Condition 1
86. dous situation which if not avoided will result in death or serious injury A WARNING WARNING indicates a potentially hazardous situation which if not avoided could result in death or serious injury A CAUTION CAUTION indicates a potentially hazardous situation which if not avoided may result in minor or moderate injury CAUTION CAUTION used without the safety alert symbol indicates a potentially hazardous situation which if not avoided may result in property damage NOTE emphasizes essential information lt RENESAS A WARNING Observe the precautions listed below Failure to do so will result in a FIRE HAZARD and will damage the user system and the emulator product or will result in PERSONAL INJURY The USER PROGRAM will be LOST 1 2 3 4 Do not repair or remodel the emulator product by yourself for electric shock prevention and quality assurance Always switch OFF the host computer and user system before connecting or disconnecting any CABLES or PARTS Connect the connectors in the user system and in the user interface cable by confirming the correct direction If the PCI interface board for the E6000 or E8000 emulator HS6000EICO01H and the E10A emulator PCI card are mounted on the same host computer the connectors may be illegally connected RENESAS Warnings on Emulator Usage Be sure to read and understand the warnings below before using this emulator Note
87. e 193 User System Interface Circuit of the H UDI Pin in the Emulator HS7660KCIO2H Model Name HS0005KCIOAH sese 194 User System Interface Circuit of the AUD Pin in the Emulator HS7660KCIO2H Model Name HS0005KCIOAH see 195 RENESAS Figure 6 10 Figure 6 11 Figure 6 12 Figure 6 13 Figure 6 14 Figure 6 15 Figure 6 16 Figure 6 17 Trace mode P496 oit te cec th seen shipments 203 AUD Branch trace Page erepti nere nere Pene ERE RS 204 Window trace Pages oe detecte ecole ite ore ee teure e 205 Trace Window tee eee erbe ecu b nh Gesdiei dienes 206 HDI Message BOX 6e ertet pte to erc beso uote pert tee beet 210 Performance 1 Dialog Box eeseseeeseeeeeeeneneneen eere nnne enne 211 Performance Analysis Window essere eene nennen nnne 215 Example of Connecting the Flash Memory esee 218 ix RENESAS Tables Table 1 1 Table 1 2 Table 2 1 Table 2 2 Table 3 1 Table 3 2 Table 3 3 Table 3 4 Table 3 5 Table 3 6 Table 3 7 Table 3 8 Table 3 9 Table 4 1 Table 4 2 Table 4 3 Table 4 4 Table 4 5 Table 4 6 Table 4 7 Table 4 8 Table 4 9 Table 4 10 Table 4 11 Table 4 12 Table 4 13 Table 4 14 Table 4 15 Table 4 16 Table 4 17 Table 4 18 Table 4 19 Table 4 20 Table 4 21 Table 4 22 Table 4 23 Table 4 24 Table 5 1 Table 5 2 Table 5 3 Table 5 4 Table 5 5 X Environmental Conditions
88. e 6 1 Components of the Emulator HS7660KCM01H HS7660K CMO2H HS7660KCIO1H or HS7660KCI02H esee enne enne 184 Table 6 2 Register Initial Values at Emulator Power On see 196 Tabl 6 3 Type Number and D vet ctor RU erp Eae re RR UR Dern 199 Table 6 4 Types of Break Conditions esee nennen nenne 200 Table 6 5 Dialog Boxes for Setting Break Conditions eee 201 Table 6 6 Trace Functions aterert ere 201 Table 6 7 Type Number and AUD Function sese nennen 201 Table 6 8 AUD Trace Acquisition Mode sese nennen eene eene 202 Table 6 9 Trace Window Display Contents sesenta 207 Table 6 10 Conditions Specified in Mode eese enne 211 Table 6 11 Measurement Item 0 cece cccccccesessececececeessnsecececeesenensssececececsessaaeeeeceseeesssaseeeeeeees 213 Table 6 11 Measurement Item cont eene enne enne ener enne 214 Table 6 12 Performance Measurement Conditions to be Counted 0 ccccccecccccceceessestceeeeees 214 Table 6 13 File Configuration of the Sample Program seen 217 Table 6 14 Specifications of the Sample Program esee 217 Table 6 15 Operating Conditions sese enemies 217 Table 6 16 Watchdog Timer Register nennen nennen nennen 222 Xi RENESAS xii RENESAS Section 1 Overview The E10A emulator hereafter
89. e H 4000 to H AFFF to be translated into the physical address range H 400000 to H 400FFF vs H 4000 H 4fff H 400000 RET Related Items VC VD and VE commands Note This command is not supported in a device in which the MMU is not built in 182 RENESAS Section 6 SH7660 E10A Emulator Specifications 6 1 Components of the Emulator The SH7660 E10A emulator supports the SH7660 Table 6 1 lists the components of the emulator 183 RENESAS Table 6 1 Components of the Emulator HS7660KCM01H HS7660KCM02H HS7660KCIO01H or HS7660KCI02H Classi fication Component Hard Card emulator ware Appearance PCMCIA or PCI Remarks HS7660KCM01H PCMCIA 14 pin type Depth 85 6 mm Width 54 0 mm Height 5 0 mm Mass 27 0 g HS7660KCM02H PCMCIA 36 pin type Depth 85 6 mm Width 54 0 mm Height 5 0 mm Mass 28 0 g HS7660KCI01H PCI 14 pin type Depth 144 0 mm Width 105 0 mm Mass 93 0 g HS7660KCI02H PCI 36 pin type Depth 122 0 mm Width 96 0 mm Mass 90 0 g User system interface cable o HS7660KCM01H PCMCIA 14 pin type Length 80 cm Mass 45 0 g HS7660KCM02H PCMCIA 36 pin type Length 30 cm Mass 55 0 g HS7660KCI01H PCI 14 pin type Length 150 cm Mass 86 0 g HS7660KCI02H PCI 36 pin type Length 80 cm Mass 69 0 g Ferrite core connected with the RK Countermeasure for EMI only for HS7660KCMO2H and
90. e UBC is used as a Break Condition by the emulator USER The UBC is released for users In this case the Break Condition page becomes non active Memory area group box Sets the address setting mode to the memory area The default is Normal When the VP MAP is enabled and the address is within the table range address translation is done according to the VP MAP table For other cases address translation is done according to the MMU state Select Physical when setting with a physical address Select Virtual when address translation is done by the TLB table AUD clock combo box Selects the AUD clock JTAG clock combo box Sets the JTAG frequency Driver group box Displays the driver currently selected Change button Displays the E10A Driver Details dialog box Use when a driver currently connected is changed Notes 1 When using the sequential break function set the corresponding hardware break conditions 2 The range of frequencies that the AUD operates under is different according to the devices used For details refer to section 6 5 4 Notes on Using the JTAG Clock TCK and AUD Clock AUDCK 3 The range of frequencies that the JTAG operates at is different according to the devices used For details refer to section 6 5 4 Notes on Using the JTAG Clock TCK and AUD Clock AUDCK 103 3 NE SAS When a driver is to be changed with the Change button the fol
91. e button and select Delete All from the pop up menu to cancel all breakpoints that have been set e Click the Breakpoints window with the right mouse button and select Add from the pop up menu Breakpoints Enable File Line Address Edit Enabled Delete pelete l Go to Source Figure 3 42 Breakpoints Window Before Hardware Break Condition Setting 60 ztENESAS The Break dialog box is displayed To set hardware break conditions select Condition in the Break dialog box to display the Condition page Figure 3 43 Condition Page Break Dialog Box Up to three breakpoints can be set independently for the Break Condition hardware break condition In this example set the hardware break condition for Break Condition 1 Note The number of hardware break conditions differs according to the product For the number that can be specified for each product refer to the online help e Highlight the first point in the Break Condition list box Click the Edit button The Break Condition 1 dialog box is displayed 61 2 NE SAS e Clear the Don t Care check box in the Address page e Select the Address radio button and enter H 0C0000Pb2 as the value in the Address edit box Break condition 1 H OcO000b2 JNonusermesk ej Figure 3 44 Address Page Break Condition 1 Dialog Box Note The items that can be set in this window
92. e cleared Note All contents in the VP_MAP table are cleared if lt address gt is omitted Examples To clear all the contents in the VP MAP table vc RET To clear the contents in the VP MAP table range starting from virtual address H 4000 vc H 4000 RET Related Items VD VE and VS commands Note This command is not supported in a device in which the MMU is not built in 179 RENESAS 5 2 23 VPMAP_DISPLAY VD Description Displays the address translation VP_MAP table set in the emulator Format vd Table 5 24 VPMAP DISPLAY Command Parameter Parameter Type Description None Example To display the VP MAP table vd RET XVADDR TOP XVADDR END XPADDR TOP 01000000 0100ffff 02000000 01010000 0101ffff 03000000 ENABLE VADDR TOP VADDR END and PADDR TOP represent the virtual start address the virtual end address and the physical start address respectively ENABLE or DISABLE in the last line indicates that the VP MAP table is valid or invalid Related Items VC VE and VS commands Note This command is not supported in a device in which the MMU is not built in 180 RENESAS 5 2 24 VPMAP ENABLE VE Description Enables or disables the setting of the address translation VP_MAP table in the emulator Format ve lt enable gt Table 5 25 VPMAP ENABLE Command Parameter Parameter Type Description enable Keyword Enables or disables the setting
93. e mode Window trace r Channel A Read write C Bead C Write j te Start address no End address no 0 7 Bus state G Lus C xXbus Y bus C bus Channel B Read wWrite C Read Write Read wiite Start address no End address Ho Bus state Lbus C Xbus C Y bus C I bus Cancel Enpi Help Figure 6 12 Window trace Page Notes 1 When the L bus or I bus radio button is selected the following bus cycles will be traced L bus A bus cycle generated by the CPU is acquired A bus cycle is also acquired when the cache has been hit I bus A bus cycle generated by the CPU or DMA is acquired A bus cycle is not acquired when the cache has been hit The address information acquired by the I bus is 28 bits and the upper 4 bits are displayed as The source cannot be displayed in the Trace window When U RAM and X Y RAM are accessed from the PO space the I bus must be selected and when accessed from the P2 space the L bus must be selected When a cache fill cycle is acquired I bus must be selected 2 Address setting when X Y bus is selected To trace both the X Y bus when the X Y bus is accessed at the same time the X bus condition must be set in channel A and the Y bus condition must be set in channel B 205 RENESAS c Software Trace Function Note This function can be supported with SHC compiler V7 0 and later When a specific instruction is executed the
94. e trace Note The AUD is an abbreviation of the Advanced User Debugger Support for the AUD varies with the product 1 1 Warnings CAUTION READ the following warnings before using the emulator product Incorrect operation will damage the user system and the emulator product The USER PROGRAM will be LOST 1 Check all components against the component list after unpacking the emulator 2 Never place heavy objects on the casing 3 Protect the emulator from excessive impacts and stresses For details refer to section 1 2 Environmental Conditions 4 Do not insert the emulator into any slot PCMCIA TYPE II slot or PCI slot other than the specified one 5 When moving the host computer or user system take care not to vibrate or damage it 6 After connecting the cable check that it is connected correctly For details refer to section 2 Preparation before Use 7 Supply power to the connected equipment after connecting all cables Cables must not be connected or removed while the power is on RENESAS 1 2 Environmental Conditions CAUTION Observe the conditions listed in tables 1 1 and 1 2 when using the emulator Failure to do so will 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 co
95. ed although it takes time to download It is recommended that the File Load function Load Program selected from the File menu is used to load the S type file Note The File Load function deletes the debugging information of the previously loaded program When other load modules are loaded after the program to be debugged has been loaded use the following sequence When the program to be debugged is linked save the debugging information in another file Load the debugging information file after all the load modules have been loaded 7 Line Assembly Input radix Regardless of the Radix setting the default for line assembly input is decimal Specify H or Ox as the radix for a hexadecimal input 8 Command Line Interface Batch file To display the message Not currently available while executing a batch file enter the sleep command Adjust the sleep time length which differs according to the operating environment Example To display Not currently available during memory_fill execution sleep d 3000 memory_fill 0 ffff 0 Overwrite file In Command Line Interface a file having the same name as the output file is overwritten without asking the user 220 RENESAS File specification by commands The current directory may be altered by file specifications in commands Absolute paths are recommended to be used to specify the files in a command file so that the current directory alteration is no
96. eeeeeee 155 Table 5 9 BREAKPOINT Command Parameters ccccccecccccceceesessscecececeesesssaececececeensesteaeees 158 Table 5 10 BREAKPOINT CLEAR Command Parameters cccccccccsceccececeseeeeeeeeeeaeananees 160 Table 5 11 BREAKPOINT DISPLAY Command Parameter ceeeee ee 162 Table 5 12 BREAKPOINT ENABLE Command Parameters eee 163 Table 5 13 DEVICE TYPE Command Parameter eeeeeeee eene 165 Table 5 14 GO OPTION Command Parameter eeeeeeeee e neenenenenennnnnnnnnnnnnn 166 Table 5 15 JTAG CLOCK Command Parameter eseseeee ee eene nnne 168 Table 5 16 MEMORY AREA SET Command Parameters eeeeeee nn 170 Table 5 17 REFRESH Command Parameter eese enne nnn 172 Table 5 18 RESTART Command Paramaeter eese eere entente 173 Table 5 19 STATUS Command Parameter eese ener nne 174 Table 5 20 STEP INTERRUPT Command Parameter eeeeee eene 175 Table 5 21 TRACE DISPLAY Command Parameter eseeeee eene 176 Table 5 22 UBC MODE Command Parameter eeeeeeeeeee eee eene nnnm nn nnn 178 Table 5 22 VPMAP CLEAR Command Parameter eseeee eene 179 Table 5 24 VPMAP DISPLAY Command Parameter eeeeeee eene 180 Table 5 25 VPMAP ENABLE Command Parameter eeeeeee eene 181 Table 5 26 VPMAP SET Command Parameters eee eene nnn 182 Tabl
97. eep state e Reset Signals The SH7660 reset signals are only valid during emulation started with clicking the GO or STEP type button If these signals are input from the user system in command input wait state they are not sent to the SH7660 Note Do not break the user program when the RESETP and WAIT signals are being low A TIMEOUT error will occur If the WAIT signal is fixed to low during break a TIMEOUT error will occur at memory access e Direct Memory Access Controller DMAC The DMAC operates even when the emulator is used When a data transfer request is generated the DMAC executes DMA transfer e Memory Access during User Program Execution When a memory is accessed from the memory window etc during user program execution the user program is resumed after it has stopped in the E10A emulator to access the memory Therefore realtime emulation cannot be performed The stopping time of the user program is as follows Environment Host computer 650 MHz Pentium III SH7660 60 MHz CPU clock JT AG clock 3 75 MHz When a one byte memory is read from the command line window the stopping time will be about 20 ms e Memory Access during User Program Break The emulator can download the program for the flash memory area Other memory write operations are enabled for the RAM area Therefore an operation such as memory write or BREAKPOINT should be set only for the RAM area 197 RENESAS e Cache Operation duri
98. em and the reset pin HDI x Can not find RESET signal Please check RESET and Vcc j Retry Ignore Figure 2 12 Can not find RESET signal Dialog Box b If the following dialog box is displayed check that the H UDI port connector on the user system is correctly connected HDI ES N Check the connection between the H UDI pins and the H UDI port connector Figure 2 13 Check the connection Dialog Box c If the following dialog box is displayed the device may not correctly operate Check if there are reasons for illegal device operation HDI N COMMUNICATION TIMEOUT ERROR Figure 2 14 COMMUNICATION TIMEOUT ERROR Dialog Box 19 RENESAS Figure 2 15 INVALID ASERAM FIRMWARE Dialog Box Figure 2 16 Error JTAG boot Dialog Box 4 If the driver is not correctly connected the following dialog box will be displayed Figure 2 17 Unable to restore the previous driver settings Dialog Box The E10A Driver Details dialog box is displayed when the OK button is clicked Select the correct driver For details refer to section 6 5 1 Emulator Driver Selection 20 3 NE SAS 2 6 Ending the HDI Exit the HDI by using the following procedure 1 Select Exit from the File menu to end the HDI When the Exit HDI dialog box is displayed click the Yes button Figure 2 18 Exit HDI Dialog Box
99. er Execution sese 50 Step Over B tton erret rete ERE ieses tes E 50 HDI Window Step Over essere enne enne entente 51 Go Button sse e et e en ee ERR 52 Stop Button sce EE 52 Locals Window ec eee eere e ee eens EE i 53 Breakpoints Window Before Software Breakpoint Setting 54 Point Page Break Dialog Box eeeeeeeeeeneeeeeenneee nnne 55 Bi ak Point Dialog Bx eee eet ertet eR epe e Ogre d xe reete 56 Point Page Break Dialog Box After Software Breakpoint Setting 57 Breakpoints Window Software Breakpoint Setting ssss 58 Source Window at Execution Stop Software Break ssess 58 Displayed Contents of the System Status Window Software Break 59 Breakpoints Window Before Hardware Break Condition Setting 60 Condition Page Break Dialog Box eene 61 Address Page Break Condition 1 Dialog Box eese 62 Bus State Page Break Condition 1 Dialog Box eese 63 Break Dialog Box After Hardware Break Condition Setting 64 Breakpoints Window Break Condition 1 Setting sss 65 Source Window at Execution Stop Break Condition 1 66 Dis
100. er 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 e User system interface cable The user system or a host computer is not included in this definition Purpose of the Emulator Product This emulator product is a software and hardware development tool for systems employing the Renesas microcomputer This emulator product must only be used for the above purpose Limited Applications This emulator product is not authorized for use in MEDICAL atomic energy aeronautical or space technology applications without consent of the appropriate officer of a Renesas sales company Such use includes but is not limited to use in life support 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
101. er than CSO to CS6 and the internal RAM e An instruction in which Break Condition 2 is satisfied e A slot instruction of a delayed branch instruction 3 During step execution a BREAKPOINT is disabled 4 Conditions set at Break Condition 2 are disabled when an instruction to which a BREAKPOINT has been set is executed Do not set a BREAKPOINT to an instruction in which Break Condition 2 is satisfied 5 When execution resumes from the address where a BREAKPOINT is specified single step execution is performed at the address before execution resumes Therefore realtime operation cannot be performed 208 RENESAS 6 When a BREAKPOINT is set to the slot instruction of a delayed branch instruction the PC value becomes an illegal value Accordingly do not seta BREAKPOINT to the slot instruction of a delayed branch instruction 7 When a BREAKPOINT is set to the cacheable area the cache block containing the BREAKPOINT address is filled immediately before and after user program execution 8 Note on DSP repeat loop A BREAKPOINT is equal to a branch instruction In some DSP repeat loops branch instructions cannot be set For these cases do not set BREAKPOINTs Refer to the hardware manual for details 9 If an address of a BREAKPOINT cannot be correctly set in the ROM or flash memory area a mark will be displayed in the BP area of the address on the Source or Disassembly window by refreshing the Memory window etc after Go execut
102. execution is completed Trace 16 records no filter OF IO x No JIP E DATA MNEMO OPERAND Se D 000007 BRANCIOCOOO01FA BF QH COO01DO 000014 DESTIIOCOOO1DO MOv L R15 R1 a i 000013 D 000006 BRANCIOCOOO1F4 BF QH COO01D0 000012 DESTIIOCOOO01DO MOv L R15 R1 a i 000011 D 000005 BRANCIOCOOO01F4 BF QH COO01D0 000010 DESTIIOCOO01DO0 MOv L R15 R1 ali 000009 D 000004 BRANCIOCOOO01F4 BF QH COO01D0 p 000008 DESTIIOCOOO01DO MOV L R15 R1 a i 000007 D 000003 BRANCIOCOOO01F4 BF QH cOOO1DO 000006 DESTIIOCOOO1DO MOv L R15 R1 a i 000005 D 000002 BRANCIOCOOO01F4 BF QH COO01D0 000004 DESTIIOCOOO01DO MOv L QR15 R1 a i 000003 D O000001 BRANCIOCOOO01F4 BF QH COO01D0 000002 DESTIIOCOOO01DO MOVv L QR15 R1 a i 000001 D O000000 BRANCIOCOOO01F8 RTS 4000000 DESTIIOCOOQ00C2 MOV L Q H 34 4 R15 R2 min a 9 Figure 3 55 Trace Window e If necessary adjust the column width by dragging the header bar immediately below the title bar Note The number of branch instructions that can be acquired by a trace differs according to the product For the number that can be specified for each product refer to the online help 76 RENESAS 3 19 2 AUD Trace Function This function is operational when the AUD pin of the MCU is connected to the emulator The following is the procedure for setting the AUD trace function this function doe
103. for each product refer to the online help 115 3 NE SAS Description Table 4 10 Condition Page Options Option Description Break Condition list Displays the Break Condition settings box The display at system initiation is as follows When conditions are set Enable is displayed When no conditions are set Empty is displayed 1 Empty setting of Break Condition 1 2 Empty setting of Break Condition 2 Edit button Changes the Break Condition settings selected in the Break Condition list box Clicking this button displays the Break Condition dialog boxes Reset button Clears the Break Condition settings selected in the Break Condition list box Reset AII button Clears all Break Condition settings in the Break Condition list box Related Commands BREAKCONDITION CLEAR command BREAKCONDITION DISPLAY command BREAKCONDITION ENABLE command BREAKCONDITION SET command 116 3 NE SAS 4 2 4 Break Point Dialog Box Function This dialog box sets software breakpoints Window Break Point Figure 4 10 Break Point Dialog Box Note The items that can be set in this window differ according to the product For the settings for each product refer to the online help 117 3 NE SAS Description The Break Point dialog box consists only of the Address page This dialog box sets address conditions and address areas The Address page options are as follows
104. g on with an administrator level user name The hardware is now recognized and the driver is automatically installed 2 When the emulator is a PCMCIA card Note Log on with an administrator level user name Install the HDI When a component is selected be sure to select PC Card Driver PCMCIA Insert the PCMCIA card emulator in the host computer s slot Refer to section 2 3 Connecting the Card Emulator to the Host Computer The hardware is now recognized and the driver is automatically installed When Found New Hardware Wizard is displayed select the Search for a suitable driver for my device recommended radio button and then the Specify a location check box to select the path to be searched for drivers The location must be specified according to the emulator type as indicated below When using the PCI card emulator Drive ADRIVERSVPCT2000 When using the PCMCIA card emulator lt Drive gt DRIVERS PCMCIA 2000 Drive is the CD ROM drive name RENESAS 2 3 Connecting the Card Emulator to the Host Computer Insert the card emulator according to its type in a PCMCIA TYPE II slot or PCI slot on the host computer figures 2 2 and 2 3 Note When using Windows 98 Windows Me or Windows 2000 be sure to install the HDI before putting the card emulator in place Host computer PC with the PCMCIA TYPE Il slot PCMCIA card emulator Iur CA a P E
105. he VP_MAP table Disabled Within outside the Translated according to range the VP MAP table Outside the Enabled Within the Range Translated according to Range the TLB table Outside the range TLB error Disabled Within outside the Not translated range Disabled Within Enabled Within the Range Translated according to outside the the TLB table range Outside the range TLB error Disabled Within outside the Not translated range Virtual Enabled Within Enabled Within the Range Translated according to disabled outside the the TLB table range Outside the range TLB error Disabled Within the Range Translated according to the TLB table Outside the range TLB error Physical Enabled Within Enabled Within outside the Not translated disabled outside the disabled range range Note Specified by the Memory area group box in the Configuration dialog box RENESAS 81 3 20 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 Notes 1 This function can be used only when the load module that has the Dwarf2 type debugging information is loaded 2 For details on the stack trace function refer to the online help e Double click the BP column in the sort function and set a software breakpoint inci tutorial c iof x Source Oc0000dc sort void sort long a long t int 1 J k gap Oc0000e0 ga
106. he flash memory area 94 RENESAS 323 What Next This tutorial has described the major features of the emulator and the use of the HDI Sophisticated debugging can be carried out by using the emulation functions that the emulator offers This provides for effective investigation of hardware and software problems by accurately isolating and identifying the conditions under which such problems arise Further details on the use of the HDI can be found in the separately issued Hitachi Debugging Interface User s Manual 95 13 NE SAS 96 RENESAS Section 4 Descriptions of Windows 4 1 HDI Windows HDI window menu bars and the corresponding pull down menus are listed in table 4 1 Where a description of a menu is included in the Hitachi Debugging Interface User s Manual or in this manual a O mark or the relevant section number is shown Related commands in the E10A Emulator User s Manual are also shown Table 4 1 HDI Window Menus and Related Manual Entries Menu Bar File menu Pull Down Menu New Session Hitachi Debugging Interface User s Manual This Manual Load Session Save Session 2 6 Save Session As Load Program 3 7 1 Initialize Exit Edit Menu Cut Copy Paste Find Evaluate O O O CO Of OC OC O OC CO CO O 97 3 N SAS Table 4 1 HDI Window Menus and Related Manual Entries cont
107. ion ASID value specification in each window MEMORYAREA SET command Emulator Driver Selection Table 6 3 shows drivers which are selected in the E10A Driver Details dialog box Table 6 3 Type Number and Driver Type Number Driver HS7660KCM01H E10A PC Card Driver 3 HS7660KCM02H E10A PC Card Driver 4 HS7660KCI01H E10A PCI Card Driver 3 HS7660KCI02H E10A PCI Card Driver 4 199 RENESAS 6 5 2 Break Condition Functions In addition to BREAKPOINT functions the emulator has Break Condition functions In the HDI three types of conditions can be set under Break Condition 1 2 3 Table 6 4 lists these conditions of Break Condition Table 6 4 Types of Break Conditions Break Condition Type Address bus condition Address Description Breaks when the SH7660 address bus value or the program counter value matches the specified value Data bus condition Data Breaks when the SH7660 data bus value matches the specified value Byte word or longword can be specified as the access data size X Bus or Y Bus condition Address and data Breaks when the X Bus or Y Bus address bus or data bus matches the specified value Bus state condition Bus State There are two bus state condition settings Read Write condition Breaks when the SH7660 RD or RDWAR signal level matches the specified condition Bus state condition Breaks when the operating state in an SH7660 bus cycle matches the specified condition
108. ion However no break will occur at this address When the program halts with the break condition the mark disappears 6 5 6 Notes on Setting the Break Condition Dialog Box and the BREAKCONDITION SET Command 1 When Go to cursor Step In Step Over or Step Out is selected the settings of Break Condition 2 are disabled 2 Break Condition 2 is disabled when an instruction to which a BREAKPOINT has been set is executed Accordingly do not set a BREAKPOINT to an instruction which satisfies Break Condition 2 3 When a Break Condition is satisfied emulation may stop after two or more instructions have been executed 4 Ifa PC break address condition is set to the slot instruction after a delayed branch instruction user program execution cannot be terminated before the slot instruction execution execution stops before the branch destination instruction 5 Break Condition 1 2 is used as the measurement range in the performance measurement function when P is added and displayed as Enable P on the Condition page This applies when the Break Condition is displayed with the BREAKCONDITION DISPLAY command in the command line function In this case a break does not occur when Break Condition 1 2 is satisfied 6 A break will not occur with the execution counts specified on the execution of the multi step instruction 6 5 7 Notes on Setting the Trace Window When a completion type exception occurs during exception branch acq
109. ion mode click the Trace window with the right mouse button and select Acquisition from the pop up menu to display the Trace Acquisition dialog box The AUD trace acquisition mode can be set in the AUD model or AUD mode2 group box in the Trace mode page of the Trace acquisition dialog box Trace Acquisition Figure 6 10 Trace mode Page When the AUD trace function is used select the AUD function radio button in the Trace type group box of the Trace mode page 203 RENESAS a Branch Trace Function The branch source and destination addresses and their source lines are displayed Branch trace can be acquired by selecting the Branch trace check box in the AUD function group box of the Trace mode page The branch type can be selected in the AUD Branch trace page Trace Acquisition Figure 6 11 AUD Branch trace Page b Window Trace Function Memory access in the specified range can be acquired by trace Two memory ranges can be specified for channels A and B The read write or read write cycle can be selected as the bus cycle for trace acquisition Setting Method 1 Select the Channel A and Channel B check boxes in the AUD function group box of the Trace mode page Each channel will become valid ii Open the Window trace page and specify the bus cycle and memory range that are to be set for each channel 204 RENESAS Trace Acquisition x Trac
110. iption Sets the bus state conditions as break conditions Data radio button Sets the execution cycle as break conditions DMA radio button Sets DMA cycles as a break condition Read Write group Read Write radio box button Sets the read write cycle conditions as break conditions Read radio button Sets read cycles as break conditions Write radio button Note This page is displayed when the conditions of Break Condition 1 and Break Condition 2 are set Sets write cycles as break conditions 129 3 NE SAS 5 Count Page Break Condition Dialog Box Function This page sets the conditions for Break Condition 1 Window Break Condition 1 x Address Data ASID Bus State Count Count numbers D Figure 4 16 Count Page Break Condition Dialog Box Table 4 19 Count Page Options Option Description Don t Care check box Sets no satisfaction count conditions Input area Sets the satisfaction count as a break condition The maximum count is 4 095 Breaks when the conditions set by the Break Condition dialog box for the specified times are satisfied The default is D 1 Note Some products are not supported by this function For the specifications of each product refer to the online help 130 3 N SAS 6 General Page Break Condition Dialog Box Function This page sets the conditions for Break Condition 3
111. is a registered trademark of International Business Machines Corporation Microsoft Windows and Windows NT are registered trademarks of Microsoft Corporation in the United States and or other countries Microsoft Windows 98 operating system is referred to as Windows 98 in this user s manual Microsoft Windows Millennium Edition operating system is referred to as Windows Me in this user s manual Microsoft Windows 2000 operating system is referred to as Windows 2000 in this user s manual Microsoft Windows XP operating system is referred to as Windows XP in this user s manual Adobe Acrobat and Acrobat Reader are registered trademarks of Adobe Systems Incorporated Other brand and product names are registered trademarks of each company RENESAS Contents Section T OVELVICW ay iosssiseseadecainesavutnoesacunbiesedeiudeascottianaieaiareeumuasinvaasibpencenseapartels 1 Ll Wearing S iontu eunte beet tee es Ate ate hk Poi oa RO ima ieee reg TES 3 1 2 Environmental Conditions s issiron eserse reiros Eei raS E t inepti Tsor EK EEr S 4 L3 Components oe eU UE EE EEE 6 Section 2 Preparation before Use ute ere HANE IHNEN SU auvatanductaans date 7 21 Emulator Prepatation seneo entere a E E E OEE sou oboe T EE 7 2 2 HDLEInstall tion tot emn de re E E E E e E 8 2 2 1 Installing under Windows 98 and Windows Me Operating Systems 8 2 2 2 Installing under Windows NT 4 0 Operating Sys
112. is granted hereby under any patents copyrights or other intellectual property rights of Renesas Electronics or others You should not alter modify copy or otherwise misappropriate any Renesas Electronics product whether in whole or in part Descriptions of circuits software and other related information in this document are provided only to illustrate the operation of semiconductor products and application examples You are fully responsible for the incorporation of these circuits software and information in the design of your equipment Renesas Electronics assumes no responsibility for any losses incurred by you or third parties arising from the use of these circuits software or information When exporting the products or technology described in this document you should comply with the applicable export control laws and regulations and follow the procedures required by such laws and regulations You should not use Renesas Electronics products or the technology described in this document for any purpose relating to military applications or use by the military including but not limited to the development of weapons of mass destruction Renesas Electronics products and technology may not be used for or incorporated into any products or systems whose manufacture use or sale is prohibited under any applicable domestic or foreign laws or regulations Renesas Electronics has used reasonable care in preparing the information included in this docu
113. les are displayed Table 4 6 Breakpoints Window Display Items Item Description Enable Displays whether the break condition is enabled or disabled BREAKPOINT e Break Condition O If the address is the same as the one that has been set to the BREAKPOINT the mark is e File Line Displays the file name and line number where the breakpoint is set Symbol Displays the symbol corresponding to the breakpoint address If no symbol has been defined for the address nothing is displayed Address Displays the address where the breakpoint is set Type Displays the break condition type as follows Break Point Software breakpoint Virtual or physical address is determined according to the MMU state at setting Break Point Virtual Space ASID D xxx Software breakpoint Virtual address ASID value is displayed in decimal Break Point Physical Space Software breakpoint Physical address Break Condition 1 to Break Condition 3 Hardware break condition Note Only Break Point is displayed in the Type item when the device does not support the MMU 109 3 NE SAS The pop up menu which is opened by clicking the right mouse button can be used to set change and clear breakpoints and to enable or disable break conditions The pop up menu functions are described in the following table Table 4 7 Breakpoints Window Pop up Menu Operation Menu Name Description Add Sets break conditions Clicking this b
114. lowing message is displayed Figure 4 3 Warning Message Box When the Yes button is clicked the E10A Driver Details dialog box is displayed When the No button is clicked the display returns to the Configuration dialog box Related Command GO_OPTION command 104 3 N SAS 2 E10A Driver Details Dialog Box Function Function When the Change button in the Driver group box is clicked on the General page in the Configuration dialog box the E10A Driver Details dialog box is displayed Driver E10A PC Card Driver v Details Interface PC Card Channel E104 PC Card Interface rGonfigurauon Configure Help Figure 4 4 E10A Driver Details Dialog Box Description Table 4 4 Options for the E10A Driver Details Dialog Box Option Description Driver combo box Selects the driver to connect the HDI with the emulator Selects E10A PC Card Driver to use the PCMCIA card emulator Selects E10A PCI Card Driver to use the PCI card emulator For details refer to section 6 5 1 Emulator Driver Selection Interface combo box Displays the interface name of the card emulator to be connected Selects PC Card to use the PCMCIA card emulator Selects PCI to use the PCI card emulator If the driver is not installed the PC Card or PCI is not displayed Channel combo box Displays the interface to which the board is connected
115. lt address gt parameter is executed When this keyword is set only the lt addropt gt and lt asidopt gt cannot be set as conditions In addition when pc is set the lt maskdata gt parameter cannot be set pcafter Breaks after the address set by the lt address gt parameter is executed When this keyword is set only the lt addropt gt and lt asidopt gt cannot be set as conditions When pcafter is not set the address bus during data access cycles and program fetch cycles is targeted as the access condition x X Bus address bus access y Y Bus address bus access lt maskdata gt Character string Mask specification for desired bits in the data Set a radix H for hexadecimal or B for binary at the top of a character string and set in the bit to the masked Conditions are satisfied regardless of the values of masked bits data Numerical value Data bus value 155 RENESAS Table 5 8 BREAKCONDITION SET Command Parameters cont Parameter lt datawidth gt Type Keyword Description Data bus access conditions Set one of the following keywords byte byte access word word access long longword access x X Bus data bus access y Y Bus data bus access lt asid gt Numerical value ASID value from 0 to H FF rw Keyword Bus cycle read write conditions Set either of the following keywords read read cycles write write cycles access Keyword Bu
116. ment but Renesas Electronics does not warrant that such information is error free Renesas Electronics assumes no liability whatsoever for any damages incurred by you resulting from errors in or omissions from the information included herein Renesas Electronics products are classified according to the following three quality grades Standard High Quality and Specific The recommended applications for each Renesas Electronics product depends on the product s quality grade as indicated below You must check the quality grade of each Renesas Electronics product before using it in a particular application You may not use any Renesas Electronics product for any application categorized as Specific without the prior written consent of Renesas Electronics Further you may not use any Renesas Electronics product for any application for which it is not intended without the prior written consent of Renesas Electronics Renesas Electronics shall not be in any way liable for any damages or losses incurred by you or third parties arising from the use of any Renesas Electronics product for an application categorized as Specific or for which the product is not intended where you have failed to obtain the prior written consent of Renesas Electronics The quality grade of each Renesas Electronics product is Standard unless otherwise expressly specified in a Renesas Electronics data sheets or data books etc Standard Compu
117. mmand Parameters Parameter Type Description lt memory_area gt Keyword Sets memory area normal Does not set memory area physical Sets physical address area virtual Sets virtual address area lt asid gt Numerical value Sets an ASID value from 0 to H FF when virtual is set to the memory area parameter Notes 1 When virtual is set and asid is omitted in memory area a virtual address corresponding to the ASID value at command input is accessed 2 When a memory is accessed the contents in the instruction cache are disabled after this command is executed 170 RENESAS Examples To display a memory area for command input such as load verify save memory display and memory change gt mas RET memoryarea set virtual asid H 10 To set a memory area for command input such as load verify save memory display and memory change to a physical address area mas physical RET To set a memory area for command input such as load verify save memory display and memory change to a virtual address area whose ASID value is H 10 mas virtual asid H 10 RET RENESAS 171 5 2 16 REFRESH RF Description Updates the HDI memory information Format rf Table 5 17 REFRESH Command Parameter Parameter Type Description None Example To update the HDI memory information rf RET 172 RENESAS 5 2 17 RESTART RST Description Restarts the emulator The settings of breakpoi
118. n 0 OcO000b6 max 0 0c0000ba change a 0c0000c2 min a 9 Oc0000c6 max a 0 Oc0000ca while 1 void abort void Figure 3 10 Source Window Setting a Software Breakpoint The symbol will appear on the line containing the sort function and the word Break will appear when the BP column is extended This shows that a software breakpoint has been set Note The software breakpoint cannot be set in the ROM area 36 RENESAS 3 9 Setting Registers Set values of the program counter and the stack pointer before executing the program e Select Registers from the View menu The Registers window is displayed E Registers Register Value RO 00000000 R1 00000000 R2 pnononana R3 pnononana R4 00000000 R5 00000000 R6 00000000 R7 00000000 R8 00000000 R9 00000000 00000000 00000000 00000000 00000000 nononana pnononaona A0000000 ooo00000 Figure 3 11 Registers Window 37 2 N SAS To change the value of the program counter PC double click the value area in the Registers window with the mouse The following dialog box is then displayed and the value can be changed Set the program counter to H 0c00006c in this tutorial program and click the OK button Move the mouse pointer on the value to be changed in the PC value area and enter the new value by the keyboard Register PC Value H ocoo006c Set As Who le Register m 38
119. n 10 Selecting Functions in the Hitachi Debugging Interface User s Manual Memory Save During User Program Execution Do not execute memory save or verifying during user program execution 221 RENESAS 14 15 16 17 Load of Motorola S type Files This HDI does not support Motorola S type files with only the CR code H OD at the end of each record Load Motorola S type files with the CR and LF codes H 0DOA at the end of each record Memory Window If the following memory contents are displayed they will be incorrect Word access from address 2n 1 Longword access from address 4n 1 4n 2 or 4n 3 Scrolling Window During User Program Execution Do not scroll the Memory and Disassembly windows by dragging the scroll box during user program execution This generates many memory reads causing the user program to stop execution until the memory reads have been completed I O Registers window Display and modification Do not change values of the User Break Controller because it is used by the emulator For watchdog timer register there are two registers to be separately used for write and read operations Table 6 16 Watchdog Timer Register Register Name Usage Register WTCSR W Write Watchdog timer control status register WTCNT W Write Watchdog timer counter WTCSR R Read Watchdog timer control status register WTCNT R Read Watchdog timer counter The watchdog timer operates only whe
120. n completed display and edit the contents of the destination memory in the Memory window to check that the memory is operating correctly Note The above way of checking the operation of memory may be inadequate It is recommended that a program for checking the memory be created e Select Memory from the View menu enter H 0c000000 in the Address edit box and set the format in the Format combo box to Byte Open Memory Window Dci OK H OcOOO0000 Cancel Format Byte Figure 3 4 Open Memory Window Dialog Box Click the OK button The Memory window is displayed and shows the specified memory area Figure 3 5 Memory Window 31 RENESAS e Placing the mouse cursor on a point in the display of data in the Memory window and double clicking allows the values at that point to be changed Data can also be directly edited around the current position of the text cursor 32 RENESAS 3 7 Downloading the Tutorial Program 3 7 1 Downloading the Tutorial Program Download the object program to be debugged e Select Load Program from the File menu The Load Program dialog box is displayed Enter installation directory tutorial tutorial Debug tutorial abs in the File name list box as shown in figure 3 6 then click the Open button Load Program Ho Iv Verify Cancel File name C hew hdi5 e1 Oa XXXX tuto rial tuto
121. n the user program is executed Do not change the value of the frequency change register in the I O Registers window or Memory window The internal I O registers can be accessed from the I O registers window However note the following when accessing the SDMR register of the bus state controller Before accessing the SDMR register specify addresses to be accessed in the I O register definition file SH7660 IO and then activate the HDI After the I O register file has been created the MCU s specification may be changed If addresses of each I O register in the I O register file and those described in the MCU s manual are different modify them according to the description in the MCU s manual The I O register can be customized in the format of the I O register file Note that however the E10A emulator does not support the bit field function described in the Hitachi Debugging Interface User s Manual 222 13 N SAS e Verify In the I O Registers window the verify function of the input value is disabled 18 Note on Registers Window Operation During Program Execution Although a dialog box is displayed in which the register contents can be changed by double clicking the Registers window do not change the register contents during program execution 19 Note on Radix in the Register Dialog Box The default input radix in the Register dialog box is hexadecimal irrespective of the Radix display When a radix other than a
122. n times under the following environment are shown below Environment Host computer 1 GHz Pentium III Memory 512 Mbytes OS Windows 98 SH7660 CPU clock 64 MHz Execution program 10 000 nested calls i When the profile function is not used 1 second or lower ii When the profile function is used in the setting without including a child function 7 seconds iii When the profile function is used in the setting including a child function 149 seconds 216 RENESAS 6 5 11 Downloading to the Flash Memory Examples of connecting with and downloading to the flash memory DA28F640J5 150 manufactured by Intel Corporation are described below Note that a sample is provided in the Fmtool folder within the folder in which the SH7660 E10A is installed File configuration of the sample program is as follows Table 6 13 File Configuration of the Sample Program Item File name Sample program for downloading to the flash memory Fmtool Fmtool mot load module file S type format with big endian Sample program for downloading to the flash memory Fmtool Fmtool asm source file Specifications of the sample program are as follows Table 6 14 Specifications of the Sample Program Item Contents RAM area to be used H 0C001000 to H OC001FFF Writing module start address H 0C001100 Erasing module start address H 0C001000 Operating conditions of the sample program are listed below Table 6 15 Operating Conditions
123. ndensation Storage 35 RH to 80 RH no condensation Vibration Operating 2 45 m s max Storage 4 9 m s max Transportation 14 7 m s max Ambient gases No corrosive gases may be present Table 1 2 lists the acceptable operating environments RENESAS Table 1 2 Operating Environments Item Host computer Description Built in Pentium or higher performance CPU 200 MHz or higher recommended IBM PC or compatible machine with the PCMCIA TYPE II slot or the PCI slot OS Windows 98 Windows Me Windows 2000 or Windows NT Minimum memory capacity 32 Mbytes or more double of the load module size recommended Hard disk capacity Installation disk capacity 10 Mbytes or more Prepare an area at least double the memory capacity four times or more recommended as the swap area Pointing device such as mouse Connectable to the host computer compatible with Windows 98 Windows Me Windows 2000 and Windows NT Power voltage 5 0 0 25 V Current consumption HSxxxxKCMO01H 110 mA max HSxxxxKCMO02H 230 mA max HSxxxxKCl01H 340 mA max HSxxxxKCl02H 600 mA max CD ROM drive Required to install the HDI for the emulator or refer to the emulator user s manual RENESAS 1 3 Components Check all the components unpacking For details on the E10A emulator components refer to section 6 1 Components of the Emulator If the components are not complete contact a
124. nesas Electronics products or if you have any other inquiries Note 1 Renesas Electronics as used in this document means Renesas Electronics Corporation and also includes its majority owned subsidiaries Note 2 Renesas Electronics product s means any product developed or manufactured by or for Renesas Electronics C 7 D m on lt D c D CENESAS SH7660 E10A Emulator User s Manual Renesas Microcomputer Development Environment System Renesas Electronics Rev 1 0 2003 05 www renesas com Cautions Keep safety first in your circuit designs 1 Renesas Technology Corporation puts the maximum effort into making semiconductor products better and more reliable but there is always the possibility that trouble may occur with them Trouble with semiconductors may lead to personal injury fire or property damage Remember to give due consideration to safety when making your circuit designs with appropriate measures such as i placement of substitutive auxiliary circuits ii use of nonflammable material or iii prevention against any malfunction or mishap Notes regarding these materials 1 These materials are intended as a reference to assist our customers in the selection of the Renesas Technology Corporation product best suited to the customer s application they do not convey any license under any intellectual property rights or any other rights belonging to Renesas
125. ng User Program Break When cache is enabled the emulator accesses the memory by the following methods At memory write Writes through the cache then writes to the memory At memory read Does not change the cache write mode that has been set Therefore when memory read or write is performed during user program break the cache state will be changed e UBC When User is specified in the UBC mode list box in the Configuration dialog box the UBC can be used in the user program Do not use the UBC in the user program as it is used by the E10A emulator when EML is specified in the UBC mode list box in the Configuration dialog box e Loading Sessions Information in JTAG clock of the Configuration dialog box cannot be recovered by loading sessions Thus the TCK value will be as follows When HS7660KCIO1H or HS7660KCIO2H is used TCK 4 125 MHz When HS7660KCMO01H or HS7660KCMO2H is used TCK 3 75 MHz 198 RENESAS 6 5 Specific Functions for the SH7660 E10A Emulator The SH7660 E10A emulator supports the following useful function e Performance measurement function Measures several performances such as the cache miss count The SH7660 E10A emulator does not support the following functions e MMU related functions The SH7660 does not mount the MMU 6 5 1 VPMAP command Virtual and Physical specification in the Configuration window or on the command line LDTLB instruction execution break funct
126. ng procedures of the E10A emulator Sections 1 to 5 describe common features of all types of E10A emulators Section 6 describes supplements to the E10A emulator Read section 1 1 Warnings carefully before using the emulator This manual consists of six sections The information contained in each section is summarized below e Section 1 Overview gives the emulator overview e Section 2 Preparation before Use gives instructions for first time users such as preparation before use and system connection e Section 3 Tutorial describes HDI operating examples and functions e Section 4 Descriptions of Windows describes HDI windows for operating the emulator e Section 5 Command line Functions describes how to input HDI commands and command types e Section 6 SHxxxx E10A Emulator Specifications describes the detailed specifications and the features of the E10A emulator for each device Section 7 describes the important information of the E10A emulator according to emulator products Read these sections before using the E10A emulator The HDI installation disks are provided by the CD R Refer to the descriptions in the manuals of the host computer or operating system RENESAS Related Manuals e SuperH RISC Engine C C Compiler Assembler Optimizing Linkage Editor User s Manual e Hitachi Debugging Interface User s Manual e Hardware Manual for each device e Programming Manual for each device Notes 1 IBM PC
127. ng to the product For the specifications of each product refer to the online help 145 RENESAS Examples To set AUD clock AUDCK to 15 MHz gt AUD_CLOCK 2 RET AUD CLOCK 15MHz The AUD clock AUDCK is displayed AUD CLOCK RET AUD CLOCK 15MHz Related Item Configuration dialog box 146 RENESAS 5 2 AUD MODE AUM Description Sets or displays AUD trace acquisition conditions Format aum lt optionl gt lt option2 gt option1 mode lt mode gt lt option2 gt full lt full gt Table 5 3 AUD MODE Command Parameter Parameter Type Description mode Keyword Selects the trace mode N Internal trace F Non realtime trace R Realtime trace full Keyword Continues or stops emulation when the trace memory is full C Always overwrites the oldest information to acquire the latest information S When the trace buffer memory is full information acquisition stops Note When option and lt option2 gt are omitted the current setting conditions are displayed Note The parameters for this command differ according to the product For the specifications of each product refer to the online help 147 RENESAS Examples To select realtime trace mode and set continue option gt aum mode R full c RET To display settings gt aum RET mode Realtime trace continue To use internal trace mode gt aum RET mode Internal trace Related Item Trace Acqui
128. non exclusive selection This represents an exclusive selection The command parameter details are described in the parameter table 5 1 2 Parameter Input Numerical Parameters A binary octal decimal or hexadecimal value a symbol or a formula can be input A symbol can contain up to 32 characters Terms in a formula are separated with operators such as or Keyword Parameters One of the bold characters given in the description column of the table can be input If a character string not shown in the description is input an error will occur Character String Parameters Character string parameters are used to input mask data or a file name In the mask data set a radix H hexadecimal or B binary at the top of a character string and set at the digit to be masked 141 RENESAS 5 1 3 Examples These are actual input examples For commands whose execution results in a specific display output an example of the display is given 5 1 4 Related Items Related E10A HDI commands abbreviations and dialog boxes are shown Refer to section 4 Descriptions of Windows 142 RENESAS 5 2 Command Descriptions The command list of the E10A emulator is shown below Table 5 1 E10A HDI Commands No Command Abb Function 1 AUD_CLOCK AUCL Sets the AUD clock AUDCK 2 AUD MODE AUM Sets AUD trace conditions 3 AUD TRACE AUT Displays trace information 4 BREAKCONDITION_ BCC Clears h
129. nslation VP MAP table which has been set 23 VPMAP DISPLAY VD Displays the emulator address translation VP MAP table 24 VPMAP ENABLE VE Enables or disables the emulator address translation VP MAP table 25 VPMAP SET VS Sets emulator address translation VP MAP table Note Support for these commands varies with the product For the specifications of each 144 product refer to the online help RENESAS 5 2 1 AUD_CLOCK AUCL Description Sets or displays the AUD clock AUDCK values that have been set Format aucl lt option gt lt option gt lt aud_clock gt Table 5 2 AUD CLOCK Command Parameter Parameter Type Description lt aud_clock gt Numerical value Sets values from 1 to 7 1 5 MHz PCI 7 5 MHz PCMCIA 2 10 MHz PCI 15 MHz PCMCIA 3 20 MHz PCI 30 MHz PCMCIA 4 30 MHz PCI 60 MHz PCMCIA 5 40 MHz PCI 6 50 MHz PCI 7 60 MHz PCI Notes 1 When option is omitted the AUD clock AUDCK values that have been set are displayed 2 The range of frequencies that the AUD operates under differs according to the devices used For details refer to section 6 5 4 Notes on Using the JTAG Clock TCK and AUD Clock AUDCK 3 The AUD clock AUDCK value which can be set with this command may differ according to emulator products For details refer to section 6 5 4 Notes on Using the JTAG Clock TCK and AUD Clock AUDCK Note The parameters for this command differ accordi
130. nt group box Sets the calling destination address of the write erase module All erasing module address edit box Inputs the calling destination address of the erase module Writing module address edit box Inputs the calling destination address of the write module Note Although the values that can be set are D 0 to D 65535 the TIMEOUT hours may be extended according to the set value Therefore it is recommended to input the minimum value The value to be input must only be positive integer Notes on using the flash memory download function The following are notes on downloading to the flash memory e When the flash memory download is enabled downloading other than to the flash memory area is disabled e Downloading is only enabled to the flash memory area Perform memory write or software break only to the RAM area e When the flash memory erase is enabled the Stop button cannot stop erasing e The area for the write erase module must be MMU disabled space e Only the S type formatted file is enabled for the write erase module 91 RENESAS Examples of downloading to the flash memory The following shows examples of downloading to the flash memory manufactured by Intel Corporation type number G28F640J5 150 that has been mounted on Renesas SH7751 CPU board type number HS7751STCO1H A sample is provided in the Fmtool folder in the installation destination folder Create the program for user specific
131. nts or trace acquisition conditions are not reset here Format rst Table 5 18 RESTART Command Parameter Parameter Type Description None Example To restart the emulator rst RET RENESAS 173 5 2 18 STATUS STS Description Displays status information of the emulator Format sts Table 5 19 STATUS Command Parameter Parameter Type None Example Description To display status information of the emulator gt sts RET Emulator Status Connected to CPU Run status Cause of last break Run time count Emulator mode Big endian AUD SHxxxx E10A Emulator E10A PC Card Driver OHxxx Break BREAK POINT 0h 0min 0s 10ms Normal Exist Note The items displayed with this command differ according to the product For the display specifications of each product refer to the online help 174 RENESAS 5 2 19 STEP INTERRUPT SI Description Sets or displays the enable or disable status of interrupts during step execution If enabled interrupts occur and stop at the top address in the interrupt routine Format Displays the enable or disable status of interrupts during step execution si Sets the enable or disable status of interrupts during step execution si mode Table 5 20 STEP INTERRUPT Command Parameter Parameter Type Description lt mode gt Keyword Enables or disables interrupts during step execution Set either of the following enable
132. o box select the driver to connect the HDI with the emulator Interface displays the interface name of the PC interface board to be connected and Channel displays the interface to which the board is connected Once the driver is selected in the E10A Driver Details dialog box this dialog box is not displayed when the HDI is run next time This procedure will not be executed by target devices E10A Driver Details Driver E10A PC Card Driver Details Interface PC Card m Channel E10A PC Card Interface v Conigurauon Configure Figure 2 8 E10A Driver Details Dialog Box With the Driver combo box select the driver to connect the HDI with the emulator Interface displays the interface name of the card emulator to be connected and Channel displays the interface to which the board is connected Driver combo box Select E10A PC Card Driver to use the PCMCIA card emulator Select E10A PCI Card Driver to use the PCI card emulator For details refer to table 6 3 in section 6 5 1 Emulator Driver Selection Interface combo box Select PC Card to use the PCMCIA card emulator PCI is displayed to use the PCI card emulator If the driver is not installed the PC Card or PCI is not displayed 17 13 NE SAS Click the Close button 7 The HDI window is displayed and the dialog box is displayed as shown in figure 2 9 HDI Ea N Please Reset
133. on The Memory window showing the specified area of memory is displayed 2 Word Memory main Value 32712 7424 7986 24558 9 12009 16651 9 7939 16401 30463 24587 7939 21490 17160 25331 29200 13100 20979 8978 21490 29441 7986 7670 20978 12579 29719 25843 29712 20455 Figure 3 18 Memory Window 42 3 NE SAS 3 13 Watching Variables As the user steps through a program it is possible to watch that the values of variables used in the user program are changed For example set a watch on the long type array a declared at the beginning of the program by using the following procedure e Click the left of displayed array a in the Source window to position the cursor e Click the Source window with the right mouse button and select Instant Watch from a pop up menu The following dialog box will be displayed Instant Watch Figure 3 19 Instant Watch Dialog Box 43 RENESAS e Click Add Watch button to add a variable to the Watch window Watch Window 0x0c000bd8 lonaL10 Figure 3 20 Watch Window Displaying the Array The user can also add a variable to the Watch window by specifying its name Click the Watch window with the right mouse button and select Add Watch from the pop up menu The following dialog box will be displayed Add Watch x P EddEss E o fe orale Gheypressicnn Cancel
134. on dialog boxes RENESAS 167 5 2 14 JTAG_CLOCK JCK Description Displays or sets the JTAG clock TCK frequency Format Displays the JTAG clock TCK frequency ick Sets the JTAG clock TCK frequency jck jck opt Table 5 15 JTAG CLOCK Command Parameter Parameter Type Description jck opt Numerical value Sets one of the JTAG clock TCK frequency PCMCIA used 3 75 MHz 7 5 MHz or 15 MHz 3 3 75 MHz 7T 7 5 MHz 15 15 MHz PCI used 4 125 MHz 8 25 MHz or 16 5 MHz 4 4 125 MHz 8 8 25 MHz 16 16 5 MHz Note The range of frequencies that the H UDI operates at differs according to the devices used For details refer to section 6 5 4 Notes on Using the JTAG Clock TCK and AUD Clock AUDCK Examples when PCMCIA used To set the JTAG clock TCK frequency jck 15 RET JTAG Clock 15MHz To display the JTAG clock TCK frequency jck RET 168 RENESAS JTAG Clock 15MHz when PCI used To set the JTAG clock TCK frequency jck 16 RET JTAG Clock 16 5MHz To display the JTAG clock TCK frequency gt jck RET JTAG Clock 16 5MHz RENESAS 169 5 2 15 MEMORYAREA SET MAS Description Displays and sets memory area at command input such as load verify save memory display or memory change Format Displays memory area mas Sets memory area mas lt memory_area gt lt asidopt gt lt asidopt gt asid lt asid gt Table 5 16 MEMORYAREA SET Co
135. on 4 Descriptions of Windows Numbers in figure 3 2 indicate the following 1 Menu bar Gives the user access to the HDI commands for using the HDI debugger 2 Toolbar Provides convenient buttons as shortcuts for the most frequently used menu commands 3 Source window Displays the source program being debugged 4 Status bar Displays the status of the emulator and progress information about downloading 5 Help button Activates online help about any features of the HDI user interface 28 RENESAS 3 4 Setting up the Emulator The clocks which are used for data communications must be set up on the emulator before the program is downloaded e AUD clock A clock used in acquiring AUD traces If its frequency is set too low complete data may not be acquired during realtime tracing If the frequency is set too high the upper limit for the device s AUD clock may be exceeded The AUD clock is only needed for emulators that have an AUD trace function e JTAG clock TCK A communication clock for downloading data to the emulator except for acquiring AUD trace If its frequency is set too low the speed of downloading will be lowered If its frequency is set too high the upper limit for the device s TCK clock may be exceeded For details of the limitations on both clocks refer to section 6 5 4 Notes on Using the JTAG Clock TCK and AUD Clock AUDCK The following is a description of the procedure used to set
136. ons or to the online help 2 AUD Trace Function This is the large capacity trace function that is enabled when the AUD pin is connected to the emulator This function displays the branch source and branch destination addresses mnemonics operands and source lines When the branch source and branch destination instructions are one branch the number of branch instructions acquired by a trace is a maximum of 4 096 in the PCMCIA type emulator and a maximum of 16 384 in the PCI type emulator Table 3 4 shows the AUD trace function Notes 1 The AUD trace function is not supported for all products For the specifications of each product refer to the section related to the trace functions in section 6 SHxxxx E10A Emulator Specifications or to the online help 2 The AUD trace function is not extended for all products For the specifications of each product or the number of acquired branches refer to the section related to the trace functions in section 6 SHxxxx E10A Emulator Specifications or to the online help 73 RENESAS Table 3 4 AUD Trace Functions Type Acquisition mode when branches continuously occur Mode Realtime trace Description When the next branch occurs while the trace information is being output the output is stopped and the next trace information is output The user program can be executed in realtime but some trace information will not be output Non realtime trace When the next branch occur
137. ons under certain use conditions Further Renesas Electronics products are not subject to radiation resistance design Please be sure to implement safety measures to guard them against the possibility of physical injury and injury or damage caused by fire in the event of the failure of a Renesas Electronics product such as safety design for hardware and software including but not limited to redundancy fire control and malfunction prevention appropriate treatment for aging degradation or any other appropriate measures Because the evaluation of microcomputer software alone is very difficult please evaluate the safety of the final products or system manufactured by you Please contact a Renesas Electronics sales office for details as to environmental matters such as the environmental compatibility of each Renesas Electronics product Please use Renesas Electronics products in compliance with all applicable laws and regulations that regulate the inclusion or use of controlled substances including without limitation the EU RoHS Directive Renesas Electronics assumes no liability for damages or losses occurring as a result of your noncompliance with applicable laws and regulations This document may not be reproduced or duplicated in any form in whole or in part without prior written consent of Renesas Electronics Please contact a Renesas Electronics sales office if you have any questions regarding the information contained in this document or Re
138. oo0094 for i 0 i 10 iHi 3 H 00002 82 Ox0cO000be4 long e p 37 0c000076 j rand 4 H 00036c9 Ox0cO000be8 long e 38 0c00007e if j U 4 5 H 000047b3 Ox0cO000bec long 39 0c000082 j j 6 H 00004e5a 0x0c000bf0 long A 7 H 00005ed3 0x0c000bf4 long 0c000086 ali i 8 H 00006422 0x0c000bf8 long n 42 3 H O00006 bf Ox0cO000bfc long az 43 0c0000a2 e sort a max H O0000000 Ox0c000bc8 int 44 Oc0000aa min a 0 E 45 OcO000ac max a 9 46 OcO000b2 i f 47 0c0000b6 iz OcO000c2 a 9 F3 50 c0000c6 max a 0 mi 51 Oc0000ca while 1 H void abort void Oc0000d8 _abort Oc0000dc _sort void sort long a v Hp a reak Break STOP ADDRESS NUM Figure 3 29 Source Window Before Step Over Execution e To step through all statements in the change function at a single step select Step Over from the Run menu or click the Step Over button in the toolbar e Figure 3 30 Step Over Button 50 RENESAS Al Hitacht Debugumg interface tutorial SH xxxx E10A Emulator E z E E Ej DH R3 e e inix long a 10 x c 0 0bd8 long 10 long j 0 H O0006 bf Ox0c000bd8 long int i min max 1 H 00006422 Ox0cO000bdc long 2 H 00005ed3 Ox0cO000be0 long 0c000094 for i 0 i lt 10 3 H 00004e5a Ox0c000be4 long 0c000076 j rand 4 H 0000
139. or is used do not install any components within 3 mm of the H UDI port connector When the 36 pin connector is used do not connect other signal lines to the H UDI port connector 2 Note that the TDO signal of the user system interface cable connector must be connected to the TDI pin of the H UDI port connector and the TDI signal of the user system interface cable connector must be connected to the TDO pin of the H UDI port connector Section 6 2 shows the pin arrangement of the H UDI port connector 3 Figure 2 4 shows how to connect the user system interface cable to the user system when the 14 pin straight type connector is used Connect the ground line of the cable to the user system ground The end of the ground line has a hole having a diameter of 3 mm and therefore when the ground line is screwed to the user system the screw diameter must be 3 mm 12 RENESAS User system interface cable Tab GND line H UDI port connector User system GND connection User system Pin 1 Figure 2 4 Connecting the User System Interface Cable to the User System when the 14 pin Straight Type Connector is Used Notes 1 To connect the signals output from the H UDI port connector refer to the device pin alignment 2 To remove the user system interface cable from the user system pull the tab on the connector upward 3 The range of frequencies that the H UDI operates at is different according to the devices used For de
140. p 5 OcO000e4 while gap gt 0 jf Oc0000e8 for k 0 k gap k OcO000 0 for i k gap i 10 i i OcO000fc for j i gap j gt k Oc000108 iff alj gt alit gar 0c000120 e t alj c00012a alil ala Oc00013e a j gap else Oc000150 break E EZ Figure 3 59 Source Window Software Breakpoint Setting e Set the same program counter and stack pointer values PC H 0c00006c and R15 H 0c000c00 as were set in section 3 9 Setting Registers again use the Registers window Click the Go button e After the break in execution select Stack Trace from the View menu to open the Stack Trace window 82 RENESAS I Stack Trace iof x Kind Name alue sort long OxOcOO0120 main OxOcOO00aa main OxOcOO00aa main OxOcOO00aa main OxOcOO00aa main OxOcOO00aa main OxOcOO00aa maing OxOcOO00aa main OxOcOO00aa maing OxOcOO00aa ID De e e e C ce e F F E F E F E F F F Figure 3 60 Stack Trace Window Figure 3 60 shows that the position of the program counter is currently at the selected line of the sort function and that the sort function is called from the main function Notes 1 If the function is not deeply nested lower than 10 the main function will be displayed multiple times 2 For details on this function refer to the online help The online help is opened when the F1 key is pressed in the Stack Trace window 83 2 N ESAS
141. played Contents of the System Status Window Break Condition 1 67 Configuration Dialog Box Sequential Break Setting sss 69 Breakpoints Window After Sequential Break Condition Setting 70 Source Window at Execution Stop Sequential Break 71 Displayed Contents of the System Status Window Sequential Break 72 Trace mode Window eee etie eee raperet rires 75 Tr ce WindOW 5 se Release e t eiae eod 76 Trace mode Window merei narenn nire etm teret tenere ee Peer pere TT Trace Window in the SH7751 E10A Emulator eene 78 Address Translation according to VP MAP Tables serene 80 Source Window Software Breakpoint Setting sees 82 Stack Trace Window e eee etre dees vies ceed cision aie 83 Profile List Window eeren ene a a ennne rennen enne 84 Selection of Enable Profiler ssseseseseeee eene nennen 85 Select Data Dialog BOX entere er eee iiec ot id core e eerte tee 86 RENESAS Figure 3 64 Figure 3 65 Figure 3 66 Figure 3 67 Figure 3 68 Figure 3 69 Figure 3 70 Figure 4 1 Figure 4 2 Figure 4 3 Figure 4 4 Figure 4 5 Figure 4 6 Figure 4 7 Figure 4 8 Figure 4 9 Figure 4 10 Figure 4 11 Figure 4 12 Figure 4 13 Figure 4 14 Figure 4 15 Figure 4 16 Figure 4 17 Figure 4 18 Figure 4 19 Figure 4 2
142. ption Don t Care check box Description Does not set address conditions Address radio button Sets use of the normal address bus as break conditions Only program fetched address radio button Sets a break before prefetched address execution as break conditions Only program fetched address after radio button Sets a break after prefetched address execution as break conditions X bus address radio button Sets the X bus address as a break condition Can be set only with Break Condition 1 Y bus address radio button Sets the Y bus address as a break condition Can be set only with Break Condition 1 Address edit box Sets the address bus value with a number or a symbol Non user mask radio button Sets no mask conditions User mask radio button Sets mask conditions Mask edit box Sets the mask bits if User mask is selected For masked bits the break condition is satisfied regardless of the address values Note This page is displayed when the conditions of Break Condition 1 and Break Condition 2 are set A page name to be displayed and the contents of an option that can be set will change depending on the radio button selected Table 4 15 Address Options Option Address radio button Description All pages can be selected and masks can be set X Bus address radio button and Y Bus address radio button Only program fetched a
143. put the same signal as for the RESETP pin or pull it down by a resistance of several kilo ohms 2 The RESET signal in the user side is input to the RESETP pin of the SH7660 Connect this pin to the H UDI port connector as the output from the user system 3 The TRST pin must be low for a certain period when the emulator is turned on whether the H UDI is used or not Input the same signal as for the RESETP pin to the TRST pin or pull it down by a resistance of several kilo ohms 187 RENESAS Figure 6 3 shows the pin arrangement of the H UDI port connector 36 pins H UDI port connector 28 2 Edge of the board connected to the connector EN 00000000 000000000 00000000 UC 3 1 27 4 21 59 37 61 po P45 gt _ lt 1 905 9 0 35 Pin 1 mark 43 54 Z Pattern inhibited area Unit mm Top view Pin Input Hn Input No Signal Output SH7660PinNo Note No Signal Output SH7660 Pin No Note 1 AUDCK Outpu M16 19 TMS Inpu L1 2 GND 20 GND 3 AUDATAO Outpu M17 21 TRST Inpu Ji 4 GND 22 GND 5 AUDATA1 Outpu L16 23 TDI Inpu Ki 6 GND 24 GND 7 AUDATA2 Outpu L17 25 TDO Output J3 8 GND 26 GND 9 AUDATA3 Outpu K14 27 ASEBRKAK Output J2 10 GND 28 GND E 11 AJDSYNC Outpu K15 29 NC
144. ropt gt lt dataopt gt B lt asidopt gt r wopt lt accessopt gt lt countopt gt lt Idtlbopt gt lt ioopt gt 154 lt option gt lt option gt channel lt channel_number gt lt addropt gt lt dataopt gt lt asidopt gt lt r wopt gt lt accessopt gt lt countopt gt Il lt ldtlbopt gt lt ioopt gt address address lt addrcycle gt ll address mask lt maskdata gt lt addrcycle gt data data lt datawidth gt ll data mask lt maskdata gt lt datawidth gt asid lt asid gt direction lt r w gt access lt access gt count lt count gt Idtlb lt Ibtlb gt 1o io RENESAS Table 5 8 BREAKCONDITION SET Command Parameters Parameter channel number Type Numerical value Description Hardware break condition channel number Specifiable options change depending on the channel number For details refer to section 6 5 2 Break Condition Functions 1 lt addropt gt lt dataopt gt lt asidopt gt lt r wopt gt and lt accessopt gt can be set 2 lt addropt gt lt asidopt gt lt r wopt gt and lt accessopt gt can be set 3 lt Idtlbopt gt and lt ioopt gt can be set lt address gt Numerical value Virtual address as an address bus value lt addrcycle gt Keyword Address bus access conditions for program fetch cycles Set either of the following keywords pc Breaks before the address set by the
145. s cycle access type dat execution cycles count Numerical value Set satisfaction count from 1 to H FFFF lt ldtlb gt Keyword Set LDTLB instruction execution as a break condition break Breaks when the LDTLB instruction is executed lt io gt Keyword Set internal I O access condition as a break condition break Breaks when the internal I O area is accessed Note The parameters for this command differ according to the product For the specifications of each product refer to the online help 156 RENESAS Examples To set the following conditions for channel hardware breakpoint lt addropt gt item An address bus value of H 1000000 lt dataopt gt item DO bit of the byte access data is 0 r wopt item write cycle bcs channel 1 address H 1000000 data mask B byte direction write RET To set the following conditions for channel 2 hardware breakpoint addropt item Sets an address bus value of H 1000000 during the program fetch cycles and breaks before execution asidopt item The ASID value is H 0 bcs channel 2 address H 1000000 pc asid H O0 RET To set the following conditions for channel 1 hardware breakpoint addropt item Sets an address bus value of H 1000000 during the program fetch cycles with a mask set to the lower 10 bits and breaks after execution asidopt item H 10 to the ASID value bcs channel 1 address H 1000000 pcafter ml asid H
146. s not need to be set in an emulator that does not support the internal trace function 1 Select Trace from the View menu 2 Click the Trace window with the right mouse button and select Acquisition from the pop up menu to display the Trace Acquisition window 3 Select the AUD trace radio button in the Trace type group box Trace A equ isition Trace mode Trace type C Internal trace AUD model Realtime trace C Non realtime trace ALD mode2 Trace continue Trace stop AUD trace display range Start pointer D 8191 End pointer D Updater Co a Figure 3 56 Trace mode Window Note For a description of each option refer to table 3 4 Note The items that can be set in this window differ according to the product For the settings for each product refer to the online help The trace results are displayed in the Trace window after the program execution is completed The display specifications in the Trace window are the same as the internal trace function 77 2 ENESAS The following is an example of the display in the SH7751 E10A emulator IP ADDR DATA D 000034 OCOQOBC4 OCOOOBD8 D 000033 OCOO0B98 00000006 D 000032 OCOOOBA8 00003BE6 D 000031 OCOOOBFO 00003BE6 D 000030 OCOO00898 00000006 D 000029 OCOO0B98 00000007 D 000028 OCOO0B98 00000007 D 000027 0C000210 eee H COOOLEC 8 DESTINA
147. s source code for the tutorial program The file tutorial abs is a compiled load module in the Dwarf2 format Table 3 1 is a list of the parts of the tutorial program and an outline of their configuration on the hard disk Table 3 1 Tutorial Program Configuration and Parts Item Contents Workspace for HEW V1 2 Installation directory tutorial tutorial hAws Load module Installation directory tutorial tutorial Debug tutorial abs Main program source file Installation directory tutorial tutorial tutorial c Stack information file Installation directory tutorial tutorial Debug tutorial sni Use area 3 CS3 space as the operating environment The MMU function is not used 25 2 ENESAS Notes 1 Operation of tutorial abs is big endian For little endian operation tutorial abs must be recompiled After recompilation the addresses may differ from those given in this section 2 This program was created by using High performance Embedded Workshop hereafter referred to as HEW V1 2 Older versions of HEW will not open the workspace included with the package so create a new workspace in such situations 3 This program was compiled without optimization for the SH2 CPU If recompiled with different settings the addresses may differ from those given in this section 4 tutorial abs is a load module in the Dwarf2 format If a load module is recreated in the Sysrof format the amount of information displayed on the HDI screen
148. s while the trace information is being output the CPU stops operations until the information is output The user program is not executed in realtime Acquisition mode when the trace buffer of the emulator becomes full 74 Trace continue This function always overwrites the oldest trace information to acquire the latest trace information Trace stop The trace information is not acquired The user program is continuously executed RENESAS 3 19 1 Internal Trace Function The branch source and branch destination information for the latest several branch instructions are displayed The following is a procedure to set the internal trace function this function is not needed to be set in the emulator that does not support the AUD trace function Select Trace from the View menu 2 Click the Trace window with the right mouse button and select Acquisition from the pop up menu to display the Trace Acquisition window 3 Select the Internal trace radio button in the Trace type group box Trace Acquisition iv Realtime trace Pe Won realtime trace Figure 3 54 Trace mode Window Note The items that can be set in this window differ according to the product For the settings for each product refer to the online help 75 RENESAS Run the program as shown in the example of section 3 17 1 Software Break Function The trace results are displayed in the Trace window after the program
149. sition dialog box 148 RENESAS 5 2 3 AUD_TRACE AUT Description Displays the trace information Format aut lt optionl gt lt option2 gt optionl start lt start_pointer gt lt option2 gt end lt end_pointer gt Table 5 4 AUD TRACE Command Parameter Parameter Type Description lt start_pointer gt Numerical value Start pointer value for trace display n lt end_pointer gt Numerical value End pointer value for trace display m Notes 1 In the PCMCIA card emulator D 8191 to D 0 can be set to the trace pointer In the PCI card emulator D 32767 to D 0 can be set 2 When the internal trace is selected the AUT command displays the information that has been acquired by using the AUD function Example To display trace information according to the information acquired during user program execution AUD TRACE RET IP TYPE ADDR MNEMONIC OPERAND D XXXXXX BRANCH KO RO DESTINATION 01000020 MOV L R1 GR1 a b c d e a Instruction pointer signed decimal b Types of branch source or branch destination BRANCH Branch source DESTINATION Branch destination c Address of instruction word d Instruction mnemonic e Instruction operand 149 RENESAS Related Item Trace dialog box 150 RENESAS 5 2 4 BREAKCONDITION_CLEAR BCC Description Clears hardware breakpoints that have been set Format bcc lt channel gt lt channel gt ch
150. splayed refer to the online help 67 2 N SAS 3 18 1 Setting the Sequential Break Condition The emulator has sequential break functions When the hardware break conditions listed in table 3 3 are satisfied program execution is halted This mode is called sequential break Table 3 3 Sequential Break Conditions Break Condition Description Sequential break condition 2 1 Program is halted when Break Condition 2 and Break Condition 1 are satisfied in that order Sequential break condition 2 1 is described below as an example Before executing the program change setting in the Configuration dialog box Otherwise the sequential break does not function e Select Configure Platform from the Setup menu The Configuration dialog box is displayed e Select Sequential break condition 2 1 from the Emulation mode combo box 68 RENESAS Configuration Ea General Loading flash memory Mode SHxxxx v Emulation mode Sequential break condition 2 1 Step option Disables interrupts during single step execution UBC mode Break condition 6 7 Memory area Normal C Physical Virtual 45 D po AUD clock 1 8 CPU clock JTAG clock 4 25MHz 7 Driver Change Cancel Apply Help Figure 3 50 Configuration Dialog Box Sequential Break Setting Note The items that can be set in this window differ according to the product For the settings for each product
151. started from the satisfaction of the condition set in Break Condition 1 and ended with the satisfaction of the condition set in Break Condition 2 Break Condition 2 gt 1 Measurement is started from the satisfaction of the condition set in Break Condition 2 and ended with the satisfaction of the condition set in Break Condition 1 Performance 3 x Condition Mode Normal Break o w Channel 1 Elapsed time e Channel 2 Number of execution states tsi Channel 3 Branch instruction counts Channel 4 Disabled e Cancel Apply Help Figure 6 15 Performance 1 Dialog Box Measurement range One of the following ranges can be specified This depends on the item selected for Mode in the Performance 1 dialog box 1 From the start to the end of the user program execution When Normal Break is selected for Mode 2 From the satisfaction of the condition set in Break Condition 1 to the satisfaction of the condition set in Break Condition 2 When Break condition 1 gt 2 is selected for Mode 3 From the satisfaction of the condition set in Break Condition 2 to the satisfaction of the condition set in Break Condition 1 When Break condition 2 gt 1 is selected for Mode 211 RENESAS In the second and third ranges P is added and displayed as Enable P on the Condition page in the Break dialog box For measurement errors e The measured value includes errors e Error
152. t affected Example FILE LOAD C HEW HDIS E10A 7660 TUTORIAL TUTORIAL WDEBUGWTUTORIAL ABS About Hitachi Debugging Interface User s Manual This version of HDI does not support section 10 Selecting Functions written in Hitachi Debugging Interface User s Manual 10 Initiating HDI 1 12 13 When the emulator is initiated by using another card emulator after it has been initiated by using the PCI card emulator delete the TARGET line from the C windows HDLINI file Usage with Another Version of HDI Automatic load of session files Since the emulator cannot use another version of HDI re install this HDI whenever another version has been previously installed If another version has been used initiate this HDI with Run as follows without using the session files lt Directory path name in which HDI is installed gt hdi n RET n initiates the HDI without loading the recently used session files If there is another session file in the different debug platform the following error message is displayed invalid target system lt recently used debug platform name gt Uninstallation of another version of HDI If another version of HDI is uninstalled after this HDI has been installed the stack trace function will not be used In this case reinstall this HDI Select Function Dialog Box This HDI does not support BREAKPOINT setting in the Select Function dialog box described in sectio
153. t is required to perform necessary settings on the Loading flash memory page in the Configuration window for downloading to the flash memory D 32 bit bus width Figure 3 68 Loading flash memory Page 90 RENESAS Table 3 7 shows the options for the Loading flash memory page Table 3 7 Loading flash memory Page Options Option Loading flash memory radio button Description Sets Enable for flash memory downloading At Enable when File load is selected from the File menu for downloading the write module is always called Enable Download to the flash memory Disable Not download to the flash memory Erasing flash memory radio button Sets Enable for erasing before the flash memory is written At Enable the erase module is called before calling the write module Enable Erase the flash memory Disable Not erase the flash memory File name edit box Sets the write erase module name The file that has been set is loaded to the RAM area before loading to the flash memory A maximum of 128 characters can be input for the file name Bus width of flash memory list box Sets the bus width of the flash memory Flash memory erasing time edit box Sets the TIMEOUT value at flash memory erasing Increase the value if erasing requires much time the default time is three minutes The radix for the input value is decimal It becomes hexadecimal by adding H Entry poi
154. t space gt lt asidopt gt asid lt asid gt Table 5 12 BREAKPOINT_ENABLE Command Parameters Parameter Type Description lt address gt Numerical value Breakpoint address lt space gt Keyword Address area Set either of the following keywords physical physical address virtual virtual address lt asid gt Numerical value ASID value of a breakpoint when virtual is set to the lt space gt parameter lt mode gt Keyword Enables or disables breakpoints Set either of the following keywords enable Enables breakpoints disable Disables breakpoints Examples To enable a software breakpoint at physical address H 1002 gt be H 1002 space physical enable RET To enable a software breakpoint at logical address H 1000000 whose ASID value is H 10 gt be H 1000000 space virtual asid H 10 enable RET Notes 1 The parameters for this command differ according to the product For the specifications of each product refer to the online help 2 The items displayed with this command differ according to the product For the display specifications of each product refer to the online help 163 RENESAS Related Items BC BD BP VC VD VE and VS commands Breakpoints window Break dialog box 164 RENESAS 5 2 12 DEVICE TYPE DE Description Displays the currently selected device Format de Table 5 13 DEVICE TYPE Command Parameter Parameter Type Description None Example To display the currentl
155. tails refer to section 6 5 4 Notes on Using the JTAG Clock TCK and AUD Clock AUDCK 4 Connect the H UDI signals from the H UDI port connector directly to the device 5 When developing user systems do not connect the TDI and TDO signals of the device to the boundary scan loop or separate them by using a switch figure 2 5 13 RENESAS Boundary scan loop User system TDI Test data input TDO Test data output TAP Test access port Figure 2 5 User System Example RENESAS 2 5 System Check When the HDI program is executed use the procedure below to check that the emulator is operating correctly 1 Check that the emulator card is inserted in the host computer s slot 2 Connect the user system interface cable to the connector of the card emulator 3 4 Connect the user system interface cable to the H UDI port connector Supply power to the host computer and select HDI for E10A SHxxxx Hitachi Debugging Interface from the Start menu Accessories ntemet Explorer x Favorites StartUp HS MS DOS Prompt e Documents 3 Windows Explorer Hitachi Debugging Interface Eh Settings E Log Off Administrator hy Shut Down Figure 2 6 Start Menu 15 RENESAS 5 Select the setting to be used r Figure 2 7 Select Session Dialog Box 2 NE SAS The E10A Driver Details dialog box is displayed With the Driver comb
156. te 3 14 1 Executing Step In Command The Step In steps into the called function and stops at the first statement of the called function e To step through the sort function select Step In from the Run menu or click the Step In button in the toolbar 0 Figure 3 24 Step In Button 46 RENESAS inti tutorial c OF xi Line Address BP Label OcO000b6 OcO000ba Oc0000c2 OcO0000c6 Oc0000ca Oc0000d8 Oc0000e0 Oc0000e4 OcO000e8 cOO000f0 Oc0000fc 0c000108 0c000120 0c00012a c00013e Source max D change a min a 9 max a 0 while 1 t void abort void abort long t int 1 j k gap gap 5 while gap gt 0 jf for k 0 k gap k f for i k gap i 10 for j i gap j gt if a 3 a 3 t alj alg scis EA Figure 3 25 Source Window Step In The highlighted line moves to the first statement of the sort function in the Source window RENESAS 47 3 14 2 Executing Step Out Command The Step Out steps out of the called function and stops at the next statement of the calling statement in the main function e To step out of the sort function select Step Out from the Run menu or click the Step Out button in the toolbar Note It takes time to execute this function le Figure 3 26 Step Out Button ie Edit View Run Memory Setup Window Help jo amem ew st
157. te This function differs according to the product For the specifications of each product refer to the section related to the trace functions in section 6 SHxxxx E10A Emulator Specifications or to the online help 136 3 N SAS Description Table 4 23 Trace mode Page Options Option AUD trace radio button Description Uses AUD trace functions By default this box is not checked Internal trace radio button Uses the internal trace functions By default this box is checked Realtime trace radio button When the next branch occurs while the trace information is being output the information is stopped and the next trace information is output The user program can be executed in realtime but some trace information will not be output By default this box is checked Non realtime trace radio button When the next branch occurs while the trace information is being output the CPU stops operations until the information is output The user program is not executed in realtime By default this box is not checked Trace continue radio button When the trace buffer becomes full this function always overwrites the oldest trace information to acquire the latest trace information Trace stop radio button When the trace buffer becomes full the trace information is not acquired AUD trace display range group box Related Command AUD MODE command Inputs the start or end pointer
158. tem sse 9 2 2 3 Installing under Windows 2000 Operating System sese 10 2 3 Connecting the Card Emulator to the Host Computer see 11 2 4 Connecting the Card Emulator to the User System essere 12 2 3 System Check eicere e eU ete idee Sr ed e eec aa tee dete 15 2 6 Endmgthe HDL onn mr or DR ep Pr 21 2 7 Uninstalling the HDL eret am e aves HERE Ute e ER mene eaten 22 2 8 CD i inier Ee Dt n er RERUM 23 2 8 1 Configuration of the CD R essere enne nennen nenne 23 2 0 SUDDpOtrt orte PREDA E OP RR 23 Section 3 Tutorial oet omit ny etui e ete trades rd i iboos und exce S He PvN tI Ue i A 25 3i Introduction ioa teo ert dea teret e ete Aves eite 25 3 2 Running the HDI nosse eU REPRE e EDU anne 27 3 3 HIDE W055i tee nana oe ee e dei Ae el 28 34 Setting p the Emulator etie sans sortara enses coh pshesssbavasdetise sv HG E 29 3 5 Setting the Configuration Dialog BOX eee eee 30 3 6 Checking the Operation of the Target Memory for Downloading 31 3 7 Downloading the Tutorial Program 00 eee ee eee cee cnee ence ceeeeeeeeeeeeeeeseeeeeesaecsaecnaeeneeeas 33 3 7 Downloading the Tutorial Program sese 33 3 7 2 Displaying the Source Program esee eren nennen 34 3 8 Setting a Software Breakpoint esesessssesseeseeeeeeeeeeee nennen een ren
159. ters office equipment communications equipment test and measurement equipment audio and visual equipment home electronic appliances machine tools personal electronic equipment and industrial robots High Quality Transportation equipment automobiles trains ships etc traffic control systems anti disaster systems anti crime systems safety equipment and medical equipment not specifically designed for life support Specific Aircraft aerospace equipment submersible repeaters nuclear reactor control systems medical equipment or systems for life support e g artificial life support devices or systems surgical implantations or healthcare intervention e g excision etc and any other applications or purposes that pose a direct threat to human life You should use the Renesas Electronics products described in this document within the range specified by Renesas Electronics especially with respect to the maximum rating operating supply voltage range movement power voltage range heat radiation characteristics installation and other product characteristics Renesas Electronics shall have no liability for malfunctions or damages arising out of the use of Renesas Electronics products beyond such specified ranges Although Renesas Electronics endeavors to improve the quality and reliability of its products semiconductor products have specific characteristics such as the occurrence of failure at a certain rate and malfuncti
160. that these are the main warnings not the complete list A WARNING Always switch OFF the host computer and user system before connecting or disconnecting any CABLES or PARTS Failure to do so will result in a FIRE HAZARD and will damage the user system and the emulator product or will result in PERSONAL INJURY The USER PROGRAM will be LOST CAUTION Place the host computer and user system so that no cable is bent or twisted A bent or twisted cable will impose stress on the user interface leading to connection or contact failure Make sure that the host computer and the user system are placed in a secure position so that they do not move during use nor impose stress on the user interface VI RENESAS Preface Thank you for purchasing the E10A emulator CAUTION READ section 2 Preparation before Use of this User s Manual before using the emulator product Incorrect operation will damage the user system and the emulator product This emulator is an efficient development tool for software and hardware of user systems based on Renesas original microprocessor The emulator operates using the Hitachi debugging interface hereafter referred to as the HDI which is the interface program that runs on Microsoft Windows 98 Microsoft Windows Me Microsoft Windows 2000 Microsoft Windows NT or Microsoft Windows XP operating system This manual describes the functions and operati
161. the clocks 29 2 ENESAS 3 5 Setting the Configuration Dialog Box e Select Configure Platform from the Setup menu to set a communication clock The Configuration dialog box is displayed General Loading flash memory Mode d Emulation mode Normal Y Step option Disables interrupts during single step execution v UBC mode EML m Memory area Nomal Physical Virtual 51D po AUD clock 1 8 CPU clock JTAG clock 41 25MHz Change Cancel Apply Help Driver Figure 3 3 Configuration Dialog Box e Set any value in the AUD clock and JTAG clock combo boxes The clock also operates with the default value Note The items that can be set in this window differ according to the product For the settings for each product refer to the online help e Click the OK button to set a configuration 30 RENESAS 3 6 Checking the Operation of the Target Memory for Downloading Check that the destination memory area for downloading is operating correctly When the destination memory is SDRAM or DRAM a register in the bus controller must be set before downloading Set the bus controller correctly in the I O Registers window according to the memory type For details refer to section 8 6 I O Register Display in the Hitachi Debugging Interface User s Manual When the required settings such as the settings for the bus controller have bee
162. the data conditions of Break Condition 1 Data condition is not displayed in the Break Condition 2 and Break Condition 3 dialog box pages ASID Sets the ASID conditions of Break Condition 1 and Break Condition 2 ASID condition is not displayed in the Break Condition 3 dialog box page Bus State Sets the bus state conditions and read write cycle conditions of Break Condition 1 and Break Condition 2 Bus state condition is not displayed in the Break Condition 3 dialog box page Count Sets the satisfaction count conditions of Break Condition 1 Count condition is not displayed in the Break Condition 2 and Break Condition 3 dialog box pages General Sets the conditions of Break Condition 3 Data condition is not displayed in the Break Condition 1 and Break Condition 2 dialog box pages Note This function differs according to the product For the specifications of each product refer to section 6 5 2 Break Condition Functions or to the online help 122 3 NE SAS 1 Address Page Break Condition Dialog Box Function This page sets the address bus conditions Window Break Condition 1 Figure 4 12 Address Page Break Condition 1 Dialog Box Note The items that can be set in this window differ according to the product For the settings for each product refer to the online help 123 RENESAS Description Table 4 14 Address Page Options O
163. the function also counts when the measured item is generated at break or re execution an error will be included in the measured profile value The measured value of this function should be the target 215 RENESAS 2 Functions that cannot be used while the profile function is being used 3 a Performance measurement function The profile function is implemented by using the performance measurement function described in section 6 5 9 Performance Measurement Function This function cannot be used when the profile function is enabled b Step function When the profile function is enabled do not use the step function The profile data cannot be measured correctly c Memory access during user program execution When the profile function is enabled memory access is disabled during user program execution d Internal trace function When the profile function is enabled mode selection of the internal trace is disabled since all items of the internal trace modes are selected in the emulator e Halt function When the profile function is enabled do not use the halt function for the internal or AUD trace Others a When the profile function is used the contents that have been set in the performance measurement function or data that has been measured will be deleted b Since the profile function is implemented with the internal break it takes a long time to start and end the user program execution The user program executio
164. the product For the display specifications of each product refer to the online help Related Items BCC BCE and BCS commands Breakpoints window Break and Break Condition dialog boxes 152 RENESAS 5 2 6 BREAKCONDITION_ENABLE BCE Description Enables or disables hardware breakpoints that have been set Format bce lt channel gt lt mode gt lt channel gt channel lt channel_number gt Table 5 7 BREAKCONDITION ENABLE Command Parameters Parameter Type Description lt channel_number gt Numerical value Hardware break channel number lt mode gt Keyword Enables or disables hardware break settings Set either of the following keywords enable Enables hardware break settings disable Disables hardware break settings Note When lt channel gt is omitted all hardware breakpoints that have been set are enabled or disabled Examples To enable all hardware breakpoints gt bce enable RET To disable the hardware breakpoints set at channel 1 gt bce channel 1 disable RET Related Items BCC BCD and BCS commands Breakpoints window Break and Break Condition dialog boxes 153 2 ENESAS 5 2 7 BREAKCONDITION_SET BCS Description Sets hardware breakpoints Note The function will differ according to the devices used For functions of each emulator product refer to section 6 5 2 Break Condition Functions Format bes lt channel gt lt channel gt lt option gt B lt add
165. the user system and press Enter Key Figure 2 9 Dialog Box of the RESET Signal Input Request Message 8 Power on the user system 9 Input the reset signal from the user system and click the OK button 10 When Link Up is displayed on the status bar the HDI initiation is completed kw OOOO O NM Z Figure 2 10 HDI Status Bar Notes 1 When the HDI is not linked up even if the above procedure has been executed the driver will not be set correctly Install drivers provided under the DRIVERS directory in the CD R according to the screen instructions For instructions on how to check the driver has been correctly set refer to the OS manual for your host computer or the following URL http www renesas com eng products mpumcu tool qa emulator e10a html 2 If the user system interface cable is disconnected to the H UDI port connector on the user system during user program execution the following dialog box will be displayed HDI x N JTAG Connector disconnected Please connect and press lt Enter gt key Figure 2 11 JTAG Connector Disconnected Dialog Box RENESAS 3 If the emulator is not initiated the following dialog boxes shown in figures 2 12 through 2 16 will be displayed a If the following dialog box is displayed the power of the user system may not be input or the RESET signal may not be input to the device Check the input circuits for the power of the user syst
166. trace Supported eight branches Supported Range memory access trace Not supported Supported Software trace Not supported Supported Table 6 7 shows the type numbers that the AUD function can be used Table 6 7 Type Number and AUD Function Type Number AUD Function HS7660KCM01H HS7660KCI01H Not supported HS7660KCMO2H HS7660KCI02H Supported 201 RENESAS AUD Trace Functions This function is operational when the AUD pin of the device is connected to the emulator Table 6 8 shows the AUD trace acquisition mode that can be set in each trace function Table 6 8 AUD Trace Acquisition Mode Type Continuous trace occurs Mode Realtime trace Description When the next branch occurs while the trace information is being output the trace information being output is output but the next trace information is not output The user program can be executed in realtime but some trace information may be lost Non realtime trace When the next branch occurs while the trace information is being output the CPU stops operations until the information is output The user program is not executed in realtime Trace buffer full 202 Trace continue This function overwrites the oldest trace information to store the latest trace information Trace stop After the trace buffer becomes full the trace information is no longer acquired The user program is continuously executed RENESAS To set the AUD trace acquisit
167. uisition the next address to the address in which an exception occurs is acquired 209 RENESAS 6 5 8 Notes on Setting the UBC MODE Command In the Configuration dialog box if User is set while the UBC mode list box has been set the STEP type commands that use Break Condition 2 for implementation cannot be used If these commands are used the message box shown in figure 6 14 is displayed N Command unusable in UBC release mode Figure 6 14 HDI Message Box 6 5 9 Performance Measurement Function The SH7660 E10A emulator supports the performance measurement function 1 Setting the performance measurement conditions To set the performance measurement conditions use the Performance 1 dialog box and the PERFORMANCE_SET command When the right mouse button is clicked on the Performance Analysis window the popup menu is displayed and the Performance 1 dialog box is displayed by selecting Setting Note For the command line syntax refer to the online help Specifying the measurement start end conditions The measurement start end conditions are specified in the Mode drop down list box in the Performance 1 dialog box Three conditions can be set as shown in table 6 10 210 RENESAS Table 6 10 Conditions Specified in Mode Item Description Normal break Measurement is started by executing a program and ended when a break condition is satisfied Break Condition 1 gt 2 Measurement is
168. ulator Specifications eeeeeeee 183 6 1 Components of the Emulator Geor eren lene Ime ipm tn 183 6 2 Pin Arrangement of the H UDI Port Connector sssseeseeeeee nene 186 6 3 User System Interface Circuit eese iste ee toads ed ep ie e eb dps 190 6 4 Differences between the SH7660 and the Emulator eene 196 6 5 Specific Functions for the SH7660 E10A Emulator eene 199 6 5 1 Emulator Driver Selection necesse eene enne en nennen en 199 6 5 2 Break Condition Functions esee enne enne nene nennen 200 6 5 5 Tr ce Bunctions eoe Eten mper em Here rtp enne 201 6 5 4 Notes on Using the JTAG Clock TCK and AUD Clock AUDCK 208 6 5 5 Notes on Setting the Breakpoint Dialog Box eee 208 6 5 6 Notes on Setting the Break Condition Dialog Box and the BREAKCONDITION SET Command eene 209 6 5 7 Notes on Setting the Trace Window sese 209 6 5 8 Notes on Setting the UBC MODE Command eene 210 6 5 9 Performance Measurement Function eseceesceceseceeececeseeeenceecaeeeeeeecsaeeeeaeecsas 210 6 5 10 Notes on Using the Profile Function 00 eee eese 215 6 5 11 Downloading to the Flash Memory esee 217 6 5 12 Notes on HDI ois reote ER ERE Ee UA T ESI ints 219 V 22 8 BREAKPOINT BD eerie teo vete ntcelisecon 158 13 NE SA
169. user interface cable HS7660KCI02H Soft SH7660 E10A 1 HS7660KCM01SR ware emulator setup CSD HS7660KCM01HJ program HS7660KCM01HE SH7660 E10A Emulator User s Manual and Hitachi Debugging Interface User s Manual HS6400DIIW5SJ and HS6400DIIW5SE provided on a CD R Note The EMI is an abbreviation of the Electrical Magnetic Interference 184 RENESAS For EMI countermeasure use the ferrite core by connecting the user interface cable When the user interface cable is connected with the emulator or user system connect the ferrite core in the user system as shown in figure 6 1 Host computer PC with PC card slot User system Hh IE E10A emulator LARGE HC AP LOCH AL ECOL AE AC n ZA E Tp ZI HET AL fF i R5 ig I f User system connector PC card slot Ferrite core User interface cable Figure 6 1 Connecting Ferrite Core 185 RENESAS 6 2 Pin Arrangement of the H UDI Port Connector Figure 6 2 shows the pin arrangement of the H UDI port connector 14 pins CAUTION Note that the pin number assignment of the H UDI differs from that of the connector manufacturer Input Pin 1 mark E i uel Pin No Signal Output SH7660 Pin No Note port connector 1 TCK Input K2 2 2 TRST Input J1 3 TDO Output J3 4 ASEBRKAK Output J2 EN 2T Y 5 TMS Input L1 a 6x254 1524 S TA TM E 42 54 72 RESETP O
170. ut addresses If the previous branch source address is the same as the upper 16 bits the lower 16 bits are output If it matches the upper 24 bits the lower 8 bits are output If it matches the upper 28 bits the lower 4 bits are output The emulator regenerates the 32 bit address from these differences and displays it in the Trace window If the emulator cannot display the 32 bit address it displays the difference from the previously displayed 32 bit address If the 32 bit address cannot be displayed the source line is not displayed In the SH7660 E10A emulator when multiple loops are performed to reduce the number of AUD trace displays only the IP counts up In the SH7660 E10A emulator the maximum number of trace display pointers is as follows When HS7660KCM072H is used D 8191 to 0 When HS7660KCI02H is used D 32767 to 0 However the maximum number of trace display pointers differs according to the AUD trace information to be output Therefore the above pointers cannot be always acquired The AUD trace acquisition is not available when User is selected in the UBC mode list box of the Configuration dialog box In this case close the Trace window 207 RENESAS Internal Trace Function This function is activated by selecting the Internal trace radio button in the Trace type group box of the Trace mode page This function traces and displays the branch instructions The branch source address and branch destination
171. utput D13 11 N C 8 pin 8t010 GND 1 pin and P 12 t013 A 14 3 GND Output s Unit mm Notes 1 Input to or output from the user system y 2 The slash means that the signal is active low Pin mark Tosen 3 The emulator monitors the GND signal of the user P system and detects whether or not the user system is connected Figure 6 2 Pin Arrangement of the H UDI Port Connector 14 Pins 186 RENESAS Notes 1 Handling of the TCK TMS TDI TRST ASEBRKAK and ASEMDO pins depends on the use conditions of the H UDI as follows a When the user system is used by connecting the emulator the ASEMD0 pin must be grounded The TCK TMS TDI TRST and ASEBRKAK pins must be pulled up by a resistance of several kilo ohms to protect the devices b When the emulator is used and the user system is independently used the ASEMD0 pin should be switched on the board as the method of handling this pin depends on whether the emulator is used or not The TCK TMS TDI and ASEBRKAK pins must be pulled up by a resistance of several kilo ohms to protect the devices The TRST pin must be pulled down by a resistance of several kilo ohms and controlled individually c When the user system is independently used without using the emulator and H UDI the ASEMDO pin must be pulled up by a resistance of several kilo ohms It is recommended to pull up the TCK TMS and TDI pins by a resistance of several kilo ohms For the TRST pin in
172. utton will display the Break dialog box enabling break conditions to be set Edit Changes break conditions Select break conditions to be changed and click this button The break condition setting dialog box will be displayed enabling the break condition to be changed Disable Enables or disables break conditions Select break conditions to be Enable enabled or disabled and click this button Delete Clears break conditions Select break conditions to be cleared and click this button Del All Clears all break conditions Go to Source Jumps to the address which sets the break in the Source window 110 3 N SAS 4 2 3 Break Dialog Box Function This dialog box displays the break condition settings Window Figure 4 7 Break Dialog Box 3 NE SAS 111 Description The Break dialog box consists of the pages listed in table 4 8 Table 4 8 Break Dialog Box Pages Page Name Description Point Displays software breakpoint settings Condition Displays Break Condition settings The dialog boxes which set or modify break conditions can be displayed from the pages above Clicking the OK button or Close button in some emulator products will close this dialog box 112 3 NE SAS 1 Point Page Break Dialog Box Function This page displays software breakpoint settings In this page software breakpoints can be set changed and
173. will occur before or after a break Notes 212 E When the second and third ranges are specified execute the user program after the measurement start condition is set to Break Condition 1 or Break Condition 2 and the measurement end condition to Break Condition 2 or Break Condition 1 Step execution is not possible when Break condition 1 22 or Break condition 2 gt 1 is selected for the PERFORMANCE SET command or in Mode of the Performance 1 dialog box When Break condition 1 22 or Break condition 2 gt 1 is selected in Mode of the Performance 1 dialog box specify one or more items for measurement When there is no item the error message Measurement item does not have specification Please set up a measurement item will be displayed When no item is specified for the PERFORMANCE SET command the settings of Break condition 1 22 or Break condition 2 gt 1 will be an error RENESAS Measurement item Items are measured with Channel to 4 in the Performance 1 dialog box Maximum four conditions can be specified at the same time Table 6 11 shows the measurement items Option names in table 6 11 are parameters for lt mode gt of the PERFORMANCE SET command They are displayed for CONDITION in the Performance Analysis window Table 6 11 Measurement Item Selected Name Option Name Disabled None Elapsed time AC Number of execution
174. y Name Contents Description Dils Microsoft runtime library A runtime library for the HDI The version is checked at installation and this library is copied to the hard disk as part of the installation process Drivers E10A emulator driver The E10A emulator drivers Help Online help for the E10A An online help file This is copied to the hard emulator disk as part of the installation process Manual E10A emulator manual Precautions on Using the E10A Emulator and the user s manual These are provided as PDF files Adobe Acrobat Reader setup program Pdf_read 2 9 Support Adobe Acrobat Reader is an application for displaying viewing and printing PDF files Information on the latest version of the HDI and other supporting information for the emulator can be found on the web site Access the following URL http www renesas com eng products mpumcu tool emulator e 1 Oa index html 23 RENESAS 24 RENESAS Section 3 Tutorial 3 1 Introduction The following describes the main functions of the HDI by using a tutorial program The tutorial program is based on the C program that sorts ten random data items in ascending or descending order The tutorial program performs the following actions e The main function generates random data to be sorted e The sort function sorts the generated random data in ascending order e The change function then sorts the data in descending order The file tutorial c contain
175. y selected device gt de RET Current device SHxxxx RENESAS 165 5 2 13 GO OPTION GP Description Displays or sets the emulation mode Format Displays emulation mode gp Sets emulation mode gp eml opt eml opt eml mode eml mode Table 5 14 GO OPTION Command Parameter Parameter Type Description eml mode Keyword Specifies the emulation mode normal Normal execution sequence Stops the user program only when the conditions are satisfied in the order of hardware breakpoints 2 to 1 Hardware breakpoints 1 and 2 must be set no break Makes software breakpoints and hardware breakpoints temporarily invalid and executes the user program Notes 1 The sequential break function differs according to emulator products For details refer to online help 2 The parameters for this command differ according to the product For the specifications of each product refer to the online help 166 RENESAS Examples To display the currently set emulation mode for user program execution gt gp RET Emulator execution mode Sequential break Condition 2 1 To set the normal emulation mode for user program execution gt gp eml_mode normal RET Note The items displayed with this command differ according to the product For the display specifications of each product refer to the online help Related Items BCS and BS commands Breakpoints window Break Break Condition and Configurati
176. ystem Configuration with the Emulator PCI Card Emulator Used The emulator provides the following features Excellent cost performance card emulator Compactness and low price are implemented using the PCMCIA interface or the PCI interface Realtime emulation Realtime emulation of the user system is enabled at the maximum operating frequency of the CPU Excellent operability Using the Hitachi Debugging Interface HDI on the Microsoft Windows 98 Microsoft Windows Me Microsoft Windows 2000 and Microsoft Windows NT operating systems enables user program debugging using a pointing device such as a mouse The HDI enables high speed downloading of load module files Various debugging functions Various break and trace functions enable efficient debugging Breakpoints and break conditions can be set by the specific window trace information can be displayed on a window and command line functions can be used Memory access during emulation During emulation the memory contents can be read and modified Debugging of the user system in the final development stage The user system can be debugged under conditions similar to the actual application conditions Compact debugging environment When the card emulator specific to the PCMCIA interface is used a laptop computer can be used as a host computer creating a debugging environment in any place RENESAS e AUD trace function The AUD trace function enables realtim

Download Pdf Manuals

image

Related Search

Related Contents

Sharp VL-Z1U Camcorder User Manual  施工説明書  PD8-6310 ProtEX-MAX Instruction Manual  EverFocus EBH5241 Black  Manual de instalación para Kits V1 y V2 B/N Convencional y V1  BCT-081-Manual-de-In..    Valhall Operators Manual  Alpine TDM-7582 Car Stereo System User Manual    

Copyright © All rights reserved.
Failed to retrieve file