Home

SuperH Family E10A-USB Emulator Additional Document for User`s

image

Contents

1. 2 Inthe memory range for output do not specify the ranges that the user program has been downloaded or the user program accesses 3 Do not specify the internal RAM area for the output range 4 The range for trace output must be 1 MB or less 2 2 3 Notes on Using the JTAG H UDID Clock TCK and AUD Clock AUDCK Set the JTAG clock TCK frequency to lower than the frequency of the peripheral module clock CKP Set the AUD clock AUDCK frequency to 50 MHz or lower If the frequency is higher than 50 MHz the emulator will not operate normally The set value of the JTAG clock TCK is initialized by executing Reset CPU or Reset Go Thus the TCK value will be 5 MHz 2 2 4 Notes on Setting the Breakpoint Dialog Box 1 When an odd address is set the next lowest even address is used A BREAKPOINT is accomplished by replacing instructions of the specified address Accordingly breakpoints can be set only within RAM areas in CSO to CS6 the internal RAM area and the internal ROM area However breakpoints cannot be set in internal ROM areas subject to address translation by the MMU A BREAKPOINT cannot be set at addresses in the following types of area External ROM areas in CSO to CS6 Internal ROM areas subject to address translation by the MMU Areas other than CSO to CS6 except for the internal RAM A slot instruction of a delayed branch instruction An area that can be only read by MMU During
2. 2010 Re Page 15 of 46 s1KENESAS Section 2 Software Specifications when Using the SH74504 SH74513 SH74552 SH74562 SH74504_Debug_MCU_BOARD SuperH Family E10A USB Emulator and SH74552_Debug_MCU_BOARD Table 2 3 lists the combinations of conditions that can be set under Ch1 to Ch12 and the software trace Table 2 3 Dialog Boxes for Setting Event Conditions Function Bus Window Address Data State Address Branch Bus Bus ASID Condition Condition LDTLB Count Condition Dialog Condition Condition Condition Bus Window System Instruction Condition Branch Software Box Address Data ASID Status address Bus Break Count Trace Trace Action Event O X O O X X xX X xX X O Condition B and 1 dialog P box Event O O oO O X X X O X X O Condition B and 2 dialog P box Event O X O X X xX X X X X O Condition B and 3 dialog P box Event X X O O O X xX X X X O Condition B T 5 dialog and P box Event X X O O O X X X xX xX O Condition B T 6 dialog and P box Event X X X X X X O X X X Break Condition fixed 7 dialog box Event O X xX X xX O xX X xX xX O Condition B T 8 dialog and P box R20UT0073EJ0200 Rev 2 00 Page 16 of 46 Nov 18 2010 RENESAS Section 2 Software Specifications when Using the SH74504 SH74513 SH74552 SH74562 SH74504_Debug_MCU_BOARD SuperH Family E10A USB Emulator and SH74552_Debug_MCU_BOARD Table 2 3 Dialog Boxes for Setting Event Condit
3. SH74562 SH74504_Debug_MCU_BOARD and SH74552_Debug_MCU_BOARD Publication Date Rev 1 00 March 3 2010 Rev 2 00 November 18 2010 Published by Renesas Electronics Corporation RENESAS SALES OFFICES Renesas Electronics Corporation http www renesas com Refer to http www renesas com for the latest and detailed information Renesas Electronics America Inc 2880 Scott Boulevard Santa Clara CA 95050 2554 U S A Tel 1 408 588 6000 Fax 1 408 588 6130 Renesas Electronics Canada Limited 1101 Nicholson Road Newmarket Ontario L3Y 9C3 Canada Tel 1 905 898 5441 Fax 1 905 898 3220 Renesas Electronics Europe Limited Dukes Meadow Millboard Road Bourne End Buckinghamshire SL8 5FH U K Tel 44 1628 585 100 Fax 44 1628 585 900 Renesas Electronics Europe GmbH Arcadiastrasse 10 40472 D sseldorf Germany Tel 49 211 65030 Fax 49 211 6503 1327 Renesas Electronics China Co Ltd 7th Floor Quantum Plaza No 27 ZhiChunLu Haidian District Beijing 100083 PR China Tel 86 10 8235 1155 Fax 86 10 8235 7679 Renesas Electronics Shanghai Co Ltd Unit 204 205 AZIA Center No 1233 Lujiazui Ring Rd Pudong District Shanghai 200120 China Tel 86 21 5877 1818 Fax 86 21 6887 7858 7898 Renesas Electronics Hong Kong Limited Unit 1601 1613 16 F Tower 2 Grand Century Place 193 Prince Edward Road West Mongkok Kowloon Hong Kong Tel 852 2886 9318 Fax 852 2886 9022 9044 Renesas Electr
4. Ch11 OQA_OA_CT_R of Event Condition cannot be used 2 2 7 Note on Setting the PPC_LMODE Command In the Configuration dialog box if User is set while the PPC mode list box has been set Ch1 and Ch2 of the performance analysis function cannot be used 2 2 8 Performance Measurement Function The emulator supports the performance measurement function 1 Setting the performance measurement conditions To set the performance measurement conditions use the Performance Analysis dialog box and the PERFORMANCE_SET command When a channel line on the Performance Analysis window is clicked with the right mouse button the popup menu is displayed and the Performance Analysis dialog box is displayed by selecting Setting R20UT0073EJ0200 Rev 2 00 Page 34 of 46 Nov 18 2010 RENESAS Section 2 Software Specifications when Using the SH74504 SH74513 SH74552 SH74562 SH74504_Debug_MCU_BOARD SuperH Family E10A USB Emulator and SH74552_Debug_MCU_BOARD Performance Analysis Condition Cycle E Selection of a count item GPU performance Cycle Count C Instruction Branch C Exception interruption C Stalled Cycle TLB performance C hstruction bus performance Operand bus performance C Access count C Access miss count C Waited cycle C System bus performance Extend counter I Enable Figure 2 7 Performance Analysis Dialog Box Note For the command lin
5. Number of waited WILW The number of waited cycles cycles by an I L by an I L memory access memory access for write of an operand operand fetch WRITE System bus System bus Number of requests RQ The number of valid bus cycles performance cells is counted by the only available system bus clock for Ch3 and Ch4 Number of RS The number of valid bus cycles responses cells is counted by the system bus clock R20UT0073EJ0200 Rev 2 00 Page 42 of 46 Nov 18 2010 RENESAS Section 2 Software Specifications when Using the SH74504 SH74513 SH74552 SH74562 SH74504_ Debug_MCU_BOARD SuperH Family E10A USB Emulator and SH74552_Debug_MCU_BOARD Table 2 10 Measurement Items cont Classification Type Measurement Item Option Note System bus System bus Waited cycles for WRQ The cycles for an issued performance cont request request req that no only available acceptance signal gnt is for Ch3 and issued to are counted by the Ch4 cont system bus clock Even if the waits are issued simultaneously for multiple requests they are counted as 1 Waited cycles for WRS The cycles for an issued response response r_req that no acceptance signal r_gnt is issued to are counted by the system bus clock Even if the waits are issued simultaneously for multiple requests they are counted as 1 R20UT0073EJ0200 Rev 2 00 Page 43 of 46 Nov 18 2010 RENESAS SuperH Family E10A USB Emulator Section 2 Soft
6. Type Measurement Item Option Note Disabled None Not measured CPU Cycle Elapsed cycles AC Except for power on period performance counted by the CPU clock Cycles executed in PM The number of privileged privileged mode mode cycles among the number of elapsed cycles Cycles for asserting BL The number of cycles when the SR BL bit the SR BL bit 1 among the number of elapsed cycles Instruction Number of effective The number of execution instructions issued instructions number of valid instructions issued number of cases of simultaneous execution of two instructions The number of valid instructions means the number of completed instructions Number of 2 2l The number of times that two instruction executed instructions are executed simultaneously simultaneously among the valid instructions issued Branch Number of BT The number of unconditional unconditional branch branches other than branches occurring after an exception However RTE is counted Exception Number of EA Interrupts are included interruption exceptions accepted Number of interrupts INT NMI is included accepted Number of UBC UBC Performs OR to count the channel hit number of channel hits in the CPU R20UT0073EJ0200 Rev 2 00 Page 38 of 46 Nov 18 2010 RENESAS Section 2 Software Specifications when Using the SH74504 SH74513 SH74552 SH74562 SH74504_Debug_MCU_BOARD SuperH Family E10A USB Emulator and SH74552_Debug_MCU_BOARD Table 2 10 Measurement
7. ition 5 Section 2 Software Specifications when Using the SH74504 SH74513 SH74552 SH74562 SH74504_Debug_MCU_BOARD Window address ASID Bus State Action mindo End w address Start address address and SH74552_Debug_MCU_BOARD H O0000000 H O0000000 Figure 2 3 Window address Page R20UT0073EJ0200 Rev 2 00 Nov 18 2010 2tENESAS Page 23 of 46 Section 2 Software Specifications when Using the SH74504 SH74513 SH74552 SH74562 SH74504_Debug_MCU_BOARD SuperH Family E10A USB Emulator and SH74552_Debug_MCU_BOARD iii Open the ASID page remove the check mark of the Don t care check box and enter the ASID value to be set When the ASID value is not set as a condition do not remove the check mark of the Don t care check box iv Open the Bus state page and specify the bus type and bus cycle that are to be set Event condition 5 Window address ASID Bus State Action j Bus state ome Read Write Read Write C Read C Write Figure 2 4 Bus State Page v Selecting the Acquire trace check box in the Action page enables acquiring memory access within the range R20UT0073EJ0200 Rev 2 00 Page 24 of 46 Nov 18 2010 RENESAS Section 2 Software Specifications when Using the SH74504 SH74513 SH74552 SH74562 SH74504_Debug_MCU_BOARD SuperH Family E10A USB Emulator and SH74552_Debug_MCU_BOARD Note To cancel settings s
8. number of operand cache cache access reads during memory access WRITE write of an operand R20UT0073EJ0200 Rev 2 00 Page 40 of 46 Nov 18 2010 RENESAS Section 2 Software Specifications when Using the SH74504 SH74513 SH74552 SH74562 SH74504_Debug_MCU_BOARD SuperH Family E10A USB Emulator and SH74552_Debug_MCU_BOARD Table 2 10 Measurement Items cont Classification Type Measurement item Option Note Operand bus Access Number of internal XLR The number of accesses to XY performance count cont RAM access for or O L memory during memory cont operand fetch access read of an operand READ XY RAM or Accesses via the XY bus and O L memory the operand bus are included When MOVX and MOVY are executed simultaneously it increments one count regardless of the read or write Number of internal XLW The number of accesses to XY RAM access for or O L memory during memory operand fetch access write of an operand WRITE XY RAM Accesses via the XY bus and or O L memory the operand bus are included When MOVX and MOVY are executed simultaneously it increments one count regardless of the read or write Number of I L ILRW The number of accesses to I L memory access for memory during memory operand fetch access read write of an READ WRITE operand Access Number of operand CMR The number of cache misses miss count cache miss READ by an operand cache access read number of accesses to th
9. single write to outside The LRU is not updated At memory read Reads memory from the cache The LRU is not updated Therefore when memory read or write is performed during user program break the cache state does not change Setting a breakpoint or rewriting the internal ROM Disables the instruction cache UBC When User is specified in the UBC mode list box in the Configuration dialog box the UBC can be used in the user program Do not use the UBC in the user program as it is used by the emulator when EML is specified in the UBC mode list box in the Configuration dialog box R20UT0073EJ0200 Rev 2 00 Page 11 of 46 Nov 18 2010 RENESAS Section 2 Software Specifications when Using the SH74504 SH74513 SH74552 SH74562 SH74504_ Debug_MCU_BOARD SuperH Family E10A USB Emulator and SH74552_Debug_MCU_BOARD 9 Memory Access during Break In the enabled MMU when a memory is accessed and a TLB error occurs during break it can be selected whether the TLB exception is controlled or the program jumps to the user exception handler in TLB Mode in the Configuration dialog box When TLB miss exception is enable is selected a Communication Timeout error will occur if the TLB exception handler does not operate correctly When TLB miss exception is disable is selected the program does not jump to the TLB exception handler even if a TLB exception occurs Therefore if the TLB exception handler does not operat
10. window with the right mouse button and select Setting from the pop up menu to display the Acquisition dialog box The AUD trace acquisition mode can be set in the Trace mode1 Trace mode2 or AUD mode group box in the Trace mode page of the Acquisition dialog box Acquisition Trace Mode Trace type o 2 C Internal trace C User Memory trace Trace Mode 1 Realtime trace Non realtime trace Trace Mode 2 Trace continue Trace stop AUD Mode Abit shit AUD trace display range Start pointer D 255 End pointer Do User memory area stamt Ho End Address F3FF Trace Extend Mode I Trace data with PPC ome Figure 2 5 Trace Mode Page R20UT0073EJ0200 Rev 2 00 Page 27 of 46 Nov 18 2010 RENESAS Section 2 Software Specifications when Using the SH74504 SH74513 SH74552 SH74562 SH74504_ Debug_MCU_BOARD SuperH Family E10A USB Emulator and SH74552_Debug_MCU_BOARD Notes on AUD Trace 1 When the trace display is performed during user program execution the mnemonics operands or source is not displayed The AUD branch trace function outputs the differences between newly output branch source addresses and previously output branch source addresses The window trace function outputs the differences between newly output addresses and previously output addresses If the previously output address is the same as the upper 16 bits the lower 16
11. 4 2 2 6 Note on Setting the UBC MODE Cormimani s anscia iaiia ae A O ENA 34 2 2 7 Note on Setting the PPC_MODE Command W 2 2 8 Performance Measurement Function we 34 SuperH Family E10A USB Emulator Section 1 Connecting the Emulator with the User System Section 1 Connecting the Emulator with the User System 1 1 Components of the Emulator The emulator supports the SH74504 SH74513 SH74552 SH74562 SH74504_Debug_MCU_BOARD and SH74552_Debug_MCU_BOARD Table 1 1 lists the components of the emulator R20UT0073EJ0200 Rev 2 00 Page 1 of 46 Nov 18 2010 RENESAS SuperH Family E10A USB Emulator Section 1 Connecting the Emulator with the User System Table 1 1 Components of the Emulator Classi Quan fication Component Appearance tity Remarks HSO0005KCU01H Depth 65 0 mm Width 97 0 mm Height 20 0 mm Mass 72 9 g or HSO0005KCU02H Depth 65 0 mm Width 97 0 mm Height 20 0 mm Mass 73 7 g Hard Emulator box ware User system interface gt 1 14 pin type cable Length 20 cm Mass 33 1 g User system interface oe 36 pin type cable ioe Length 20 cm Mass 49 2 g only for HS0005KCU02H USB cable 1 Length 150 cm Mass 50 6 g Soft E10A USB emulator setup 1 HS0005KCU01SR ware program CSD SuperH Family E10A HS0005KCU01HJ USB Emulator User s HSO005KCU01HE Manual Supplementary HS7450KCU01 Hu Information on Using the HS7450KCU01HE SH74504 SH7
12. 4513 SH74552 SH74562 SH74504_ Debug_MCU_ BOARD and SH74552_Debug_MCU_ BOARD and Test program manual for HS0005TM01HJ and HSO005KCU01H and HS0005TMO01HE HS0005KCU02H provided on a CD R Note Additional document for the MCUs supported by the emulator is included Check the target MCU and refer to its additional document R20UT0073EJ0200 Rev 2 00 Page 2 of 46 Nov 18 2010 RENESAS SuperH Family E10A USB Emulator Section 1 Connecting the Emulator with the User System 1 2 Connecting the Emulator with the User System To connect the E10A USB emulator hereinafter referred to as the emulator the H UDI port connector must be installed on the user system to connect the user system interface cable When designing the user system refer to an example of recommended connection between the connector and the MPU shown in this manual In addition read the EL1OA USB emulator user s manual and hardware manual for the related device Table 1 2 shows the type number of the emulator the corresponding connector type and the use of AUD function Table 1 2 Type Number AUD Function and Connector Type Type Number Connector AUD Function HS0005KCU02H 36 pin connector Available HS0005KCU01H HS0005KCU02H 14 pin connector Not available The H UDI port connector has the 36 pin and 14 pin types as described below Use them according to the purpose of the usage 1 36 pin type with AUD function The AUD trace function is
13. 74504 SH74552 Input SH74513 SH74562 Pin No Signal Output Pin No Pin No 1 TCK Input Ji H1 TRST Input H4 H4 TDO Output L2 J2 ASEBRK Input c8 B6 BRKACK output TMS Input J2 H2 TDI Input K3 J3 RESET Output D2 User reset 5 N C GND 4 UVCC GND GND Output Input to or output from the user system The symbol means that the signal is active low The emulator monitors the GND signal of the user system and detects whether or not the user system is connected When the user system interface cable is connected to this pin and the MPMD pin is set to 0 do not connect to GND but to the MPMD pin directly Pin 1 mark H UDI port connector top view SG fae noe SS ae Nie aan H UDI port connector 23 0 6 x 2 54 15 24 top view eI Pin 1 mark Unit mm Figure 1 1 Pin Assignments of the H UDI Port Connector 14 Pins R20UT0073EJ0200 Rev 2 00 Page 5 of 46 Nov 18 2010 RENESAS SuperH Family E10A USB Emulator Section 1 Connecting the Emulator with the User System 1 5 1 5 1 Recommended Circuit between the H UDI Port Connector and the MPU Recommended Circuit 14 Pin Type Figure 1 2 shows a recommended circuit for connection between the H UDI port connector 14 pins and the MPU when the emulator is in use Notes 1 2 Do not connect anything to the N C pins of the H UDI port connector The MPMD pin must be 0 when the emulator is connected and 1 when the emulator i
14. E 7 D mL T lt D 3 D 2rCENESAS SuperH Family E10A USB Emulator Additional Document for User s Manual Supplementary Information on Using the SH74504 SH74513 SH74552 SH74562 SH74504_Debug_MCU_BOARD and SH74552_Debug_MCU_BOARD SuperH Family E10A USB for SH7450 HS7450KCU01HE All information contained in these materials including products and product specifications represents information on the product at the time of publication and is subject to change by Renesas Electronics Corporation without notice Please review the latest information published by Renesas Electronics Corporation through various means including the Renesas Electronics Corporation website http Awww renesas com Renesas Electronics www renesas com Rev 2 00 Nov 2010 10 11 12 Notice All information included in this document is current as of the date this document is issued Such information however is subject to change without any prior notice Before purchasing or using any Renesas Electronics products listed herein please confirm the latest product information with a Renesas Electronics sales office Also please pay regular and careful attention to additional and different information to be disclosed by Renesas Electronics such as that disclosed through our website Renesas Electronics does not assume any liability for infringement of patents copyrights or other intellectual property rights of third part
15. EAKPOINT is set valid 7 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 MCU MMU upon 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 Output window is ILLEGAL INSTRUCTION not BREAKPOINT 8 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 MCU MMU upon program execution After setting the MMU is returned to the original 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 9 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 V
16. Family E10A USB Emulator and SH74552_Debug_MCU_BOARD Sequential Break Extension Setting Sequential setting CPU Sequential Event SystemBus Sequential Event CPU Sequential Extend Chi d4_0A PreHit Channel Ch2d4_OA_DT_CT GPU Match flag Match flag set gt 1 ba Ch24_04_DTCT PreHit Channel No Select v CPU Match flag No Select X Ch3 lA PreHit Channel CPU Match flag nl CPU Match flag Match flag set gt 0 v Ch5 OA PreHit Channel No Select x CPU Match flas No Select CH6 OA PreHit Channel No Select x OPU Match fla No Select x Ch100A OA R PreHit Channel Ch3d4 x CPU Match fs ME X Ch110A_OA_DT_OT_F PreHit Channel No Select z CPU Match tlas No Select Ch12 Branch PreHit Channel No Select x Figure 2 1 CPU Sequential Extend Page a Indicates the channel name for setting conditions b Selects a condition that is satisfied before the channel which sets up conditions When a channel name is selected it is required that the condition of the channel selected here must have already been satisfied When CPU Match flag is selected the CPU match flag must be set When a condition is selected by the channel selected here no break will occur c When a condition is satisfied the CPU match flag is set or cleared When a program breaks the CPU match flag is initialized Set the event condition for each channel in the Event Condition dialog box this also applies to the System Bu
17. H74552 SH74562 SH74504_Debug_MCU_BOARD SuperH Family E10A USB Emulator and SH74552_Debug_MCU_BOARD Table 2 10 Measurement Items cont Classification Type Measurement Item Option Note Instruction bus Instruction Number of ICM The number of cache misses performance cont instruction cache by an instruction cache access cont miss the number of accesses to the outside of the CPU core due to a cache miss Number of internal XL The number of accesses for RAM access for the XY or O L memory during instruction fetch memory accesses of the XY RAM or O L opcode memory Number of I L ILIF The number of accesses for memory access for the I L memory during memory instruction fetch accesses of the opcode Number of U ULF The number of accesses for memory access for the U memory during memory instruction fetch accesses of the opcode Operand bus Access Number of memory MR The number of memory performance count access for operand accesses by an operand read fetch READ equal to loading on the operand bus Accesses by the PREF instruction or canceled accesses are not included Number of memory MW The number of memory access for operand accesses by an operand write fetch WRITE equal to storing memory on the operand bus Canceled accesses are not included Number of operand CR The number of operand cache cache access reads during memory access READ read of an operand Number of operand CW The
18. Items cont Classification Type Measurement Item Option Note CPU Stalled Cycles stalled in full SFM All items are counted performance cycle trace mode with independently cont multi counts Cycles stalled in full SF This item is not counted if the trace mode without stall cycle is generated multi counts simultaneously with a stall cycle that has occurred due to instruction execution TLB TLB Number of UTLB miss UMI The number of TLB miss performance for instruction fetch exceptions generated by an instruction fetch number of EXPEVT sets Number of UTLB miss UMO The number of TLB miss for operand fetch exceptions generated by an operand access number of EXPEVT sets Number of ITLB miss IM The number of ITLB misses for valid accesses does not include UTLB hits or misses Instruction bus Instruction Number of memory MIF The number of memory performance accesses for accesses by an instruction instruction fetch fetch Accesses canceled by an instruction fetch bus are not counted Instruction fetches which have been fetched in anticipation of a branch but not actually executed are counted Accesses by the PREFI instruction are included Number of instruction IC The number of accesses for cache access an instruction cache during memory access of the opcode R20UT0073EJ0200 Rev 2 00 Page 39 of 46 Nov 18 2010 RENESAS Section 2 Software Specifications when Using the SH74504 SH74513 S
19. P_MAP table the cause of termination displayed in the status bar and the Output window is ILLEGAL INSTRUCTION not BREAKPOINT 10 If an address of a BREAKPOINT cannot be correctly set in the ROM or flash memory area a mark will be displayed in the BP area of the address on the Source or Disassembly window by refreshing the Memory window etc after Go execution However no break will occur at this address When the program halts with the event condition the mark disappears R20UT0073EJ0200 Rev 2 00 Page 33 of 46 Nov 18 2010 RENESAS Section 2 Software Specifications when Using the SH74504 SH74513 SH74552 SH74562 SH74504_ Debug_MCU_BOARD SuperH Family E10A USB Emulator and SH74552_Debug_MCU_BOARD 2 2 5 Notes on Setting the Event Condition Dialog Box and the BREAKCONDITION_ SET Command 1 When Go to cursor Step In Step Over or Step Out is selected the settings of Event Condition 3 are disabled 2 When an Event Condition is satisfied emulation may stop after two or more instructions have been executed 3 Ifa PC break address condition is set to the slot instruction after a delayed branch instruction user program execution cannot be terminated before the slot instruction execution execution stops before the branch destination instruction 2 2 6 Note on Setting the UBC_MODE Command In the Configuration dialog box if User is set while the UBC mode list box has been set Ch10 GA_OA_R and
20. Standard unless otherwise expressly specified in a Renesas Electronics data sheets or data books etc Standard Computers office equipment communications equipment test and measurement equipment audio and visual equipment home electronic appliances machine tools personal electronic equipment and industrial robots High Quality Transportation equipment automobiles trains ships etc traffic control systems anti disaster systems anti crime systems safety equipment and medical equipment not specifically designed for life support Specific Aircraft aerospace equipment submersible repeaters nuclear reactor control systems medical equipment or systems for life support e g artificial life support devices or systems surgical implantations or healthcare intervention e g excision etc and any other applications or purposes that pose a direct threat to human life You should use the Renesas Electronics products described in this document within the range specified by Renesas Electronics especially with respect to the maximum rating operating supply voltage range movement power voltage range heat radiation characteristics installation and other product characteristics Renesas Electronics shall have no liability for malfunctions or damages arising out of the use of Renesas Electronics products beyond such specified ranges Although Renesas Electronics endeavors to improve the quality and reliability of its products se
21. Type Mode Description Continuous Realtime trace When the trace information is being generated intensely that trace occurs the output from the AUD pin incapable of keeping up the CPU temporarily suspends the output of trace information Therefore although the user program is run in real time the acquisition of some trace information might not be possible Non realtime trace When trace information is being generated so intensely that the output from the AUD pin is incapable of keeping up CPU operations are temporarily suspended and the output of trace information takes priority In such cases the realtime characteristics of the user program are lost Trace buffer Trace continue This function overwrites the oldest trace information to store full the latest trace information Trace stop After the trace buffer becomes full the trace information is no longer acquired The user program is continuously executed AUD pin 4 bits The trace data is acquired from the 4 bit AUDATA pin 8 bits The trace data is acquired from the 8 bit AUDATA pin This mode is not available when the SH74504_Debug_MCU_BOARD or SH74552_Debug_MCU_BOARD is used R20UT0073EJ0200 Rev 2 00 Page 26 of 46 Nov 18 2010 RENESAS Section 2 Software Specifications when Using the SH74504 SH74513 SH74552 SH74562 SH74504_Debug_MCU_BOARD SuperH Family E10A USB Emulator and SH74552_Debug_MCU_BOARD To set the AUD trace acquisition mode click the Trace
22. _MCU_BOARD SuperH Family E10A USB Emulator and SH74552_Debug_MCU_BOARD To set the memory output trace acquisition mode click the Trace window with the right mouse button and select Setting from the pop up menu to display the Acquisition dialog box The AUD trace acquisition mode can be set in the Trace mode1 or Trace mode2 group box in the Trace mode page of the Acquisition dialog box R20UT0073EJ0200 Rev 2 00 Page 30 of 46 Nov 18 2010 RENESAS Section 2 Software Specifications when Using the SH74504 SH74513 SH74552 SH74562 SH74504_Debug_MCU_BOARD SuperH Family E10A USB Emulator and SH74552_Debug_MCU_BOARD Acquisition Trace Mode Trace type C AUD trace Internal trace L Trace Mode 1 Realtime trace C Non realtime trace Trace Mode 2 Trace continue Trace stop AUD Mode Abit bit AUD trace display range staht Pointer End painten User memory area Start H3000 End Address H33FF Trace Extend Mode l Trace data with PPC Figure 2 6 Trace Mode Page Notes 1 The memory range for which trace is output is the address on the system bus and not supported for the MMU or cache R20UT0073EJ0200 Rev 2 00 Page 31 of 46 Nov 18 2010 RENESAS Section 2 Software Specifications when Using the SH74504 SH74513 SH74552 SH74562 SH74504_ Debug_MCU_BOARD SuperH Family E10A USB Emulator and SH74552_Debug_MCU_BOARD
23. asurement start end conditions are specified the settings of the break conditions will be disabled If you wish to use event conditions to start and stop performance measurement the address where the performance measurement will start or stop must not be within nine instructions from a memory access instruction Table 2 9 Conditions Specified in the Action Page Item Description PA1 pai_start_point Specifies the conditions of Event Condition that has been set as the measurement start condition of performance channel 1 pai_end_point Specifies the conditions of Event Condition that has been set as the measurement end condition of performance channel 1 PA2 pa2_start_point Specifies the conditions of Event Condition that has been set as the measurement start condition of performance channel 2 pa2_end_point Specifies the conditions of Event Condition that has been set as the measurement end condition of performance channel 2 PA3 pa3_start_point Specifies the conditions of Event Condition that has been set as the measurement start condition of performance channel 3 pa3_end_point Specifies the conditions of Event Condition that has been set as the measurement end condition of performance channel 3 PA4 pa4_start_point Specifies the conditions of Event Condition that has been set as the measurement start condition of performance channel 4 pa4_end_point Specifies the conditions of Event Condition that has been set as th
24. bits are output If it matches the upper 24 bits the lower 8 bits are output If it matches the upper 28 bits the lower 4 bits are output The emulator regenerates the 32 bit address from these differences and displays it in the Trace window If the emulator cannot display the 32 bit address it displays the difference from the previously displayed 32 bit address If the 32 bit address cannot be displayed the source line is not displayed Inthe emulator when multiple loops are performed to reduce the number of AUD trace displays only the IP counts up In the emulator the maximum number of trace displays is 65534 lines 32767 branches However the maximum number of trace displays differs according to the AUD trace information to be output Therefore the above pointers cannot be always acquired If a completion type exception occurs during exception branch acquisition the next address to the address in which an exception occurs is acquired R20UT0073EJ0200 Rev 2 00 Page 28 of 46 Nov 18 2010 RENESAS Section 2 Software Specifications when Using the SH74504 SH74513 SH74552 SH74562 SH74504_Debug_MCU_BOARD SuperH Family E10A USB Emulator and SH74552_Debug_MCU_BOARD Memory Output Trace Functions This function is activated by selecting the Use Memory trace radio button in the Trace type group box of the Trace mode page In this function write the trace data in the specified user memory range Specify the physi
25. cal addresses where the output of trace information will start and end in the Start edit box and the End Address edit box respectively of the User memory area group box Set the trace condition to be used Table 2 8 shows the memory output trace acquisition mode that can be set in each trace function Table 2 8 Memory Output Trace Acquisition Mode Type Mode Description Continuous Realtime trace When the trace information is being generated intensely that trace occurs the output from the AUD pin incapable of keeping up the CPU temporarily suspends the output of trace information Therefore although the user program is run in real time the acquisition of some trace information might not be possible Non realtime trace When trace information is being generated so intensely that the output from the AUD pin is incapable of keeping up CPU operations are temporarily suspended and the output of trace information takes priority In such cases the realtime characteristics of the user program are lost Trace buffer Trace continue This function overwrites the oldest trace information to store full the latest trace information Trace stop After the trace buffer becomes full the trace information is no longer acquired The user program is continuously executed R20UT0073EJ0200 Rev 2 00 Page 29 of 46 Nov 18 2010 RENESAS Section 2 Software Specifications when Using the SH74504 SH74513 SH74552 SH74562 SH74504_Debug
26. ct Memory Access Controller DMAC The DMAC operates even when the emulator is used When a data transfer request is generated the DMAC executes DMA transfer Memory Access during User Program Execution When a memory is accessed from the memory window etc during user program execution the user program is resumed after it has stopped in the emulator to access the memory Therefore realtime emulation cannot be performed The stopping time of the user program is as follows Environment Host computer 3 GHz Pentium IV 240 MHz CPU clock JTAG clock 20 MHz TCK clock When a one byte memory is read from the command line window the stopping time will be about 40 ms Memory Access during User Program Break The emulator can download the program for the external flash memory area for details refer to section 6 22 Download Function to the Flash Memory Area in the SuperH Family E10A USB Emulator User s Manual Other memory write operations are enabled only for the RAM area and the internal ROM area Therefore an operation such as memory write or BREAKPOINT should be set only for the RAM area and the internal ROM area However memory write processing in the form of MMU address translation for the internal ROM area is not available 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 issues a
27. der any applicable domestic or foreign laws or regulations Renesas Electronics has used reasonable care in preparing the information included in this document but Renesas Electronics does not warrant that such information is error free Renesas Electronics assumes no liability whatsoever for any damages incurred by you resulting from errors in or omissions from the information included herein Renesas Electronics products are classified according to the following three quality grades Standard High Quality and Specific The recommended applications for each Renesas Electronics product depends on the product s quality grade as indicated below You must check the quality grade of each Renesas Electronics product before using it in a particular application You may not use any Renesas Electronics product for any application categorized as Specific without the prior written consent of Renesas Electronics Further you may not use any Renesas Electronics product for any application for which it is not intended without the prior written consent of Renesas Electronics Renesas Electronics shall not be in any way liable for any damages or losses incurred by you or third parties arising from the use of any Renesas Electronics product for an application categorized as Specific or for which the product is not intended where you have failed to obtain the prior written consent of Renesas Electronics The quality grade of each Renesas Electronics product is
28. e Ch12 Branch column of the Eventpoint window The branch condition to be acquired can be set Event condition 12 Branch event Action Branch j Acquire general branch instruction event J Acquire subroutine branch instruction event j Acquire exception branch instruction event Figure 2 2 Branch event Dialog Box A branch trace can be acquired by selecting the Acquire trace check box of the Action page Note To cancel settings select Delete from the popup menu that is opened by clicking on the Ch12 Branch column with the right mouse button R20UT0073EJ0200 Rev 2 00 Page 21 of 46 Nov 18 2010 RENESAS Section 2 Software Specifications when Using the SH74504 SH74513 SH74552 SH74562 SH74504_Debug_MCU_BOARD SuperH Family E10A USB Emulator and SH74552_Debug_MCU_BOARD Range Memory Access Trace Functions The memory access within the specified range is acquired by a trace The read cycle write cycle or read write cycle can be selected as the bus type ASID value or bus cycle for trace acquisition Setting Method i To open the Event condition 5 or Event condition 6 dialog box double click on the Ch5 OA or Ch6 OA column of the Eventpoint window ii Remove the check mark of the Don t care check box in the Window address page and enter the memory range to be set R20UT0073EJ0200 Rev 2 00 Page 22 of 46 Nov 18 2010 RENESAS SuperH Family E10A USB Emulator Event cond
29. e correctly a Communication Timeout error will not occur but the memory contents may not be correctly displayed 10 Loading Sessions Information in JTAG clock of the Configuration dialog box cannot be recovered by loading sessions Thus the TCK value will be 5 MHz If the Search the best JTAG clock option is used when the emulator is initiated 11 LO Window Display and modification Do not change values of the User Break Controller because it is used by the emulator The watchdog timer operates only when the user program is executed Do not change the value of the frequency change register in the IO window or Memory window The internal I O registers can be accessed from the IO window After the I O register definition file is created the MPU s specifications may be changed If each I O register in the I O register definition file differs from addresses described in the hardware manual change the I O register definition file according to the description in the hardware manual The I O register definition file can be customized depending on its format Note that however the emulator does not support the bit field function Verify In the IO window the verify function of the input value is disabled 12 Illegal Instructions If illegal instructions are executed by STEP type commands the emulator cannot go to the next program counter 13 Reset CPU and Reset Go in the Debug Menu The H UDI reset is issued at select
30. e measurement end condition of performance channel 4 R20UT0073EJ0200 Rev 2 00 Page 36 of 46 Nov 18 2010 RENESAS Section 2 Software Specifications when Using the SH74504 SH74513 SH74552 SH74562 SH74504_Debug_MCU_BOARD SuperH Family E10A USB Emulator and SH74552_Debug_MCU_BOARD Event condition 1 Address ASID Bus State Action pal _start_point C pal _end_point e a2 Start paint a end paint ad Start point ad end paint eaa Start point a4 end paint Figure 2 8 Action Page Note PA1 or PA2 cannot be set for Ch8 and Ch9 b Measurement tolerance The measured value includes tolerance Tolerance will be generated before or after a break For details see table 2 12 c Measurement items Items are measured in the Performance Analysis dialog box for each channel from Ch1 to Ch4 A maximum of four conditions can be specified at the same time Table 2 10 shows the measurement items Options in table 2 10 are parameters for lt mode gt of the PERFORMANCE_SET command They are displayed in CONDITION of the Performance Analysis window R20UT0073EJ0200 Rev 2 00 Page 37 of 46 Nov 18 2010 RENESAS Section 2 Software Specifications when Using the SH74504 SH74513 SH74552 SH74562 SH74504_Debug_MCU_BOARD SuperH Family E10A USB Emulator and SH74552_Debug_MCU_BOARD Table 2 10 Measurement Items Classification
31. e of the internal flash memory select the Flash memory to PC or PC to flash memory Flash memory to PC item from the Flash memory synchronization drop down list box in the Configuration dialog box gt General page do not select the Disable or PC to flash memory item 16 MCU Operating Mode Boot mode is not supported When starting up in the user boot mode do not set a software break point Use an event condition R20UT0073EJ0200 Rev 2 00 Page 13 of 46 Nov 18 2010 RENESAS Section 2 Software Specifications when Using the SH74504 SH74513 SH74552 SH74562 SH74504_Debug_MCU_BOARD SuperH Family E10A USB Emulator and SH74552_Debug_MCU_BOARD 2 2 Specific Functions for the Emulator when Using the SH74504 SH74513 SH74552 SH74562 SH74504_Debug_MCU_BOARD and SH74552_Debug_MCU_BOARD The devices indicated above do not support the following functions The Search the best JTAG clock option of the CPU Select dialog box Profiler function 2 2 1 Event Condition Functions The emulator is used to set 11 event conditions Ch1 to Ch3 and Ch5 to Ch12 and the software trace Table 2 2 lists the conditions of Event Condition R20UT0073EJ0200 Rev 2 00 Page 14 of 46 Nov 18 2010 RENESAS SuperH Family E10A USB Emulator Section 2 Software Specifications when Using the SH74504 SH74513 SH74552 SH74562 SH74504_ Debug_MCU_BOARD and SH74552_Debug_MCU_BOARD Table 2 2 Types of Event Conditions Even
32. e outside of the CPU core due to a cache miss Cache misses are not counted by the PREF instruction Number of operand CMW The number of cache misses cache miss WRITE by an operand cache access write number of accesses to the outside of the CPU core due to a cache miss Write through accesses are not counted Cache misses are not counted by the PREF instruction R20UT0073EJ0200 Rev 2 00 Page 41 of 46 Nov 18 2010 RENESAS Section 2 Software Specifications when Using the SH74504 SH74513 SH74552 SH74562 SH74504_Debug_MCU_BOARD SuperH Family E10A USB Emulator and SH74552_Debug_MCU_BOARD Table 2 10 Measurement Items cont Classification Type Measurement Item Option Note Operand bus Waited Waited cycles for WOR The number of waited cycles performance cycle operand fetch by a memory access read of cont READ an operand Waited cycles for WOW The number of waited cycles operand fetch by a memory access write of WRITE an operand Waited cycles for WCMR The number of waited cycles operand cache miss by an operand cache miss READ read however the number of waited cycles of cache fill is included due to contention Waited cycles for WCMW The number of waited cycles operand cache miss by an operand cache miss WRITE write Number of waited WILR The number of waited cycles cycles by an I L by an I L memory access memory access for read of an operand operand fetch READ
33. e syntax refer to the online help a Specifying the measurement start end conditions Set the performance measurement conditions in the Action page after conditions have been set in the Event Condition dialog box that is opened by double clicking Ch1 to Ch3 Ch5 Ch6 and Ch8 to Ch12 on the Event Condition sheet of the Eventpoint window R20UT0073EJ0200 Rev 2 00 Page 35 of 46 Nov 18 2010 RENESAS Section 2 Software Specifications when Using the SH74504 SH74513 SH74552 SH74562 SH74504_Debug_MCU_BOARD SuperH Family E10A USB Emulator and SH74552_Debug_MCU_BOARD Notes When no measurement start end conditions are specified measurement is started by executing a program and ended when an event condition is satisfied When only the measurement start or end condition is specified performance cannot be measured Be sure to specify both of the measurement start and end conditions When the measurement start end conditions are specified step operation cannot be performed In addition when execution is restarted from the address where step operation has been stopped by the break conditions of BREAKPOINT or Event Condition step functions are used and operation is disabled Restart execution after the settings of the break conditions of BREAKPOINT or Event Condition have been canceled It is not possible to specify the break conditions and the measurement start end conditions at the same time with one channel If the me
34. elect the popup menu that is opened by clicking on the Ch5 OA or Ch6 OA column with the right mouse button Software Trace Function Note This function can be supported with SHC C compiler manufactured by Renesas Electronics Corporation including OEM and bundle products V6 0 or later However SHC C compiler including OEM and bundle products V8 0 or later is needed when instructions other than those compatible with SH4 are output When a specific instruction is executed the PC value at execution and the contents of one general register are acquired by trace Describe the Trace x function x is a variable name to be compiled and linked beforehand For details refer to the SuperH RISC engine C C Compiler Assembler Optimizing Linkage Editor User s Manual When the load module is downloaded on the emulator and is executed while a software trace function is valid the PC value that has executed the Trace x function the general register value for x and the source lines are displayed To activate the software trace function select the Acquire Software trace radio button in the Software trace dialog box that is opened by double clicking on the software Trace column of the Eventpoint window Note To cancel settings select the Don t care radio button in the Software trace dialog box or select Delete from the popup menu that is opened by clicking on the software Trace column with the right mouse button Int
35. ernal Trace Function This function is activated by selecting the Internal trace radio button in the Trace type group box of the Trace mode page Set the trace condition to be used Notes 1 If an interrupt is generated at the program execution start or end including a step operation 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 4k EML 2 Ifacompletion type exception occurs during exception branch acquisition the next address to the address in which an exception occurs is acquired R20UT0073EJ0200 Rev 2 00 Page 25 of 46 Nov 18 2010 RENESAS Section 2 Software Specifications when Using the SH74504 SH74513 SH74552 SH74562 SH74504_Debug_MCU_BOARD SuperH Family E10A USB Emulator and SH74552_Debug_MCU_BOARD 3 Trace information cannot be acquired for the following branch instructions e The BF and BT instructions whose displacement value is 0 e Branch to H A0000000 by reset AUD Trace Functions This function is operational when the AUD pin of the device is connected to the emulator It is activated by selecting the AUD trace radio button in the Trace type group box of the Trace mode page Set the trace condition to be used The AUD trace can be used only in Debug_MCU_Board Table 2 7 shows the AUD trace acquisition mode that can be set in each trace function Table 2 7 AUD Trace Acquisition Mode
36. hown in figure 1 2 the switches of the emulator are set as SW2 1 and SW3 1 For details refer to section 3 8 Setting the DIP Switches in the SuperH Family E10A USB Emulator User s Manual VecQ I O power supply All pulled up at 4 7 kQ or more Vcc Vcc Vcc H UDI port connector 14 pin type Target MCU TCK TRST TDO ASEBRK BRKACK User system Figure 1 2 Recommended Circuit for Connection between the H UDI Port Connector and MPU when the Emulator is in Use 14 Pin Type R20UT0073EJ0200 Rev 2 00 Page 7 of 46 Nov 18 2010 RENESAS SuperH Family E10A USB Emulator Section 1 Connecting the Emulator with the User System R20UT0073EJ0200 Rev 2 00 Page 8 of 46 Nov 18 2010 RENESAS Section 2 Software Specifications when Using the SH74504 SH74513 SH74552 SH74562 SH74504_Debug_MCU_BOARD SuperH Family E10A USB Emulator and SH74552_Debug_MCU_BOARD Section 2 Software Specifications when Using the SH74504 SH74513 SH74552 SH74562 SH74504_Debug_MCU_BOARD and SH74552_Debug_MCU_BOARD 2 1 Differences between the Actual MCUs 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 2 1 The initial values of the actual registers of the SH74504 SH74513 SH74552 SH74562 SH74504_Debug_MCU_BOARD and SH74552_Debug_MCU_BOARD are undefined R20UT0073EJ0200 Rev 2 00 Page 9 of 46 Nov 18 2010 RENESAS Section 2 Sof
37. ies by or arising from the use of Renesas Electronics products or technical information described in this document No license express implied or otherwise is granted hereby under any patents copyrights or other intellectual property rights of Renesas Electronics or others You should not alter modify copy or otherwise misappropriate any Renesas Electronics product whether in whole or in part Descriptions of circuits software and other related information in this document are provided only to illustrate the operation of semiconductor products and application examples You are fully responsible for the incorporation of these circuits software and information in the design of your equipment Renesas Electronics assumes no responsibility for any losses incurred by you or third parties arising from the use of these circuits software or information When exporting the products or technology described in this document you should comply with the applicable export control laws and regulations and follow the procedures required by such laws and regulations You should not use Renesas Electronics products or the technology described in this document for any purpose relating to military applications or use by the military including but not limited to the development of weapons of mass destruction Renesas Electronics products and technology may not be used for or incorporated into any products or systems whose manufacture use or sale is prohibited un
38. ion of Reset CPU or Reset Go R20UT0073EJ0200 Rev 2 00 Page 12 of 46 Nov 18 2010 RENESAS Section 2 Software Specifications when Using the SH74504 SH74513 SH74552 SH74562 SH74504_Debug_MCU_BOARD SuperH Family E10A USB Emulator and SH74552_Debug_MCU_BOARD 14 Internal Flash Memory Do not use an MCU that has been used for debugging If the flash memory is rewritten many times and the MCU is left for a few days data may be lost due to retention problems If the flash memory is rewritten many times the data will not be erased If an error message is displayed exchange the MCU for a new one 15 Emulation of Programming and Erasure of the Internal Flash Memory 1 The setting of the FWE pins is ignored while the emulator is connected The flash write enable bit FWE of the flash pin monitor register FPMON becomes undefined Note this point if the bit is referred to during execution of the user program 2 The following processing must not be used during calls of the programs for programming and erasing the internal flash memory e STOP button e Automatic updating and tool chip watching for the watch function e Memory operations during emulation e AUD trace function non realtime trace mode e Monitor function e Displaying a PC or SR value on the status bar 3 Do not set the breakpoint in a block of the internal flash memory that will be a target for programming or erasure 4 For emulating programming or erasur
39. ions cont Function Bus Window Address Data State Address Branch Bus Bus ASID Condition Condition LDTLB Count Condition Dialog Condition Condition Condition Bus Window System Instruction Condition Branch Software Box Address Data ASID Status address Bus Break Count Trace Trace Action Event O X X X xX O X X X X O Condition B T 9 dialog and P box Event O X O O X X X X X X O Condition B and 10 dialog P box Event O O O O X X X O X X O Condition B and 11 dialog P box Event X X X X X X X X O X O Condition B T 12 dialog and P box Software X X X X X X X X X O Trace trace fixed dialog box Notes 1 O Can be set in the dialog box X Cannot be set in the dialog box 2 For the Action item B Setting a break is enabled T Setting a trace is enabled P Setting a performance start or end condition is enabled R20UT0073EJ0200 Rev 2 00 Page 17 of 46 Nov 18 2010 RENESAS Section 2 Software Specifications when Using the SH74504 SH74513 SH74552 SH74562 SH74504_ Debug_MCU_BOARD SuperH Family E10A USB Emulator and SH74552_Debug_MCU_BOARD Sequential Setting In the emulator sequential setting of an Event Condition is enabled Table 2 4 Sequential Event Conditions Type Event Condition Description CPU 2 Channel Ch2 gt 1 Halts a program when a condition is satisfied in Sequential Sequential the order of Event Condition 2 1 Event Page An event condition
40. miconductor products have specific characteristics such as the occurrence of failure at a certain rate and malfunctions under certain use conditions Further Renesas Electronics products are not subject to radiation resistance design Please be sure to implement safety measures to guard them against the possibility of physical injury and injury or damage caused by fire in the event of the failure of a Renesas Electronics product such as safety design for hardware and software including but not limited to redundancy fire control and malfunction prevention appropriate treatment for aging degradation or any other appropriate measures Because the evaluation of microcomputer software alone is very difficult please evaluate the safety of the final products or system manufactured by you Please contact a Renesas Electronics sales office for details as to environmental matters such as the environmental compatibility of each Renesas Electronics product Please use Renesas Electronics products in compliance with all applicable laws and regulations that regulate the inclusion or use of controlled substances including without limitation the EU RoHS Directive Renesas Electronics assumes no liability for damages or losses occurring as a result of your noncompliance with applicable laws and regulations This document may not be reproduced or duplicated in any form in whole or in part without prior written consent of Renesas Electronics Please contact a Rene
41. must be set for Ch2 and Ch1 Ch6 gt 5 Halts a program when a condition is satisfied in the order of Event Condition 6 5 An event condition must be set for Ch6 and Ch5 Ch11 gt 10 Halts a program when a condition is satisfied in the order of Event Condition 11 10 An event condition must be set for Ch11 and Ch10 Many Ch3 gt 2 gt 1 Halts a program when a condition is satisfied in Channel the order of Event Condition 3 2 1 Sequential An event condition must be set for Ch3 Ch2 and Ch1 CPU Expands the CPU Sequential Extend page Extend The sequential setting is enabled with any combination For details refer to section 2 2 1 Sequential Break Extension Setting in this manual SystemBus SystemBus Ch9 gt 8 Halts a program when a condition is satisfied for Sequential Sequential Event Condition 9 8 Event Page Event An event condition must be set for Ch9 and Ch8 Ch8 gt 9 Halts a program when a condition is satisfied for Event Condition 8 9 An event condition must be set for Ch8 and Chg SystemBus Expands the SystemBus Sequential Extend Extend page The sequential setting is enabled with any combination For details refer to section 2 2 1 Sequential Break Extension Setting in this manual R20UT0073EJ0200 Rev 2 00 Page 18 of 46 Nov 18 2010 RENESAS Section 2 Software Specifications when Using the SH74504 SH74513 SH74552 SH74562 SH74504_Debug_MCU_BOARD SuperH
42. nd cache misses write number of operand cache accesses read number of operand cache accesses write System bus occupied rate of request bus The equivalent CPU clock value of the number of requests number of elapsed cycles System bus occupied rate of response bus The equivalent CPU clock value of the number of responses number of elapsed cycles R20UT0073EJ0200 Rev 2 00 Nov 18 2010 Re Page 44 of 46 s1LKENESAS Section 2 Software Specifications when Using the SH74504 SH74513 SH74552 SH74562 SH74504_Debug_MCU_BOARD SuperH Family E10A USB Emulator and SH74552_Debug_MCU_BOARD Each measurement condition is also counted when conditions in table 2 12 are generated Table 2 12 Performance Measurement Conditions to be Counted Measurement Condition Notes No caching due to the Counted for accessing the cacheable area settings of TLB cacheable bit Cache on counting Accessing the non cacheable area is counted less than the actual number of cycles and counts Accessing the cacheable X Y RAM and U RAM areas is counted more than the actual number of cycles and counts Branch count The counter value is incremented by 2 This means that two cycles are valid for one branch Notes 1 In the non realtime trace mode of the AUD trace and memory output trace normal counting cannot be performed because the generation state of the stall or the execution cycle is changed 2 Since
43. onics Taiwan Co Ltd 7F No 363 Fu Shing North Road Taipei Taiwan Tel 886 2 8175 9600 Fax 886 2 8175 9670 Renesas Electronics Singapore Pte Ltd 1 harbourFront Avenue 06 10 keppel Bay Tower Singapore 098632 Tel 65 6213 0200 Fax 65 6278 8001 Renesas Electronics Malaysia Sdn Bhd Unit 906 Block B Menara Amcorp Amcorp Trade Centre No 18 Jin Persiaran Barat 46050 Petaling Jaya Selangor Darul Ehsan Malaysia Tel 60 3 7955 9390 Fax 60 3 7955 9510 Renesas Electronics Korea Co Ltd 11F Samik Lavied or Bldg 720 2 Yeoksam Dong Kangnam Ku Seoul 135 080 Korea Tel 82 2 558 3737 Fax 82 2 558 5141 2010 Renesas Electronics Corporation and Renesas Solutions Corp All rights reserved Colophon 1 0 SuperH Family E10A USB Emulator Additional Document for User s Manual Supplementary Information on Using the SH74504 SH74513 SH74552 SH74562 SH74504_Debug_MCU_BOARD and SH74552 Debug MCU BOARD 2E N ESAS R20UT0073EJ0200 Renesas Electronics Corporation Previous Number REJ10J2101 0100
44. s not connected respectively 1 When the emulator is used MPMD 0 2 When the emulator is not used MPMD 1 Figure 1 2 shows an example of circuits that allow the MPMD pin to be GND 0 whenever the emulator is connected by using the user system interface cable When the MPMD pin is changed by switches etc ground pin 9 Do not connect this pin to the MPMD pin When a network resistance is used for pull up it may be affected by a noise Separate TCK from other resistances When the power is supplied the TRST pin must be low during a specified period regardless of whether or not the H UDI is used Reduce the power supplied to the TRST pin by pulling the pin down by a resistance of kilo ohm The pattern between the H UDI port connector and the MPU must be as short as possible Do not connect the signal lines to other components on the board Supply only the Vcc voltage to the UVCC pin because the H UDI for the MCU operates at the Vcc voltage I O power supply Make the emulator s switch settings so that the user power will be supplied SW2 1 and SW3 1 The resistance values shown in figure 1 2 are for reference For the pin processing in cases where the emulator is not used refer to the hardware manual of the related MPU R20UT0073EJ0200 Rev 2 00 Page 6 of 46 Nov 18 2010 RENESAS SuperH Family E10A USB Emulator Section 1 Connecting the Emulator with the User System When the circuit is connected as s
45. s Sequential Extend page R20UT0073EJ0200 Rev 2 00 Page 19 of 46 Nov 18 2010 RENESAS Section 2 Software Specifications when Using the SH74504 SH74513 SH74552 SH74562 SH74504_ Debug_MCU_BOARD SuperH Family E10A USB Emulator and SH74552_Debug_MCU_BOARD 2 2 2 Trace Functions The emulator supports the trace functions listed in table 2 5 Table 2 5 Trace Functions Memory Output Function Internal Trace AUD Trace Trace Branch trace Supported eight branches Supported Supported Range memory access trace Supported eight events Supported Supported Software trace Supported eight events Supported Supported Table 2 6 shows the type numbers that the AUD function can be used Also the AUD function can only be used with a Debug_ MCU_BOARD Table 2 6 Type Number and AUD Function Type Number AUD Function HS0005KCU01H Not supported HSO0005KCU02H Supported R20UT0073EJ0200 Rev 2 00 Page 20 of 46 Nov 18 2010 RENESAS Section 2 Software Specifications when Using the SH74504 SH74513 SH74552 SH74562 SH74504_Debug_MCU_BOARD SuperH Family E10A USB Emulator and SH74552_Debug_MCU_BOARD Branch Trace Functions The branch source and destination addresses their source lines branch types and types of accessed bus masters are displayed Setting Method Select the check box in the Branch group box in the Branch trace page of the Event condition 12 dialog box that opens by double clicking on th
46. sas Electronics sales office if you have any questions regarding the information contained in this document or Renesas Electronics products or if you have any other inquiries Note 1 Renesas Electronics as used in this document means Renesas Electronics Corporation and also includes its majority owned subsidiaries Note 2 Renesas Electronics product s means any product developed or manufactured by or for Renesas Electronics Regulatory Compliance Notices European Union regulatory notices This product complies with the following EU Directives These directives are only valid in the European Union CE Certifications Electromagnetic Compatibility EMC Directive 2004 108 EC EN 55022 Class A WARNING This is a Class A product In a domestic environment this product may cause radio interference in which case the user may be required to take adequate measures EN 55024 e Information for traceability e Authorised representative Name Renesas Electronics Corporation Address 1753 Shimonumabe Nakahara ku Kawasaki Kanagawa 211 8668 Japan e Manufacturer Name Renesas Solutions Corp Address Nippon Bldg 2 6 2 Ote machi Chiyoda ku Tokyo 100 0004 Japan e Person responsible for placing on the market Name Renesas Electronics Europe Limited Address Dukes Meadow Millboard Road Bourne End Buckinghamshire SL8 5FH U K Environmental Compliance and Certifications e Waste Electrical and Electronic Equipmen
47. step operation BREAKPOINTSs are disabled 4 When execution resumes from the address where a BREAKPOINT is specified single step operation 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 R20UT0073EJ0200 Rev 2 00 Page 32 of 46 Nov 18 2010 RENESAS Section 2 Software Specifications when Using the SH74504 SH74513 SH74552 SH74562 SH74504_Debug_MCU_BOARD SuperH Family E10A USB Emulator and SH74552_Debug_MCU_BOARD 6 When the Normal 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 or a virtual address according to the MCU MMU status during command input when the VPMAP_SET command setting is disabled The ASID value of the MCU 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 MCU MMU status during command input Even when the VP_MAP table is modified after BREAKPOINT setting the address translated when the BR
48. supported A large amount of trace information can be acquired in realtime The AUD trace function can be used only in Debug_MCU_BOARD 2 14 pin type without AUD function The AUD trace function cannot be used because only the H UDI function is supported Since the 14 pin type connector is smaller than the 36 pin type 1 2 5 the size of the area where the connector is installed on the user system can be reduced 3 38 pin type without AUD function The emulator cannot be used with the 38 pin type connector mounted on the Debug _MCU_BOARD R20UT0073EJ0200 Rev 2 00 Page 3 of 46 Nov 18 2010 RENESAS SuperH Family E10A USB Emulator Section 1 Connecting the Emulator with the User System 1 3 Installing the H UDI Port Connector on the User System Table 1 3 shows the recommended H UDI port connectors for the emulator Table 1 3 Recommended H UDI Port Connectors Connector Type Number Manufacturer Specifications 14 pin connector 2514 6002 Minnesota Mining amp 14 pin straight type Manufacturing Ltd 1 4 Pin Assignments of the H UDI Port Connector Figures 1 1 shows the pin assignments of the 14 pin H UDI port connectors Note Note that the pin number assignments of the H UDI port connector shown on the following pages differ from those of the connector manufacturer R20UT0073EJ0200 Rev 2 00 Page 4 of 46 Nov 18 2010 RENESAS SuperH Family E10A USB Emulator Section 1 Connecting the Emulator with the User System SH
49. t WEEE Directive 2002 96 EC WEEE Marking Notice European Union Only Renesas development tools and products are directly covered by the European Union s Waste Electrical and Electronic Equipment WEEE Directive 2002 96 EC As a result this equipment including all accessories must not be disposed of as household waste but through your locally recognized recycling or disposal schemes As part of our commitment to environmental responsibility Renesas also offers to take back the equipment and has implemented a Tools Product Recycling Program for customers in Europe This allows you to return equipment to Renesas for disposal through our approved Producer Compliance Scheme To register for the program click here http www renesas com weee United States Regulatory notices on Electromagnetic compatibility FCC Certifications United States Only This equipment has been tested and found to comply with the limits for a Class A digital device pursuant to Part 15 of the FCC Rules These limits are designed to provide reasonable protection against harmful interference when the equipment is operated in a commercial environment This equipment generates uses and can radiate radio frequency energy and if not installed and used in accordance with the instruction manual may cause harmful interference to radio communications Operation of this equipment in a residential area is likely to cause harmful interference in which case the user
50. t Condition Type Description Address bus condition Address Breaks when the MCU address bus value or the program counter value matches the specified value Data bus condition Data Breaks when the MCU data bus value matches the specified value Byte word or longword can be specified as the access data size Bus state condition Bus State There are two bus state condition settings Bus state condition Breaks or acquires a trace when the data bus or the X Bus or Y Bus address bus of the MCU is matched Read Write condition Breaks or acquires a trace when the specified read write condition is matched Window address condition Breaks or acquires a trace when the data in the specified memory range is accessed System bus Breaks or acquires a trace when the address or data on the system bus is matched LDTLB instruction event condition Breaks when the MCU executes the LDTLB instruction Count Breaks when the conditions set are satisfied the specified number of times Branch trace condition Branch trace Breaks or acquires a trace when a branch occurs with the condition specified by the MCU By default trace acquisition is enabled Software trace Selects whether or not the software trace is acquired Action Selects the operation when a condition such as setting a break trace or performance start or end is matched R20UT0073EJ0200 Rev 2 00 Nov 18
51. the clock source of the counter is the CPU clock counting also stops when the clock halts in the sleep mode d Extension setting of the performance result storing counter The 32 bit counter stores the result of performance and two counters can be used as a 64 bit counter To set a 64 bit counter check the Enable check box in the Extend counter group box of the Performance Analysis dialog box for Ch and Ch3 2 Displaying the result of performance The result of performance is displayed in the Performance Analysis window or the PERFORMANCE_ANALYSIS command in hexadecimal 32 bits However when the extension counter is enabled it is displayed in hexadecimal 64 bits Note Ifa performance counter overflows as a result of measurement will be displayed for upper bits 3 Initializing the measured result To initialize the measured result select Initialize from the popup menu in the Performance Analysis window or specify INIT with the PERFORMANCE_ANALYSIS command R20UT0073EJ0200 Rev 2 00 Page 45 of 46 Nov 18 2010 RENESAS Section 2 Software Specifications when Using the SH74504 SH74513 SH74552 SH74562 SH74504_ Debug_MCU_BOARD SuperH Family E10A USB Emulator and SH74552_Debug_MCU_BOARD R20UT0073EJ0200 Rev 2 00 Page 46 of 46 Nov 18 2010 RENESAS SuperH Family E10A USB Emulator Additional Document for User s Manual Supplementary Information on Using the SH74504 SH74513 SH74552
52. tware Specifications when Using the SH74504 SH74513 SH74552 SH74562 SH74504_ Debug_MCU_BOARD SuperH Family E10A USB Emulator and SH74552_Debug_MCU_BOARD Table 2 1 Register Initial Values at Emulator Link Up Register Emulator at Link Up RO to R14 H 00000000 R15 SP H A0000000 RO_BANK to R7_BANK H 00000000 PC H A0000000 SR H 700000F0 GBR H 00000000 VBR H 00000000 MACH H 00000000 MACL H 00000000 PR H 00000000 DBR H 00000000 SGR H 00000000 SPC H 00000000 SSR H 000000F0 FPUL H 00000000 FPSCR H 00040001 FRO to FR15 H 00000000 XFO to XF15 H 00000000 DRO to DR15 H 00000000 XDO to XD15 H 00000000 2 The emulator uses the H UDI do not access the H UDI 3 Reset Signals The MCU reset signals are only valid during emulation started with clicking the GO or STEP type button If these signals are enabled on the user system in command input wait state they are not sent to the MCU Note Do not break the user program when the RESET signal is being low and the WAIT control signal is being active A TIMEOUT error will occur If the WAIT control signal is fixed to active during break a TIMEOUT error will occur at memory access R20UT0073EJ0200 Rev 2 00 Page 10 of 46 Nov 18 2010 RENESAS Section 2 Software Specifications when Using the SH74504 SH74513 SH74552 SH74562 SH74504_ Debug_MCU_BOARD SuperH Family E10A USB Emulator and SH74552_Debug_MCU_BOARD 4 Dire
53. ware Specifications when Using the SH74504 SH74513 SH74552 SH74562 SH74504_Debug_MCU_BOARD and SH74552_Debug_MCU_BOARD Table 2 11 shows the measurement items and methods that are mainly used Table 2 11 Main Measurement Items Main Measurement Item Measurement Method Elapsed time Number of elapsed cycles x CPU clock cycles Number of execution instructions Number of valid instructions issued number of cases of simultaneous execution of two instructions Number of interrupts accepted Number of exceptions accepted Number of instruction fetches for both cache and non cache Number of memory accesses in an opcode Instruction cache hit ratio Number of instruction cache accesses instruction cache miss counts instruction cache access counts Number of operand accesses for both cache and non cache Number of memory accesses in an operand read number of memory accesses in an operand write Operand cache hit ratio read Number of operand cache accesses read number of operand cache misses read number of operand cache accesses read Operand cache hit ratio write Number of operand cache accesses write number of operand cache misses write number of operand cache accesses write Operand cache hit ratio Number of operand cache accesses read number of operand cache accesses write number of operand cache misses read number of opera
54. will be required to correct the interference at his own expense CAUTION Changes or modifications not expressly approved by the party responsible for compliance could void the user s authority to operate the equipment Table of Contents Section 1 Connecting the Emulator with the User System uu cc ceessceseesececsecsesessesecseseesesseseegs 1 1 1 Components of the Emulator TA 1 2 Connecting the Emulator with the User System 3 1 3 Installing the H UDI Port Connector on the User System wd 1 4 Pin Assignments of the H UDI Port Connector wd 1 5 Recommended Circuit between the H UDI Port Connector and the MPU 6 1 5 1 Recommended Circuit 14 Pin Type ssacssssssssasscaseessstessisesvvrceetsvesvoasseapsigsseteasesanavensasonsnsacstensussaenaiensobsesetse 6 Section 2 Software Specifications when Using the SH74504 SH74513 SH74552 SH74562 SH74504_Debug_MCU_BOARD and SH74552_Debug_MCU_BOARD c eee 9 2 1 Differences between the Actual MCUs and the Emulator onsieur an n a R 9 2 2 Specific Functions for the Emulator when Using the SH74504 SH74513 SH74552 SH74562 SH74504_Debug_MCU_BOARD and SH74552_Debug_MCU_BOARD 14 2 2 1 Event Condition Functions 2 2 2 Trace Functions 2 2 3 Notes on Using the JTAG H UDI Clock TCK and AUD Clock AUDCK 2 2 4 Notes on Setting the Breakpoint Dialog Box i 2 2 5 Notes on Setting the Event Condition Dialog Box and the BREAKCONDITION_ SET Command 3

Download Pdf Manuals

image

Related Search

Related Contents

citrap-vaud.ch - DNV - Desserte Nocturne Vaudoise  Sharp 3D User's Manual  DESK ーN LUGK / DESK SーDE LUGK 組立説明書  "user manual"  Garmin Gpsmap 525  

Copyright © All rights reserved.
Failed to retrieve file