Home
SH7750R E10A Emulator User`s Manual
Contents
1. sersrnvnvnvvnrvvrrvvrrvrversversverere 215 659 INGLES mn HOE ass 217 Section 7 Specific Commands of the SH7750R E10A Emulator 00 225 7 1 Performance Measurement Function ernornrnrenrvnnnrnvenvnnenrnvennnnnnrnserrnennrnsennnnnnrnsensnssnrnsensee 225 7 1 1 PERFORMANCE ANALYSIS Command Abbreviation PA 0 0 eee 225 7 12 PERFORMANCE CLEAR Command Abbreviation PC 228 7 13 PERFORMANCE SET Command Abbreviation PS rrrrrrnnvnrrrrrrvrrrnnrvrrrrnnnn 229 7 2 Interrupt Enable Disable Function During User Program Break rsrornrnrnrnrnnnvnvnnnvnvvvnne 234 7 2 1 INTERRUPT Command Abbreviation IR rorrnnrovnronnrrrrronnrnrrrornverrnnvsrsrrnnnnrnn 234 7 3 CPU Status Acquisition Function sorenvrnnvronorevrverrveravvrnvvrnrnrernenrvnenvennvesneervereravvrarvreenreener 236 v 5 28 BREAKPOINT BP sl isisesstdetieitsserietebrintreerimnesiekrssetndeneakndasvenskerekkbekrdene 158 vi 7 3 1 CPUSTATUS Command Abbreviation CS RENESAS 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 Fig
2. 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 95 Windows 98 Windows 2000 or Windows NT Minimum memory 32 Mbytes or more double of the load module size recommended capacity 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 95 Windows 98 Windows 2000 and Windows NT Power voltage 5 0 0 25 V Current consumption HSxxxxKCM01H 110 mA max HSxxxxKCM02H 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 Hitachi sales agency RENESAS Section 2 Preparation before Use 2 1 Emulator Preparation WARNING READ the reference sections shad
3. Profile Tree Function Address Size Stack Size Application __INITScT H 0C000000 H 00000060 H 00000008 abort H 0C0000D8 H 00000004 H 00000000 H 0C000060 H 00000060 H 00000038 H 0CO001FC H 00000020 H 00000000 H 0C00019 H 00000062 H 00000030 H 0C0000DC H 000000BE H 00000018 Figure 3 66 Profile Tree Window Sf Profile Chart main main change Figure 3 67 Profile Chart Window 88 RENESAS 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 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 mu
4. ssrorenrrnnnrnnenvnnrnrnvernnnnnrnsenrnnenrnsennnnsnrnsennnnenrsssnnnnsnrnsennen 75 3 19 2 AUD Trace Pun ction sisse soreer eeir nnion eoar Er ES SENESE EEEE A EEES EE Rean 77 3 19 3 VP MAP Translation css csacsveceonssveved00sveee0covvss008 vorevevovevevadhvoedodesveess eso vensvaseverdvens 79 320 Stack Trace Function nuusmausn ss ce tence ssaec aaeoa naa eE Erea aet desdacues E E REA EEEE 82 3 21 Profiling FUNC On sissserocenenod ea e E E A SREE E 84 3 22 Download Function to the Flash Memory Area srerernrvrarvrnvvrnrvrnvvnnvnvnnvervvrrnvrrvrvesversverere 89 3 23 What Nett usissssiekisens skanse senn aie eee ee ane 95 Section 4 Descriptions of WINdOWS cesscccessceceeseeceeeeeceeneecesececseeecsteeeesaeees 97 Al AID Wand Ow enee eer EE na Ee EE Sr RTE EE E AEE EAEN EAE S SENER EErEE Ea 97 4 2 Descriptions of Each Window sernnrrnrervrnrvrnvvrnvnrnrnrnvnnevnvenvrnversverevsnevsveraverarernrvrnsvensvesseee 100 4 2 1 Configuration Dialog Box snrrnnorvrrnvrnrvrnvvrnrnvnvnvnvnvenvvsversvrrsverevrrersrerarvrnrrenneee 100 4 2 2 Breakpoints Window srerononnonrnnenvvnrernnennnnenrreennnneerrsennenerravennenerasennnneravennenennn 108 423 Break Dilog BOX sccscccesscescedseceuessecuanvens ensen S EEE EErEE RESETE EE teas 111 4 2 4 Break Point Dialog Box rrnroronovnrnrnvenvvnnnrnnenrnnrnrnsenvnnsnrnsensnssnrnsennnsnnrnsensnssnrnsenr 117 4 2 5 Break Condition Dialog Box rernrnrvrrnnnnrnrerrnnnnrnrerrnennnn
5. 0c000094 00000076 0c00007e 00000082 0c000086 rce long a 10 long j int i min for i 0 i lt 10 j rand if j lt 0 J 2 J max Valu lue 0x0c000bd8 long 10 H 00000200 H 00000 16 H 00002c8c H 00002 82 H 000036c9 H 000047b3 H 00005ed3 H 00006422 H 00006fbf Ox0c000bd8 Dx0c000bde Ox0c000be0 Ox0c000be4 Ox0c000be8 Dx0c000bf 0 Dx0c000bf 4 Dx0c000bf 8 Ox0c000bfc r Ox0c000bec f p ne MD OD UT GIN O dd bd td ts f H 00004e5a R 0c0000a2 9 H 00006fbf Ox0c000bc8 Oc0000aa Oc0000ae z HK 0c0000b6 0c0000ba 0c0000c2 Oc0000c6 Oc0000ca max 0 change a min a 9 max a 0 while 1 void abort void 0c0000d8 abort OcO0000dc sort void sort long a v L gler Break STOP ADDRESS Figure 3 28 HDI Window Step In gt 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 Al Hitachi Debugaing interface tutorial SH Xox E10A Emulator BEE File Edt View Run Memory Setup Window Help jo sv m oo e FAM ePPOS FEsS ES AIHROLRERN b oe
6. Note Some products are not supported by this function For the specifications of each product refer to the online help 132 RENESAS 4 2 7 Function This window displays the trace buffer contents Window Trace Window 000014 000013 D O 000012 000011 D 0 000010 000009 D O 000008 000007 D O 000006 000005 D O 000004 000003 D 0 000002 000001 D O 000000 BRANCH 00000188 DESTIN 00000162 BRANCH 00000188 DESTIN 00000162 BRANCH 00000188 DESTIN 00000162 BRANCH 00000188 DESTIN 00000162 BRANCH 00000188 DESTIN 00000162 BRANCH 00000188 DESTIN 00000162 BRANCH 00000188 DESTIN 00000162 BRANCH 00000180 DESTIN 00000058 ADDR DATA BF MOV L BF MOV L BF MOV L BF MOV L BF MOV L BF MOV L BF MOV L RTS MOV L OPERAND Source H 0162 8 R15 R1L a i H 0162 8 R15 R1 a i H 0162 8 R15 R1 ali H 0162 8 R15 R1 a i H 0162 8 R15 R ali H 0162 8 R15 R1 a i H 0162 8 R15 R ali H 34 4 min a 9 tmp 9 tmp 9 timp 9 tmp 9 timp 9 tmp 9 tmp 9 il il il il il il i Note Figure 4 18 Trace Window RENESAS 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
7. Steps the specified times repeatedly at a specified rate 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 ry Figure 3 24 Step In Button 46 RENESAS MN tutorial c Iof x Line Address BP Label Source a 4 OcO000b6 max l 48 Oc0000ba change a 49 Oc0000c2 min a 9 50 0c0000c6 max a 0 51 Oc0000ca while 1 52 53 54 void abort void 55 56 57 0c0000d48 abort 58 60 I 61 long t 62 int i j k gap 63 64 OcO000e0 gap 5 65 Oc0000e4 while gap gt 0 jf 66 Oc0000e8 for k 0 k lt gap k 1 67 0c0000 0 fori 1i k gap 1 lt 10 68 Oc0000fc for j i gap j gt 69 0c000108 if a j gt a 3 70 0c000120 t alj 71 0c00012a a j 72 Oc00013e a i qap X 4 b WY 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
8. direction lt r w gt access lt access gt count lt count gt Idtlb lt Ibtlb gt 10 lt 10 gt RENESAS Table 5 8 BREAKCONDITION SET Command Parameters Parameter lt channel number gt 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 ldtlbopt 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 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 acc
9. It is highly recommended that first time users be instructed by users that are well versed in the operation of the emulator product RENESAS LIMITED WARRANTY Hitachi warrants its emulator products to be manufactured in accordance with published specifications and free from defects in material and or workmanship Hitachi at its option will replace any emulator products returned intact to the factory transportation charges prepaid which Hitachi upon inspection shall determine to be defective in material and or workmanship The foregoing shall constitute the sole remedy for any breach of Hitachi s warranty See the Hitachi warranty booklet for details on the warranty period This warranty extends only to you the original Purchaser It is not transferable to anyone who subsequently purchases the emulator product from you Hitachi is not liable for any claim made by a third party or made by you for a third party DISCLAIMER HITACHI MAKES NO WARRANTIES EITHER EXPRESS OR IMPLIED ORAL OR WRITTEN EXCEPT AS PROVIDED HEREIN INCLUDING WITHOUT LIMITATION THEREOF WARRANTIES AS TO MARKETABILITY MERCHANTABILITY FITNESS FOR ANY PARTICULAR PURPOSE OR USE OR AGAINST INFRINGEMENT OF ANY PATENT IN NO EVENT SHALL HITACHI BE LIABLE FOR ANY DIRECT INCIDENTAL OR CONSEQUENTIAL DAMAGES OF ANY NATURE OR LOSSES OR EXPENSES RESULTING FROM ANY DEFECTIVE EMULATOR PRODUCT THE USE OF ANY EMULATOR PRODUCT OR ITS DOCUMENTATION EVEN IF ADVISED OF TH
10. iP Figure 3 26 Step Out Button Al Hitachi Debugama interface tutorial SHwox E10A Emulator e File Edit View Run Memory Setup Window Help sesam s Paee FANL APO HS a Gr i 2 BA tt q Er BEE Line Address BP Label Source a Value f 32 long a 10 Ox0c000bd8 long 10 4a I H 00000200 Ox0c000bde H 00000 16 OxOcOOObdc A H 00002c8c Ox0cO000be0 Oc000094 for i 0 i lt 10 i H 00002 82 Ox0cO00be4 Es 0c000076 j rand H 000036c9 Ox0cO00be8 0c00007e if j lt OY H 000047b3 OxOcOOObec 0c000082 j 3 H 00004e5a 0x0c000bf0 A H 00005ed3 Ox0c000bf4 0c000086 i H 00006422 Ox0cO000bf8 H H 00006fbf 0x0c000bfc ve 0c0000a2 H ffffffff 0x0c000bc8 Oc0000ae ala wi 0c0000b2 i OcO000b6 Oc0000ba change a Oc0000c2 min a 9 Oc0000c6 max a 0 Oc0000ca while 1 E void abort void 0c0000d8 abort O0c0000dc sort void sort long a X HZ gt For Help press F1 Pea ae Re PR 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 PR Hitachi Debe File Edt View Hun Memoy Setup Window Help MEET TN TET ENE EEE S esac OAM HWE kn 2 MA tH interface tutorial SHvax E104 Emulator 1 o gt Pee
11. 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 EG Address Data ASID Bus State Count M Bus State All C Data C DMA r Read Write C ReadAwrite Cancel Kopp Help 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 RENESAS Description Table 4 18 Bus State Page Options Group Box Option Description Bus State group AIl radio button Sets the bus state conditions as break conditions box 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 Sets the read write cycle conditions as break conditions box button Read radio button Sets read cycles as break conditions Write radio button Sets write cycles as break conditions Note This page is displayed when the conditions of Break Condition 1 and Break Condition 2 are set 129 RENESAS 5 Count Page Break Condition Dialog Box Function This page sets the conditions for Break Condition 1 Window Break Condition 1 EG Address Data ASID Bus State Count Count numbers D 1 Cancel Bo
12. 7 minute Entry point All erasing module address E 0 Writing module address HO Figure 4 5 Loading flash memory Page Configuration Dialog Box 106 RENESAS 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 Entry point group box Sets the calling destination address of the write erase module All erasing mod
13. 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 mask 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 RENESAS 3 ASID Page Break Condition Dialog Box Function This page sets the ASID conditions Window Break Condition 1 x Address Data ASID Bus State Count Cancel re Help 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
14. Internal I O access count IOA The number of times the internal I O is accessed Cache miss count DCR The number of times operand cache misses occur at data reading DCW The number of times operand cache misses occur at data writing DCRW The number of times operand cache misses occur at data reading or writing EC The number of times instruction cache misses TLB miss count DT The number of times UTLB misses occur at data access ET The number of times UTLB and ITLB misses occur at instruction access Instruction fetch count EF The number of times instructions are fetched from the cacheable area when the cache is enabled EA The number of times all instructions are fetched Branch count B The number of times branch instructions are issued instructions to be counted BF other than displacement 0 BF S BT other than displacement 0 BT S BRA BRAF JMP BT The number of times branches are taken branches to be counted are the same as mode B BBJ The number of times BSR BSRF and JSR instructions are 230 issued RENESAS Table 7 4 Measurement Conditions cont Measurement Condition Mode Description Instruction execution E The number of times instructions are issued count E2 The number of times two instructions are issued at the same time EFP The number of times FPU instructions are issued ETR The number of times the TRAPA instruction is executed Interrupt count INT The number of inter
15. bits 5 and 6 become invalid STATUS B 00 Displays the STATUS pin state Condition match A 0 Displays whether the channel A condition of the UBC has flag been satisfied When the UBC is used as a Break Condition it displays whether Break Condition 7 has been satisfied 0 Not satisfied 1 Satisfied 211 RENESAS Table 6 11 Display Status cont Item Example Description Condition match B 0 Displays whether the channel B condition of the UBC has flag cont been satisfied When the UBC is used as a Break Condition it displays whether Break Condition 6 has been satisfied 0 Not satisfied 1 Satisfied BC1 0 Displays whether Break Condition 1 has been satisfied 0 Not satisfied 1 Satisfied BC2 0 Displays whether Break Condition 2 has been satisfied 0 Not satisfied 1 Satisfied BC3 0 Displays whether Break Condition 3 has been satisfied 0 Not satisfied 1 Satisfied BC4 0 Displays whether Break Condition 4 has been satisfied 0 Not satisfied 1 Satisfied Condition match A 0 When the sequential break condition of the UBC is flag for sequential selected this bit is 1 when the channel A condition has break been satisfied and the channel B condition has not been satisfied When the UBC is used as a Break Condition channel A and channel B correspond to Break Condition 7 and Break Condition 6 respectively This bit is 1 when Break Condition 7 has been satisfied and Break Condition 6 has n
16. eee eerste 19 INVALID ASERAM FIRMWARE Dialog Box ervrorvrrvvrrvvrrvrvrrrverrverevvrevvrerneer 20 Error JTAG boot Dialog Box errrrennvnerrnnennnnerrrvennnnerrrnennnnerrrvennenerranennnnesrssennenennn 20 Unable to restore the previous driver settings Dialog BOX rrrnvrrnvrrvrrrvrvvrnvvreer 20 Exit HDI Dialog BOX veneeni a a aaa e E E E E i 21 Save session Dialog BOX rererrrrnnrnvenrvnnnrnvenrnnnnrnsennnnsnrnsenrnssnrnsennenenrssennnssnrsssnsnner 21 Start MEDU serepin ae a i AR EE RAEE AE ER 27 HDU WNdJOW ierti oE A E AE OT 28 Configuration Dialog Box ssiri ernis sisii 30 Open Memory Window Dialog Box rerarvrnrvrornvnrnvnvvvnnvnnnvrrvvrsvrrevrversveravvrervsnsneer 31 Memory Wind Wenneer iaiia aani nA A E e i 31 Load Program Dialog Box ervrornvnvvrevnnnvnvnnvnnnerrvvernrrevaversveravernevrnenenvensvessverveesne 33 HDI Dialog BOK icpin nena katarene R ea eiS 33 Open Dialog BOX repornirea eat rae A E E EEEE ERE RAE 34 Source Window Displaying the Source Program srervvnnvvrvvrrvrarvrnvvnnnvnrnvervvreen 35 Source Window Setting a Software Breakpoint esonvnnrnrnrennnnonrnrennnnenrnvennener 36 Registers WiIndOW scisscesiccesstaceccsiei seein hid eens o e EAE eae nade 37 Register Dialog Box PC rerenrnnnnrnrenrvnnnrnrenrnnnnrnsennnnsnrnsennnssnrnssnnensnrnsennessnrsssnnener 38 Go BUTON eeii neaei E E E R SE 39 Source Window Break Status cccccccscssceceessececeeeece
17. 0c00006c 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 inti tutorial c OF x Line Address BP Label Source te 0c000086 afi j 0c0000a2 sort a Oc0000aa min a 0 Oc0000ae max a 9 OcO000b2 min OQ OcO000b6 max 0 Oc0000ba change a OcO000c6 max a 0 Oc0000ca while 13 void abort void 0c000048 abort v 4 b a Figure 3 40 Source Window at Execution Stop Software Break 58 RENESAS The System Status window displays the following contents System Status Item Status er to SHxxx E104 Emulator E104 PCI Card Driverd XXXX Run status Break Cause of last break BREAK POINT Run time count Oh Omin 0s 16ms Emulation mode Norma I Big endian AUD Exist 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 RENESAS 59 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 1 as hardware break conditions e Select Breakpoint Window from the View menu The Breakpoints window is displayed e Click the Breakpo
18. 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 Of OP Address Size 2 __INITSCT H 0C000000 H OON0006C H OCOQOLFC H 0000002C H 0C000194 H 00000062 H OCOQQ0DT H 000000BE H 0C0000D8 H 00000004 H 0C00006C H 00000060 Figure 3 61 Profile List Window 84 RENESAS The profile function is now enabled Place the mouse cursor on an entry in the Profile List window click the right hand mouse button then select Enable Profiler from the pop up menu Profile List of Oo x Function Variable Address __INITScT rand change sort abort main H 0CO0000DC H 0CO000DE H 0C00006C 7 size mrANNNANAN AAN View Source View Profile Tree View Profile Chart v Enable Profiler Eind Clear Data Output Profile Information File Output Text File Select Data Setting Figure 3 62 Selection of Enable Profiler RENESAS 85 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 All operand access count a Data 2 Elapsed time cycle Cancel Figure 3 63 Select Data Dialog Box e Usethe Select Data dialog box to select t
19. 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 Hitachi 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 gt jck 15 RET JTAG Clock 15MHz To display the JTAG clock TCK frequency gt jck RET JTAG Clock 15MHz 168 RENESAS when PCI used To set the JTAG clock TCK frequency gt 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 Command 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 lt memory area gt parameter Notes 1 When virtual is set and lt asid gt is omitted in lt memory area gt a virtual address correspondin
20. 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 lt r wopt gt item write cycle gt bes channel 1 address H 1000000 data mask B Q byte direction write RET To set the following conditions for channel 2 hardware breakpoint lt addropt gt item Sets an address bus value of H 1000000 during the program fetch cycles and breaks before execution lt asidopt gt item The ASID value is H 0 gt bes channel 2 address H 1000000 pc asid H 0 RET To set the following conditions for channel hardware breakpoint lt addropt gt 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 lt asidopt gt item H 10 to the ASID value gt bes channel 1 address H 1000000 pcafter ml asid H 10 RET To set the following conditions for channel 2 hardware breakpoint lt accessopt gt item Execution cycles lt r wopt gt item Read cycles gt bes channel 2 access dat direction read RET To set the following conditions for channel 3 hardware breakpoint lt Idtlbopt gt item Breaks during LDTLB instruction execution lt ioopt gt item Breaks when the internal I O area is accessed gt bes channel 3 ldtlb break io RET Related Items BCC BCD BCE and TM commands Breakpoints w
21. 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 range H 4000 to H 4FFF to be translated into the physical address range H 400000 to H 400FFF gt 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 SH7750R E10A Emulator Specifications 6 1 Components of the Emulator The SH7750R E10A emulator supports the SH7750R Table 6 1
22. 9 46 OcO000b2 min Q 4 OcO000b6 max Q Oc0000ba change a Oc0000c2 min 91 Oc0000ca while 1 void abort void Oc0000d8 abort v Figure 3 52 Source Window at Execution Stop Sequential Break 71 RENESAS The System Status window displays the following contents System Status Item Status Connected to SHxox E104 Emulator E104 PCI Card Driverd CPU 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 Big endian AUD Exist 4 h Session Platform Memory Events S O 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 RENESAS 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
23. Acquire continuous trace radio button in the Trace Acquisition dialog box If continuous trace is selected realtime trace cannot be performed When the continuous trace is not used trace acquisition of the eight latest branch instructions is enabled 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 If a completion type exception occurs during exception branch acquisition the next address to the address in which an exception occurs is acquired When a user interrupt is enabled by the INTERRUPT command during the emulator command wait state or user program execution an interrupt that is generated at the program execution start or end including a step execution can be traced in realtime When the Acquire continuous trace check box is selected do not perform memory access during emulation When internal I O trace or LDTLB instruction trace is performed select the Acquire continuous trace check box When the Acquire continuous trace check box is selected 32 trace information data can be acquired In this case however since the user program stops at constant intervals the processing speed is decreased compared with the case where the Acquire continuous trace check box is not selected Trace information cannot be acquired for the foll
24. 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 m Channel E10A PC Card Interface v Configuration Connigure 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 105 RENESAS 3 Loading flash memory Page Configuration Dialog Box Function Downloading to the flash memory is set on the Loading flash memory page Window Configuration Loading flash memory Disable fe Enable Erasing flash memory Disable C Enable File name 0 Browse Bus width of flash memory 99 bit bus width v Flash memory erasing time p
25. Norma I Big endian AUD Exist 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 displayed refer to the online help RENESAS 67 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 EG General Loading flash memory Mode SHxxxx v Emulation mode Sequential break condition 2 1 Step option Disables interrupts during single step execution v UBC mode Break condition 6 7 v Memory area Normal Physical Virtual 45 0 po AUD clock five CPU clock JTAG clock 4 125MHz v Driver Cha
26. O space access e At instruction or operand access without cache 207 RENESAS Table 6 10 Performance Count Conditions cont Event Count Condition Target Mode Pipeline freeze cycle due Counts only one cycle at branch instruction PFB to branch instruction or execution except when the delay slot instruction is exception executed with one cycle delay One instruction is executed in one cycle which is similar to the branch count When the instruction in the branch destination does not exist in the instruction cache the delay after the second cycle is counted by the ECF In the PFB all branch instructions can be counted Counting method One of the following methods can be specified by each of measurement channels I and 2 1 Counted by the CPU operating clock 2 Counted by the ratio of the CPU operating clock to the bus clock When the above method 1 is specified one CPU operating clock cycle is counted as one When method 2 is specified the count is incremented by 3 4 6 8 12 or 24 according to the clock frequency ratio ratio of the CPU clock to the bus clock In this case the execution time can be calculated by the following expression T CxB 24 T Execution time B Time of one bus clock cycle C Count When the ratio of the CPU clock to the bus clock is changed in the user program it is recommended to select method 2 above to count the number of cycles The following shows examples to measure the performance of
27. Pr file Tree Window nasinmmsiirissoininesmrr E 88 Profile Chart Window cccccccccsssscecsesececssececeeaececseceececueeecsesueeecensaeeesseeeeeneaes 88 Loading flash memory Page rerrrnrrrnrnrnvnvnvnvnnvvnnvrrnvrrvrrevrveraverarvrnvvrnrneervessvesnvener 90 Flash Memory Witing ec ciecsseencsyastasesensvnesbasesesdetscoesstaceboabeupedenstensssndeaeesgnseasobnbenned 92 Loading flash memory Page eee cece cess ceeecesecaecaecaecseecaeeeaeeeaeeeeeeeees 93 Configuration Dialog Box ernrorrrnrnrnvnvnvnvevnvnnevnnvvrvrrrvenevaneraverarerarvrnrveesvensvessveene 100 General Page Configuration Dialog Box enrrrrnrrrenvvnrrrrnennnnerrrrennnnesrrvennnnennr 102 Warning Message BOX wisecsesce costcccsshschestcsbesvepedacscoeensesctesdsdbneecbsnsnaosdoubeansdesensesoabucnes 104 E10A Driver Details Dialog BOx rrreronrrnnnrnrenrnennvnrerrvnnnrnrerrnennrnserrvsnnnneersesnneneenne 105 Loading flash memory Page Configuration Dialog Box srrnrrrrrornvvnrrrnvrenrenr 106 Breakpoints Window eeoreronnvnrenrvennrnrerrnennnnsenrnennnnsernnsnnrnsersnnnnrnsersnssnrnsensnssnrnsenseee 108 Break Dial g Box unna sincere kanel acest hare eed ae 111 Point Page Break Dialog Box rreronnnnrnrnvenvvnenrnrennnnsnrnvennensnrnsenrnssnrnsensvssnrnsensee 113 Condition Page Break Dialog Box ronvnnrnrnnennvnerrrrennnnerrrvennnnerrrnennnnerrrvennenennne 115 Break Point Dialog Box rerenononnrnvenrnn
28. 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 RENESAS Table 4 1 HDI Window Menus and Related Manual Entries cont Menu Bar Memory Menu Pull Down Menu Refresh Hitachi Debugging Interface User s Manual This Manual Load Save Verify Test Fill Copy Compare Setup Menu Status bar Options Radix Customise Configure Platform Window Menu Cascade Tile Arrange Icons Close All Help Menu Index Using Help Search for Help on About HDI O O O O O O O O 0 O O OO 010 010 0 0 CF OD RENESAS 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 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 be Emulation mode Normal et Step option Disables interrupts during single step execution v UBC mode EML h Memory area Normal Physical Virtual 510 JDO AUD clock five CPU clock v JTAG clock 4 1 25MHz v Driver Change Figure 4 1 Configuration Dialog Box Note The items
29. 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 currently 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 lt eml_opt gt lt eml_opt gt eml_mode lt eml_mode gt Table 5 14 GO OPTION Command Parameter Parameter Type Description lt eml_mode gt Keyword Specifies the emulation mode normal Normal execution sequence1 Stops the user program only when the
30. The change function then sorts the data in descending order The file tutorial c contains 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 hws 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 RENESAS 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 Hitachi Embedded Workshop hereafter referred to as HEW V1 2 Older versions of HEW will not open the workspace included with the package so create a new workspace in such situations 3 This program was compiled without optimization 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 recreate
31. Yes button HDI EI Please confirm Exit HDI Figure 2 18 Exit HDI Dialog Box 2 Then the Save session dialog box is displayed If necessary click the Yes button to save session After saving session the HDI ends If not necessary click the No button to end the HDI 2 Save session Figure 2 19 Save session Dialog Box 3 Turn the user system off 21 RENESAS 2 7 Uninstalling the HDI Follow this procedure to remove the installed HDI from the user s host computer 1 Open Add Remove Programs Properties from the control panel Select the HDI program from the list and click the Add Remove 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 program
32. after the program execution is completed The display specifications in the Trace window are the same as the internal trace function RENESAS The following is an example of the display in the SH7751 E10A emulator IP ADDR DATA D 000034 OCO00BC4 0C000BD8 D 000033 0C000B 98 00000006 D 000032 OCOOOBA8 00003BE6 D 000031 OCOOOBFO 00003BE6 D 000030 QC000B 98 00000006 D 000029 0OC000B 98 00000007 D 000028 QC000B 98 00000007 D 000027 BRANC 0C000210 EE GH COOOLEC 8 DESTINATION OCOOO1EC FELE R15 R1 D 000026 MEMORY OcO00B98 00000007 D 000025 MEMORY OCO00BC4 OC000BDE D 000024 MEMORY OCcOO0B98 00000007 D 000023 MEMORY OCOOOBA4 00002A14 D 000022 MEMORY OCOOOBF4 00002A14 D 000021 MEMORY OcO00B 98 00000007 D 000020 MEMORY QC000B 98 00000008 D 000019 MEMORY 0OC000B 98 00000008 D 000018 BRANCH 0C000210 EEREFEEY H COOOLEC 8 DESTINATION OCOOO1EC belies GR15 R1 D 000017 MEMORY OC000B98 00000008 D 000016 MEMORY ocoooBc4 0C0008D8 D 000015 MEMORY 0C000B98 00000008 D 000014 MEMORY OCOOOBAO 000006CC D 000013 MEMORY OCOOOBF8 Q000006CC D 000012 MEMORY 0C000B 98 00000008 D 000011 MEMORY OcO00B 98 00000009 D 000010 MEMORY 0C000B 98 00000009 D 000009 BRANCH 0C000210 ArPRKER GH COOOLEC 8 DESTINATION OCOOO1EC eee G R15 R1 D 000008 MEMORY OcO00B 98 00000009 D 000007 MEMORY OCO00BC4 OCO00BDE D 000006 MEMORY 0C000B 98 00000009 D 000005 MEMORY OCO00B9C 00000063 D 000004 MEMORY OCOO
33. and AUD Clock AUDCK 4 Connect the Hitachi UDI signals from the Hitachi 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 RENESAS Hitachi UDI port TDI En Boundary scan loop User system TDI Test data input TDO Test data output TAP Test access port Figure 2 5 User System Example 14 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 Hitachi UDI port connector Supply power to the host computer and select HDI for E10A SHxxxx gt Hitachi Debugging Interface from the Start menu Je Accessories Internet Explorer S StartUp HS MS DOS Prompt Ay Windows Explorer fa HDI for E104 SHxox gt Hitachi Debugging Interface Figure 2 6 Start Menu 15 RENESAS 5 Select the setting to be used Figure 2 7 Select Session Dialog Box RENESAS The E10A Driver Details dialog box is displayed With the Driver combo box select the driver to connect the HDI with the emulator Interface displays
34. 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 For the branch instruction trace displays the branch source or branch destination address MNEMONIC Displays the execution instruction mnemonic OPERAND Displays the execution instruction operand Source Displays the C source line of the address that the trace has been acquired 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 KKK EMIL 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 RENESAS 4 2 8 Trace Acquisition Dialog Box Function This dialog box
35. check RESET and Vcc Retry Ignore Figure 2 12 Can not find RESET signal Dialog Box b If the following dialog box is displayed check that the Hitachi UDI port connector on the user system is correctly connected HDI AN 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 A COMMUNICATION TIMEOUT ERROR Figure 2 14 COMMUNICATION TIMEOUT ERROR Dialog Box RENESAS HDI Ea N INVALID ASERAM FIRMWARE Figure 2 15 INVALID ASERAM FIRMWARE Dialog Box HDI AN Error JTAG boot Figure 2 16 Error JTAG boot Dialog Box 4 If the driver is not correctly connected the following dialog box will be displayed HDI IN Unable to restore the previous driver settings please choose another driver 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 RENESAS 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
36. 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 value in the trace display range as numerical values By default the start pointer is D 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 0 can be set 137 RENESAS 42 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 Conmacted to SHxx E104 Emulator E104 PCI Card Driver4 SH xxxx Run status Break Cause of last break BREAK POINT Run tim
37. 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 RENESAS 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 lt addropt gt lt dataopt gt lt asidopt gt lt r wopt gt lt accessopt gt lt countopt gt lt ldtlbopt 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 I lt countopt gt II lt ldtlbopt gt lt ioopt gt address lt address gt lt addrcycle gt ll address mask lt maskdata gt lt addreycle gt data lt data gt lt datawidth gt II data mask lt maskdata gt lt datawidth gt asid lt asid gt
38. lt mode gt Keyword Selects the trace mode N Internal trace F Non realtime trace R Realtime trace lt full gt 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 lt option1 gt 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 Acquisition dialog box 148 RENESAS 5 2 3 AUD TRACE AUT Description Displays the trace information Format aut lt optionl gt lt option2 gt lt option1 gt 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 emula
39. register value SBUS H 00000000 Displays the load store bus address internal bus EBUS H 0000000 Displays the external bus address SBTYPE B 1101 Displays the internal bus state Each bit has the following meanings Bit3 Bus access 0 Without bus access 1 With bus access If bit 3 is 0 other bits of SBTYPE and all bits of SBUS are invalid 210 RENESAS Table 6 11 Display Status cont Item Example Description SBTYPE cont B 1101 Bit2 Read or write cycle 0 Read cycle 1 Write cycle Bit1 0 Bus width Bit1 0 Bit0 0 8 bit bus width Bit1 0 BitO 1 16 bit bus width Bit1 1 BitO 0 32 bit bus width Bit1 1 BitO 1 64 bit bus width EBTYPE B 0000000 Displays the external bus state Each bit has the following meanings Bit5 Bus mode at DMA transfer Displays an invalid value in the CPU access 0 Burst mode 1 Cycle steal mode Bit4 CPU access or DMAC access 0 Access from CPU 1 Access from DMAC Bit6 3 2 One transfer unit in DMA transfer Bit6 0 Bit3 0 Bit2 0 64 bits Bit6 1 Bit3 0 Bit2 0 32 bytes Bit6 0 1 Bit3 0 Bit2 1 8 bits Bit6 0 1 Bit3 1 Bit2 0 16 bits Bit6 0 1 Bit3 1 Bit2 1 32 bits These bits indicate memory access in the chip instead of the bus width Bit1 Read or write cycle 0 Read cycle 1 Write cycle Bit0 Bus access 0 Without bus access 1 With bus access If bit O is 0 other bits of EBTYPE and all bits of EBUS are invalid Note When bit 0 is 1 and bit 4 is 0
40. that can be set in this window differ according to the product For the settings for each product refer to the online help 100 RENESAS Description The Configuration dialog box consists of the General page listed in table 4 2 Table 4 2 Configuration Dialog Box Page Page Name Description General Sets 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 RENESAS 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 clock AUDCK and JTAG clock TCK and selects the driver Window General Loading flash memory Mode S Emulation mode Normal v Step option Disables interrupts during single step execution v UBC mode EML br Memory area Normal Physical Virtual 51D D 0 Ul Lee SSeS eik ILLES AUD clock five CPU clock v JTAG clock 4 1 25MHz v Driver Change Figure 4 2 General Page Configuration Dialog Box Note The items and displayed contents that can be set in this window diffe
41. the UBC as Break Condition by the emulator USER Releases the UBC to the user Break Condition cannot be used Note When lt option gt 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 gt UBC mode user RET UBC mode USER To display the current UBC state gt 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 be 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 gt vc RET To clear the contents in the VP MAP table range starting from virtual address H 4000 gt ve 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 VPM
42. the user program by the performance measurement function 1 Measuring cache hit ratio Specify measurement channel to count the cache misses for data read and write and specify measurement channel 2 to count operand accesses read and write to the cacheable area while the cache is enabled Specify with both the channels the measurement from the start to the end of user program execution With the above command settings the cache miss count and the access count to the cacheable area can be measured and the cache hit ratio in the executed user program can be obtained 208 RENESAS 2 Measuring ratio of execution time in specified program area to total execution time Specify measurement channel 1 to measure the elapsed cycle count from the start to the end of user program execution Specify measurement channel 2 to measure the elapsed cycle count during execution from the specified start PC to the specified end PC With both the channels the total elapsed cycle and the elapsed cycle for the specified program area can be measured and the ratio of the execution time in the specified program area to the total execution time can be obtained Notes 1 The counter for performance measurement has 48 bits A maximum of 2 2 8 x 10 counts and 21 7 day cycles when the CPU operating frequency is 267 MHz can be measured If a counter overflow occurs the count becomes invalid 2 For details on command line syntax refer to section 7 or th
43. which if not avoided may result in minor or moderate injury CAUTION CAUTION used without the safety alert symbol indicates a potentially hazardous situation which if not avoided may result in property damage NOTE emphasizes essential information lt RENESAS WARNING Observe the precautions listed below Failure to do so will result in a FIRE HAZARD and will damage the user system and the emulator product or will result in PERSONAL INJURY The USER PROGRAM will be LOST 1 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 HS6000EIC01H and the E10A emulator PCI card are mounted on the same host computer the connectors may be illegally connected RENESAS Warnings on Emulator Usage Be sure to read and understand the warnings below before using this emulator Note that these are the main warnings not the complete list WARNING Always switch OFF the host computer and user system before connecting or disconnecting any CABLES or PARTS Failure to do so will result in a FIRE HAZARD and will damage the user system and the emulator produ
44. 000 11FFF 0 RET gt vd RET lt VADDR TOP gt lt VADDR END gt lt PADDR TOP gt 00010000 00010FFF 04000000 00011000 00011FFF 00000000 DISABLE 2 Then enable the VP_MAP tables When the tables are disabled addresses are not translated gt ve enable RET gt vd RET lt VADDR_TOP gt lt VADDR_END gt lt PADDR_TOP gt 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 11FFF H 12000 H 12000 H 12FFF H 12FFF VESA 4000000 VEA 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 a
45. 0000000 RO BANK1 to R7_BANK1 H 00000000 PC H A0000000 SR H 700000F0 GBR H 00000000 VBR H 00000000 MAGH H 00000000 MACL H 00000000 PR H 00000000 DBR H 00000000 SGR H 00000000 SPC H 00000000 SSR H 000000F0 FPUL H 00000000 FPSCR H 00040001 FRO to FR15 H 00000000 H 00000000 RENESAS 3 Low Power Modes Sleep Standby and Module Standby For low power consumption the SH7750R has sleep standby and module standby modes The sleep and standby modes are switched using the SLEEP instruction When the emulator is used the sleep and standby modes can be cleared by either normal clearing or by the Stop button In the latter case the user program breaks Note however that if a command has been entered in standby mode or module standby mode a TIMEOUT error will occur Notes 1 After the sleep mode is cleared by a break execution restarts at the instruction following the SLEEP instruction 2 If the memory is accessed or modified in the sleep mode the sleep mode is cleared and execution starts at the instruction following the SLEEP instruction 3 When the SLEEP instruction is executed by STEP type commands set Rate to 6 to use Step from the Run menu If Rate is 5 or less a COMMUNICATION TIMEOUT error occurs 4 RESET Signals RESET and MRESET The SH7750R RESET signals RESET and MRESET are only valid during user program execution started with clicking the GO or STEP type button If these signals are input from the user
46. 07 Breakpoints Window Display Items rorororrrorrrvrnvvrnrnrnvnvevnnevvnrnvnrvvrrverrvsrersveravvseee 109 Breakpoints Window Pop up Menu Operation ssererarevnovnrnvnnrrnvrrnrverrvenrevveevvnernn 110 Break Dialog Box Pages rrennvnrrrrnennvneerrnennrnerrrnennnnserrvennnnsersnsnnrnsersnsnnnnsersnsnnnnsensee 112 Point Page Options cciccciccedacesess eien eene asero eare REE EEE OKEE O AEE RRE 114 Condition Page Options ereranvrnrnrnnnvnnvvnnvnnnvernvrrnevsveveraverareravvrervensvessvnsnvessvesvsesnn 116 Address Page Opt1onsessunrusunonerttungbuekatetntedguseiitn 118 Setting Conditions in Break Condition Dialog Boxes eee eee eee eeeereeees 121 Break Condition Dialog Box Pages ernernnnvnvnnnvrnvrrvvrrvrnevrrersverarvrarvrervrervesvvesnvesner 122 Address Page Options erarerarvrnenrnrnvnrnvnnvennvernvrsvevsvaveraveraveravvrervenvvessvnssversvesveesnn 124 Address OptI0ns rennes ep e ene E EEEE AN ETAR EE ERER 124 Data Pape Options onret na E nas E E E EE 126 ASID Page Opi Ons esseicticcts ceseccsscsegedse vecuiesecsseedes canweredesces dpevasdctesscesceeveewsresnsaancens 127 Bus State Page Optroms i c c csesiessssesseoseceseescessoneecensesdbcossnsscbucdedscessetaeeesestoeey 129 Count P se Options eisni oem aeaea e o E a E REEERE 130 General Page Opttonsuarassiaiassastseninstaiueikesiensaseaanieldaenser 132 Trace Window Display Items esnornonnvvnnvvnnvernvrrnvrrvrverrveravernevrerv
47. 2 Section 6 SH7750R E10A Emulator Specifications rrrororrrnrorrnnrrrrvnrrrrnnenrrener 183 6 1 Components of the Emulator srernrnrvrrnvvrnvrrnvrrnvrrvrvrrrvvravvrnrvrnrvrnrenvnnevneevvesnersversvsrsvsversee 183 6 2 Pin Arrangement of the Hitachi UDI Port Connector srsnarrnvnvnnvvravvrnvvrnvnenvnnnvnnevnvnvveenr 184 6 3 User System Interface Circiit 65 0 cceccasseretnesssssstenedenbesnessnsessedeasedenssnstenevonbooesceesntsedease 186 6 4 Differences between the SH7750R and the Emulator srorvrornvrrnvrrnvrrnvarvrnvvrnvvvevvrrvrernr 188 6 5 Specific Functions for the SH7750R E10A Emulator esnororororrronrnvnvevnvernrvvravvrarrvenvvnener 191 6 5 1 Emulator Driver Selection rrnnrnnonrnnnnrnvenvvnnnrnnenrnnenrneennnnsnrnsenennsnrnsennnssnrssensnsenn 191 6 5 2 Break Condition Functions snonnnrnnvvnnvrrnvrrnvrrverrnrvrravvrarvrnvrrnrnenvnnevnvenevsvsrsvsrsvsver 192 6 5 3 Notes on Setting the Breakpoint Dialog BOX rrrerorornnvnvevnvrnvrnvrrverrvvrnnvvervvnener 195 6 5 4 Notes on Using the JTAG Clock TCK rnrrroronnvnvrrrvennvnnerrnennvnrerrvennrnserressnrssener 197 63 3 Trace Functions er n ree ian ea aE pir E E Sne rane 198 6 5 6 Notes on Using the Profile Function ssnnrnrnrnvnvnvnvnvnnnvnvvvrvrrrvrrevrrersrerervrnvvsenvee 201 6 5 7 SH7750R E10A Emulator Useful Functions rorrrorrrvrvnvvvevvvrnvrrerrverrvvrnnvnnevveeren 202 6 5 8 Downloading Function to the Flash Memory Area
48. 2 DAt a Watch Window op 5 x Source Value a long a 10 OxOc000bd8 long 10 mir long j 0 H 00000200 Ox0c000bd8 long int i min max 1 H 00000f 16 OxOcOOObdc long A 2 H 00002c8c 0x0c000be0 long 0c000094 for 1i 0 i lt 10 it4 3 H 00002 82 Ox0cO000be4 long Es 0c000076 j rand 4 H 000036c9 Ox0cO000be8 long 0c00007e if j lt OM 5 H 000047b3 0x0c000bec long 00000082 j j 6 H 00004e5a Ox0c000bf0 long A 7 H 00005ed3 0x0c000bf4 long 0c000086 8 H 00006422 Ox0cO000bf8 long A 9 H 00006fbf 0x0c000bfc long A 0c0000a2 x H 00000000 Ox0c000bc8 int Oc0000aa E Oc0000ae Oc0000b2 OcO000b6 E 0c0000c2 Oc0000c6 Oc0000ca m void abort void Oc0000d8 abort Oc0000dc sort void sort long a 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 P Figure 3 30 Step Over Button 50 RENESAS Al Hitachi Debugging interface tutorial SHmax E10A Emulator File Edit View Run Memory Setup Window Help ETAD AREE Anaa A e lt AcSRAAWRAY WER NE 0 8 2 SAt Source Value long a 10 OxO0c000bd8 long 10 long j H 00006fbf Ox0c000bd8 int i min max H 00006422 O
49. 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 does not need to be set in an emulator that does not support the internal 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 AUD trace radio button in the Trace type group box Trace Acquisition Trace mode Trace type C Internal trace AUD model Realtime trace Non realtime trace AUD mode 2 Trace continue Trace stop AUD trace display range Start pointer D 8191 End pointer 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
50. 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 lt address space gt 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 RENESAS 2 Condition Page Break Dialog Box Function This page displays the Break Condition settings These conditions can also be set or cleared in this page Window 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 for each product refer to the online help 115 RENESAS Description Table 4 10 Condition Page Options Option Description B
51. AP 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 gt vd RET lt VADDR_TOP gt lt VADDR_END gt lt PADDR_TOP gt 01000000 O100fffE 02000000 01010000 O101ffff 03000000 ENABLE lt VADDR TOP gt lt VADDR END gt and lt PADDR_TOP gt 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 lt enable gt Keyword Enables or disables the setting 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 gt 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
52. Bus Counted using the ratio of CPU operating clock and bus clock lt range gt Keyword Sets the timing of performance measurement g Performs measurement during GO command execution u Performs measurement when Break Conditions 1 and 4 are being satisfied Notes 1 When lt clock gt is omitted the count method using the CPU operating clock is used 2 When the lt range gt item is omitted the measurement ranges that the performance is measured during the GO command execution are set 3 When the lt range gt item is selected be sure to set Break Condition 1 4 Otherwise performance will not be measured If the lt range gt item is set a break will not occur at the satisfaction of Break Condition 1 4 229 RENESAS The measurement items set by the lt mode gt parameter are shown in table 7 4 Table 7 4 Measurement Conditions Measurement Condition Mode Description Operand access count OAR The number of times the operand access is performed on the cacheable area when the cache is enabled read access only OAW The number of times the operand access is performed on the cacheable area when the cache is enabled write access only OARW The number of times the operand access is performed on the cacheable area when the cache is enabled both read and write accesses OARAM The number of times the internal RAM area is accessed OA The number of all operand accesses
53. Cancel Figure 3 21 Add Watch Dialog Box e Input variable max and click the OK button 44 RENESAS The Watch window will now also show the int type variable max Watch Window Of DP x Value a OxOc000bd8 long 10 max H ffffffff I OxOcO00bc8 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 OP x Value OxOc000bd8 long 10 gt H 000036c9 Ox0c000bd8 H 00002c8c Ox0c000bde H 00006422 Ox0c000be0 H 00000f 16 Ox0c000be4 H 00004e5a Ox0c000be8 H 00005ed3 Ox0c000bec o H 00002 82 Ox0c000bf 0 H 00000200 Ox0c000bf 4 H 00006fbf Ox0c000bf 8 H 000047b3 Ox0c000bfc H ffffffft Ox0c000bc8 OI rar rn rn rn rn rn ee tr M D 00 ON OT 6 ND la la r ee lad hd ee Ne et nd et et et ng ng ht Figure 3 23 Watch Window Displaying Array Elements 45 RENESAS 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
54. 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 95 Microsoft Windows 98 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 realtime trace Note The AUD is an abbreviation of the Advanced User Debugger Support for the AUD varies with the product 1 1 Warnings CAUTIO
55. DITION ENABLE BCE rsrnrvrnvvrnvvvnvvvnvvervvnrversvrrevrverssvrarvrnevrevveer 153 5 2 7 BREAKCONDITION_ SET BCS 1 rrrevrrerorerevvrnvvrnvvenvnvrvvervvrrvereverrvrversrerarvrervrernee 154 iv 3 14 3 Executing Step Over Command ou eee cece cece cneeeeteeeeeeeeeeeeeeeeeeeeeaeeaees 50 RENESAS 5 29 BREAKPOINT CLEAR BC enoront ionene TE E SEEE aSa 160 5 2 10 BREAKPOINT DISPLAY BD nnooronervrnvoreravnrerannernrernnvrrsrennrerasnnensevennrensnnnse 162 5 2 11 BREAKPOINT ENABLE BE ornronnnnvrnvonnerrnverernsnernrennnnervrenvrvresnesnsrvennsessevererer 163 5 212 DEVICE TYPES DE bicer eroaren ereere enara o deascaslenbieh belgie besteibios pudeapense 165 2 13 GO OPTION GP snipe adrnksrenkidseerkeeuededpb pain S e eE 166 5 214 JTAG CLOCK JCR siirsin okonri a EEE E E E EEEE AEE 168 5 2 15 MEMORYAREA SET MAS erororornrenrerennrerrernrerarnnenrevennrevrnsererasnnevssvennsevsnsnsere 170 5 2 16 gt REFRESH RF vi io cce scoesudccsecives adiabatisk bike es 172 5 2 17 RESTART RS isnende 173 5 2 18 STATUS SIS senderen 174 5219 8 TEP_INTERRUP T S eres capio ap aeaea peeo es enoe S PE EAEE RR TR A EEE 175 5 2 20 TRACE DISPLAY TD senica eienenn naaa eiaeia SEER 176 5221 UBC MODE UM pse aare n tis teed e aA A EE a e ES 178 5 22 22 VPMAP CLEAR VG 2ginsseinniskes dit aes aie Sie 179 5 223 VPMAP DISPLAY VD rcst p e Ea ae ae SE a ERA SEE Eai 180 5 2 24 VPMAP ENABLE VE coent esie eani a Anais dee dn 181 5 229 VPMAP SET VS Se 18
56. E POSSIBILITY OF SUCH DAMAGES EXCEPT AS EXPRESSLY STATED OTHERWISE IN THIS WARRANTY THIS EMULATOR PRODUCT IS SOLD AS IS AND YOU MUST ASSUME ALL RISK FOR THE USE AND RESULTS OBTAINED FROM THE EMULATOR PRODUCT RENESAS State Law Some states do not allow the exclusion or limitation of implied warranties or liability for incidental or consequential damages so the above limitation or exclusion may not apply to you This warranty gives you specific legal rights and you may have other rights which may vary from state to state The Warranty is Void in the Following Cases Hitachi shall have no liability or legal responsibility for any problems caused by misuse abuse misapplication neglect improper handling installation repair or modifications of the emulator product without Hitachi s prior written consent or any problems caused by the user system All Rights Reserved This user s manual and emulator product are copyrighted and all rights are reserved by Hitachi No part of this user s manual all or part may be reproduced or duplicated in any form in hard copy or machine readable form by any means available without Hitachi s prior written consent Other Important Things to Keep in Mind 1 Circuitry and other examples described herein are meant merely to indicate the characteristics and performance of Hitachi s semiconductor products Hitachi assumes no responsibility for any intellectual property claims or other problems tha
57. FORMANCE ANALYSIS abbreviation PA e Performance condition cancellation command PERFORMANCE CLEAR abbreviation PC e Performance condition set command PERFORMANCE SET abbreviation PS 7 1 1 PERFORMANCE ANALYSIS Command Abbreviation PA Description Displays or initializes the performance measurement result Format pa lt channel gt lt display mode gt lt channel gt channel lt channel number gt lt display mode gt mode lt mode gt 225 RENESAS Table 7 1 PERFORMANCE ANALYSIS Command Parameter Parameter Type Description lt channel Numerical value Sets a value of 1 or 2 as the channel number for the number gt performance measurement conditions lt mode gt Keyword Sets the display format of the performance measurement result rate1 Displays the ratio of the channel 1 result to that of channel 2 rate2 Displays the ratio of the channel 2 result to that of channel 1 init Initializes the performance measurement result Notes 1 The lt channel gt item can be set when the init keyword is set in the lt mode gt parameter When lt channel number gt is omitted at the initialization of the performance measurement result all performance measurement results are initialized 2 When measurement channels 1 and 2 are not set or when the performance result is 0 do not specify the rate1 or rate2 keyword for the lt mode gt parameter 3 When the lt display mode gt item is omitted only the pe
58. 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 Specifications 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 Acquisitio
59. H7750R CPU board Table 6 14 Example of Board Specifications Item Contents Flash memory address H 00000000 to H 03FFFFFF Bus width of flash memory 32 bits Operating CPU internal frequency 267 MHz environments Bus frequency 133 MHz CPU internal module frequency 66 5 MHz Endian Big endian 215 RENESAS Figure 6 10 shows the wiring of the flash memory mounted on Hitachi s SH7750R CPU board Mask register L A2 to A24 DO to D15 Do A 1 CS0 1 A25 FPGA 0 to 1FFFFFF RE 32 Mbytes A1 to A23 D16 to D31 DO to D15 4 t NT psu 7 I WEO A WET Mask register 2000000 to 3FFFFFF 32 Mbytes Figure 6 10 Flash Memory Wiring 216 RENESAS 6 5 9 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 2 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 en
60. Hz Pentium HD OS Windows 98 SH7750R 267 MHz CPU clock JTAG clock 16 5 MHz When a one byte memory is read from the command line window the stopping time will be about 8 ms Interrupt When the NMIB bit in the ICR register is 1 the NMI interrupt is accepted during break and the program is executed from the NMI interrupt vector If the program cannot return normally from the NMI interrupt routine or the value in the general purpose register is not guaranteed a COMMUNICATION TIMEOUT error will occur 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 BREAKPOINT or user program download should be set only for the RAM area When the memory area can be written by the MMU do not perform memory write BREAKPOINT or downloading 10 Cache Operation during 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 190 RENESAS 6 5 Specific Functions for the SH7750R E10A Emulator The SH7750R E10A emulator includes the following useful functions e Performance analysis f
61. LEAR Command Abbreviation PC Description Clears the performance measurement conditions that have been set Format pc lt channel gt lt channel gt channel lt channel number gt Table 7 2 PERFORMANCE CLEAR Command Parameter Parameter Type Description lt channel number gt Numerical value Sets a value of 1 or 2 as the channel number for performance measurement conditions Note When lt channel gt is omitted all performance measurement conditions are cleared Examples 1 To clear all performance measurement conditions pc RET 2 To clear the performance measurement conditions set to channel 1 pc channel 1 RET 228 RENESAS 7 1 3 PERFORMANCE SET Command Abbreviation PS Description Sets the performance measurement conditions Format ps lt channel gt lt modeopt gt lt clockopt gt lt range gt lt channel gt channel lt channel_number gt lt modeopt gt mode lt mode gt lt clockopt gt clock lt clock gt lt range gt range lt range gt Table 7 3 PERFORMANCE SET Command Parameters Parameter lt channel_number gt Type Numerical value Description Sets a value of 1 or 2 as the channel number for performance measurement conditions lt mode gt Keyword Sets performance measurement items refer to table 7 4 lt clock gt Keyword Sets the count method for the performance measurement cpu Counted using CPU operating clock
62. MS Input B 6 197 6 TDI Input B 5 199 ia RESET Output B 1 2 11 Not connected 8 to 10 GND and 12 to 13 14 3 GND Output 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 1 Pin Arrangement of the Hitachi UDI Port Connector 14 Pins 184 RENESAS Notes 1 Handling of the TCK TMS TDI TDO TRST and ASEBRK pins depend on the use conditions of the Hitachi UDI as follows a When the user system is used by connecting the emulator the TCK TMS TDI TDO and ASEBRK pins must be pulled up by a resistance of several kilo ohms The TRST pin must be pulled down by a resistance of several kilo ohms b When an interrupt and reset are used through the Hitachi UDI and the user system is independently used the TCK TMS TDI TDO and ASEBRK pins must be pulled up by a resistance of several kilo ohms The TRST pin must be pulled down by a resistance of several kilo ohms c When the user system is independently used without using the emulator and Hitachi UDI the TCK TMS TDI TDO and ASEBRK pins must be pulled up by a resistance of several kilo ohms The TRST pin must be grounded 2 The RESET signal in the user side is input to the B 1 pin BGA256 or 2 pin HQFP208 of the SH7750R Connect this pin to the Hitachi UDI port connector as the out
63. N 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 to 35 C Storage 10 C to 50 C Humidity Operating 35 RH to 80 RH no condensation Storage 35 RH to 80 RH no condensation Vibration Operating 2 45 m s max Storage 4 9 m s max Transportation 14 7 m s max
64. OBFC 00000063 D 000003 MEMORY OC000B98 00000009 D 000002 MEMORY 0C000B 98 0000000A D 000001 MEMORY 0OC000B 98 00000004 D 000000 BRANCH 0C000214 soltsdd i DESTINATION OCOOQODA eee Q H 34 4 R15 R2 min a 9 KNM MG i dt te Te DE Figure 3 57 Trace Window in the SH7751 E10A Emulator 78 RENESAS 3 19 3 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 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 LOFFF to physical addresses H 4000000 to H 4000FFF and virtual addresses H 1 1000 to H 1 1FFF to physical addresses H O to HFFF gt vs 10000 10FFF 4000000 RET gt vs 11
65. ON SET Command 1 When Go to cursor Step In Step Over or Step Out is selected the settings of Break Condition 3 are disabled 2 Break Condition 3 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 3 3 When a Break Condition is satisfied emulation may stop after two or more instructions have been executed 4 Ifa PC break before execution 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 6 7 uses the UBC When the UBC is used in the user program change the UBC setting for users by using the UBC_mode list box in the Configuration dialog box or the UBC_mode command 194 RENESAS 6 Break Condition 1 4 is used as the measurement range in the performance measurement function when P is added as shown in figure 6 4 For setting the performance measurement function refer to section 6 5 7 SH7750R E10A Emulator Useful Functions 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 4 is satisfied Point Condition Break condition Empty Enable P Empty Empty Empty Figure 6 4 Conditi
66. R BSRF JSR and RTS instructions To use this function select the Acquire subroutine branch instruction trace radio button in the Trace Acquisition dialog box Exception branch instruction trace Traces and displays the exception branch instruction The exception branch instruction is the RTE instruction In addition all the exception and interrupt operations are traced To use this function select the Acquire exceptional branch instruction trace radio button in the Trace Acquisition dialog box Internal I O trace Traces and displays the address and data that access the internal I O area To use this function select the Get trace information of internal I O area radio button in the Break Condition 5 dialog box and the Acquire continuous trace check box in the Trace Acquisition dialog box 199 RENESAS Table 6 8 Trace Functions cont Function Description LDTLB instruction execution trace Traces and displays the address that executes the LDTLB instruction To use this function select the Get trace information of LDTLB instruction radio button in the Break Condition 5 dialog box and the Acquire continuous trace check box in the Trace Acquisition dialog box Continous trace Acquires the trace information continuously This is called Notes 1 200 continuous trace For the branch instruction trace eight branch information can be repeatedly acquired a maximum of four times Select the
67. System essrernvnnvvnnvrrnvrrnrvrnrverrveraverarvrervenrveernee 12 2 oyster CHECK SEE EEE 15 2 6 Ending the HDI pareen eins abil ais laine e AE a iaa eoa ein giske 21 2 7 Uninstalling the UD RE veeteareusscaueses 22 2 8 CDE Riss cai knseoa vekene ankes Gaines 23 2 8 1 Configuration of the CD R esrernonrvrnnvrrvrnrvvenvervvrrnvrsvrvevrversverarvrnevrernensvessvesveesvvese 23 29 SUPPO seres el eee 23 Section 3 Tutorial csiis inap see eaS 25 3L ntrod ctiois esri ep conar e a on a R a Eae e aa EE AE ERE 25 32 Running the HDI isare e E EE E E AEAEE 27 35 HDH With hw susnudieisednsiebentmuejeb kgaentetdueebettud 28 34 Setting up the Emulator cecene e dais arent G bee desis 29 3 5 Setting the Configuration Dialog BOX eee cee cseecseeeseeeeeeeeeeeeeeeeeeseeeseesseenaeenaes 30 3 6 Checking the Operation of the Target Memory for Downloading eee eee 31 3 7 Downloading the Tutorial Program 0 eee ee cece cee esse cscs caeeceeeeeeeeeeeeeeeeeeeeeeseesseenaeenaes 33 3 7 1 Downloading the Tutorial Program seseroreronvrnnvrnvvrnrvrnrvrervenvvnnnvernvrsvrrsvrvevsversvrn 33 3 7 2 Displaying the Source Program reennnnnvnvvnnnvnrvvnrnvrrverevrversrerarvrnevrervesvenvvesnvesvvesen 34 3 8 Setting a Software Breakpoint 00 eee eee eee ceeeceseceseceaeceaecaeecaeeeaeseeeeeeeeeeseeeeeeeaeeaees 36 39 Setting Registers saiissesaciceseescesueddacatteevoagrasudes scetessuae sedaeusente pevsesate soe renee E E RO RERS RSS 37 3 10 Executing
68. To all our customers Regarding the change of names mentioned in the document such as Hitachi Electric and Hitachi XX to Renesas Technology Corp The semiconductor operations of Mitsubishi Electric and Hitachi were transferred to Renesas Technology Corporation on April I st 2003 These operations include microcomputer logic analog and discrete devices and memory chips other than DRAMs flash memory SRAMs etc Accordingly although Hitachi Hitachi Ltd Hitachi Semiconductors and other Hitachi brand names are mentioned in the document these names have in fact all been changed to Renesas Technology Corp Thank you for your understanding Except for our corporate trademark logo and corporate statement no changes whatsoever have been made to the contents of the document and these changes do not constitute any alteration to the contents of the document itself Renesas Technology Home Page http www renesas com Renesas Technology Corp Customer Support Dept April 1 2003 r8RlENESAS RenesasTechnology Corp 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 m
69. ak 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 RENESAS 4 2 3 Break Dialog Box Function This dialog box displays the break condition settings Window ae sll Figure 4 7 Break Dialog Box 2tENESAS 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 RENESAS 1 Point Page Break Dialog Box Function This page displays software breakpoint settings In this page software breakpoints can be set changed and cleared Window Figure 4 8 Point Page Break Dialog Box 2tENESAS 113 Description Table 4
70. alue FRQCR Acquires the FRQCR register value AT Acquires the AT bit value in the MMUCR register ASID Acquires the ASID value in the PTEH register CCR Acquires the CCR register value STS Acquires the state of the STATUS pin SBUS Acquires the load store bus address EBUS Acquires the external bus address SBTYPE Acquires the load store bus status EBTYPE Acquires the external bus status CMF Acquires the status of whether the conditions of Break Condition and UBC channels are satisfied SCMF Acquires the status of whether the conditions of channels are satisfied when using the sequential breaks of Break Condition and UBC Notes 1 When the lt mode gt items are omitted this command displays the items selected in the 2 Configuration dialog box If nothing is acquired and selected in the Configuration dialog box Not select is displayed The settings with this command do not affect the settings in the Read status group box in the Configuration dialog box 3 This command is valid only during the user program execution If this command is Example To display the PC and CCR values gt es PC CCR RET PC CCR H 00000000 H 00000000 used during program break an undefined value is displayed 237 RENESAS 238 RENESAS
71. alue OCO0006C 7FC8 32712 7424 7986 0Cc000072 24012 24558 9 12009 0C000078 410B 16651 9 7939 OCO0007E 4011 16401 30463 24587 oC000084 1F03 7939 21490 17160 OC000084A 62F3 25331 29200 13100 OC000090 S1F3 20979 8978 21490 ocC000096 7301 29441 7986 7670 OC00009C 51F2 20978 12579 29719 OC000042 64F3 25843 29712 20455 Figure 3 18 Memory Window 42 RENESAS 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 Add 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 Value Ox0c000bd8 lons 10 Figure 3 20 Watch Window Displaying the Array The user can also add a variable to the Watch window by specifying its name e Click the Watch window with the right mouse button and select Add Watch from the pop up menu The following dialog box will be displayed Add Watch x Varable or erpressian
72. anch 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 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 RO DESTINATION 01000020 MOV L R1 R1 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 Related Items TM command Trace window Trace Acquisition dialog box 177 RENESAS 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 lt ubc mode gt Keyword Selects the UBC mode EML Uses
73. aning in the emulator of this version Break Condition 2 3 6 7 Has no meaning in the emulator of this version When Break Condition 6 7 is used as the UBC The condition match flag is 1 when each channel in the UBC is satisfied until the flag is cleared 2 CPU status acquisition function during standby The read value during standby cannot be guaranteed RENESAS 6 5 8 Downloading Function to the Flash Memory Area The following shows examples of connection and downloading to the flash memory manufactured by Intel Corporation type number E28F128J3 that has been mounted on Hitachi s SH7750R CPU board type number HS7750RSTCO1H A sample is provided in the Fmtool folder in the SH7750R E10A installation destination folder Table 6 12 shows file configurations Table 6 12 File Configurations of Sample Programs for Downloading to the Flash Memory Item File Name Sample program for downloading to the flash Fmtool Fmtool Debug Fmtool mot memory load module file S type Sample program for downloading to the flash Fmtool Fmtool Debug Fmtool src memory source file Workspace for creating a sample program for Fmtool Fmtool hws downloading to the flash memory for HEW1 2 Table 6 13 Sample Program Specifications Item Contents RAM area to be used H 0C001000 to H 0C001 FFF Write module start address H 0C001100 Erase module start address H 0C001000 The following shows an example of the specification of Hitachi s S
74. arameter sererarnrnrnrnrnrnrereverevererererererererer 155 BREAKPOINT Command Parameters rrrerrnennnnrrrnrnrrrrnannrernrnsnnernnnnnrsvnsnrsnennnnrsrnene 158 BREAKPOINT CLEAR Command Parameters wrarerarnrnvnrernrernrerererererererererererer 160 BREAKPOINT DISPLAY Command Parameter ervrvrvnvnvnvvvnvevnveveveveveveveveveveverer 162 BREAKPOINT ENABLE Command Parameters sarararnrarnrernrnverernrevererererererererer 163 DEVICE TYPE Command Parameter sornnnnnnnnnnnnnnnnnnnnnnnnnnrnnnsnnsrsnssnrsssnsssnsssnnnnneee 165 GO OPTION Command Parameter serarerarnrererererevererererererereverevererererererererererereser 166 JTAG CLOCK Command Parameter eorvrnrvrvvvrnnvvnvvvvnnvvevvnevenenvnenevevevenenvevnenenevener 168 MEMORY AREA SET Command Parameters ccccccccccccccceccceeccecececeeeeesesevens 170 REFRESH Command Parameter c ccccccccccecsessscecececeesesnececececeesenssaeceeeeeesenseaees 172 RESTART Command Parameter onnornrnnorsnonnnnrvrnrnrsrrnannrnrnenrsnenennrnnnenssennennnnnnensene 173 STATUS Command Parameter ssiri areia EE EERE EEE EE SEENE 174 STEP INTERRUPT Command Parameter ranannnnnnnnnnnnnnnnnnnnnnnnnnnennnnnnnennnensnnnunennnes 175 TRACE DISPLAY Command Parameter seserararnrnrnrnrnrevnreveveverevereverevererereverereser 176 UBC MODE Command Parameter sssrnnnnnnnnnnnnnnnnnnnrnnnrnnnrsnssssnssssrssssssssssessssssnenene 178 VPMAP CLEAR Command Parameter serararararerarererev
75. arameters 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 hardware 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 sele
76. box consists of multiple pages 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 OK button sets the hardware break conditions If the Cancel button is clicked the dialog box is closed without setting the hardware break conditions Related Commands BREAKCONDITION CLEAR command BREAKCONDITION DISPLAY command BREAKCONDITION ENABLE command BREAKCONDITION SET command 120 RENESAS 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 Condition Conditions Condition Conditions Break Condition 1 O O O O X dialog box Break Condition 2 O X O xX X dialog box Break Condition 3 X X xX 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 RENESAS 121 Table 4 13 shows all the Break Condition dialog box pages Table 4 13 Break Condition Dialog B
77. c0000aa TT FT F F E E F F F F E sa ma sn ma na na DE 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 RENESAS 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
78. c0000c6 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 Register Value RO 00000000 R1 00000000 R2 00000000 R3 00000000 R4 00000000 RS 00000000 R6 00000000 R7 00000000 RS 00000000 R9 00000000 00000000 00000000 00000000 00000000 00000000 00000000 A0000000 00000000 Figure 3 11 Registers Window 37 RENESAS 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 H0c00006c Set As Whole Register v Cancel 38 Figure 3 12 Register Dialog Box PC Change the value of the stack poin
79. ccording 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 the 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 S
80. cense 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 SH7750R E10A Emulator User s Manual 8atENESAS ADE 702 258 Rev 1 0 12 21 01 Hitachi Ltd HS7750RKCMO1HE Cautions Hitachi neither warrants nor grants licenses of any rights of Hitachi s or any third party s patent copyright trademark or other intellectual property rights for information contained in this document Hitachi bears no responsibility for problems that may arise with third party s rights including intellectual property rights in connection with use of the information contained in this document Products and product specifications may be subject to change without notice Confirm that you have received the latest product standards or specifications before final design purchase or use Hitachi makes every attempt to ensure that its products are of high quality and reliability However contact Hitachi s sales office before using the product in an application that demands especially high quality and reliability or where its failure or malfunction may directly threaten human life or cause risk of bodily injury such as aerospac
81. ception 193 RENESAS The SH7750R E10A emulator has sequential break functions Table 6 6 lists the sequential break conditions Table 6 6 Sequential Break Conditions No 1 Break Condition Description Sequential break condition 2 1 Program is halted when Break Condition 2 and Break Condition 1 are satisfied in that order Break Condition 2 1 should be set Sequential break condition 3 2 1 Program is halted when Break Condition 3 Break Condition 2 and Break Condition 1 are satisfied in that order Break Condition 3 2 1 should be set Sequential break condition 4 3 2 1 Program is halted when Break Condition 4 Break Condition 3 Break Condition 2 and Break Condition 1 are satisfied in that order Break Condition 4 3 2 1 should be set Sequential break condition 7 6 Program is halted when Break Condition 7 and Break Condition 6 are satisfied in that order Break Condition 7 6 should be set Note Sequential breaks can be specified by the Configuration dialog box Numbers 1 to 3 in table 6 6 can be set in the Emulation_mode list box in the Configuration dialog box or with the Go_option command For details on command line syntax refer to the online help function Number 4 can be set in the UBC mode list box in the Configuration dialog box or with the UBC mode command For details on command line syntax refer to the online help function Notes on Setting the Break Condition Dialog Box and BREAKCONDITI
82. chi Debugging Interface User s Manual 95 RENESAS 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 0 00000 0 0O OI OC CO O 97 RENESAS Table 4 1 HDI Window Menus and Related Manual Entries cont 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
83. 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 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 su
84. 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 Configuration 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 jck Sets the JTAG clock TCK frequency jck lt jck_opt gt Table 5 15 JTAG CLOCK Command Parameter Parameter Type Description lt jck_opt gt 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 7 7 5 MHz
85. counter e The watchdog timer operates only when the user program is executed Do not change the value of the frequency change register in the I O Registers window or Memory window e 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 SH7750R IO and then activate the HDI For details on I O register definition files refer to the Hitachi Debugging Interface User s Manual Note that however the E10A emulator does not support the invalid module and bit information display functions described in section 8 Displaying Variables on the Hitachi Debugging Interface User s Manual e Verify In the I O Registers window the verify function of the input value is disabled 220 RENESAS 19 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 20 Note on Session Save of Registers Window When the RB bit in the SR register is 0 and the session save of the Registers window is performed the contents of general registers RO to R7 cannot be saved 21 Note on Radix in the Register Dialog Box 2 2 N Q The default input
86. cription 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 lt channel_number gt Numerical value Hardware breakpoint channel number Note When lt channel gt is omitted all hardware breakpoints that have been set are displayed Examples To display all hardware breakpoint settings gt bed 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 bed channel 1 RET Break Condition 1 Enable data 20 long 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 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 57 BREAKCONDITION ENABLE Command Parameters Parameter Type Description lt channel number gt Numerical value Hardware break channel number
87. cseececeeaeeecseeeeeessseeeesenes 39 System Status Window rerenvvnvrrrnennvneeravennnnerrrnennnnerravennnnerranennnnesravsnnnnesrsssnnenennee 40 Breakpoints Window eerroronnvneerrnennvneerrvennenerranennnnerravennnnerrrvennnnenrssennenesrasennenennne 41 Open Memory Window Dialog Box sornnvrnvorvrnvvrnrnvnnnvnrvvervvrveravvrnevresvverneesvvarer 42 Memory Window ennnnrrnnnennvneerrnennnnenravennnneranennenenrsvennnnenrsvennenenrssennenssrsnsnnesennne 42 Instant Watch Dialog BOX eenrnrnnrnrenrvnnnrnverrnernrnsennnnsnrnsenrnssnrnsennnnsnrnsennnssnrsssnnsner 43 Figure 3 20 Figure 3 21 Figure 3 22 Figure 3 23 Figure 3 24 Figure 3 25 Figure 3 26 Figure 3 27 Figure 3 28 Figure 3 29 Figure 3 30 Figure 3 31 Figure 3 32 Figure 3 33 Figure 3 34 Figure 3 35 Figure 3 36 Figure 3 37 Figure 3 38 Figure 3 39 Figure 3 40 Figure 3 41 Figure 3 42 Figure 3 43 Figure 3 44 Figure 3 45 Figure 3 46 Figure 3 47 Figure 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 viii Watch Window Displaying the Array srsnorovrorvrnrvrnenvnrvvrrvrrevrnvrrnvrrnrverneerneeren 44 Add Watch Dialog BOX srera e aeaee ENE AE Ea E E Aari 44 Watch Window Displaying the Variable snrnrrrrnonnvnnerrnnnnrnrerrnnnnrnrenrnnsnrneener 45 Watch Window Displaying Array Elements ernr
88. ct 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 Hitachi s original microprocessor The emulator operates using the Hitachi debugging interface hereafter referred to as the HDI which is the interface program that runs on Microsoft Windows 95 Microsoft Windows 98 or Microsoft Windows NT operating system This manual describes the functions and operating procedures of the E10A emulator Sections 1 to 5 describe common features of all types of E10A emulators Section 6 describes supplements to the E10A emulator 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
89. cted 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 SI 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 translation 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 Pa
90. ctor is used do not connect other signal lines to the Hitachi 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 Hitachi UDI port connector and the TDI signal of the user system interface cable connector must be connected to the TDO pin of the Hitachi UDI port connector Section 6 2 shows the pin arrangement of the Hitachi UDI port connector 3 Figure 2 4 shows how to connect the user system interface cable to the user system 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 RENESAS User system interface cable Tab GND line Hitachi UDI port connector User system GND connection User system Pin 1 Figure 2 4 Connecting the User System Interface Cable to the User System when the 14 pin Straight Type Connector is Used Notes 1 To connect the signals output from the Hitachi 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 Hitachi UDI operates at is different according to the devices used For details refer to section 6 5 4 Notes on Using the JTAG Clock TCK
91. d 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 menu becomes invalid Use the BREAKPOINTs and Stop At in the Run menu with 255 or less total settings 221 RENESAS 24 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 25 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 26 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 27 Note on Using Old Version of Windows 95 In using the old released version of Windows 95 such as 4 00 950a if Options is selected from the Setup menu an application error occurs and the HDI abnormally exits This is due to the old version of COMCTL32 DLL in the System directory of the Windows directory Download the update program of COMCTL32 DLL from the Microsoft homepage for installation or u
92. d in the Sysrof format the amount of information displayed on the HDI screen during the program s execution will be reduced 5 This section describes general usage examples for the emulator For the specifications of particular products refer to section 6 or the online help file 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 FjAccessories Internet Explorer StartUp HS MS DOS Prompt Oy Windows Explorer fa HDI for E104 SHicoxx gt Hitachi Debugging Interface Figure 3 1 Start Menu For the procedure of running the HDI refer to section 2 5 System Check 27 RENESAS 3 3 HDI Window FI Hitachi Debugging interface tutorial SHx 3 File Edit View Run Memory Setup Window Help IE vese gt 24k FUAS EEE GEL Source Line Address BP Label Oc00006c main void main void long a 10 long j int i min max 0c00006e for 1i 0 i lt 10 i jf 0c000076 j rand 0c00007e if j lt 0 0c000082 j j 0c000086 ali 0c0000a2 sorta Oc0000aa min a 0 Oc0000ae max a 9 0c0000b2 min 0 0c0000b6 max 0 Oc0000ba change a 0c000002 min a 9 0c0000c6 max a 0 O0c0000ca while 1 fl 1 gt 1 For Help press F1 NUM Figure 3 2 HDI Window The key functi
93. displacement 0 BF S BT other than displacement 0 BT S BRA BRAF JMP BT The number of times branches are taken branches to be counted are the same as mode B BBJ The number of times BSR BSRF and JSR instructions are issued 205 RENESAS Table 6 9 Measurement Conditions cont Measurement Condition Mode Description Instruction execution E The number of times instructions are issued count E2 The number of times two instructions are issued at the same time EFP The number of times FPU instructions are issued ETR The number of times the TRAPA instruction is executed Interrupt count INT The number of interrupts except NMI NMI The number of NMI interrupts UBC satisfaction count UA The number of times channel A of the UBC is satisfied UB The number of times channel B of the UBC is satisfied Cache fill cycle count ECF The number of instruction cache fill cycles OCF The number of operand cache fill cycles Elapsed time count TM The number of cycles for elapsed time Pipeline freeze cycle count PFCF Pipeline freeze cycle due to instruction cache misses PFCD Pipeline freeze cycle due to operand cache misses PFB Pipeline freeze cycle due to branch instructions or exceptions Note The non cache operand accesses due to the PREF instruction or TLB c 0 do not count up 206 RENESAS The events can be counted even if the conditions shown in table 6 10 are generated
94. e aeronautics nuclear power combustion control transportation traffic safety equipment or medical equipment for life support Design your application so that the product is used within the ranges guaranteed by Hitachi particularly for maximum rating operating supply voltage range heat radiation characteristics installation conditions and other characteristics Hitachi bears no responsibility for failure or damage when used beyond the guaranteed ranges Even within the guaranteed ranges consider normally foreseeable failure rates or failure modes in semiconductor devices and employ systemic measures such as fail safes so that the equipment incorporating Hitachi product does not cause bodily injury fire or other consequential damage due to operation of the Hitachi product This product is not designed to be radiation resistant No one is permitted to reproduce or duplicate in any form the whole or part of this document without written approval from Hitachi Contact Hitachi s sales office for any questions regarding this document or Hitachi semiconductor products IMPORTANT INFORMATION READ FIRST e READ this user s manual before using this emulator product KEEP the user s manual handy for future reference Do not attempt to use the emulator product until you fully understand its mechanism Emulator Product Throughout this document the term emulator product shall be defined as the following products prod
95. e Break srrrrrnrnnrorrvennnnrrvrrvrnnnner 58 Displayed Contents of the System Status Window Software Break 59 Breakpoints Window Before Hardware Break Condition Setting 0 60 Condition Page Break Dialog Box cece eesceseeesseceeeeecnseceeneeeaeceeeeeenaeeeeeeees 61 Address Page Break Condition 1 Dialog Box rreronvvnorranennvnrrrrvennenerrrvennnnernr 62 Bus State Page Break Condition 1 Dialog Box rerenvvnrnrnvennvnrnrnvennenerravennnner 63 Break Dialog Box After Hardware Break Condition Setting eee 64 Breakpoints Window Break Condition 1 Setting orrnrnronrvnorrnvrnnnrrrrrvrnnnnenn 65 Source Window at Execution Stop Break Condition I rrennvnrrrrvennvnerrrvenvnnernr 66 Displayed Contents of the System Status Window Break Condition 1 67 Configuration Dialog Box Sequential Break Setting oornvrrnvrrnrrrvrvrrrvernvvrne 69 Breakpoints Window After Sequential Break Condition Setting 70 Source Window at Execution Stop Sequential Break oornrnronrnnrnnnnrrrrnennnnner 71 Displayed Contents of the System Status Window Sequential Break 72 Trace mode Window e sccc sccdcs ssccccscis decent ena e cad eae EEE sauce 75 Trace Window ereronnrvvrrennvnrrornnvnrrnnrnvsrsnnvsrrssnnvsrssnrnrssennvnrsssnnvsrssnrsesssnnrsssssnnssrsnnne 76 Trace mode Window ss lt sevsceces veh oslaveeccceschsacateweses cassssace
96. e Section 1 Overview gives the emulator overview e Section 2 Preparation before Use gives instructions for first time users such as preparation before use and system connection e Section 3 Tutorial describes HDI operating examples e Section 4 Descriptions of Windows describes HDI windows for operating the emulator e Section 5 Command line Functions describes how to input HDI commands and command types e Section 6 SHxxxx E10A Emulator Specifications describes the features of the E10A emulator for each MCU Section 7 describes the important information of the E10A emulator according to emulator products Read these sections before using the E10A emulator The HDI installation disks are provided by the CD R Refer to the descriptions in the manuals of the host computer or operating system RENESAS Related Manuals e SuperH RISC engine C C Compiler User s Manual e SuperH RISC engine Assembler User s Manual e SuperH RISC engine C C Compiler Assembler Optimizing Linkage Editor User s Manual e H Series Linkage Editor Librarian Object Converter 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 is a registered trademark of International Business Machines Corporation 2 Microsoft Windows and Windows NT are registered trademarks of Microsoft Corporation in the United States and or other countries Micro
97. e count Oh Omin 0s 16ms Emulation mode Norma I Big endian AUD Exist 4 Session Platform Memory 4 Events S 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 RENESAS 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 RUNNING Being executed Break Stopped Cause of last break Displays the cause of the emulator stopping at break In this example the cause of the stop is BREAK POINT Run time count Displays the program execution time The display format is h hours min minutes s seconds and ms milliseconds In this example Oh Omin 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 D
98. e online help function 2 Interrupts During user program execution or in command input wait state any interrupt to the SH7750R can be used Whether or not to process interrupts during user program break can be specified When no interrupt is processed during user program break While the emulator is executing the user program or is in command input wait state interrupts are not processed generally However if an internal interrupt or an edge sensitive external interrupt occurs in command input wait state the emulator holds the interrupt and executes the interrupt processing routine when the GO command is entered When interrupts are processed during a user program break Use the INTERRUPT command to execute an interrupt during a user program break This function is supported only with the command lines e Execute only non maskable interrupts NMI e Sets the priority and executes only interrupts with high priority Notes 1 When interrupts are accepted during user break user interrupt processing is not traced In this case continuous trace cannot be enabled 2 Use the NOP instruction at the delay slot after the RTE instruction in the interrupt handler 3 Ifa user interrupt is inserted while the user program breaks until the processing ends do not set a BREAKPOINT in the interrupt handler The emulator may generate a Communication Timeout error Use the Break Condition function 4 For details on window function and command line sy
99. easures 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 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 res
100. ed 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 you are using 2 2 1 Installing under Windows 95 and Windows 98 Operating Systems 1 When the emulator is a PCI card 1 Install the HDI
101. eerrnennnnerrrrsnneneerssennenennn 119 4 2 6 Break Condition Dialog Box Pages eee eeeeeceeeceeeceseceaecsaecnaesseeeaeeenes 121 J2 7 Pr ce WandOw essnee eet lee So eae cd ele sine ne 133 4 2 8 Trace Acquisition Dialog Box srernrernvenvvrvvvrvvrrvrrrvrrerrverarerarvrnrnrerveervernvernvennee 135 4 2 9 System Status Window eenrronvrnnorrnnnnrnvennnenrreennnneerrnennnnerrrnennenesrasennnnerrrvenneneern 138 Section 5 Command line Functions qegnmsmmmtemmseisteemv viv 141 5 1 Table and Symbol Description saronarornnvrnvvrnvvrnrnvnrnnnnvvnnvnnnvrrnvrrnvernsrersvvrarvrnerreenensneevnee 141 SL Form ksusness ects tae vies Rae KEE EE E E 141 5 12 Parameter Input is iniisssssrebiirpeslietibridsnleni eddik ebkebbdsssenstaelakasskreaskern 141 5 13 Examplesuusanonsstehbmrlsmnnelubuih r dnlsennitalevu nt 142 DAA Related tems unnruararsemasrdesse sten 142 52 Command Descriptons ivs m erenrsserisvrrsrrievreknsnnsenrranersnsekassrneekessennekenennreneskdseakepvekee 143 521 AUD CLOCK AUCE sa cs icsisscettenetuicascnctentionst dacs E EE EEE EEEE EE ORE ER EE 145 5 22 AUD MODE AUM civieess cis iecseeie ot eseina oaren s s eA EErEE E EN E E AEE ees 147 5 2 3 AUD TRACBAUT musserende ae o E EEE EE EESTE ESSEE benkene ard 149 5 24 BREAKCONDITION_CLEAR BCC ururarernvernvvvnvvvnrvvrnvvrnvervevrnerrrrversevrerrrevrseeneer 151 5 25 BREAKCONDITION DISPLAY BCD esrornnernvnvvvnvevnverrvrrevrversverarvrnvvrnrenveennee 152 5 2 6 BREAKCON
102. en 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 lt Drive gt DRIVERS PCI 2000 When using the PCMCIA card emulator lt Drive gt DRIVERS PCMCIA 2000 lt Drive gt is the CD ROM drive name RENESAS 2 3 Connecting the 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 95 Windows 98 or Windows 2000 be sure to install the HDI before putting the card emulator in place Host computer PC with the PCMCIA TYPE II slot PCMCIA card emulator mar y BDIDDDDAADAD DAD AAAI A ETES fel lla EG LEE fe EE J 7 Insert into the PCMCIA TYPE II slot Figure 2 2 Ins
103. enrneevvessvervvevsvesnn 134 Trace Acquisition Dialog Box Page Options rervnnrnrnvnnnvnvevvnrnvnrvvnrvvrrnrrrrsveravvreee 135 Trace mode Page Options neiseina cisini onnea AR E EERE EN EEROR 137 System Status Window Display Items esoervvrnnvrrnrrerrnvvrnvnrevnvnrvvvrnrrrvraevrernrernvennee 139 EF10A HDI Commands sveise oirionn aaraa ine ea n E ERE EE 143 AUD_CLOCK Command Parameter sererererernrnrnnernrnrnrnverevereverevereverevereverevererererererer 145 AUD MODE Command Parameter esererararnrnrernrererevereverevereverevererereverevereverererereserer 147 AUD TRACE Command Parameter esrannnnnnrnnnnnnnrnnnrnnnrnnnrsnsrsnnrnnnnssnssnsssssssnsssnnnnneee 149 RENESAS Table 5 5 Table 5 6 Table 5 7 Table 5 8 Table 5 9 Table 5 10 Table 5 11 Table 5 12 Table 5 13 Table 5 14 Table 5 15 Table 5 16 Table 5 17 Table 5 18 Table 5 19 Table 5 20 Table 5 21 Table 5 22 Table 5 23 Table 5 24 Table 5 25 Table 5 26 Table 6 1 Table 6 2 Table 6 3 Table 6 4 Table 6 5 Table 6 6 Table 6 7 Table 6 8 Table 6 9 Table 6 10 Table 6 11 Table 6 12 Table 6 13 Table 6 14 Table 6 15 Table 7 1 Table 7 2 Table 7 3 Table 7 4 Table 7 5 BREAKCONDITION CLEAR Command Parameter sererarnrnrnnnrnrnverevererererererererer 151 BREAKCONDITION DISPLAY Command Parameter evrvrrrvvnvvnvvvevenvnvvvvevvvenevener 152 BREAKCONDITION ENABLE Command Parameters eserarararnrnrerernrerererererererer 153 BREAKCONDITION SET Command P
104. enu to cancel all the breakpoints 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 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 Oc0000c2 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 Figure 3 38 Point Page Break Dialog Box After Software Breakpoint Setting e Click the Close button or OK button in some emulator products 2tENESAS 57 The software breakpoint that has been set is displayed in the Breakpoints window Breakpoints Oo OP x File Line Symbol Type tutorial c 49 OC0000C2 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
105. erting the PCMCIA Card Emulator in the Host Computers Slot PCI card emulator S 4 000 Insert into the PCI slot ES 4 SA 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 WARNING When inserting the PCI 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 Hitachi UDI port connector must be installed to the user system Table 2 1 shows the recommended Hitachi UDI port connector for the emulator Table 2 1 Recommended Hitachi 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 connector is used do not install any components within 3 mm of the Hitachi UDI port connector When the 36 pin conne
106. ess 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 lt data gt 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 lt r w gt Keyword Bus cycle read write conditions Set either of the following keywords read read cycles write write cycles lt acCess gt Keyword Bus cycle access type dat execution cycles lt count gt Numerical value Set satisfaction count from 1 to H FFFF lt Idtlb 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
107. eveverevererereverererevererereverereser 179 VPMAP DISPLAY Command Parameter rervrnrvrnvrnnvnnnvnnnvnnvvnnnvnnnvrvnvvvvvevnvnvvvrenen 180 VPMAP ENABLE Command Parameter serererarnrnrnrnrnvererereverevereverevereverererererereser 181 VPMAP SET Command Parameters ererarnrnrnrerennrernrnreverevereverererevereverevereverererererer 182 Components of the Emulator HS7750RKCMOLH or HS7750RKCIO1H 183 Register Initial Values at Emulator Power On sreenrnrnvenvvrnvrrvvrrvrvevrverrveravvrnevserneevnee 188 Type Number and Driver soernornnnnnvnnnnnnvrrvvrrvvrrvrveraverarvrnevreevnesneevvesvvennvesvevsvsvsvsvevsven 191 Types of Break Conditions esnnrnnnvnvnvnnrvvrrvvrrvvrrvrveraverarvrnevrervnesveevvesvvennvessvrsvsvsvsvevssen 192 Dialog Boxes for Setting the Break Condition sernnvrnnorenrvernvernvvrnvvrnrnrernenvnnenvernvesnee 193 sequential Break Conditions osescscscese szvessensesesenessgerecusesveceveceitecssend conse a aerei a aes 194 Type Number and AUD Function esoornorrvvrrvvrrvrverrverarvrnvvreevrernrevveevvennvesversvrvsvsversver 198 Trace FUNCTIONS renorornrororonnnnrnvnrnrrnennnnnnnnenssnenennnnnnensnssnnnnnnnnnnsnssnsnsnnnnnnenssennennnnnsenenee 199 Measurement Conditions cccccccecessssssceceecsesseseceeececsesnsaececececeessaeseeeeeceesesssaeeeeecs 205 Performance Count Conditions cccccccccccccessssscecececsessssscecccecsenenseaeeeeeceesenssaeeeeees 207 Display St tususaeauuasadkle
108. f the instruction cache are disabled at execution completion 6 5 4 Notes on Using the JTAG Clock TCK The JTAG clock TCK which can be set in the Configuration window has a note as follows Set the JTAG clock TCK frequency to lower than the frequency of half of the SH7750R peripheral module clock CKP Note The SH7750R E10A emulator does not support the AUD function 197 RENESAS 6 5 5 Trace Functions The SH7750R E10A emulator does not support the AUD function Table 6 7 shows the emulator type number and AUD function Table 6 7 Type Number and AUD Function Type Number AUD Function HS7750RKCMO1H Not supported HS7750RKCI01H Not supported 198 RENESAS Table 6 8 shows the trace functions Table 6 8 Trace Functions Function Branch instruction trace Description Traces and displays the branch instructions The branch source address and branch destination address for the eight latest branch instructions are displayed There are three kinds of branch instruction trace Normal branch instruction trace Traces and displays the normal branch instructions The normal branch instructions are the BF BF S BT S BRA BRAF and JMP instructions To use this function select the Acquire normal branch instruction trace radio button in the Trace Acquisition dialog box Subroutine branch instruction trace Traces and displays the subroutine branch instructions The subroutine branch instructions are the BS
109. f the procedure used to set the clocks 29 RENESAS 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 be Emulation mode Normal og Step option Disables interrupts during single step execution v UBC mode EML Memory area io Normal Physical Virtual 51D D0 AUD clock five CPU clock v JTAG clock 4 1 25MHz v Driver Change 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 been completed dis
110. fying during user program execution 14 Performance Analysis Window This HDI does not support the Performance Analysis window described in section 13 9 Performance Analysis in the Hitachi Debugging Interface User s Manual 219 RENESAS 15 Load of Motorola S type Files This HDI does not support Motorola S type files with only the CR code H 0D 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 16 Memory Window If the following memory contents are displayed they will be incorrect Word access from address 2n I Longword access from address 4n 1 4n 2 or 4n 3 17 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 1 O0 I O Registers window Display and modification e Do not change values of the User Break Controller because it is used by the emulator e For each Watchdog Timer register there are two registers to be separately used for write and read operations Table 6 15 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
111. g 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 gt 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 gt mas virtual asid H 10 RET RENESAS 171 5 2 16 REFRESH RF Description Updates the HDI memory information Format EL Table 5 17 REFRESH Command Parameter Parameter Type Description None Example To update the HDI memory information gt rf RET 172 RENESAS 5 2 17 RESTART RST Description Restarts the emulator The settings of breakpoints 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 gt 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 Description None Example To display status informa
112. he 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 inti tutorial c JE min max Oc00006e fort i 0 i lt 10 i 0c000076 j rand Oc00007e if j lt 0 0c000082 j gt j I 0c000086 ali j 0c0000a2 sort a Oc0000aa min a 0 Oc0000ae hax a 9 Oc0000b2 min 0 OcO000b6 hax 0 0c0000ba change a OcO000c2 min a 9 0c0000c6 max a 0 Oc0000ca while 1 Figure 3 64 Source Window Software Break 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 the results of the measurements are displayed in the Profile List window Profile List Function Variable Address __INITSCT H ocooo0000 H 0000006c _rand H ocoooiF C H 00000020 change H 0C000194 H 00000062 H 0C0000DC H 000000BE H 0C0000D8 H 00000004 H 0C000060 H 00000060 Figure 3 65 Profile List Window 87 RENESAS e Figures 3 66 and 3 67 show the Profile Tree and Profile Chart windows respectively
113. ile value The measured value of this function should be the target Functions that cannot be used while the profile function is being used a Performance measurement function The profile function is implemented by using the performance measurement function described in section 6 5 7 1 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 Continuous trace function When the profile function is enabled do not use the continuous trace function that can be used in the internal trace function The profile data cannot be measured correctly 201 RENESAS e Internal trace function e 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 When the profile function is enabled do not use the internal trace 3 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 exec
114. in addition to the normal count conditions Table 6 10 Performance Count Conditions Event Instruction cache miss count Count Condition Target Mode e Includes instruction fetch for the cache off area EC to count the number of times the instruction has not been fetched in one cycle e When a cache miss occurs during an overrun fetch generated at exception TLB miss count When the TLB miss is canceled by an exception DT and ET having a higher priority than that of the TLB miss Instruction fetch count When the instruction fetch request by the CPU is EF and EA accepted Instruction issue count Counts two when two instructions are issued at the E same time Counts one to three when instruction fetch E and E2 exception instruction address error instruction TLB miss exception or instruction TLB protection violation exception occurs FPU instruction issue count e Counts two when two instructions are issued at EFP the same time e The following shows the FPU instructions LDS Rm FPUL LDS L Rm FPUL LDS Rm FPSCR LDS L Rm FPSCR STS FPUL Rn STS L FPUL Rn STS FPSCR Rn STS L FPSCR Rn Others instructions whose instruction codes begin with H Fxxx UBC satisfaction count Also counts when the emulator uses the UBC as UA and UB Break Condition 6 7 Pipeline freeze due to cache miss Includes the following freeze times PFCF and PFCD e At internal RAM or internal I
115. indow 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 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 Breakp
116. ings Read write condition Breaks when the SH7750R RD or RDWR signal level matches the specified condition Bus state condition Breaks when the operating state in an SH7750R bus cycle matches the specified condition LDTLB instruction break condition Breaks when the SH7750R executes the LDTLB instruction Internal I O break condition Breaks when the SH7750R accesses the internal I O Note For details on window function and command line syntax refer to the on line help function 192 RENESAS Table 6 5 lists the combinations of conditions that can be set under Break Condition 1 2 3 4 5 6 7 Table 6 5 Dialog Boxes for Setting the Break Condition Dialog Box Break Condition 1 Break Condition 2 Break Condition 5 6 Dialog Box 3 4 7 Dialog Box Dialog Box Address bus condition O O X Address Data bus condition O X X Data ASID condition ASID O O Xx Read write O O xX specification Data access O O X Before after execution O O X Sequential break O O X LDTLB instruction X X O break Internal I O break X X O Note O Can be set in the dialog box X Cannot be set in the dialog box Notes 1 Ifthe BL bit of the SR register is 1 do not use BREAKPOINTS 2 Ifa Break Condition or BREAKPOINT is set near an instruction that generates a manual reset a manual reset may be generated instead of a break Set a break for four instructions before the instruction that generates an ex
117. ints window with the right mouse 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 Delete Af Go to Source Figure 3 42 Breakpoints Window Before Hardware Break Condition Setting 60 RENESAS The Break dialog box is displayed To set hardware break conditions select Condition in the Break dialog box to display the Condition page Point Condition Break Condition Heset Reset All Cancel Apply Help 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 e Click the Edit button The Break Condition 1 dialog box is displayed 61 RENESAS e Clear the Don t Care check box in the Address page e Select the Address radio button and enter H 0c00005b2 as the value in the Address edit box Break condition 1 Ea Address Data ASID Bus state r Addres
118. io 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 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 O 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
119. ion 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 RENESAS When a driver is to be changed with the Change button the following message is displayed HDI EG This will cause your emulator to be reinitialised and you 2 re you sure you want to modify your driver settings will not be able to cancel any changes you make 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 RENESAS 2 E10A Driver Details Dialog Box Function Function When the
120. isplays 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 RENESAS 140 RENESAS Section 5 Command line Functions 5 1 Table and Symbol Description This section describes the format used in section 5 2 Command Descriptions The descriptions of some commands are given over two or more pages 5 1 1 Format The input format for each command is as follows Characters shown in bold italics are to be input Parameters enclosed by can be omitted lt gt Contents shown in lt gt are set lt gt The parameter to the left of the sign is input in the format shown to the right This represents a 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 p
121. l An interrupt with a lower level than the set value is masked and with a higher level than the set value is accepted Values H 0 to H FF are specified Notes 1 When the continuous trace mode has been selected a user interrupt cannot be accepted during emulator command execution or in the command wait state 2 When lt imask gt is omitted H 0 is set All external interrupts are accepted 234 RENESAS Examples 1 To set nonmaskable external hardware and peripheral module interrupts mask the external interrupt with a level lower than H E interrupt enable imask H E RET 2 To display the interrupt condition interrupt RET The display format is as follows gt interrupt interrupt enable imask H e 235 RENESAS 7 3 CPU Status Acquisition Function The following command supports the CPU status acquisition functions e Command CPUSTATUS abbreviation CS 7 3 1 CPUSTATUS Command Abbreviation CS Description Displays the CPU status Format cs lt optionl gt lt optionl6 gt lt option1 gt lt mode gt lt option16 gt lt mode gt 236 RENESAS Table 7 7 CPUSTATUS Command Parameter Parameter lt mode gt Type Keyword Description Selects the internal status to be acquired PC Acquires the PC value SR Acquires the SR register value FPSCR Acquires the FPSCR register value INTEVT Acquires the INTEVT register value EXPEVT Acquires the EXPEVT register v
122. l state When an ASID value is specified the BREAKPOINT is set to the virtual address corresponding to the ASID value The emulator sets the BREAKPOINT after rewriting the ASID value to the specified value and returns the ASID value to its original value after setting When no ASID value is specified the BREAKPOINT is set to a virtual address corresponding to the ASID value at command input 196 RENESAS 10 If a TLB error occurs during virtual address setting the following message box will be displayed HDI x N TLB ERROR EXPEYT 00000040 1 12 13 Figure 6 5 Message Box for Clearing a TLB Error If a program is executed again without clearing the BREAKPOINT set at the address in which the TLB error occurs a TLB error will occur again Accordingly clear the BREAKPOINT before execution An address physical address to which a BREAKPOINT is set is determined when the BREAKPOINT is set Accordingly even if the VP_MAP table is modified after BREAKPOINT setting the BREAKPOINT address remains unchanged When a BREAKPOINT is satisfied with the modified address in the VP_MAP table the cause of termination displayed in the status bar and the System Status window is ILLEGAL INSTRUCTION not BREAKPOINT 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 While a BREAKPOINT is set the contents o
123. lists the components of the emulator Table 6 1 Components of the Emulator HS7750RKCMO01H or HS7750RKCI01H Classi Quan fication Component Appearance tity Remarks Hard Card emulator y I HS7750RKCMO1H ware PCMCIA 14 pin type Depth 85 6 mm Width 54 0 mm PCMCIA Height 5 0 mm Weight 27 0 g HS7750RKCI01H or PCI 14 pin type Depth 144 0 mm Width 105 0 mm Mass 93 0 g PCI User system 1 HS7750RKCMO1H interface cable O PCMCIA 14 pin type Length 80 cm Weight 45 0 g HS7750RKCI01H PCI 14 pin type Length 150 cm Mass 86 0 g Soft SH7750R E10A 1 HS7750RKCM01SR ware emulator setup CD HS7750RKCMO1HJ program HS7750RKCMO1HE SH7750R E10A HS6400DIIW5SJ and Emulator User s HS6400DIIW5SE Manual and provided on a CD R Hitachi Debugging Interface User s Manual Note The length may be 50 cm according to the time for purchasing the product 183 RENESAS 6 2 Pin Arrangement of the Hitachi UDI Port Connector Figure 6 1 shows the pin arrangement of the Hitachi UDI port connector 14 pins CAUTION Note that the pin number assignment of the Hitachi UDI differs from that of the connector manufacturer Pin 1 mark Hitachi UDI port connector Top view gt Pin 1 mark Input SH7750R Pin No Pin No Signal Output BGA256 HQFP208 1 TCK Input A 5 198 pr TRST Input C 4 200 3 TDO Output A 6 194 4 2 ASEBRK Input B 7 193 BRKACK Output 5 T
124. m the Memory menu the Memory Load function can be used although it takes time to download It is recommended that the File Load function Load Program selected from the File menu is used to load the S type file Note The File Load function deletes the debugging information of the previously loaded program When other load modules are loaded after the program to be debugged has been loaded use the following sequence 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 218 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 comma
125. main Oc00006e 0c000076 0c00007e 0c000082 0c000086 0c0000a2 Oc0000aa Oc0000ae 0c0000b2 0c0000b6 Oc0000ba Oc0000c2 Oc0000c6 Oc0000ca Source void main void long a 10 long j int 1 min max fori 1 0 1 lt 10 i jf j rand if j lt Of J j 0 change a min a 9 max a 0 while 1 Max 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 RENESAS 35 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 Fei tutorial c OF x Line Address BP Label Source Oc000060 main void main void long a 10 long j int i min max 0c00006e for 1i 0 i lt 10 i OcOO00076 j rand 0c00007e iff j lt O 4 0c000082 j j 0c000086 Oc0000a2 9 Oc0000aa Oc0000ae Oc0000b2 Oc0O000b6 hax 0 Oc0000ba change a OcO000c2 min a 9 O
126. measurement conditions Table 6 9 Measurement Conditions Measurement Condition Mode Description Operand access count OAR The number of times the operand access is performed on the cacheable area when the cache is enabled read access only OAW The number of times the operand access is performed on the cacheable area when the cache is enabled write access only OARW The number of times the operand access is performed on the cacheable area when the cache is enabled both read and write accesses OARAM The number of times the internal RAM area is accessed OA The number of all operand accesses Internal I O access count IOA The number of times the internal I O is accessed Cache miss count DCR The number of times operand cache misses occur at data reading DCW The number of times operand cache misses occur at data writing DCRW The number of times operand cache misses occur at data reading or writing EC The number of times instruction cache misses TLB miss count DT The number of times UTLB misses occur at data access ET The number of times UTLB and ITLB misses occur at instruction access Instruction fetch count EF The number of times instructions are fetched from the cacheable area when the cache is enabled EA The number of times all instructions are fetched Branch count B The number of times branch instructions are issued instructions to be counted BF other than
127. 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 Loading flash memory C Disable fe Enable Erasing flash memory C Disable fe Enable Eile name C HDICE fmtool Fmtool mot Browse Bus width of flash memory 32 bit bus width v Flash memory erasing time D 3 minute Entry point All erasing module address H OC001 000 Writing module address H 00001100 Figure 3 70 Loading flash memory Page RENESAS 93 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 the flash memory area 94 RENESAS 3 23 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 Hita
128. mulator or PCI card emulator hereafter referred to as the card emulator which is the main unit of the emulator is connected through the Hitachi UDI user debug interface port to the user system The user system can be debugged under the conditions similar to the 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 Hitachi UDI is an interface compatible with the Joint Test Action Group JTAG specifications Host computer PC with PCMCIA TYPE II slot PCMCIA card emulator man pr U FE a EP LETT a fE HE ser system interface cable ES g Ss SHxxxx Insert into the PCMCIA TYPE II slot t Connect to the Hitachi UDI port connector User system Figure 1 1 System Configuration with the Emulator PCMCIA Card Emulator Used RENESAS User system interface cable PCI card emulator SHxxxx 4 Insert into the PCI slot e REN User system Host computer FT Figure 1 2 System Configuration with the Emulator PCI Card Emulator Used The emulator provides the following features Excellent cost performance card emulator
129. n 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 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 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 Trace mode T
130. nal 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 prp gd i RY 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 hitachi co jp Sicd English Products micom dev env tool eml e10a she10aqa htm 2 If the user system interface cable is disconnected to the Hitachi UDI port connector on the user system during user program execution the following dialog box will be displayed HDI AN 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 system and the reset pin HDI Can not find RESET signal Please
131. nction which declares five local variables a j i min and max e Select Locals from the View menu The Locals window is displayed Initially the Locals window is empty because local variables have not yet been declared The Locals window will now show the local variables and their values Locals lel Es Value f OxOcO000bd8 long 10 D 18355 I OxOcO000bd4 long D 10 OxOc000bdO int D 512 Ox0c000bec int D 28607 Ox0cO00bc8 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 53 RENESAS 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 m
132. nd file so that the current directory alteration is not affected Example FILE LOAD C HEW HDIS E1OAW7750R TUTORIAL TUTORIAL NDEBUGNTUTORIAL ABS 9 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 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 11 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 12 Select Function Dialog Box This HDI does not support BREAKPOINT setting in the Select Function dialog box described in section 10 Selecting Functions in the Hitachi Debugging Interface User s Manual 13 Memory Save During User Program Execution Do not execute memory save or veri
133. nge 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 refer to the online help Click the OK button and close the Configuration dialog box RENESAS 69 Set hardware break conditions as follows Break condition 1 When address H 0c0000c6 is accessed in a read cycle a break condition is satisfied Break condition 2 When address H 0c0000b2 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 Of OP x ynbol Type tutorial c 50 OC0000C6 Break condition 1 tutorial c 46 OC0000B2 Break condition 2 Figure 3 51 Breakpoints Window After Sequential Break Condition Setting e 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 Fei tutorial c OP x Line Address BP Label 41 0c000086 afi 3 43 0c0000a2 sort a 44 0c0000aa min a 0 45 Oc0000ae max a
134. ntax refer to section 7 or the online help function 209 RENESAS 3 CPU status acquisition The emulator can display the SH7750R status during user program execution in realtime It displays the items selected in the Configuration dialog box in the Status window during user program execution When the PC value or STATUS pin state is selected it is also displayed on the status bar The emulator can display the state of the moment when a command is input for the specified register through the command line function Notes 1 This function is valid only during user program execution If this function is used during a user program break an undefined value is displayed 2 A read value during reset is not guaranteed 3 In the sleep or deep sleep mode only the STATUS or FRQCR can be read 4 The display is updated in the 100 ms interval Table 6 11 shows the details of the items that can be displayed Table 6 11 Display Status Item Example Description PC H A0000104 Displays the PC value SR H 000000FO Displays the SR register value FPSCR H 000000FO Displays the FPSCR register value INTEVT H 00000100 Displays the INTEVT register value EXPEVT H 00000600 Displays the EXPEVT register value FRQCR register H 00000102 Displays the FRQCR register value MMUCR AT H O Displays the AT bit value in the MMUCR register ASID H 01 Displays the ASID value in the PTEH register CCR H 00000001 Displays the CCR
135. oints window Break dialog box RENESAS 159 5 2 9 BREAKPOINT_CLEAR BC Description Clears software breakpoints that have been set Format be 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 lt space gt 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 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 gt be H 1000000 space virtual RET To clear the software breakpoint at virtual address H 1000000 whose ASID value is H 10 gt be H 1000000 space virt
136. on Page 6 5 3 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 Accordingly it can be set only to the internal RAM area However a BREAKPOINT cannot be set to the following addresses e An address whose memory content is H 003B e An area other than the CSO to CS6 areas and the internal RAM area e An instruction in which Break Condition 3 is satisfied e A slot instruction of a delayed branch instruction In addition do not perform memory write BREAKPOINT or download even if the memory space can only be written by the MMU 195 RENESAS During step execution a BREAKPOINT is disabled 4 Conditions set at Break Condition 3 are disabled when an instruction to which a BREAKPOINT has been set is executed Do not seta BREAKPOINT to an instruction in which Break Condition 3 is satisfied 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 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 When the Normal option is selected in the Memory area group box in the General page of the Configura
137. only debugging information IV Load stack information file SNI 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 lt Module name C HewHdiStE 108 xxx tutorial tutorial D ebug tutorial abs Areas loaded OCO00000 OC00023F 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 winfaves ea amp initsct c E tutorial c File name tutorial c Files of type fc Files c inl v Cancel Z Figure 3 8 Open Dialog Box e Select tutorial c and click the Open button The Source window is displayed 34 RENESAS MN tutorial c Line Address BP Label Oc00006c
138. ons of the HDI are described in section 4 Descriptions of Windows Numbers in figure 3 2 indicate the following 1 Menu bar Gives the user access to the HDI commands for using the HDI debugger 2 Toolbar Provides convenient buttons as shortcuts for the most frequently used menu commands 3 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 o
139. ot been satisfied BC4 0 When Sequential break condition 4 3 2 1 is selected this bit is 1 when Break Condition 4 has been satisfied and Break Condition 3 has not been satisfied It is also 1 when Break Condition 4 is satisfied again after Break Condition 3 has been satisfied BC3 0 When Sequential break condition 4 3 2 1 and Sequential break condition 3 2 1 are selected this bit is 1 when Break Condition 3 has been satisfied and Break Condition 2 has not been satisfied It is also 1 when Break Condition 3 is satisfied again after Break Condition 2 has been satisfied 212 RENESAS Table 6 11 Display Status cont Item Example Description Condition match BC2 0 When Sequential break condition 4 3 2 1 Sequential flag for sequential break condition 3 2 1 and Sequential break condition 2 1 break cont are selected this bit is 1 when Break Condition 2 has been satisfied and Break Condition 1 has not been satisfied It is also 1 when Break Condition 2 is satisfied again after Break Condition 1 has been satisfied Window function During user program execution select the check boxes in the Read status group box of the Configuration dialog box for the items that are to be always displayed Configuration General Mode fure Emulation mode Norm o Step option Disables interrupts during single step execution UBC mode Break condition 6 x Memory area Normal Physical Virtual ASID D0 AUD clock f
140. 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 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 Hitachi s SH7751 CPU board type number HS7751STCO1H A sample is provided in the Fmtool folder in the installation destination folder Create the program for user specification 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 O1FFFFFF 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 FIA bus buffer A2 A24 cso CS2 RD FPGA 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
141. owing branch instructions e The BF and BT instructions whose displacement value is 0 e Branch to H A0000000 by reset RENESAS 9 When the Acquire continuous trace check box is selected and when either the Get trace information of internal I O area radio button internal I O trace enabled or the Get trace information of LDTLB instruction radio button is selected LDTLB instruction trace enabled with the Break Condition 5 dialog box e An internal I O trace cannot be made with the Step In function e The LDTLB instruction and internal I O trace cannot be performed with the Step Over function 10 When continuous trace is used do not enable user interrupt by the INTERRUPT command during the emulator command wait state or user program execution 11 In the SH7750R E10A emulator the contents of the SGR register are lost when the user program breaks Since the user program execution stops at constant intervals while the continuous trace is selected the contents of the SGR register will be lost Accordingly do not use the continuous trace for a program in which an SGR value is referred to with the interrupt handler 6 5 6 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 the function also counts when the measured item is generated at break or re execution an error will be included in the measured prof
142. ox 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 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 RENESAS 1 Address Page Break Condition Dialog Box Function This page sets the address bus conditions Window Break Condition 1 x Address Data ASID Bus State Count Address I Don t Ca
143. p Help 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 RENESAS 6 General Page Break Condition Dialog Box Function This page sets the conditions for Break Condition 3 Window Break Condition 3 Figure 4 17 General Page Break Condition Dialog Box 131 RENESAS 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
144. pdate the version of Windows 95 28 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 29 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 30 Note on Using the Run program Dialog Box When Run is selected from the Run menu to specify the stop address there is the following note When the BREAKPOINT that has been set as Disable is specified as the stop address note that the BREAKPOINT becomes Enable when the user program stops 222 RENESAS 31 Memory Test Function This product does not support the memory test function which is used by selecting test from the memory menu 32 BREAKPOINT Setting for SLEEP Instruction When a break is set for the SLEEP instruction use the Break Condition not the BREAKPOINT 223 RENESAS 224 RENESAS Section 7 Specific Commands of the SH7750R E10A Emulator 7 1 Performance Measurement Function The performance measurement function has the following three commands e Measurement result display initialization command PER
145. play 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 EEE H 0c000000 Cancel Format Byte Figure 3 4 Open Memory Window Dialog Box e 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 Proeram H O G Cancel Eile name C hew hdi5 e1 Oa XXXX tuto rial tuto rial De bug t v Browse I Load
146. ponsibility for any damage liability or other loss rising from these inaccuracies or errors Please also pay attention to information published by Renesas Technology Corporation by various means including the Renesas Technology Corporation Semiconductor home page http www renesas com When using any or all of the information contained in these materials including product data diagrams charts programs and algorithms please be sure to evaluate all information as a total system before making a final decision on the applicability of the information and products Renesas Technology Corporation assumes no responsibility for any damage liability or other loss resulting from the information contained herein Renesas Technology Corporation semiconductors are not designed or manufactured for use in a device or system that is used under circumstances in which human life is potentially at stake Please contact Renesas Technology Corporation or an authorized Renesas Technology Corporation product distributor when considering the use of a product contained herein for any specific purposes such as apparatus or systems 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 li
147. psed time measurement in the lt mode gt item and count using the ratio of the CPU operating clock to the bus clock in the lt clock gt item in channel 1 ps channel 1 mode tm clock bus RET 2 To set the elapsed time measurement in the lt mode gt item count using the ratio of the CPU operating clock to the bus clock in the lt clock gt item and set the measurement start and end at the satisfaction of Break Condition 4 in the lt range gt item ps channel 2 mode tm clock bus range u RET 233 RENESAS 7 2 Interrupt Enable Disable Function During User Program Break The following command supports the enable disable function during user program break e Command INTERRUPT abbreviation IR 7 2 1 INTERRUPT Command Abbreviation IR Description Sets or displays interrupt conditions during user program break Format Displays interrupt conditions rE Sets interrupt conditions ir lt interrupt_enable gt lt imask gt lt imask gt imask lt imask gt Table 7 6 INTERRUPT Command Parameter Parameter Type Description lt interrupt_enable gt Keyword Specifies acceptability of nonmaskable external hardware and peripheral module interrupts disable Does not accept nonmaskable external hardware or peripheral module interrupts enable Accepts only nonmaskable interrupts lt imask gt Numerical value Enables acceptance of external hardware and peripheral module interrupts and sets the interrupt mask leve
148. ptions 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 RENESAS 4 2 5 Break Condition Dialog Box Function This dialog box sets hardware break conditions Window Break Condition 1 EG Address Data ASID Bus State Count Address M Don t Care Address Only program fetched address Only program fetched address after C X Bus address C Y Bus address Address H 4q Nonusermask User mask Note Figure 4 11 Break Condition Dialog Box 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 RENESAS 119 Description The Break Condition dialog
149. put from the user system 185 RENESAS 6 3 User System Interface Circuit The emulator is connected to the user system via the user interface cable Figure 6 2 shows the user system interface circuit of the emulator HS7750RKCMOLH JTAG controller EPF6016ATC144 2 3Vcc To user system 74LVT244 4 719 TDO TCK TMS TD TRST RESET 3Vcc 74LVT125 ERS AY ASEBRK YA Figure 6 2 User System Interface Circuit HS7750RKCM01H Model Name HS0005KCM03H 186 RENESAS Figure 6 3 shows the user system interface circuit of the emulator HS7750RKCIO1H JTAG controller EPF10K10QC208 3 3Vcc To user system 74LVT244 47kQ TDO 74LVT244 4 7kQ 222 AY TCK 3Vcc 74LVT244 4 7kQ 229 A Y Wwv TMS 3Vcc 74LVT244 4 7kQ TDI 3Vcc l 4 7kQ Q Z TRST 3Vcc I 4 7kQ RESET 3Vcc 74LVT125 ae 22Q mar ASEBRK YA Figure 6 3 User System Interface Circuit HS7750RKCI01H Model Name HS0005KCI03H 187 RENESAS 6 4 Differences between the SH7750R and the Emulator 1 When the emulator system is initiated it initializes the general registers and part of the control registers as shown in table 6 2 Table 6 2 Register Initial Values at Emulator Power On XFO to XF15 2 The emulator uses the Hitachi UDI do not access the Hitachi UDI by the user program 188 Register Emulator at Power on RO_BANKO to R7_BANKO H 0
150. r GPU clock v JTAG clock 41 25MHz v Read status IV PC MW SR VW FPSCR M INTEVT VW EXPEVT T FROGR MMUGRAT rT ASID CCR MV SBUS VW EBUS SBTYPE I EBTYPE V STATUS IV Condition match flag Condition match flag for sequential break Driver Change Cancel UpdatetA Help Figure 6 8 Configuration Dialog Box 213 RENESAS The items that have been selected are displayed in the System Status window Item Status Connected to SH7750R EL0A Emulator E104 PC Card Driver3 CPU SH7750R Run status Break Cause of last break Run time count OH 0M 0S 0MS Emulation mode Normal Little endian AUD None CPU status PC H 00000000 SR H 00000000 FPCSR H 00000000 INTEVT H 00000000 EXPEVT H 00000000 FRACR H MMUCR AT H ASID H SBUS H 00000000 EBUS H 0000000 SBTYPE B EBTYPE B STATUS B OO Condition match flag 4 0 B 0 BC4 0 BC3 0 BC2 0 BC1 0 Condition match flag for sequential break A BCY BC3 BC2 Figure 6 9 System Status Window Notes 1 CPU status acquisition function Condition match flag 214 The Break Condition function clears the condition match flag after a break occurred Therefore note that there are following limitations on measurement of this function Break Condition 1 4 Has meaning when it is used as the measurement start end condition in the performance measurement function In other cases it has no me
151. r according to the product For the settings for each product refer to the online help 102 RENESAS 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 The 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 translat
152. race type C AUD trace AUD model fe Realtime trace Non realtime trace AUD mode fe Trace continue fo Trace stop AUD trace display range Start pointer End pointer 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 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 execution is completed E Trace 16 records no filter 000014 000013 000012 000011 000010 000009 000008 000007 000006 000005 000004 000003 000002 000001 000000 IP D 000007 D 000006 D 000005 D 000004 D 000003 D 000002 D 000001 D 000000 BRANCI OCOOO1F4 DESTII 0C0001D0 BRANCI OCOOO1F4 DESTII 0C0001D0 BRANCI OCOOO1F4 DESTII OCO001D0 BRANCI OCOOO1F4 DESTII OC0001D0 BRANCI OCOOO1F4 DESTII 0C0001D0 BRANCI OCOOO1F4 DESTII 0C0001D0 BRANCI OCOOO1F4 DESTII 0C0001D0 BRANCI OCOOO1F8 DATA MNEMOJOPERAND BF amp H C0001D0 L R15 R1 H C0OOOLDO L R15 R1 amp H C000100 L GRIS R amp H C0001D0 L GR15 R1 H COO001D0 L R15 R1 H CcOO01D0 L R15 R1 H 000100 L R15 R1 a i a i a i a i a i a i a i DESTII OC0000C2 L CH 34 4 R15 R2 min a 9 Figure
153. radix in the Register dialog box is hexadecimal irrespective of the Radix display When a radix other than a hexadecimal is input specify the prefix code such as B After the value has been input in the Register dialog box the Radix setting is changed to hexadecimal When the radix other than a hexadecimal is used as a default reset the Radix display BREAKPOINT Session file When the BREAKPOINT address set in the session file is H 0 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 All 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 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 an
154. rameter 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 lt option gt 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 according 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 gt AUD CLOCK RET AUD CLOCK 15MHz Related Item Configuration dialog box 146 RENESAS 5 22 AUD MODE AUM Description Sets or displays AUD trace acquisition conditions Format aum lt optionl gt lt option2 gt lt optionl gt mode lt mode gt lt option2 gt full lt full gt Table 5 3 AUD MODE Command Parameter Parameter Type Description
155. re Address C Only program fetched address C Only program fetched address after C X Bus address C Y Bus address Address H 4q Nonusermask User mask Mest E Cancel Apply Help 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 Option 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
156. re 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 log on with an administrator level user name The hardware is now recognized and the driver is automatically installed 2 Wh
157. reak Condition list Displays the Break Condition settings box The display at system initiation is as follows When conditions are set Enable is displayed When no conditions are set Empty is displayed 1 Empty setting of Break Condition 1 2 Empty setting of Break Condition 2 Edit button Changes the Break Condition settings selected in the Break Condition list box Clicking this button displays the Break Condition dialog boxes Reset button Clears the Break Condition settings selected in the Break Condition list box Reset All button Clears all Break Condition settings in the Break Condition list box Related Commands BREAKCONDITION CLEAR command BREAKCONDITION DISPLAY command BREAKCONDITION ENABLE command BREAKCONDITION SET command 116 RENESAS 4 2 4 Break Point Dialog Box Function This dialog box sets software breakpoints Window Break Point x Address r Address Value H58 fe Normal C Physical Space C VitualSpace 49 5 Cancel Bop Help 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 RENESAS 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 Table 4 11 Address Page O
158. 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 X Bus address radio button Y Bus address radio button Description All pages can be selected and masks can be set and Only program fetched address 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 RENESAS 2 Data Page Break Condition Dialog Box Function This page sets the data bus conditions Window Break Condition 1 Ed Address Data asiD Bus State Count I Don t Care Value H1 2000000 C Byte Wore Long Bus data Y Bus data 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 RENESAS Description Table 4 16 Data Page Options Option Don t Care check box
159. rformance measurement results are displayed Examples 1 To initialize all performance measurement results pa mode init RET 2 To initialize the performance measurement result of channel 1 pa channel 1 mode init RET 3 To display the performance measurement conditions that have been set and the performance measurement results pa RET The display format is as follows gt pa CHANNE PAI PA2 a NAME OARW OA b COUNT RANGE RESULT c G 000000000017 CB U 000000000057 c d e a Measurement channel name PA1 PA2 b Optional name of items to be measured c Count methods C Counted using the CPU operating clock CB Counted using the ratio of the CPU operating clock and bus clock d Measurement start end conditions G Performs measurement during GO command execution 226 RENESAS U Performs measurement during satisfaction of Break Conditions 1 to 4 e Displays the measurement results for each measurement channel in hexadecimal 4 To display the measurement conditions that have been set the performance measurement results and the ratio of channel results to those of channel 2 pa mode ratel RET The display format is as follows gt pa CHANNEL NAME COUNT RANGE RESULT PA1 OARW o G 000000000017 PA2 OA CB U 000000000057 PA1 PA2 D 29 8 f Displays the ratio of the channel 1 and channel 2 results 227 RENESAS 7 1 2 PERFORMANCE C
160. rnrnrnrnrnnvvrrvrrrnrrevrnvvrnvnrnvnvennr 45 Step In BUON eaor crores peas eanan EE EErEE EEEE REARS HENT ESEAS Ka ESE 46 Source Window Step In e eee eeseeesscesseeceseeeeeecseeeeeneeceaeeeeneecseeeseneeceeeeeneeeeee 47 Step Out BUtlOM srine eana ea e E a e aE eE ES iEn E EEES SES 48 HDI Window Step Out rssonnonrnnonnvnerrnnennnnerrnnennnnerranennnnerranenneneeravennnnesrsssnneneene 48 HDI Window Step In gt Step In eonnnnnnrnnonnnnrnrnrennnnsnrnnenrnnsnrnsenrnssnrnsensnesnrssenr 49 Source Window Before Step Over Execution srrrrnnrnnrrnrnennvnnerrrvennnnrnnrnsennen 50 Step Over Button enrere oirean Esera Seea EE OEE EERE EE ENES Ni 50 HDI Window Step Over s mernanennnnerrrvennvnerrrnennnnerravennnnerranennenerrsvennenesravennenenns 51 Go Buttonusas anssnsssdenmsuakame aa ai a a iA Ea AEREE O AEEA EES 52 SOP BUOM ee e e A A E E 52 Locals Window nien e E A RES 53 Breakpoints Window Before Software Breakpoint Setting rrrrronrvnonrnvennnner 54 Point Page Break Dialog Box errnrrnrnronrnnnnrnrennnnsnrnvennnnsnrnvennnssnrnsennnnsnrasensener 55 Break Point Dialog Box rernrronnrnrenvnnsnrnrenrnnsnrnsennnnsnrnsennnnsnrnsennnssnrnsennnnenrsssnsnses 56 Point Page Break Dialog Box After Software Breakpoint Setting 57 Breakpoints Window Software Breakpoint Setting rrrrrrnronrnnrnrnvenvnnenrnvennnner 58 Source Window at Execution Stop Softwar
161. rupts except NMI NMI The number of NMI interrupts UBC satisfaction count UA The number of times channel A of the UBC is satisfied UB The number of times channel B of the UBC is satisfied Cache fill cycle count ECF The number of instruction cache fill cycles OCF The number of operand cache fill cycles Elapsed time count TM The number of cycles for elapsed time Pipeline freeze cycle count PFCF Pipeline freeze cycle due to instruction cache misses PFCD Pipeline freeze cycle due to operand cache misses PFB Pipeline freeze cycle due to branch instructions or exceptions Note The non cache operand accesses due to the PREF instruction or TLB c 0 do not count up 231 RENESAS The events can be counted even if the conditions shown in table 7 5 are generated in addition to the normal count conditions Table 7 5 Performance Count Conditions Event Instruction cache miss count Count Condition Target Mode e Includes instruction fetch for the cache off area EC to count the number of times the instruction has not been fetched in one cycle e When a cache miss occurs during an overrun fetch generated at exception TLB miss count When the TLB miss is canceled by an exception DT and ET having a higher priority than that of the TLB miss Instruction fetch count When the instruction fetch request by the CPU is EF and EA accepted Instruction issue count Counts two when two instructions are is
162. s Emulat ion mode Norma I Big endian AUD Exist 4 h Session Platform Memory Events S O 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 RENESAS 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 Of OP x Synbol Type 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 RENESAS 3 12 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 EE main Cancel Format Word Figure 3 17 Open Memory Window Dialog Box e Click the OK button The Memory window showing the specified area of memory is displayed Word Memory main Address Data V
163. s HETE SS NE SE re I Don t care Address Only program fetched address Only program fetched address after Address H 0c0000b2 Mask Non user mask v Cancel Apply Figure 3 44 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 62 RENESAS 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 x Address Data ASID Bus state poo o o a 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 RENESAS The newly set hardware breakpoint is displayed in the Breakpoints window With this setting Break Condition 1 is displayed in Type in the Breakpoints
164. s listed below Table 2 2 Contents of the CD R Directories Directory 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 Pdf_read Adobe Acrobat Reader Adobe Acrobat Reader is an application for setup program 2 9 Support 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 hitachi co jp Sicd English Products micom dev_env tool eml e 10a e10atop htm 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
165. sag ateses ees eee S E E ede 210 File Configurations of Sample Programs for Downloading to the Flash Memory sesseren aie ians a hie ieee eh es ase eds 215 Sample Program Specifications srernrnnnnnnvnrnvrrnvrrvvrrvrrenrverareranvrnevrarnrerveesveenvennvesner 215 Example of Board Specifications srerernrvrnnvrnnvrornrevvnevnvnnvervvrrnerevaveraverarvrnevrerneesnee 215 Watchdog Timer Registe se sense se cstescaessnssnseseteineensessesesecdsessneennsetedgerssnsepens s 220 PERFORMANCE ANALYSIS Command Parameter wervrvrvrvvrrnrvrnvrvnvevevnvnvrreveveer 226 PERFORMANCE CLEAR Command Parameter erererernrererernveverevereverererererererereser 228 PERFORMANCE SET Command Parameters erararavarareveveverevereverevereverevererererere 229 Measurement Conditions cccccccecessssssceccecsessseceeececsesesaececececeensaeceeeeeceesenseaeeeeecs 230 Performance Count Conditions cccccccccccccsessssececececeesssaececccecsesssnecesececeesenseaeaeeecs 232 xi RENESAS Table 7 6 INTERRUPT Command Parameter essnannnnrnnnnnnnrnnnnnnnnsnsrnnsrsnsrnnsrnnsrnnssnnsrsrssnnsrnnssnnr Table 7 7 CPUSTATUS Command Parameter eserararnrernnevnnnvnnnrnneverererevevevereveveverevevevereveveverer xii RENESAS Section I Overview The E10A emulator hereafter referred to as the emulator is a software and hardware development support tool for application systems using the microprocessor developed by Hitachi Ltd The PCMCIA card e
166. 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 RENESAS 1 Trace Mode Page Trace Acquisition Dialog Box Function This page sets the conditions for trace mode Window Trace A cqu isition Trace mode Trace type AUD trace AUD model Realtime trace Non realtime trace AUD mode2 fe Trace continue Trace AUD trace display range Start pointer D 8191 End pointer D O Cancel UpdatetaA Help Figure 4 19 Trace mode Page Trace Acquisition Dialog Box Note 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 RENESAS 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
167. snrnvenrnnsnrnsennnnsnrnsensnssnrnsennnnsnrssennnssnrsssnsener 117 Break Condition Dialog Box eenreronnnornrnvenrnnenrnrenvnnsnrnsennnnsnrnsenvnnsnrssennnnenrssensenenn 119 Address Page Break Condition 1 Dialog Box rnreronrnnrnrnvenvnnrnrrvennnnerrrvennnnenr 123 Data Page Break Condition 1 Dialog Box enrnrrnrnrennvnrrrnvenvnnenrrvenvnnerrseennenenn 125 ASID Page Break Condition Dialog Box rerenvvnonrnvenrvnrnrnvennnnenrnvennenenrssensener 127 Bus State Page Break Condition Dialog Box errrerenrnnrnrnvenvnnenrnrennnnenrnvennnner 128 Count Page Break Condition Dialog BOX eenrrrrnrnvenvnnrnrnvenvnnrrrrvenvnnerrreennnnenr 130 General Page Break Condition Dialog Box reerraronnvnrrrrvennvnerrrvennnnerrrvennenennne 131 Trace Window errrrnnrvverennrnrrrrnnvnrrnnrnvsrsnnrnrrssnnvsrsnnrnvsssnnrnrssennrsrssnrsrsssnnrsssssnnrsssnnnn 133 Trace mode Page Trace Acquisition Dialog Box eerrrrnnrnrenrnrnnrnvenrnnnnrnrensee 136 System Status Window sscesscscssexceyed cessceesvececnceessssescperscucetecacnsdeedecutecesensdeivecneterias 138 TLB Error Message Dialog arornnorvrrnvrnrvrnvvrnrnrnrnvnvnnnnvnnnvervvrrvevenrvevaveraveravvrnensevneeseee 176 Pin Arrangement of the Hitachi UDI Port Connector 14 Pins arrnrnnrnronrnnnnrnvennne 184 User System Interface Circuit HS7750RKCM01H Model Name HSOOOSKCMO3H c cccecssscecssseceeseececeesececseseeeeseneeeessseee
168. soft Windows 95 operating system is referred to as Windows 95 in this user s manual Microsoft Windows 98 operating system is referred to as Windows 98 in this user s manual Microsoft Windows 2000 operating system is referred to as Windows 2000 in this user s manual 3 Adobe Acrobat and Acrobat Reader are registered trademarks of Adobe Systems Incorporated 4 Other brand and product names are registered trademarks of each company RENESAS Contents Section DE TE ep 1 LL Waiho S eeror oi e aE KTE R EEE A RE E E E A ER EE 3 1 2 Environmental Conditions esvnrnvrrvvvrnvvrvrverrveraveravvrnenrervenvvnenvenneervvervenrvevevsserarvrasrasvnesnee 4 13 gt Components uguspdgrdmettedarskentetessenslessmseetekaaksidd 6 Section 2 Preparation before Use ic sossscsesenssdinsdaaseawsenasdternsastandosaiiecsdesnadieasseesdes 7 2 1 Emulator Preparati n sepoi aeia a a a i EE AE ENEE AEA Na S ini 7 2 2 HDLInStallattonssuuensusentvinsksismensinrstsjastenritinerbantsrelssnasntisttestadeseenesresskesndnde 8 2 2 1 Installing under Windows 95 and Windows 98 Operating Systems 8 2 2 2 Installing under Windows NT 4 0 Operating System 0 eee ee eeeeeeseeeeenees 9 2 2 3 Installing under Windows 2000 Operating System sornnvronorerrneravvrarvrnvvrnvnrnvnee 10 2 3 Connecting the Card Emulator to the Host Computer ssoervrrvvnnnvnrvvrvnvvrveveraveravvravvrnevrevneer 11 2 4 Connecting the Card Emulator to the User
169. ssenaees 186 User System Interface Circuit HS7750RKCIO1H Model Name HSOOOSKCIO3H 0 ccccccecsscecssneeceeseececeesaececseseeeeeeneeeesssaeeesseeaees 187 Condition Page nenen tine Rison he matinee ieee Ae 195 Message Box for Clearing a TLB Error mserernrerarvrevvrnrnvevvnnvvnnnvernvernvvsvsvensveraveseee 197 Condition Page s sesacc ca aise jeldecedic Nene Gisel ov A arched Aedes 203 PUD EMD Tal GS BOX Lee 204 Configuration Dialog Box eerrrornrnrnrevnvnvnvnnvnnnvvsvvrrnrrevrveraveravernevrnenenvveesvessvesnvesne 213 System Status Window sreronnvnrrronennvneerrvennnnerrrnennnneenrvennensersnsnnensersnsnnrnsensnsnnresensee 214 Flash Memory Wing ssusau iussjeadslrasiksnktiheieaduiekeiere 216 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 xX Environmental Conditions esoernrnvvrnnvvnnvnrvvrrnvrrvrveraveraveravvrnennnrneevvesvvesveerversvsrersverssen 4 Operating EnvirOnMments piecie seien iiceoe iiei e ea Anaa EAEE REE 5 Recommended Hitachi UDI Port Connector sssesssseessereeses
170. st 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 It is required to perform necessary settings on the Loading flash memory page in the Configuration window for downloading to the flash memory Configuration 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 rad
171. steesebessiatebenewesesdeseetde cases 77 Trace Window in the SH7751 E10A Emulator rrrnrororrnnrrvrrennvrrrsrrvvsrrnnrsrrrsnnnnr 78 Address Translation according to VP MAP Tables rannrnrnnnronnvnerrrvennnnerrrvennenernr 80 Source Window Software Breakpoint Setting rrrrrorrrnrnrnrennnnrnrnvennnnenrneennnner 82 Stack Trace WindOw 2 2 c2sc eccesscascecarsitevesscisdh duectevecds a EEE i E TS 83 Profile List Window 0 ccccccccccceessscecseneececseececesaececseseesesaueeecsesaeeecsesaeeesseeeeneaas 84 Selection of Enable Profiler c 0 cccc scsecseecciseasecoscessetcaceecticscosensesdossbeesseeceeeoss 85 Figure 3 63 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 20 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 Figure 6 10 Select Data Dialog Box rsroroororernreenevevsneveenvrernnvennvevsnnesnvsssnsvsnpvsssneessnrsssnsennrvere 86 Source Window Software Break Setting rronrnnrnrnvrnrvnnrnrenvnnenrnvennnnsnrnvennnnen 87 Profile List Window rrnnnnrronrrveronnvnvrnrnnvnrnnnrsnsrsnnvnrsssnnvnrsnnrnesrennvsssssnnnsrsnnrsssssnnnne 87
172. sued at the E same time Counts one to three when instruction fetch E and E2 exception instruction address error instruction TLB miss exception or instruction TLB protection violation exception occurs FPU instruction issue count e Counts two when two instructions are issued at EFP the same time e The following shows the FPU instructions LDS Rm FPUL LDS L Rm FPUL LDS Rm FPSCR LDS L Rm FPSCR STS FPUL Rn STS L FPUL Rn STS FPSCR Rn STS L FPSCR Rn Others instructions that the instruction code is H Fxxx UBC satisfaction count Also counts when the emulator uses the UBC as UA and UB Break Condition 6 7 Pipeline freeze due to cache miss 232 Includes the following freeze times PFCF and PFCD e At internal RAM or internal I O space access e At instruction or operand access without cache RENESAS Table 7 5 Performance Count Conditions cont Event Pipeline freeze cycle due to branch instruction or exception Examples Count Condition Target Mode Counts only one cycle at branch instruction PFB execution except when the delay slot instruction is executed with one cycle delay One instruction is executed in one cycle which is similar to the branch count When the instruction in the branch destination does not exist in the instruction cache the delay after the second cycle is counted by the ECF Inthe PFB all branch instructions can be counted 1 To set the ela
173. system in command input wait state they are not sent to the SH7750R Note Do not start user program execution while control input signals RESET MRESET BREQ and RDY are being low A TIMEOUT error will occur If the BREQ and RDY signals are fixed to low during break a TIMEOUT error will occur at memory access 5 Direct Memory Access Controller DMAC The DMAC operates even in the command wait state When a data transfer request is generated the DMAC executes DMA transfer 6 Internal I O Registers In the emulator the internal I O registers can be accessed from the I O registers window However pay attention 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 SH7750R IO and then activate the HDI For details on I O register definition files refer to the Hitachi Debugging Interface User s Manual Note As default SDMR2 and SDMR3 are specified in the I O register definition file as the area 2 SDMR register and area 3 SDMR register respectively 7 Memory Access during Emulation 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 189 RENESAS 9 Environment Host computer 1 G
174. t may result from applications based on the examples described herein 2 No license is granted by implication or otherwise under any patents or other rights of any third party or Hitachi Figures Some figures in this user s manual may show items different from your actual system Device names Sections to 5 in this user s manual use SHxxxx as an example of the device names Limited Anticipation of Danger Hitachi cannot anticipate every possible circumstance that might involve a potential hazard The warnings in this user s manual and on the emulator product are therefore not all inclusive Therefore you must use the emulator product safely at your own risk HII RENESAS SAFETY PAGE READ FIRST e READ this user s manual before using this emulator product KEEP the user s manual handy for future reference Do not attempt to use the emulator product until you fully understand its mechanism DEFINITION OF SIGNAL WORDS gt This is the safety alert symbol It is used to alert you to potential personal injury hazards Obey all safety messages that follow this symbol to avoid possible injury or death A DANGER DANGER indicates an imminently hazardous situation which if not avoided will result in death or serious injury A WARNING WARNING indicates a potentially hazardous situation which if not avoided could result in death or serious injury A CAUTION CAUTION indicates a potentially hazardous situation
175. tack 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 iF tutorial c OF x Line Address BP Label Source void sort long a long t int i j k gap Oc0000e0 gap 5 Oc0000e4 vi gap gt O jf Oc0000e8 for k 0 k lt gap k 1 Oc0000 0 for i k gap 1 lt 10 i i Oc0O000fc for j i gap j gt k 0c000108 ti ala al 0c0001209 t ali OcO0012a a j a j Oc00013e a j gap else 0c000150 break v L 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 li Stack Trace iof x Value sort long 0x0c000120 main Ox0cO000aa maing 0x0c0000aa maing 0x0c0000aa maing 0x0c0000aa maing 0x0c0000aa main 0x0c0000aa maing 0x0c0000aa maing 0x0c0000aa maing 0x0
176. ter SP in the same way Set H 0c000c00 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 El 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 inti tutorial c OF x Line Address BP Label main 0c000060 0c00006e 0c000076 0c00007e 0c000082 0c000086 Oc0000aa 0c00003ae 0c0000b2 Oc0000b6 Oc0000ba Oc0000c2 0c0000c6 Oc0000ca Source void main void long a 10 long j int 1 min max for 1 0 1 lt 10 i jf j rand if j lt 0 a BP 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 Connected to SHxx E104 Emulator E104 PCI Card Driver4 SH xxxx Run status Break Cause of last break BREAK POINT Run time count Oh Omin 0s 16m
177. ter Step Out In a for statement or a while statement executing a single step does not move execution to the next line To move to the next line execute two steps 3 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 4 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 5 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 217 RENESAS 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 fro
178. the Proeratiic c25cij ecco esha eects ie ai asa Qa ae eae 39 3 11 Reviewing Break points i ccsccsvesssdes csieces cusecssctoscastesrecsinesacsdenvanpestesscesncevecessbenaceaesdesevetes 41 3 12 Viewing MeMo sce ni cessiveessessentareteees Ase EE eee Aeneas pees doe aE 42 3 13 Weatchine Varablesunsiaususmssier dum a eae e EE E REE 43 3 14 Stepping Through a Program eronoronoverrvernvvrnvvrnvnrevvensvnrnververevevevsversverarvraenresveesvessvennvenne 46 3 14 1 Executing Step In Commard ssresvnnnvnnnvnnnvrrnrvenrveraveraveravvrnrvrnrnensvensvesveesveesvvesen 46 3 14 2 Executing Step Out Command ssoronorvnorernnvranvrnvvrnrnrnrnvevvnnsvennverversvrvrvrvevsversenn 48 RENESAS 3 15 Forced Breaking of Program Executions rsnrrvnrnvvrnvrnnvrrnvrrnevrrrvrrarvrnvrrnenenvneevneevveversveeeen 52 3 16 Displaying Local Variables sisi ccscc csessssesssnssaseienssenessnscsvscetsetesorosscesienbnapssouseavebessebsapeceanes 53 3 17 Break Function rRsgernsaessstm begeistre Jna kb astttdken 54 3 17 1 Software Break Function sooononnnnrnrenrnnrnrnvernnnnnrnnenennenrnsennnnsnrnsennnnsnrsvenvensvrssensen 54 3 18 Hardware Break Function eroronnonnorrvennvnernrnennnneerrnennnneerrnennnnserrnennnnenrsnennnnenrsnennenenrssenneser 60 3 18 1 Setting the Sequential Break Condition ronorronvrnvvrnvnrnrvnnrvvrnvennvernvrrnrvrrsversvrrere 68 3 19 Trace Functions uu semuevjelreh ve Kbtastubegtninelss arki 73 3 19 1 Internal Trace Function
179. the break condition is enabled or disabled BREAKPOINT Break Condition O If the address is the same as the one that has been set to the BREAKPOINT the mark is 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 RENESAS 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 button will display the Break dialog box enabling break conditions to be set Edit Changes break conditions Select bre
180. 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 ET OA PC Card Driver Details Interface PC Card Channel E10A PC Card Interface v Configuration Configure Help 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 PCT is displayed to use the PCI card emulator If the driver is not installed the PC Card or PCI is not displayed Click the Close button RENESAS 7 The HDI window is displayed and the dialog box is displayed as shown in figure 2 9 HDI AN Please Reset the user system and press lt Enter gt Key Figure 2 9 Dialog Box of the RESET Sig
181. tion dialog box a BREAKPOINT is set to a physical address or a virtual address according to the SH7750R MMU status during command input when the VPMAP_SET command setting is disabled The ASID value of the SH7750R PTEH register during command input is used When VPMAP_SET command setting is enabled a BREAKPOINT is set to a physical address into which address translation is made according to the VP_MAP table However for addresses out of the range of the VP_MAP table the address to which a BREAKPOINT is set depends on the SH7750R MMU status during command input Even when the VP_MAP table is modified after BREAKPOINT setting the address translated at BREAKPOINT setting is valid When the Physical option is selected in the Memory area group box in the General page of the Configuration dialog box a BREAKPOINT is set to a physical address A BREAKPOINT is set after disabling the SH7750R MMU during program execution After setting the MMU is returned to the original state When a break occurs at the corresponding virtual address the cause of termination displayed in the status bar and the System Status window is ILLEGAL INSTRUCTION not BREAKPOINT When the Virtual option is selected in the Memory area group box in the General page of the Configuration dialog box a BREAKPOINT is set to a virtual address A BREAKPOINT is set after enabling the SH7750R MMU during program execution After setting the MMU is returned to the origina
182. tion of the emulator gt sts RET Emulator Status Connected to SHxxxx E1OA Emulator E10A PC Card Driver CPU SHXXXX Run status Break Cause of last break BREAK POINT Run time count Oh Omin 0s 10ms Emulator mode Normal Big endian AUD 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 lt mode gt 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 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 220 TRACE DISPLAY TD Description Displays the acquired trace information The information to be acquired is the branch source and branch destination addresses when a br
183. tor 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 gt AUD_TRACE RET IP TYPE ADDR MNEMONIC OPERAND D XXXXXX BRANCH FKF DESTINATION 01000020 MOV L R1 R1 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 bec lt channel gt lt channel gt channel 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 gt bec RET To clear a hardware breakpoint set at channel 2 gt bec 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 Des
184. tsererrsrreresreeresrrrreseereee 12 Contents of the CD R Directories rmmernrernrvnnvvravvnvnvnvvnrvvervverversverersveraverarvraevnesvse 23 Tutorial Program Configuration and Parts 00 0 cece cee eeeeeeeeeeeeeeeeeeeeeeeceaeenaeenaes 25 Step 00 REE 46 Sequential Break Conditions srornrnnrnnnrnvnvenvnnnvrrnvvrnrrrvrveraveraveravvrervnevvessvnssvesveessvesen 68 AUD Trace Functions ieee e eae oae eE EEE EER EER 74 Address Translation Tables oenorrnornnoronrrvnrrenrveranvrnrvrnenrnrnenvnenvvennvenveesvsesnsvensverasereee 81 Mod le Interface usett deve cese chagesee roucests cases d smetnadn tdi teie AEREE EEE RE 89 Loading flash memory Page Options sernrnnnrnvnnnvvvnnvvrnvrrnvrrverrvrversveraverarvreesevnee 91 Example of Board Specifications ssorrnvrrnrrenrverrrvravvrnrnrnrvrnvnvevvennvernvesnerrnrvevsveravreee 92 Sample Program Specifications oernnrnvrrnvrrvvrvvvvereveranvrarvrnenrerneevvesnvennversvrsvsvsvsvevsren 93 HDI Window Menus and Related Manual Entries ornnornrorovrnrnrnvnvnvvvrrnrverrverrevnenvnee 97 Configuration Dialog Box Page srnrernrvrnvvrnrnrnrnnnvnvnnvnnnvervvreverevrversveraveravvrarnsesnen 101 General Page Optrons crc cicsacssevsenessecubccescos ieeusev sans EEE E AE AEE 103 Options for the E10A Driver Details Dialog BOX srrnvrrnvrrvvrrvvrrnrvvrrveravvravvrervrevnee 105 Loading flash memory Page Options sservnnnnvarnnnvnvnnvvnnvrrvvrrverrvrversversveravvrervsesneee 1
185. ual 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 lt 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
186. uced only by Hitachi Ltd excluding all subsidiary products e Emulator e User system interface cable The user system or a host computer is not included in this definition Purpose of the Emulator Product This emulator product is a software and hardware development tool for systems employing the Hitachi microcomputer This emulator product must only be used for the above purpose Limited Applications This emulator product is not authorized for use in MEDICAL atomic energy aeronautical or space technology applications without consent of the appropriate officer of a Hitachi sales company Such use includes but is not limited to use in life support systems Buyers of this emulator product must notify the relevant Hitachi sales offices before planning to use the product in such applications Improvement Policy Hitachi Ltd including its subsidiaries hereafter collectively referred to as Hitachi pursues a policy of continuing improvement in design performance and safety of the emulator product Hitachi reserves the right to change wholly or partially the specifications design user s manual and other documentation at any time without notice Target User of the Emulator Product This emulator product should only be used by those who have carefully read and thoroughly understood the information and restrictions contained in the user s manual Do not attempt to use the emulator product until you fully understand its mechanism
187. ule 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 O 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 RENESAS 4 2 2 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 RENESAS Description The Breakpoints window displays breakpoint setting information The items listed in the following tables are displayed Table 4 6 Breakpoints Window Display Items Item Description Enable Displays whether
188. unction Measures several performances such as the cache miss count e Interrupt enable function during user program break Accepts interrupts during user program breaks e CPU status acquisition function Monitors SH7750R statuses during user program execution For details refer to section 6 5 7 SH7750R E10A Emulator Useful Functions The SH7750R E10A emulator does not support the following function e AUD trace function 6 5 1 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 HS7750RKCMO1H E10A PC Card Driver 3 HS7750RKCI01H E10A PCI Card Driver 3 RENESAS 191 6 5 2 Break Condition Functions Break Conditions In the SH7750R E10A emulator seven break conditions can be set Break Condition 1 2 3 4 5 6 7 Table 6 4 lists the items that can be specified for each Table 6 4 Types of Break Conditions Break Condition Type Address bus condition Address Description Breaks when the SH7750R address bus value or the program counter value matches the specified value Data bus condition Data Breaks when the SH7750R data bus value matches the specified value Byte word or longword can be specified as the access data size ASID condition ASID Breaks when the SH7750R ASID value matches the specified condition Bus state condition Bus State There are two bus state condition sett
189. ure 3 17 Figure 3 18 Figure 3 19 System Configuration with the Emulator PCMCIA Card Emulator Used 1 System Configuration with the Emulator PCI Card Emulator Used 2 Emulator Preparation Flow Chart ssoesnnnnnnnnvnnvvrnvvnrnerenrrersverarvrarvraenresveevvesvennvesnee 7 Inserting the PCMCIA Card Emulator in the Host Computer s Slot errorrrnrnrnrnne 11 Inserting the PCI Card Emulator in the Host Computer s Slot eee 11 Connecting the User System Interface Cable to the User System when the 14 pin Straight Type Connector is Used senenvnrnvrrnvrrnrverrverrrvrnvvrnvvserveevnee 13 User System Example vene a a ie user rnefema direkte 14 Start Menu iciiccc ose cides ee ieisclee Aine ki sii Ai tdi ees 15 Select Session Dialog Box enrnrnrnvenvnrenrnnnnvnsenrnsnnrnserrennnrnsersnennnnsersvsnnnnsersssnnenennne 16 E10A Driver Details Dialog BOx rrreronrvnnnvnvenvnnnnvnrerrnnnnrnrerrnennnnserrvennenerrrnennnnennne 17 Dialog Box of the RESET Signal Input Request Message asvrrnrrorrnvvrnvvrnvvvnrvvrrn 18 HDI Status Baf nenies ae aE E E REEE satan 18 JTAG Connector Disconnected Dialog Box rrrrnrrrrnrnvenvnrrnrnvennnnenrnvennnnssrsssnsener 18 Can not find RESET signal Dialog Box esssseesseseeseesessesessreesreeresrerrssesrrsresreesse 19 Check the connection Dialog BOX rrrnrrrenvvnnnrnvenvnnrnrnvenvnnenrnvennnssrssennnnsnrssensesenn 19 COMMUNICATION TIMEOUT ERROR Dialog Box
190. ution The user program execution times under the following environment are shown below Environment Host computer 1 GHz Pentium HD Memory 512 Mbytes OS Windows 98 SH7750R 267 MHz CPU clock Execution program 10 000 nested calls 1 When the profile function is not used I 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 6 5 7 SH7750R E10A Emulator Useful Functions 1 Performance measurement function The SH7750R E10A emulator can measure the performances of the SH7750R Display and initialization can be performed by the PERFORMANCE_ANALYSIS command cancellation can be performed by the PERFORMANCE_CLEAR command and setting can be performed by the PERFORMANCE_SET command This function is supported only with the command lines The performance analysis method is described below The emulator measures how many times the events specified with the performance analysis function are satisfied For this function two events can be measured simultaneously and the following conditions can be specified Measurement range One of the following ranges can be specified 1 From the start to the end of the user program execution 2 From the satisfaction of the condition set in Break Condition 1 to the satisfaction of the condition set in Break Condition 4 P is added and displa
191. when the component type has to be selected during installation be sure to select PCI Card Driver 2 Shut the operating system down and turn off the power to the host computer 3 Insert the PCI card emulator in a slot on the host computer Refer to section 2 3 Connecting the 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 J 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 lt Drive gt DRIVERS PCI 95 When using the PCMCIA card emulator lt Drive gt DRIVERS PCMCIA 95 lt Drive gt is the CD ROM drive name RENESAS 2 2 2 Installing under Windows NT 4 0 Operating System 1 When the emulator is a PCI card 1 Shut the operating system down and turn off the power to the host
192. window This completes the setting of the Break Condition 1 hardware break condition When the program is executed a break will occur when address H 0c0000b2 is accessed in a read cycle Breakpoints Of OP x File Line Symbol Type 0 tutorial c 46 OC0000B2 Break condition 1 Figure 3 47 Breakpoints Window Break Condition 1 Setting e 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 nei tutorial c OF x Line Address BP Label Source a 31 32 long a 10 33 long j 34 int 1 min max 35 36 0c00006e for 1 0 1 lt 10 i jf 37 00000076 j rand 38 0c00007e if j lt D 39 0c000082 j j 40 41 0c000086 afi j 42 43 0c0000a2 sort a 44 0c0000aa min a 0 45 Oc0000ae max a 9 47 OcO000b6 max 0 48 Oc0000ba change a v 4 gt WY 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 er to SHxxx E104 Emulator E104 PCI Card Driverd XXXX Run status Break Cause of last break BREAK CONDITION 1 Run time count Oh Omin 0s 16ms Emulation mode
193. x0c000bdc H 00005ed3 Ox0cO00be0 H 00004e5a Ox0cO00be4 H 000047b3 Ox0c000be8 H 000036c9 Ox0c000bec H 00002 82 Dx0c000bf 0 H 00002c8c Dx0c000bf 4 H 00000f 16 Dx0c000bf 8 H 00000200 Dx0c000bfc H 00000000 Ox0c000bc8 0c000094 for i 0 i 00000076 j rand 0c00007e if j lt Of 0c000082 J SJ 0c000086 0c0000a2 9 Oc0000aa Oc0000ae Oc0000b2 Oc0000b6 Oc0000ba o n Mou OD ON UT GN ds z Oc0000c6 max a 0 Oc0000ca while 1 void abort void ama BAF SS pee 0c000048 abort Oc0000dc sort void sort long a IG Break STOP ADDRESS NUM Figure 3 31 HDI Window Step Over 51 RENESAS 52 3 15 Forced Breaking of Program Executions The HDI can force a break in the execution of a program e the Go button on the toolbar To execute the remaining sections of the main function select Go from the Run menu or Figure 3 32 Go Button 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 o Figure 3 33 Stop Button 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 fu
194. yed as Enable P on the break condition window 202 RENESAS When the first range is specified the measurement result includes a several cycle error for one user program execution Therefore do not specify this range when the step is to be executed In addition the user program execution stops when continuous trace is used again do not specify the first range in this case When the second range is specified the status of Break Condition 1 4 is displayed on the Condition page in the Break dialog box as shown in figure 6 6 Point Condition Break condition Empty Enable P Empty 2 3 4 5 Empty 6 7 Empty Uprtateta Note Figure 6 6 Condition Page In this case a break does not occur when Break Condition 1 4 is satisfied When the range is specified execute the user program after the measurement start condition is set to Break Condition 1 and the measurement end condition to Break Condition 4 If the conditions are not set to Break Condition 1 4 displayed as Empty P performance will not be measured correctly This is informed by the following dialog box 203 RENESAS 204 Figure 6 7 HDI Dialog Box RENESAS Measurement condition Operand access count internal I O access count cache miss count TLB miss count branch count instruction execution count interrupt count cache fill count and elapsed cycle count can be measured Table 6 9 lists the
Download Pdf Manuals
Related Search
Related Contents
Copyright © All rights reserved.
Failed to retrieve file