Home

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

image

Contents

1. HF FFF8000 End address JH FFFF8003 Bus state B Bus X Figure 2 5 Window trace Page Rev 3 00 Jan 13 2010 Page 23 of 30 RENESAS REJ10J1424 0300 Section 2 Software Specifications when Using the SH Tiny Series Debugging MCU Board c Software Trace Function Note This function can be supported with SHC C compiler manufactured by Renesas Technology Corp including OEM and bundle products V7 0 or later 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 SHC 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 Software trace check box in the AUD function group box of the Trace mode page Notes on AUD Trace 1 When the trace display is performed during user program execution the mnemonics operands or sources are not displayed 2 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 outp
2. Trace buffer Trace continue This function overwrites the latest trace information to store full the oldest trace information Trace stop After the trace buffer becomes full the trace information is no longer acquired The user program is continuously executed To set the AUD 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 AUD mode1 or AUD mode2 group box in the Trace mode page of the Acquisition dialog box Rev 3 00 Jan 13 2010 Page 20 of 30 REJ10J1424 0300 RENESAS Section 2 Software Specifications when Using the SH Tiny Series Debugging MCU Board Acquisition Trace mode Window trace AUD Branch trace Trace type C Trace AUD function AUD mode IV Branch trace Window trace I Software trace AUD model Realtime trace Non realtime trace AUD mode2 Trace continue Trace stop Er Break AUD trace display range Start pointer D 255 End pointer D0 Figure 2 3 Trace mode Page When the AUD trace function is used select the AUD function radio button in the Trace type group box of the Trace mode page Rev 3 00 Jan 13 2010 Page 21 of 30 RENESAS REJ10J1424 0300 Section 2 Software Specifications when Using the SH Tiny Series Debugging MCU Board a Branch Trace Function The branch sour
3. Tokyo 100 0004 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 Technology Europe Limited European Headquarters Address Dukes Meadow Millboard Road Bourne End Buckinghamshire SL8 5FH U K Rev 3 00 Jan 13 2010 Page iv of vi REJ10J1424 0300 2RENESAS United States Regulatory Notices on Electromagnetic Compatibility FCC Certifications This equipment has been tested and found to comply with the limits for a Class A digital device pursuant to Part 15 of the FCC Rules These limits are designed to provide reasonable protection against harmful interference when the equipment is operated in a commercial environment This equipment generates uses and can radiate radio frequency energy and if not installed and used in accordance with the instruction manual may cause harmful interference to radio communications Operation of this equipment in a residential area is likely to cause harmful interference in which case the user will be required to correct the interference at his own expense This device complies with Part 15 of the FCC Rules Operation is subject to the following two conditions 1 this device may not cause harmful interference and 2 this device must accept any interference received including interference that may cause undesired operation CAUTION Changes or modifications
4. Jan 13 2010 Page 25 of 30 RENESAS REJ10J1424 0300 Section 2 Software Specifications when Using the SH Tiny Series Debugging MCU Board 2 2 7 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 any line in the Performance Analysis window is clicked with the right mouse button a popup menu is displayed and the Performance Analysis dialog box can be displayed by selecting Setting Note For the command line syntax refer to the online help a Specifying the measurement start end conditions The measurement start end conditions are specified by using Event Condition 1 2 The Ch1 2 3 list box of the Combination action Sequential PtoP dialog box can be used Table 2 14 Measurement Period Classification Item Selection in Ch2 to Ch1 the Ch1 2 3 PA list box Description The period from the satisfaction of the condition set in Event Condition 2 start condition to the satisfaction of the condition set in Event Condition 1 end condition is set as the performance measurement period Ch1 to Ch2 PA The period from the satisfaction of the condition set in Event Condition 1 start condition to the satisfaction of the condition set in Event Condition 2 end condition is set as the performance
5. W Write Watchdog timer counter WTCSR R Read Watchdog timer control status register WTCNT R Read Watchdog timer counter Customization of the I O register definition file After the I O register definition file is created the MCU 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 9 Illegal Instructions Do not execute illegal instructions with STEP type commands 10 MCU Operating Mode Do not use the emulator in the boot mode and user program mode 11 MCU On chip Flash Memory The MCU on chip flash memory cannot be reprogrammed during execution of the user program Rev 3 00 Jan 13 2010 Page 7 of 30 RENESAS REJ10J1424 0300 Section 2 Software Specifications when Using the SH Tiny Series Debugging MCU Board 2 2 Specific Functions and Notes for the Emulator when Using the SH Tiny Series Debugging MCU Board 2 2 1 Selecting the Target MCU Select the target MCU for the emulator according to that in use For details refer to section 4 Preparations for Debugging in the SuperH Family E10A USB Emulator U
6. in the order of Event Condition 3 2 1 I Trace stop Ch2 1 Halts acquisition of an internal trace when a condition is satisfied in the order of Event Condition 2 1 Ch2 to Ch1 PA Sets the performance measurement period during the time from the satisfaction of the condition set in Event Condition 2 start condition to the satisfaction of the condition set in Event Condition 1 end condition Ch1 to Ch2 PA Sets the performance measurement period during the time from the satisfaction of the condition set in Event Condition 1 start condition to the satisfaction of the condition set in Event Condition 2 end condition Ch4 5 list box Sets the point to point of the internal trace the start or end condition of trace acquisition using Event Conditions 4 and 5 Don t care Sets no start or end condition of trace acquisition l Trace Ch5 to Ch4 Sets the acquisition period during the time from the PtoP satisfaction of the condition set in Event Condition 5 start condition to the satisfaction of the condition set in Event Condition 4 end condition Rev 3 00 Jan 13 2010 Page 11 of 30 RENESAS REJ10J1424 0300 Section 2 Software Specifications when Using the SH Tiny Series Debugging MCU Board Notes 1 If the start condition is satisfied after the end condition has been satisfied by measuring performance performance measurement will be restarted For the measurement result after a break the measuremen
7. measurement period Other than above The period from the start of execution of the user program to the occurrence of a break is measured Rev 3 00 Jan 13 2010 Page 26 of 30 REJ10J1424 0300 2tENESAS Section 2 Software Specifications when Using the SH Tiny Series Debugging MCU Board Perfomance Ana Condition Channel 1 Elapsed time Sd Channel 2 Disabled Channel 3 Disabled Channel 4 Disabled ba Figure 2 6 Performance Analysis Dialog Box For measurement tolerance e The measured value includes tolerance e Tolerance will be generated before or after a break Note When Ch2 to Ch1 PA or Ch1 to Ch2 PA is selected to execute the user program specify conditions set in Event Condition 2 and Event Condition 1 and one or more items for performance measurement b Measurement item Items are measured with Channel 1 to 4 in the Performance Analysis dialog box Maximum four conditions can be specified at the same time Table 2 15 shows the measurement items Rev 3 00 Jan 13 2010 Page 27 of 30 RENESAS REJ10J1424 0300 Section 2 Software Specifications when Using the SH Tiny Series Debugging MCU Board Table 2 15 Measurement Item Selected Name Option Disabled None Elapsed time AC the number of execution cycles l Number of execution states VS Branch instruction counts BT Number of execution instructions l Exception interrupt counts EA Inter
8. not expressly approved by the party responsible for compliance could void the user s authority to operate the equipment Rev 3 00 Jan 13 2010 Page v of vi REJ10J1424 0300 2RENESAS Contents Section 1 About the Emulator sac csssess cheeesdaicaczspesctenceacives fa dleenetseczepecevenianciveces 1 1 1 Components of the Emulator ceseeseeeeceseseeeeeeeseeeseceaeceaecsaeesaeeseesseeeeseaeesaes 1 1 2 Connecting the Emulator with the SH Tiny Series Debugging MCU Board 3 Section 2 Software Specifications when Using the SH Tiny Series Debugeing MCU Ost orrsaccsuennenunien n 5 2 1 Differences between the MCU and the Emulator cee esceeeseeeeneeceeeeeeneeeeeeseneeenaeers 5 2 2 Specific Functions and Notes for the Emulator when Using the SH Tiny Series Debugging MCU Boat oni scdecesccstesies ascins sande ci E eR E AERA ER nubsdaneect 8 2 2 1 Selecting the Target MCU skiis di e Ea E a 8 2 2 2 Event Condition Functions sreski iieii iieri 8 225 TRACE FUNCUONS siirron n E EAA E TEE ER TE RE 14 2 2 4 Note on Using the JTAG H UDI Clock TCK ee eeeeeeseeeseeeeeeeeeneeessneeeenes 25 2 2 5 Notes on Setting the Breakpoint Dialog BOX oo eee eeseeeeeeeeeeeeeeees 25 2 2 6 Notes on Setting the Event Condition Dialog Box and the BREAKCONDITION_ SET Command 00 eee eee eeeeeeeeseeeneeeeeseeesees 25 2 2 7 Performance Measurement Function 0 cecceescecesceceseeeeteeceneeeeaeeesaeeeseesseeeeaees 26 Rev 3 00 Jan 13 2010 P
9. period no Event condition will be satisfied 7 When the emulator is being connected the user break controller UBC function is not available 2 2 3 Trace Functions The emulator supports the trace functions listed in table 2 8 Table 2 8 Trace Functions Function Internal Trace AUD Trace Branch trace Supported Supported Memory access trace Supported Supported Software trace Not supported Supported Table 2 9 shows the type numbers that the AUD function can be used Table 2 9 Type Number and AUD Function Type Number AUD Function HS0005KCU01H Not supported HS0005KCU02H Supported The internal and AUD traces are set in the Acquisition dialog box of the Trace window Rev 3 00 Jan 13 2010 Page 14 of 30 REJ10J1424 0300 RENESAS Section 2 Software Specifications when Using the SH Tiny Series Debugging MCU Board Internal Trace Function When I Trace is selected for Trace type on the Trace Mode page of the Acquisition dialog box the internal trace can be used Acquisition Trace mode Trace type Trace C AUD function Trace mode Type L Bus amp Branch x Acquisition V Read v Write M Branch MV Data access E GP is V Instruction Fetch When trace buffer full Trace continue x AUD mode Iv r m w Ce Figure 2 2 Acquisition Dialog Box Internal Trace Function Rev 3 00 Jan 13 2010 Page 15 of 30 RENESAS REJ10J1424 0300 Section 2 Software Specifications when Usin
10. under certain use conditions Further Renesas Electronics products are not subject to radiation resistance design Please be sure to implement safety measures to guard them against the possibility of physical injury and injury or damage caused by fire in the event of the failure of a Renesas Electronics product such as safety design for hardware and software including but not limited to redundancy fire control and malfunction prevention appropriate treatment for aging degradation or any other appropriate measures Because the evaluation of microcomputer software alone is very difficult please evaluate the safety of the final products or system manufactured by you Please contact a Renesas Electronics sales office for details as to environmental matters such as the environmental compatibility of each Renesas Electronics product Please use Renesas Electronics products in compliance with all applicable laws and regulations that regulate the inclusion or use of controlled substances including without limitation the EU RoHS Directive Renesas Electronics assumes no liability for damages or losses occurring as a result of your noncompliance with applicable laws and regulations This document may not be reproduced or duplicated in any form in whole or in part without prior written consent of Renesas Electronics Please contact a Renesas Electronics sales office if you have any questions regarding the information contained in this document or Renes
11. which the delay slot becomes the sleep instruction When I Bus L Bus amp Branch is selected and the trace acquisition condition is set for the L bus and I bus with Event Condition set the L bus condition and the I bus condition for Event Condition 1 and Event Condition 2 respectively If the settings of I Trace mode are changed during execution of the program execution will be suspended The number of clocks to be suspended during execution of the program is a maximum of about 26 bus clocks B If the bus clock B is 10 0 MHz the program will be suspended for 2 6 us Do not use the data condition as the trace acquisition condition Displaying a trace If a trace is displayed during execution of the program execution will be suspended to acquire the trace information The number of clocks to be suspended during execution of the program is a maximum of about 16384 peripheral clocks Pd 12310 bus clocks B If the peripheral clock Pd is 10 0 MHz and the bus clock B is 10 0 MHz the program will be suspended for 2 87 ms If a break occurs with the Event Condition when one or two instructions have been executed after a break occurred in an instruction and there is an unconditional branch a trace result will be displayed even if the unconditional branch has not been executed Restarting trace acquisition after halting Restarting trace acquisition is disabled during execution of the user program a break must
12. 10 Page 2 of 30 REJ10J1424 0300 2tENESAS Section 1 About the Emulator 1 2 Connecting the Emulator with the SH Tiny Series Debugging MCU Board 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 supported A large amount of trace information can be acquired in realtime The window trace function is also supported for acquiring memory access in the specified range memory access address or memory access data by tracing 2 14 pin type without AUD function The AUD trace function cannot be used because only the H UDI function is supported Rev 3 00 Jan 13 2010 Page 3 of 30 RENESAS REJ10J1424 0300 Section 1 About the Emulator Rev 3 00 Jan 13 2010 Page 4 of 30 REJ10J1424 0300 RENESAS Section 2 Software Specifications when Using the SH Tiny Series Debugging MCU Board Section 2 Software Specifications when Using the SH Tiny Series Debugging MCU Board 2 1 Differences between the MCU and the Emulator 1 When the emulator system is initiated it initializes the general registers a
13. O Condition 9 B and T2 Event Ch10 O X X X O Condition 10 B and T2 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 For the count condition setting a break is only enabled T1 Setting the trace halt and acquisition conditions are enabled for the internal trace T2 Setting the trace halt is enabled for the internal trace T3 Setting the trace halt and point to point is enabled for the internal trace P Setting a performance measurement start or end condition is enabled Rev 3 00 Jan 13 2010 Page 10 of 30 REJ10J1424 0300 RENESAS Section 2 Software Specifications when Using the SH Tiny Series Debugging MCU Board Sequential Setting Using the Combination action Sequential or PtoP dialog box specifies the sequential condition and the start or end of performance measurement Table 2 7 Conditions to Be Set Classification Item Description Ch1 2 3 listbox Sets the sequential condition and the start or end of performance measurement using Event Conditions 1 to 3 Don t care Sets no sequential condition or the start or end of performance measurement Break Ch3 2 1 Breaks when a condition is satisfied in the order of Event Condition 3 2 1 Break Ch2 1 Breaks when a condition is satisfied in the order of Event Condition 2 1 I Trace stop Ch3 2 1 Halts acquisition of an internal trace when a condition is satisfied
14. Section 2 Software Specifications when Using the SH Tiny Series Debugging MCU Board Using Event Condition restricts the condition the following three items are set as the internal trace conditions Table 2 11 Trace Conditions of the Internal Trace Item Acquisition Information Trace halt Acquires the internal trace until the Event Condition is satisfied The trace content is displayed in the Trace window after a trace has been halted No break occurs in the user program Trace acquisition condition Acquires only the data access where the Event Condition is satisfied Point to point Traces the period from the satisfaction of Event Condition 5 to the satisfaction of Event Condition 4 To restrict trace acquisition to access for only a specific address or specific function of a program an Event Condition can be used Typical examples are described below Example of halting a trace with a write access L bus to H FFFF8000 by the user program as a condition trace halt Set the condition to be acquired on I Trace mode Set the following in the Event Condition 1 or Event Condition 2 dialog box Address condition Set Address and H FFFF8000 Bus state condition Set L Bus and Write Action condition Disable Acquire Break and set Acquire Trace for Stop Example of acquiring the write access L bus only to H FFFF8000 by the user program trace acquisition condition Select L Bus amp Bra
15. To our customers Old Company Name in Catalogs and Other Documents On April 1 2010 NEC Electronics Corporation merged with Renesas Technology Corporation and Renesas Electronics Corporation took over all the business of both companies Therefore although the old company name remains in this document it is a valid Renesas Electronics document We appreciate your understanding Renesas Electronics website http www renesas com April 1 2010 Renesas Electronics Corporation Issued by Renesas Electronics Corporation http www renesas com Send any inquiries to http Mwww renesas com inquiry 2CENESAS 10 11 12 Notice All information included in this document is current as of the date this document is issued Such information however is subject to change without any prior notice Before purchasing or using any Renesas Electronics products listed herein please confirm the latest product information with a Renesas Electronics sales office Also please pay regular and careful attention to additional and different information to be disclosed by Renesas Electronics such as that disclosed through our website Renesas Electronics does not assume any liability for infringement of patents copyrights or other intellectual property rights of third parties by or arising from the use of Renesas Electronics products or technical information described in this document No license express implied or otherwise is
16. age vi of vi REJ10J1424 0300 7RENESAS Section 1 About the Emulator Section 1 About the Emulator 1 1 Components of the Emulator The E10A USB emulator supports the SH Tiny series debugging MCU board SH7124 debugging MCU board or SH7125 debugging MCU board Table 1 1 lists the components of the emulator Rev 3 00 Jan 13 2010 Page 1 of 30 RENESAS REJ10J1424 0300 Section 1 About the Emulator Table 1 1 Components of the Emulator Classi Quan fication Component Appearance tity Remarks Hard Emulator box HS0005KCU01H ware Depth 65 0 mm Width 97 0 mm Height 20 0 mm Mass 72 9 g or HS0005KCU02H Depth 65 0 mm Width 97 0 mm Height 20 0 mm Mass 73 7 g User system interface gt a1 14 pin type cable Length 20 cm Mass 33 1 g User system interface 1 36 pin type cable Length 20 cm Mass 49 2 g only for HSOOO5KCU02H 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 HSOOO5KCU01HE Manual Supplementary HS7125DBKCU01 Hu Information on Using the HS7125DBKCU01HE SH Tiny Series Debugging MCU Board and Test program manual for HSO005KCU01H and HSO0005KCU02H HS0005TM01HJ and HS0005TM01HE 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 Rev 3 00 Jan 13 20
17. alone is very difficult please evaluate the safety of the final products or system manufactured by you 11 In case Renesas products listed in this document are detached from the products to which the Renesas products are attached or affixed the risk of accident such as swallowing by infants and small children is very high You should implement safety measures so that Renesas products may not be easily detached from your products Renesas shall have no liability for damages arising out of such detachment 12 This document may not be reproduced or duplicated in any form in whole or in part without prior written approval from Renesas 13 Please contact a Renesas sales office if you have any questions regarding the information contained in this document Renesas semiconductor products or if you have any other inquiries Rev 3 00 Jan 13 2010 Page iii of vi REJ10J1424 0300 2RENESAS Regulatory Compliance Notices European Union Regulatory Notices on Electromagnetic Compatibility CE Certifications This product complies with the following European EMC standards e 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 Information for Traceability e Authorized representative Name Renesas Technology Corp Address Nippon Bldg 2 6 2 Ote machi Chiyoda ku
18. alue is matched Read Write condition Sets a condition when the read write condition is matched Count Sets a condition when the specified other conditions are satisfied for the specified counts Action Selects the operation when a condition such as a break a trace halt condition or a trace acquisition condition is matched Using the Combination action Sequential or PtoP dialog box which is opened by selecting Combination action Sequential or PtoP from the pop up menu on the Event Condition sheet specifies the sequential condition and the start or end of performance measurement Rev 3 00 Jan 13 2010 Page 9 of 30 RENESAS REJ10J1424 0300 Section 2 Software Specifications when Using the SH Tiny Series Debugging MCU Board Table 2 6 lists the combinations of conditions that can be set under Ch1 to Ch10 Table 2 6 Dialog Boxes for Setting Event Conditions Function Address Bus Data Bus Bus State Count Condition Condition Condition BusCondition Dialog Box Address Data State Count Action Event Ch1 O O O O O Condition 1 B T1 and P Event Ch2 O O O X O Condition 2 B T1 and P Event Ch3 O X x X O Condition 3 B and T2 Event Ch4 O X X X O Condition 4 B and T3 Event Ch5 O X X X O Condition 5 B and T3 Event Ch6 O x X X O Condition 6 B and T2 Event Ch7 O X X X O Condition 7 B and T2 Event Ch8 O X X X O Condition 8 B and T2 Event Ch9 O x X X
19. as Electronics products or if you have any other inquiries Note 1 Renesas Electronics as used in this document means Renesas Electronics Corporation and also includes its majority owned subsidiaries Note 2 Renesas Electronics product s means any product developed or manufactured by or for Renesas Electronics C 7 D mh on lt D D tENESAS SuperH Family E10A USB Emulator Additional Document for User s Manual Supplementary Information on Using the SH Tiny Series Debugging MCU Board Renesas Microcomputer Development Environment System SuperH Family SH Tiny Series E10A USB for SH Tiny Series HS7125DBKCU01HE Renesas Electronics Rev 3 00 2010 01 www renesas com Rev 3 00 Jan 13 2010 Page ii of vi REJ10J1424 0300 2RENESAS Notes regarding these materials This document is provided for reference purposes only so that Renesas customers may select the appropriate Renesas products for their use Renesas neither makes warranties or representations with respect to the accuracy or completeness of the information contained in this document nor grants any license to any intellectual property rights or any other rights of Renesas or any third party with respect to the information in this document 2 Renesas shall have no liability for damages or infringement of any intellectual property or other rights arising out of the us
20. be generated Note on execution of the user program Do not change trace settings during execution of the user program trace acquisition may be disabled The following trace settings will be changed the conditions of Event Condition the sequential conditions satisfied by Event Condition and internal trace set in the Acquisition dialog box To change these settings a break must be generated Rev 3 00 Jan 13 2010 Page 19 of 30 RENESAS REJ10J1424 0300 Section 2 Software Specifications when Using the SH Tiny Series Debugging MCU Board AUD Trace Functions This function is operational when the AUD pin of the device is connected to the emulator Table 2 13 shows the AUD trace acquisition mode that can be set in each trace function Table 2 13 AUD Trace Acquisition Mode Type Mode Description Continuous Realtime trace When trace information is being generated so intensely that trace occurs the output from the AUD pin is 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
21. ce and destination addresses and their source lines are displayed Branch trace can be acquired by selecting the Branch trace check box in the AUD function group box of the Trace mode page The branch type can be selected in the AUD Branch trace page Acquisition Trace mode Window trace AUD Branch trace V Acquire normal branch instruction trace IV Acquire subroutine branch instruction trace V Acquire exception branch instruction trace OK Cancel Figure 2 4 AUD Branch trace Page Rev 3 00 Jan 13 2010 Page 22 of 30 REJ10J1424 0300 RENESAS Section 2 Software Specifications when Using the SH Tiny Series Debugging MCU Board b Window Trace Function Memory access in the specified range can be acquired by trace Two memory ranges can be specified for channels A and B The read write or read write cycle can be selected as the bus cycle for trace acquisition Setting Method i Select the Channel A and Channel B check boxes in the AUD function group box of the Trace mode page Each channel will become valid ii Open the Window trace page and specify the bus cycle memory range and bus type that are to be set for each channel Acquisition Trace mode Window trace AUD Branch trace m Channel A Read Write C Read Write C Read Write Start address F FFFF8000 End address JH FFFF8003 Bus state L r Channel B Read Write Read C Wite C Read Write Start address
22. ddress is set the next lowest even address is used 2 A BREAKPOINT is accomplished by replacing instructions of the specified address Accordingly it can be set only to the internal RAM area A BREAKPOINT cannot be set to the following addresses An area other than CS the internal RAM and the internal flash memory An instruction in which Break Condition 2 is satisfied A slot instruction of a delayed branch instruction 3 During step operation specifying BREAKPOINTs and Event Condition breaks are disabled 4 When execution resumes from the address where a BREAKPOINT is specified and a break occurs before Event Condition execution single step operation is performed at the address before execution resumes Therefore realtime operation cannot be performed 5 If an address of a BREAKPOINT cannot be correctly set in the ROM 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 2 2 6 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 Rev 3 00
23. e of any information in this document including but not limited to product data diagrams charts programs algorithms and application circuit examples 3 You should not use the products or the technology described in this document for the purpose of military applications such as the development of weapons of mass destruction or for the purpose of any other military use When exporting the products or technology described herein you should follow the applicable export control laws and regulations and procedures required by such laws and regulations 4 All information included in this document such as product data diagrams charts programs algorithms and application circuit examples is current as of the date this document is issued Such information however is subject to change without any prior notice Before purchasing or using any Renesas products listed in this document please confirm the latest product information with a Renesas sales office Also please pay regular and careful attention to additional and different information to be disclosed by Renesas such as that disclosed through our website http www renesas com 5 Renesas has used reasonable care in compiling the information included in this document but Renesas assumes no liability whatsoever for any damages incurred as a result of errors or omissions in the information included in this document 6 When using or otherwise relying on the information in this document you s
24. ect threat to human life Renesas shall have no liability for damages arising out of the uses set forth in the above and purchasers who elect to use Renesas products in any of the foregoing applications shall indemnify and hold harmless Renesas Technology Corp its affiliated companies and their officers directors and employees against any and all damages arising out of such applications 9 You should use the products described herein within the range specified by Renesas especially with respect to the maximum rating operating supply voltage range movement power voltage range heat radiation characteristics installation and other product characteristics Renesas shall have no liability for malfunctions or damages arising out of the use of Renesas products beyond such specified ranges 10 Although Renesas endeavors to improve the quality and reliability of its products IC products have specific characteristics such as the occurrence of failure at a certain rate and malfunctions under certain use conditions Please be sure to implement safety measures to guard against the possibility of physical injury and injury or damage caused by fire in the event of the failure of a Renesas product such as safety design for hardware and software including but not limited to redundancy fire control and malfunction prevention appropriate treatment for aging degradation or any other applicable measures Among others since the evaluation of microcomputer software
25. g the SH Tiny Series Debugging MCU Board The following three items can be selected as the internal trace from Type of I Trace mode Table 2 10 Information on Acquiring the Internal Trace Item Acquisition Information L Bus amp Branch Acquires the data and branch information on the L bus e Data access read write e Branch information e Instruction fetch l Bus Acquires the data on the l bus e Data access read write e Selection of the bus master on the l bus CPU DMA DTC e Instruction fetch l Bus L Bus amp Branch Acquires the contents of L Bus amp Branch and l Bus After selecting Type of I Trace mode select the content to be acquired from Acquisition Typical examples are described below note that items disabled for Acquisition are not acquired For the MCUs that incorporate neither DMAC or DTC do not select DMA or DTC when selecting the bus master on the I bus e Example of acquiring branch information only Select L Bus amp Branch from Type and enable Branch on Acquisition e Example of acquiring the read or write access L bus only by a user program Select L Bus amp Branch from Type and enable Read Write and Data access on Acquisition e Example of acquiring the read access only by DMA I bus Select I Bus from Type and enable Read DMA and Data access on Acquisition Rev 3 00 Jan 13 2010 Page 16 of 30 REJ10J1424 0300 RENESAS
26. granted hereby under any patents copyrights or other intellectual property rights of Renesas Electronics or others You should not alter modify copy or otherwise misappropriate any Renesas Electronics product whether in whole or in part Descriptions of circuits software and other related information in this document are provided only to illustrate the operation of semiconductor products and application examples You are fully responsible for the incorporation of these circuits software and information in the design of your equipment Renesas Electronics assumes no responsibility for any losses incurred by you or third parties arising from the use of these circuits software or information When exporting the products or technology described in this document you should comply with the applicable export control laws and regulations and follow the procedures required by such laws and regulations You should not use Renesas Electronics products or the technology described in this document for any purpose relating to military applications or use by the military including but not limited to the development of weapons of mass destruction Renesas Electronics products and technology may not be used for or incorporated into any products or systems whose manufacture use or sale is prohibited under any applicable domestic or foreign laws or regulations Renesas Electronics has used reasonable care in preparing the information included in this documen
27. hould evaluate the information in light of the total system before deciding about the applicability of such information to the intended application Renesas makes no representations warranties or guaranties regarding the suitability of its products for any particular application and specifically disclaims any liability arising out of the application and use of the information in this document or Renesas products 7 With the exception of products specified by Renesas as suitable for automobile applications Renesas products are not designed manufactured or tested for applications or otherwise in systems the failure or malfunction of which may cause a direct threat to human life or create a risk of human injury or which require especially high quality and reliability such as safety systems or equipment or systems for transportation and traffic healthcare combustion control aerospace and aeronautics nuclear power or undersea communication transmission If you are considering the use of our products for such purposes please contact a Renesas sales office beforehand Renesas shall have no liability for damages arising out of the uses set forth above 8 Notwithstanding the preceding paragraph you should not use Renesas products for the purposes listed below 1 artificial life support devices or systems 2 surgical implantations 3 healthcare intervention e g excision administration of medication etc 4 any other purposes that pose a dir
28. i Co Ltd Unit 204 205 AZIACenter No 1233 Lujiazui Ring Rd Pudong District Shanghai China 200120 Tel lt 86 gt 21 5877 1818 Fax lt 86 gt 21 6887 7858 7898 Renesas Technology Hong Kong Ltd 7th Floor North Tower World Finance Centre Harbour City Canton Road Tsimshatsui Kowloon Hong Kong Tel lt 852 gt 2265 6688 Fax lt 852 gt 2377 3473 Renesas Technology Taiwan Co Ltd 10th Floor No 99 Fushing North Road Taipei Taiwan Tel lt 886 gt 2 2715 2888 Fax lt 886 gt 2 3518 3399 Renesas Technology Singapore Pte Ltd 1 Harbour Front Avenue 06 10 Keppel Bay Tower Singapore 098632 Tel lt 65 gt 6213 0200 Fax lt 65 gt 6278 8001 Renesas Technology Korea Co Ltd Kukje Center Bldg 18th FI 191 2 ka Hangang ro Yongsan ku Seoul 140 702 Korea Tel lt 82 gt 2 796 3115 Fax lt 82 gt 2 796 2145 Renesas Technology Malaysia Sdn Bhd Unit 906 Block B Menara Amcorp Amcorp Trade Centre No 18 Jin Persiaran Barat 46050 Petaling Jaya Selangor Darul Ehsan Malaysia Tel lt 603 gt 7955 9390 Fax lt 603 gt 7955 9510 Colophon 6 2 SuperH Family E10A USB Emulator Additional Document for User s Manual Supplementary Information on Using the SH Tiny Series Debugging MCU Board 2CENESAS Renesas Electronics Corporation 1753 Shimonumabe Nakahara ku Kawasaki shi Kanagawa 211 8668 Japan REJ10J1424 0300
29. mory is accessed by the following two methods as shown in table 2 2 Table 2 2 Memory Access during User Program Execution Method Description H UDI read write The stopping time of the user program is short because memory is accessed by the dedicated bus master Short break This method is not used in this product Do not set short break The method for accessing memory during execution of the user program is specified by using the Configuration dialog box Table 2 3 Stopping Time by Memory Access Reference Method Condition Stopping Time H UDI read write Reading of one longword for the Reading Maximum 2 bus clocks internal RAM Bo Writing of one longword for the Writing Maximum 2 bus clocks Bo internal RAM 6 Using WDT The WDT does not operate during break 7 Loading Sessions Information in JTAG clock of the Configuration dialog box cannot be recovered by loading sessions Thus the TCK value will be as follows When HS0005KCU01H or HSOOOSKCU072H is used TCK 2 5 MHz 8 IO Window Display and modification For each watchdog timer register there are two registers to be separately used for write and read operations Rev 3 00 Jan 13 2010 Page 6 of 30 REJ10J1424 0300 RENESAS Section 2 Software Specifications when Using the SH Tiny Series Debugging MCU Board Table 2 4 Watchdog Timer Register Register Name Usage Register WTCSR W Write Watchdog timer control status register WTCNT
30. nch from Type and enable Write and Data access on Acquisition Set the following in the Event Condition 1 or Event Condition 2 dialog box Address condition Set Address and H FFFF8000 Bus state condition Set L Bus and Write Action condition Disable Acquire Break and set Acquire Trace for Condition For the trace acquisition condition the condition to be acquired by Event Condition should be acquired by I Trace mode Example of acquiring a trace for the period while the program passes H 1000 through H 2000 point to point Set the condition to be acquired on I Trace mode Set the address condition as H 1000 in the Event Condition 5 dialog box Rev 3 00 Jan 13 2010 Page 17 of 30 RENESAS REJ10J1424 0300 Section 2 Software Specifications when Using the SH Tiny Series Debugging MCU Board Set the address condition as H 2000 in the Event Condition 4 dialog box Set Ch4 5 as I Trace Ch5 to Ch4 PtoP in the Combination action Sequential or PtoP dialog box When point to point and trace acquisition condition are set simultaneously they are ANDed Notes on Internal Trace e Timestamp The timestamp is twice the crystal oscillator or the external clock that is connected to or input to the target MCU Table 2 12 shows the timing for acquiring the timestamp Table 2 12 Timing for the Timestamp Acquisition Item Counter Value Stored in the Trace Memory L bus inst
31. nd part of the control registers The initial values of the MCU are undefined When the emulator is initiated from the workspace a value to be entered is saved in a session Table 2 1 Register Initial Values at Emulator Link Up Register Emulator at Link Up RO to R14 H 00000000 R15 SP Value of the SP in the power on reset vector table PC Value of the PC in the power on reset vector table SR H 000000F0 GBR H 00000000 VBR H 00000000 MACH H 00000000 MACL H 00000000 PR H 00000000 2 The emulator uses the H UDI do not access the H UDI 3 Low Power States When the emulator is used the sleep state can be cleared with either the clearing function or with the STOP button and a break will occur The memory must not be accessed or modified in software standby state When the emulator is used do not use the deep software standby mode 4 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 RES signal is being low A TIMEOUT error will occur Rev 3 00 Jan 13 2010 Page 5 of 30 RENESAS REJ10J1424 0300 Section 2 Software Specifications when Using the SH Tiny Series Debugging MCU Board 5 Memory Access during User Program Execution During execution of the user program me
32. nitialize the measured result select Initialize from the popup menu in the Performance Analysis window or specify INIT with the PERFORMANCE_ANALYSIS command Rev 3 00 Jan 13 2010 Page 29 of 30 RENESAS REJ10J1424 0300 Section 2 Software Specifications when Using the SH Tiny Series Debugging MCU Board Rev 3 00 Jan 13 2010 Page 30 of 30 REJ10J1424 0300 RENESAS SuperH Family E10A USB Emulator Additional Document for User s Manual Supplementary Information on Using the SH Tiny Series Debugging MCU Board Publication Date Rev 1 00 July 10 2006 Rev 3 00 January 13 2010 Published by Sales Strategic Planning Div Renesas Technology Corp Edited by Customer Support Department Global Strategic Communication Div Renesas Solutions Corp 2010 Renesas Technology Corp All rights reserved Printed in Japan Renesas Technology Corp Sales Strategic Planning Div Nippon Bldg 2 6 2 Ohte machi Chiyoda ku Tokyo 100 0004 Japan 2CENESAS RENESAS SALES OFFICES http www renesas com Refer to http www renesas com en network for the latest and detailed information Renesas Technology America Inc 450 Holger Way San Jose CA 95134 1368 U S A Tel lt 1 gt 408 382 7500 Fax lt 1 gt 408 382 7501 Renesas Technology Europe Limited Dukes Meadow Millboard Road Bourne End Buckinghamshire SL8 5FH U K Tel lt 44 gt 1628 585 100 Fax lt 44 gt 1628 585 900 Renesas Technology Shangha
33. nstruction by the program counter after execution of the instruction Do not set the data access condition before executing one or two instructions in the SLEEP instruction 3 Ifthe power on reset and the Event condition are matched simultaneously no condition will be satisfied 4 Ifa condition of which intervals are satisfied closely is set no sequential condition will be satisfied Set the Event conditions sequentially which are satisfied closely by the program counter with intervals of two or more instructions The CPU is structured as a pipeline the order between the instruction fetch cycle and the memory cycle is determined by the pipeline Accordingly when the channel condition is matched in the order of bys cycle the sequential condition is satisfied Rev 3 00 Jan 13 2010 Page 13 of 30 RENESAS REJ10J1424 0300 Section 2 Software Specifications when Using the SH Tiny Series Debugging MCU Board 5 Ifthe settings of the Event condition or the sequential conditions are changed during execution of the program execution will be suspended The number of clocks to be suspended during execution of the program is a maximum of about 52 bus clocks B If the bus clock Bo is 10 0 MHz the program will be suspended for 5 2 us 6 Ifthe settings of Event conditions or the sequential conditions are changed during execution of the program the emulator temporarily disables all Event conditions to change the settings During this
34. ruction fetch Counter value when instruction fetch has been completed L bus data access Counter value when data access has been completed Branch Counter value when the next bus cycle has been completed after a branch l bus fetch Counter value when a fetch has been completed l bus data access Counter value when data access has been completed e Point to point The trace start condition is satisfied when the specified instruction has been fetched Accordingly if the trace start condition has been set for the overrun fetched instruction an instruction that is not executed although it has been fetched at a branch or transition to an interrupt tracing is started during overrun fetching of the instruction However when overrun fetching is achieved a branch is completed tracing is automatically suspended If the start and end conditions are satisfied closely trace information will not be acquired correctly The execution cycle of the instruction fetched before the start condition is satisfied may be traced e Halting a trace Do not set the trace end condition for the sleep instruction and the branch instruction that the delay slot becomes the sleep instruction Rev 3 00 Jan 13 2010 Page 18 of 30 REJ10J1424 0300 RENESAS Section 2 Software Specifications when Using the SH Tiny Series Debugging MCU Board Trace acquisition condition Do not set the trace end condition for the sleep instruction and the branch instruction according to
35. rupt counts INT URAM area access counts UN URAM area instruction access counts UIN URAM area data access counts UDN Note Selected names are displayed for CONDITION in the Performance Analysis window Options are parameters for lt mode gt of the PERFORMANCE_SET command Each measurement condition is also counted when a condition in table 2 16 is generated Table 2 16 Performance Measurement Condition to be Counted Measurement Condition Notes Branch count The counter value is incremented by 2 This means that two cycles are valid for one branch Notes 1 In the non realtime trace mode of the AUD trace normal counting cannot be performed because the generation state of the stall or the execution cycle is changed 2 When the CPU clock is halted in the mode such as sleep counting is also halted 3 When the measurement start or end condition is set counting is halted if a power on reset is input after and before the satisfaction of measurement start and end conditions 2 Displaying the measured result The measured result is displayed in the Performance Analysis window or the PERFORMANCE_ANALYSIS command with hexadecimal 32 bits Note Ifa performance counter overflows as a result of measurement will be displayed Rev 3 00 Jan 13 2010 Page 28 of 30 REJ10J1424 0300 RENESAS Section 2 Software Specifications when Using the SH Tiny Series Debugging MCU Board 3 Initializing the measured result To i
36. s office equipment communications equipment test and measurement equipment audio and visual equipment home electronic appliances machine tools personal electronic equipment and industrial robots High Quality Transportation equipment automobiles trains ships etc traffic control systems anti disaster systems anti crime systems safety equipment and medical equipment not specifically designed for life support Specific Aircraft aerospace equipment submersible repeaters nuclear reactor control systems medical equipment or systems for life support e g artificial life support devices or systems surgical implantations or healthcare intervention e g excision etc and any other applications or purposes that pose a direct threat to human life You should use the Renesas Electronics products described in this document within the range specified by Renesas Electronics especially with respect to the maximum rating operating supply voltage range movement power voltage range heat radiation characteristics installation and other product characteristics Renesas Electronics shall have no liability for malfunctions or damages arising out of the use of Renesas Electronics products beyond such specified ranges Although Renesas Electronics endeavors to improve the quality and reliability of its products semiconductor products have specific characteristics such as the occurrence of failure at a certain rate and malfunctions
37. ser s Manual For debugging the SH Tiny series debugging MCU board select the following in the Debugger Target and Select Emulator mode dialog boxes e Debugger Target dialog box H7125Series Debug MCU BOARD E10A USB SYSTEM e Select Emulator mode dialog box For SH7124 SH7124_Debug_MCU_BOARD For H7125 SH7125_Debug_MCU_BOARD Note When the mode selection is SH7124_Debug_MCU_BOARD or SH7125_Debug_MCU_BOARD check_sum value in Writing Flash Memory will be calculated from 128 Kbytes 2 2 2 Event Condition Functions The emulator is used to set event conditions for the following three functions e Break of the user program e Internal trace e Start or end of performance measurement Rev 3 00 Jan 13 2010 Page 8 of 30 REJ10J1424 0300 RENESAS Section 2 Software Specifications when Using the SH Tiny Series Debugging MCU Board Table 2 5 lists the types of Event Condition Table 2 5 Types of Event Condition Event Condition Type Description Address bus condition Address Sets a condition when the address bus data access value or the program counter value before or after execution of instructions is matched Data bus condition Data Sets a condition when the data bus value is matched Byte word or longword can be specified as the access data size Bus state condition There are two bus state condition settings Bus State Bus state condition Sets a condition when the data bus v
38. t but Renesas Electronics does not warrant that such information is error free Renesas Electronics assumes no liability whatsoever for any damages incurred by you resulting from errors in or omissions from the information included herein Renesas Electronics products are classified according to the following three quality grades Standard High Quality and Specific The recommended applications for each Renesas Electronics product depends on the product s quality grade as indicated below You must check the quality grade of each Renesas Electronics product before using it in a particular application You may not use any Renesas Electronics product for any application categorized as Specific without the prior written consent of Renesas Electronics Further you may not use any Renesas Electronics product for any application for which it is not intended without the prior written consent of Renesas Electronics Renesas Electronics shall not be in any way liable for any damages or losses incurred by you or third parties arising from the use of any Renesas Electronics product for an application categorized as Specific or for which the product is not intended where you have failed to obtain the prior written consent of Renesas Electronics The quality grade of each Renesas Electronics product is Standard unless otherwise expressly specified in a Renesas Electronics data sheets or data books etc Standard Computer
39. t results during performance measurement are added 2 If the start condition is satisfied after the end condition has been satisfied by the point to point of the internal trace trace acquisition will be restarted 3 When the start or end of performance measurement is used the count for specifying the condition of Event Condition 1 must be once Usage Example of Sequential Break Extension Setting A tutorial program provided for the product is used as an example For the tutorial program refer to section 6 Tutorial in the SuperH Family E10A USB Emulator User s Manual The conditions of Event Condition are set as follows 1 Ch3 Breaks address H 00001068 when the condition Only program fetched address after is satisfied 2 Ch2 Breaks address H 0000107a when the condition Only program fetched address after is satisfied 3 Chl Breaks address H 00001086 when the condition Only program fetched address after is satisfied Note Do not set other channels 4 Sets the content of the Ch1 2 3 list box to Break Ch 3 2 1 in the Combination action Sequential or PtoP dialog box 5 Enables the condition of Event Condition 1 from the popup menu by clicking the right mouse button on the Event Condition sheet Then set the program counter and stack pointer PC H 00000800 R15 H 00010000 in the Registers window and click the Go button If this does not execute normally issue a reset and execute the abo
40. ut addresses If the previous branch source address is the same as the upper 16 bits the lower 16 bits are output If it matches the upper 24 bits the lower 8 bits are output If it matches the upper 28 bits the lower 4 bits are output The emulator regenerates the 32 bit address from these differences and displays it in the Trace window If the emulator cannot display the 32 bit address it displays the difference from the previously displayed 32 bit address 3 If the 32 bit address cannot be displayed the source line is not displayed Ifacompletion type exception occurs during exception branch acquisition the next address to the address in which an exception occurs is acquired 5 The AUD trace is disabled while the profiling function is used 6 Set the AUD clock AUDCK frequency to 40 MHz or lower If the frequency is higher than 40 MHz the emulator will not operate normally Rev 3 00 Jan 13 2010 Page 24 of 30 REJ10J1424 0300 RENESAS Section 2 Software Specifications when Using the SH Tiny Series Debugging MCU Board 2 2 4 Note on Using the JTAG H UDI Clock TCK 1 Set the JTAG clock TCK frequency to 1 4 or lower than the frequency of the peripheral clock Po and to 2 MHz or more 2 The initial value of the JTAG clock TCK is 2 5 MHz 3 A value to be set for the JTAG clock TCK is initialized after executing Reset CPU or Reset Go 2 2 5 Notes on Setting the Breakpoint Dialog Box 1 When an odd a
41. ve procedures The program is executed up to the condition of Ch1 and halted Here the condition is satisfied in the order of Ch3 gt 2 gt 1 Rev 3 00 Jan 13 2010 Page 12 of 30 REJ10J1424 0300 RENESAS Section 2 Software Specifications when Using the SH Tiny Series Debugging MCU Board j Oxo00001058 ali j 0x00001068 p_sam gt sort a 0x00001070 p_sam gt change a 0x00001076 p_sam gt s0 aL0 0x0000107a p_sam gt sl aL1 0x0000107e p_sam gt s aL 2 0x00001082 p_sam gt s3 aL3 0x00001086 p_sam gt sd4 aL4 0x0000108a p_sam gt s5 aL5 0x0000108e p_sam gt s6 aL6 J 0x00001092 p_sam gt s7 aL7 0x00001096 p_sam gt s8 aL8 0x0000109a p_sam gt s9 aL9 O0x0000109e delete p_sam Figure 2 1 Source Window at Execution Halted Sequential Break If the sequential condition performance measurement start end or point to point for the internal trace is set conditions of Event Condition to be used will be disabled Such conditions must be enabled from the popup menu by clicking the right mouse button on the Event Condition sheet Notes 1 Ifthe Event condition is set for the slot in the delayed branch instruction by the program counter after execution of the instruction the condition is satisfied before executing the instruction in the branch destination when a break has been set it occurs before executing the instruction in the branch destination 2 Do not set the Event condition for the SLEEP i

Download Pdf Manuals

image

Related Search

Related Contents

    Origin Storage 1TB TLC SATA 2.5"  logger - a client/server based logging system  Tarjeta de Expansión de Pulso Maestro de Referencia  User Manual    1508-00-1-02-d-AGI    Pure Juice  

Copyright © All rights reserved.
Failed to retrieve file