Home

E30A Emulator for the R32C/100 Series Application Note How to

image

Contents

1. OPC ETT ee _ OPC _ 000000 07 P S S UCG 0000004 0000008 E 0000007 000000 P oK 7 0000005 0000004 E C 0000003 t 0000001 07 5v TO Break File Label TONT Address Time size Status End This is because the operation mode is set to other than trace time measurement or RAM monitor Check to see if Trace is selected on the Operation Mode tab of the Init dialog box For details on how to set the operation mode see paragraph 2 in this section 4 Although a data access write process is embedded for the access condition of a trace event the intended range cannot be traced Why Example To trace the sort function embed a process for write to a global variable trace_point 1 in front of the sort function and perform a trace with a data access trace_point write process specified as access condition Define the global variable trace_point 13 m 14 long allQ 15 struct Sample st Pit trace points 19 oid maintvoid 20 100 i Embed trace point 1 in front of the sort function and after performing a build download the program 41 43
2. 4ssing to ASM monitor vee Execution Time Measure Bie biz ml F Do Measure Trace Sequential Break Setting F r d of Trace Access Sequential Calor Heset Save Load Close 5 The Set Event Status dialog box is displayed Select Trace for Event Type AFTER for Trace Measurement Range trace_point for Start Address and READ for Access Condition Then click the OK button Set Event Status Event Tare Trace Trace Area AFTER b l Start Address _trace_poi E End address E Access READ ACCESS WRITE w Pickup Trace ACCESS BRANCH Range Address lt addr Address2 Address E udi FFFFFFFF yel Cancel REJ06J0073 0100 Rev 1 00 2009 3 Page 5 of 19 E30A Emulator for the R32C 100 Series 23 N ESAS How to Use Trace and Section Time Measurement Events 6 The contents you ve set are displayed in the Event Settings dialog box Click the Set button to make the changes take effect ME Event Setting Event Status EVENT ADDRESS ACCESS RANGE 00000000 BREAE ESECUTION addr 00000000 00000000 BREAE ESECUTION addr 00000000 Trace Area Event E5 AFTER EF Assing to ASM monitor J Execution Time Measure FT Du Measure Trace Execution Sequential Break Setting kind
3. 138 trace_point 13 45 19 sortial 46 FFFFOI 42 change la REJ06J0073 0100 Rev 1 00 2009 3 Page 15 of 19 E30A Emulator for the R32C 100 Series N ESAS How to Use Trace and Section Time Measurement Events In the Set Event Status dialog box set an event that will cause a trace to start upon WRITE to trace_point And then perform a trace Set Event Status Event Type Trace Trace Area Trace area AFTER Start Address _trace_poi End Address WRITE Sanma e Pickup Trace ACCESS BRAN CH Range Address Address2 cancel Check the trace result in the trace window after program execution and it will be found that a trace was started by a process trace_point 00 and that the main function not the sort function was traced Range 0000000 0341989 Area After File TONT 0000000 Address 00000474 Time TENT Label 0000000 _trace_point 00000414 0000002 tutorial FFFFOTO4 FFFFOTOC 2 0000005 finit FFFF0115 14 JHF a 0000004 FEFFUU32 119 2 0000005 _rand FFFFQ 21 196 0000006 FFFFOIBO 126 JHF 0000007 194 118 JHF 0000005 _rand FEFF T21 R This is because initialization was performed by writing 00 at th
4. 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 alone is very difficult
5. of Trace Branch Data Access Sequential 7 Choose Trace from the View menu and then select Trace 3 Tutorial High performance Embedded Workshop Tutorial c ed File Edit QQ Project Build Debug Setup Tools Test Window Help D S N RA f El El El En PP 6 5 Ctr HL E Tuluri a zr TCL Toolkit Ctrl Shift K 2 5 Source 57 Hi Workspace Alk k aay 4 4 Pel output alt O i E Status Bar Alt A m ay en point trace point 2 2 Disassembly ctrl E R aort ial 122 CPU change a Symbol b 0 01 Graphic y sam gt s1 a 1 2 p sam s2 a 21 GA Script p_sam s3 a 3 p_sam s4 a 4 Break d p_sam gt 35 a 5 p s67a Trace Points 7 17 1 81 9 91 NULL Time Measure REJ06J0073 0100 Rev 1 00 2009 3 Page 6 of 19 E30A Emulator for the R32C 100 Series LI N ESAS How to Use Trace and Section Time Measurement Events 8 The Trace window is displayed Range Area After File TONT Address Time TENT Label SFC Dest Data 2 status 9 Run the program and stop and the result of a trace will be displayed Although one event has just been used in the global variable process data access specified for access condition a trace can be started from the beginning of the sort function x i eV Ee Range 0000000 0247647 Area Files TONT 0000000 Address 0
6. 0000475 Time TENT Label SFC Dest Data size status Jnd a 0000000 _trace_point 00000475 00 E 000000 1 sort 144 FRFFFOQS4 JHF 0000002 FFFFOOSF 064 JHF OO00008 FFFFOO5 JHF 0000004 FFFFOOAG 4 JHF 0000005 FFFFOU4E JHP 0000006 JHF 0000007 1 JHF 0000008 FFFF AR 4 z JHF 0000009 FFFFOO4E JHF 0000010 FFFFOOAG FFFFOQSE JHF E 0000011 FFFFOUSF 064 JHF 0000012 FFFF 5 JHF 0000015 FFFF AR 4 JHF 0000014 FFFFOO4E s JHF 0000015 FFFFOOAG JHF 0000016 FFFFOOSF 064 JHF 0000017 FFFFOO5 JHF 0000018 FFFFOO 6 4 JHF z nn nl ELELT T AC ho REJ06J0073 0100 Rev 1 00 2009 3 Page 7 of 19 E30A Emulator for the R32C 100 Series How to Use Trace and Section Time Measurement Events lt ENESAS 2 2 Section Time Measurement Based on Data Access This section explains the method for measuring the execution time from start to end of a function by embedding a global variable
7. 00h 00s 000 uz 00h 00 0 0 OOOue 0 00h m 00s t m 0004 00h 005 t m uz 00h 00 t m 000 L Clear Result ALL MP1 MP2 MP3 MP4 REJ06J0073 0100 Rev 1 00 2009 3 Page 12 of 19 E30A Emulator for the R32C 100 Series LI Ni ESAS How to Use Trace and Section Time Measurement Events 3 Frequency Asked Questions 1 Are there any precautions to take when using the trace function and the section time measurement function Precautions to taken when using the trace function The trace function can only be used when the trace mode is selected on the operation mode tab of the Init dialog In the Before and the After modes the trace events that occurred in the trace rage as well as the trace start events that occurred during that time are recorded Note however that trace end events are not recorded In a conditional branch trace display for the disassemble mode and source mode of the trace window may take time If MCU execution priority is selected for the trace mode the trace range becomes 512 cycles If a trace range of 8M cycles is desired select trace priority for the trace mode n the trace priority mode trace data output has priority and MCU execution is delayed Program processing requires a longer timer than in the MCU execution priority mode Note that for a conditional branch trace the trace priority mode is the default mode
8. 0m 00 000 00014 00h 00m 00 000 0004 0 ACCESS FAN GE EXECUTION adir 00000000 EXECUTION EesECUTION ExECUTION EXECUTION addr 00000000 addr 00000000 addr 00000000 00000000 li 00h 00m 00 000 OOOus 00h 00m 00 000 00014 00h 00m m m m 0004 Min 00m z 000m 000us 00h 00m 00s 000me Ulus 4g 00h 00m 00 000me 0004 Crt a Save J Load Reset MP2 REJ06J0073 0100 Rev 1 00 2009 3 Page 11 of 19 lt ENESAS 9 Run the program and stop and the result of a section time measurement will be displayed That way it is possible to measure the execution time of the sort function E Time Measurement EVENT ADDRESS CI EO EE OE4 Ces Ces ACTION 00000000 BREAK 00000000 00000000 00000000 00000000 Measurement Point MP1 Zone Specify ET 2 CI MP2 Not Use CI MP3 Not Use 00h 00m 00 000 004 00h 00m 00 000 0404 00h 00m 00 000 037 us 40709 00h 00m 005 000 0004 00h 005 0 0 0 z 00h 00 t m N E30A Emulator for the 2 100 Series How to Use Trace and Section Time Measurement Events ACCESS EXECUTION FAN GE addr 00000000 addr 00000000 addr 00000000 addr 00000000 addr 00000000 lil 00h 00m 00s t m 0004
9. To our customers Old Company Name in Catalogs and Other Documents On April 1 2010 NEC Electronics Corporation merged with Renesas Technology Corporation and Renesas Electronics Corporation took over all the business of both companies Therefore although the old company name remains in this document it is a valid Renesas Electronics document We appreciate your understanding Renesas Electronics website http www renesas com April 1 2010 Renesas Electronics Corporation Issued by Renesas Electronics Corporation http www renesas com Send any inquiries to http www renesas com inquiry 2CENESAS 8 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 granted her
10. address is prefetched prefetched in size of about 48 bytes This will result in excessive trace information being acquired or a failure to acquire the intended trace information depending on trace measurement range After or Before 2 Although it is possible to set an address for the trace event condition by taking prefetch into consideration such is not a much practiced case because there are various factors such as interrupt process branch process loop process or compiler optimization that make it difficult to identify the address Limitations of section time measurement events Since the section time measurement is an operation to measure the execution time between data accesses based on trace information the data access trace information address data data size read write is detected in the emulator as the measurement start event and measurement end event Therefore it is only data access READ WRITE or R W that can be specified for access condition and in no case can such a time measurement that uses the start and end of a function as condition be performed i e EXECUTION cannot be specified for access condition This application note explains the measures to be taken to cope with the above limitations REJ06J0073 0100 Rev 1 00 2009 3 Page 1 of 19 E30A Emulator for the R32C 100 Series LI Ni ESAS How to Use Trace and Section Time Measurement Events Table of Contents 5111011121 m ba do ocr geet Sede ce
11. ation 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 direct threat to human life
12. b BVECTOR ADR INTE clear BSS RTOS vector address Code REJ06J0073 0100 Rev 1 00 2009 3 Page 8 of 19 lt ENESAS 4 The Section Time Measurement dialog box is displayed Double click in the Event Status column Ee VE X E Time Measurement EVENT ADDRESS OE2 OE3 OES 00000000 OE6 00000000 R 00000000 00000000 00000000 ACTION ACCESS E ECUTION EsECUTION BREAK BREAK BREAK EsECUTION EsECUTION BREAK BREAK RANGE addr n n addr 000000010 addr 00000001 addr 00000001 addr 000000010 Measurement MP1 rit Hat Use CIMP2 Not Use CIMP3 Not Use Measurement Result MP1 Mir Awg Cnt 00h 00m 00 000 n 00h 00m 00s D m OO0us 00h 00m 00 t m n 00h 00m z t tmz OOOus 00h 00m 00 t m uz 00h 00m 00 t m uz 00h 00m 00s 000 000 00h 00m 005 00 0 000 00h 00 t n 000 0 00h 00m 00 000 0004 Max 00h 00m 00s 000me 0002 Avg 00h 00m t m s En h r E30A Emulator for the R32C 100 Series Hovv to Use Trace and Section Time Measurement Events sou Double click here Clear Result ALL MPI MPS MP2 5 The Set Event Status dialog box is displayed Select Time Measurement for Event Type check the Section Time Measurement and the Data Comparison check boxes and uncheck the Execution Time Measur
13. ce o bib r 3 Flow of This aa DK 3 Trace Based on Dala A OO SS 4 Section Time Measurement Based on Data Access 88 888 88888828888888388333 8 Frequency Asked QUESTIONS ccccscessssestcssseeseeeeceeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeseeseseeeseeseeeseeeseeeseeees 13 Related OG UNM ll ca ducsudiagudcagsatuesadursubeasedaaaeduacedepewcneseammuaieenuatenens 17 REJ06J0073 0100 Rev 1 00 2009 3 Page 2 of 19 E30A Emulator for the R32C 100 Series LI Ni ESAS How to Use Trace and Section Time Measurement Events 1 Environment Microcomputers used R32C 118 group R5F64189PFB HEW V 4 05 01 001 Emulator software R32C 100 E30A Emulator Debugger V 1 00 Release 00 Compiler R32C 100 Series C Compiler V 1 01 Release 00 2 Flovv of This Document The corrective measures are described belovv Corrective measures for limitations on trace events e Embed a sequence in place that will have a data access read process generated at the start position of a trace and specify the data access for access condition alteration of the source required 3 If a write process is used for condition because a trace event cannot have data comparison set for condition e g a condition like the one that will cause a trace to start when variable a 1 a trace may erroneously be started at the time the data variable set for access condition is initiali
14. e time the global variable trace_point was declared by which a trace was erroneously started wow 2 oe Rey og 13 za 14 long al101 Initialized at here by 15 struct Sample st writing 00 MA 19 oid maintvoid 20 FREFOTOU i To set a data access for the access condition of a trace event we recommend using a read process for the condition REJ06J0073 0100 Rev 1 00 2009 3 Page 16 of 19 E30A Emulator for the R32C 100 Series 2 Ni ESAS How to Use Trace and Section Time Measurement Events 4 Related Documents The E30A emulator and HEW have many other useful functions than those presented in this application note Along with this application note please see the following related documents also in which you ll find detailed specifications of each product as well as technical information limitations and other helpful information E30A emulator related documents e E30A Emulator User s Manual e H32C 100 E30A Emulator Debugger V 1 00 User s Manual e R32C 100 E30A Emulator Debugger V 1 00 00 Release Notes High performance Embedded Workshop related documents e High performance Embedded Workshop User s Manual e High performance Embedded Workshop Release Notes CPU related documents e R82C 118 Group Short Sheet e H32C 100 Series Software Manual IR32C 100 series C compiler package related documents e H32C 100 Series C Compiler Package V 1 01 C Compiler User s Manual e H32C 100 Series C Compil
15. eby 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 document but Renesa
16. ement check box Select _time_start for Address and WRITE for Access Condition and set Data to 00000001 Then click the OK button Set Event Status Event Ty pE Time Measurement Execution Time Measure Do Measure Sechon Time Measure Address time start b l a REJ06J0073 0100 Rev 1 00 ACCESS P ata Compare Data hd ask WRITE 1000000007 100000000 2009 3 Cancel Page 9 of 19 2 lt ECNiCESAS E30A Emulator for the R32C 100 Series How to Use Trace and Section Time Measurement Events In the same way complete the dialog box by selecting _time_stop for Address etc as shown below and then click the OK button Set Event Status Ewent Type Time Measurement Execution Time Measure Do Measure 2 Section Time Measure Address _time_stop zl Pulum WRITE Data Compare eee 00000001 Mask 00000000 Cancel 6 The contents you ve set are displayed in the Section Time Measurement dialog box At this time check to see if _time_start and _time_stop are set for events E1 and E2 respectively Next select MP1 in the Measurement Points column and double click in it E Time Measurement EVENT ADDRESS ACTION ACCESS FAN GE 00000000 EXECUTION addr 00000000 00000000 EsECUTION addr 00000000 00000000 EXECUTION fadir 00000000 11 Clear Result ALL MP1 MP2 DIMPS Not Use T Double click here MP3 Meas
17. er Package V 1 01 Release 00 Release Notes e R82C 100 Series C Compiler Package V 1 01 Assembler User s Manual For information on this product visit the Renesas websites below Japan site http lapan renesas com e30a Global site http www renesas com e30a REJ06J0073 0100 Rev 1 00 2009 3 Page 17 of 19 E30A Emulator for the R32C 100 Series LI E N ESAS How to Use Trace and Section Time Measurement Events Homepage and Where to Contact for Support Renesas Technology homepage http www renesas com Where to contact http www renesas com inquiry Revision Record Content of revision Rev Issue date Points 2009 3 25 First edition issued REJ06J0073 0100 Rev 1 00 2009 3 Page 18 of 19 E30A Emulator for the R32C 100 Series LI Ni ESAS How to Use Trace and Section Time Measurement Events Notes regarding these materials 1 This document is provided for reference purposes only so that Renesas customers may select the appropriate Renesas products for their use Renesas neither makes warranties or representations with respect to the accuracy or completeness of the information contained in this document nor grants any license to any intellectual property rights or any other rights of Renesas or any third party with respect to the information in this document 2 Renesas shall have no liability for damages or infringement of any intellectual property or other rights arising out of the use of any information in t
18. his 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 should evaluate the inform
19. lso changed In a section time measurement performed the data access trace information output from the MCU is compared in the emulator to detect the start and end events If a large number of data access times is specified trace output will take a lot of time leading to errors in section time measurement or affecting execution of the MCU For the case where Xin 8 MHz PLL 128 MHz x 16 and BASE 64 MHz for example it takes 5 us to output the data access trace information If a data access of less than 5 us occurs a trace output time dependent error will occur Furthermore if such a short data access occurs frequently execution of the MCU will be delayed We recommend write only settings with least possible events REJ06J0073 0100 Rev 1 00 2009 3 Page 13 of 19 E30A Emulator for the R32C 100 Series LI E N ESAS How to Use Trace and Section Time Measurement Events 2 Why is it impossible to select Trace or Time Measurement for Event Type in the Set Event Status dialog box Set Event Statue Trace or Time Measurement Event T pe Break d cannot be selected Break Paai Range addr Address Address 00000000 pa Address2 p nn nn E Access EXECUTE Function Source File Function Data Compare I Hot Lize Data 00000000 Mask P0000000 E30A uses the same internal resource of the emulator for trace time measurement and RAM monitor so that t
20. ment 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 under certai
21. n 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 Renesas Electronics
22. nt at a place preceding the sort function Perform a build after adding and then download the program 41 FFFF 128 ali j 42 46 FFFFD136 sort a 47 chanse a Trace starts from here 46 FEFFUTSE 3 Choose Trace from the Vievv menu and then select Trace Point 1 Differences in JA Apn fees Debug fy poy yr FHL ED PP Oh EJ command Line Ctrl L Tutor JA T TCL Toolkit Ctr Shift K 5 8 224 5 Source INTERRUPT SECTION El status Bar k A ins f start G15 start Disassembly Ctrl D Secti n interrupt code align ig F Symbol Graphic 0080H FLG switch to usp GF Script stack top SP Stack pointer fdata SB B top 5B sb register Break b data 558 top SB bsb register Trace b m RTOS 2771 Code HET Clear Bas 114 BAERO hes 586 top bss 556 REJ06J0073 0100 Rev 1 00 2009 3 Page 4 of 19 E30A Emulator for the R32C 100 Series LI N ESAS How to Use Trace and Section Time Measurement Events 4 The Event Settings dialog box is displayed Double click in the Event Status column EE Event Setting melta Event Status EVENT ADDRESS ACTION ACCESS 00000000 EXECUTION 00000000 000000100 ESECUTION addr 00000000 00000000 ESECUTION addr 00000000 00000000 EXECUTION addr 00000000 00000000 addr 00000000 00000000 EXECUTION addr 00000000 gt Trace Area Event ES Double click here BREAK
23. o use the respective functions it is necessary to change operation modes Choose Emulator from the Basic Settings menu of HEW and then select System to open the Init dialog box 93 Tutorial High performance Embedded Workshop sort c we File Edit View Project Build Debug Eti Tools Test Window D oe gl lal amp ele m FT l 8 2 ls EGY Tutorial I E yel Tutorial 22 Assembly source TE 1 a30 27 um S ES C source file 25 FFFFoos6 Help s amp amp A 56 18 P GD te o Customize Options Furmat Views Radix k Emulator On the Operation Mode tab of the Init dialog box select Trace to use the trace function or Time Measurement to use the section time measurement function Init R32C 100 Emulator Mode Trace Download ta Time Measurement Enable Monitor Writer Mode File Hame I Enable Verification and Checksum Do not show this dialog again REJ06J0073 0100 Rev 1 00 2009 3 Page 14 of 19 E30A Emulator for the R32C 100 Series LI Ni ESAS How to Use Trace and Section Time Measurement Events 3 Although a trace was executed no results are displayed in the trace window Why No trace results are displayed Range 0000511 0000000 Area Break File TENT 0000012 Address 00000000 Time TLMT Size status JCnd S00
24. of trace Even when a function is specified when selecting the file to be displayed in the SRC mode if the specified function exists in the currently displayed file it is always the top of the file that is displayed When a trace result is saved in text form there is a possibility of the header and data strings getting their vertical positions displaced Select save in tab separated text when saving a trace result and open it in spreadsheet software etc to get correct display Displaying each cycle in time hours minutes and seconds is not supported The trace image files rtt files saved with the M3T PDxx debugger cannot be loaded Nor can the trace image files saved with other targets be loaded The word data 16 bit located beginning with an odd numbered address or longword data 32 bit not located at 4 byte boundaries cannot be traced normally Data access events by DMA are not detected If a runtime debug RAM monitor or data comparison break is used in a branch trace to record jump addresses branch information debug monitor program processing address that is unlikely to occur in the user program may be included So be careful Precautions to taken when using the section time measurement function The event setting window and the section time measurement window share the same resource of the emulator If an event is changed in the section time measurement window the contents set in the event setting window are a
25. 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 2009 Renesas Technology Corp All rights reserved REJ06J0073 0100 Rev 1 00 2009 3 Page 19 of 19
26. 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 tENESAS Application Note E30A Emulator for the R32C 100 Series How to Use Trace and Section Time Measurement Events Summary The E30A emulator for the R32C 100 series incorporates two debug functions the trace function and the section time measurement function By selecting trace or time measurement for the event and then specifying access conditions in the event setup screen of High performance Embedded Workshop HEW it is possible to perform a trace or section time measurement The results of trace and section time measurement can each be confirmed in the trace window and the time section measurement window of HEW The access conditions selectable for each event are listed below EXECUTION BRANCH READ WRITE Trace event trace extraction event Trace event trace start event trace end x event 1 Can be assigned to only events E0 and E4 Limitations on access conditions of each event are shovvn belovv Limitations of trace events If EXECUTION is specified for access condition of a trace the emulator owing to NSD specifications may erroneously assume that the condition is met when the set
27. s 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 Computers office equip
28. urement Result MP1 00h 00m 00 000 s Min 00h 00m 00 000 0004 00h 005 0 0 0 uz 00h R n m 00014 00h 00m 00 n m t s Avg 00m z 000me t k Eni MP4 Min 00m 00s 000me 000ue Min 00m z 000me 000us h 00m 00s 000 0004 00m 00s 000 000ue Avg 00h 00m 00s Um 0004 Avg 00h Um 00s 000me m z Crt Crt REJ06J0073 0100 Rev 1 00 2009 3 Page 10 of 19 lt ENESAS 7 The Set Measurement Point MP1 dialog box is displayed Select E1 for Start and E2 for End and then click the OK button This setting causes a measurement to be made from when event E1 occurs till when E2 occurs E30A Emulator for the R32C 100 Series How to Use Trace and Section Time Measurement Events Set Measurement Point MP1 Measurement Point Setting Mode Source File Function es 8 The contents you ve set are displayed in the Measurement Points column of the Section Time Measurement dialog box Click the Set button to make the changes take effect E Time Measurement EVENT ADDRESS ACTION CI Ed CIE3 CIE4 00000000 00000000 BREAK 00000000 BREAK 00000000 BREAK 00000000 BREAK CIMP3 Not Use A Measurement Result MPI Min Max Avg Crit 00h 00m 00 000 00014 00h 00m 00 000 00014 00h OOrn 005 000 0004 0 00h 00 t m 000 00h 0
29. write process at the start and end positions of a section time measurement event and then specifying the global variable write process data access for the event s access condition Shown here is an example in which measurement is made of the execution time of the sort function by using the Tutorial program included with the E30A emulator software 1 Add global variables time_start and time_stop in the source file 2 Add time_start 1 and time_stop 1 before and after the sort function Perform a build after adding and then download the program Measurement is taken of this section 0 FFFFOS2 FFFFOUSS chanse a 3 Choose Trace from the View menu and then select Section Time Measurement Tutorial High performance Embedded Workshop nert0 a30 sb File Edit MEJ Project Build Debug Setup Tools Test Window Help EH Differences m TH R a Bee Debug fy dul THERE NTO O ommand Line rl Hc dli Ctrl L uto ae A v TCL Toolkit CtrHshift H 5 8 240 5 Source INTERRUPT SECTION 4 a oa E status Bar Alt A inst start 3 GLb start Disassembly SeECti n interrupt code align start g M Symbol after reset this program will start Graphic 184 1BB 142 00808 FLG switch to usp GR Script 1 0 142 stack top 5P stack pointer 1 7 142 Hdatea_SBG top 3B 1 B register Break b fset 068 top 3B pab register
30. zed by writing 00 making it impossible to trace the intended range For details see paragraph 4 in Section 3 Frequently Asked Questions Corrective measures for limitations on section time measurement events e Embed a sequence in place that will have a data access generated in a section of the program start to end in which a time measurement is to be performed and specify the data access for access condition alteration of the source required The flow of this document is shown below Operation start Trace based on data access Section time measurement based on data access REJ06J0073 0100 Rev 1 00 2009 3 Page 3 of 19 CENE A E30A Emulator for the R32C 100 Series Hovv to Use Trace and Section Time Measurement Events 2 1 Trace Based on Data Access This section explains the method for performing a trace unaffected by prefetch by first embedding a global variable read process at the start position of a trace event and then specifying the global variable read process data access for the event s access condition Shown here is an example in which a trace is started from the beginning of the sort function by using the Tutorial program included with the E30A emulator software 1 Add global variables point and trace_point in the source file long all l struct Sample st CT Fs Cu har point har trace point aes mainivaidi 1 100 2 Add point trace_poi

Download Pdf Manuals

image

Related Search

Related Contents

(別紙資料)[PDF:15625KB]  MacoTronic V4 User Manual English - Blood Safety  Fujitsu LIFEBOOK T1010  改善箇所説明図  Franke Gotthard    Bedienungsanleitung Instructions for Use  Manual del usuario  SOFTSUITCASE DANSK - VER. 7 - Soft SuitCase  Les étiquettes et l..  

Copyright © All rights reserved.
Failed to retrieve file