Home

M16C/60 Series PC7501 Emulator Application Note C0 Coverage

image

Contents

1. Line Sour C AJ 5 Source rn tutorial void long j cg hee Ba Struct sample far p sam p sam st init p Barn fort i O itiO i jf j randt i 1 ie eee Oe eat i a i j 40 F4276 aort iaj 41 F42 7E change aj 42 43 F4256 p sam gt s0 a O 44 F4296 p Ssan gt Ssl a l1 45 F42 hE p sam gt s2 a z 46 F42c6 p sam gt ss als 7 F42DE p sam s4sa 4 46 F42F6 p sam gt s5a 5 49 F430E p sam s6sa SO F4326 p sam gt s7 a 7 51 F433E p_sam s5sa 85 52 F4356 p sam s9sa 9 53 F436E p sam NULL 54 F4374 i 55 56 oid abort void BS F4376 i 58 E BO F4376 i 60 REJ06J0070 0100 Rev 1 00 2009 2 Page 18 of 22 M16C 60 Series PC7501 Emulator E RE N ESAS CO Coverage Facility However if the CO coverage of the function tutorial is verified in assembly units you ll find that part of the function was unexecuted faa F4267 F426C Fare td Fakes a9 Line C A 5 Disass Obj code Label _tutorial ToOCRFASCO4 ToCRFCOOOO TS4BFC VOIR A FODLI4400F TDB4 DSOBFE 7 TORBFEOAOO TDC ASF FOVS450F TOFS T3 BFS T3OBF6 TEBRCF 6408 FTaTRFS TooBF 6 TTEBFS T3 B4FE T3BCF61404 TSIBCFSA1604 COLBFE FECE Mired oid tutorialiwoid i ENTER 04H long j ini a3 Struct sample far p sam p san st MOV WG O435CH 6H FB MOV W G 0000H 4H FE init p sam PUSH W G 4H FB PUSH W G 6H FB ae
2. H 400 for Address in this dialog box and click OK Display Address Address EM gl M ee E p Cancel 17 The window permits you to verify the variables in the internal RAM that were accessed and those that were not accessed J6 D40 8 z ube d db do da a i62 Address AAA spike maa oe SRE ahg oen oha oeol Sak oha SHG DeD SAS DAN 000400 000410 OO0420 000430 000440 OO0450 000460 000470 OO0460 OO0490 O00440 OOD4560 OO04e0 OO04D0 OO04E0 ODOOD4FO OO0500 OO0510 These coverage facilities allow you not only to verify the validity of a test program but also measure the usage rate etc of the RAM space in actual program operation REJ06J0070 0100 Rev 1 00 2009 2 Page 17 of 22 M16C 60 Series PC7501 Emulator E RE N ESAS CO Coverage Facility 5 Frequently Asked Questions 5 1 Why do the measurement result in source units and that in the coverage window differ Run the sample program once up until it ends and see the result of CO coverage measurement It will look like the one shown below r So Function Start End Coverage change UFALBE 0F4219 100 00 init OF4014 OF4100 100 00 3 sort OF4i02 OUF4LED 100 00 abort OF43 76 OF4AS 76 100 00 3 main Orde 1A UF42 23 100 00 tutorial OF4224 OF4AS 7A Gp f Taking a look at the CO coverage of the function tutorial in C source units you ll find that the function appears to have been executed in whole
3. Please see these manuals along with this document PC 7501 emulator related documents e M16C R8C PC7501 Emulator Debugger User s Manual for the M16C 60 M16C 30 M16C Tiny and R8C Tiny series e M16C R8C PC7501 Emulator Debugger Release Notes for the M16C 60 M16C 30 M16C Tiny and R8C Tiny series e PC7501 Setup Guide M16C Family Emulator e PC7501 User s Manual M16C Family Emulator 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 M16C 60 Series Hardware Manual e M16C 60 M16C 20 M16C Tiny Series Software Manual M16C 60 series C compiler related documents e M3T NC30WA C Compiler Guidebook C compiler package for the R8C Tiny M16C 60 M16C 30 M16C 20 M16C 10 and M16C Tiny series e M3T NC30WA Assembler User s Manual C compiler package for the R8C Tiny M16C 60 M16C 30 M16C 20 M16C 10 and M16C Tiny series To see more information on the PC7501 emulator please visit the Renesas websites given below Japan site http japan renesas com pc7501 Global site http www renesas com pc7501 REJ06J0070 0100 Rev 1 00 2009 2 Page 20 of 22 M16C 60 Series PC7501 Emulator E RE N ESAS CO Coverage Facility Home Page and Where to Contact for Support Renesas Technology home page http Awww renesas com Where to contact http Awww renesas com inquiry Revision Record
4. i 0 i lt 10 tmp i i 53 F41CF a i 54 55 56 I for i O if10 i ali tmp 9 ij mail zorte F41EC F41FF J netaz 4 Tutoralc 4 We ll now try stopping the program immediately before a call to the sort function to see how the CO coverage will be measured Double click in the Address Match Breakpoint column at line No 40 of the source file Tutorial c sale Double click 5g IN 262 39 40 41 Ja 43 ta 45 46 47 43 49 50 a1 aa 53 ot ee ets Fae 7E F4206 P4296 F42 iE F42C6 F42DE F4eF6 F430E F4n26 Faso F 356 F435 6E Etana 4 Bi nertO a3 oo Tutoriale A 5 Source a i i sortial change ai p sam s0sa 0 p s3am gt s1 a i1 p Ssamn 3se2 ale p sam gt s3 a 3 p sam s 45a 4 p sam gt 855a 5 p Sam gt Sso6 al6 p_sam s7 al T p sam gt s8sa 5 p sam gt 89 4 9 p sam NULL Since we ve set the program to break immediately before the source address F4276 of the sort function is executed the functions change and abort present ahead of it are not executed REJ06J0070 0100 Rev 1 00 2009 2 Page 11 of 22 M16C 60 Series PC7501 Emulator E RE N ESAS CO Coverage Facility 5 Run the target program to measure the CO coverage Select the Run After Reset icon to run the program fi TOL H P The program can also be run from the Debug menu t 3 Tutorial High performance Embedded Worksho
5. Select Source Files dialog box is displayed allowing you to display only a selected source file in the coverage window Select Source File C Select all files p r Input a source file name Tutorial c Select a source file HEA neti sort C3 Tutorial Tutorial c OF Cancel Ci i Eih the icon is depressed when enabled Automatic display update Automatically updates the displayed coverage measurement result when the target program stops Display update Updates the displayed coverage measurement result o Initialization Initializes the coverage measurement result REJ06J0070 0100 Rev 1 00 2009 2 Page 10 of 22 M16C 60 Series PC7501 Emulator E RE N ESAS CO Coverage Facility 3 Double click any function line displayed in the coverage window The function you ve selected will be displayed in the editor window T Tutorial Tutorial Assembly source file B nertd as0 C source file B sort c Tutorial c Function start End ani OF4014 OF4100 sort OF4102 OF41BD abort OF4376 OF4376 mair OF4214 OF4223 tutorial OF4224 OF4375 Coverage 0 00 0 00 O T 0 OO 00 00 w w W g a Sal Line Sour A 5 Source 36 else che break 40 41 42 43 F41aD 44 F4159 45 F415c i 46 47 45 49 50 51 The selected function is displayed in the editor window change long al F41BE i long tmp 10 int i for
6. init F40144H ADD 5 02 4H 5P fori 1 0 1i lt 10 i jf Moy Ws g 0H 2H FB CMF W G 0004H 2H FE WE F42 76H j randi JR A rand F43 76H EXTS W RO MOV WG Re GH FB MOV WG RO A4H FB iE Sim t tH FB F4262H A an i SH FB AH FB SH FB Executed up until here in assembly units afi j ZH FB 40 ul G RH FB 0414H A0 W MOV W G GH FB O416H 40 ADD iW 1H 2H FB iw F4240H The reason why such a phenomenon occurs is because a prefetch is involved Instructions are loaded into the cache beforehand no matter whether the next data is required Once prefetched when in assembly units instructions are executed after the JEQ instruction up until the next instruction When this is verified in C source units instructions are assumed to have been executed up until j so that it appears on the surface that all instructions were executed If you want to verify CO coverage at the source level we recommend verifying the result in mixed mode or disassembly mode REJ06J0070 0100 Rev 1 00 2009 2 Page 19 of 22 M16C 60 Series PC7501 Emulator E RE N ESAS CO Coverage Facility 6 Related Documents The PC7501 emulator and the HEW have numerous other convenient facilities and features not discussed in this document Detailed specifications technical information limitations and other useful information on each product are described in the related documents listed below
7. the dialog box and click OK Init M16C RBC PC 501 Emulator MCU Debugging Information Emulator Script MCU M1E6EC62F mcu LPT C LAN USB B i p gt Seral Ho 5451567 are elf Check Debug Option Automatically selected W Enable the Address Match Interrupt Break Function Debug the program using the CPU Rewrite Mode a Cancel Help Do not show this dialog box again e f your emulator is connected via LPT or LAN instead of USB visit the Renesas website and see the PC7501 user s manual 6 The MCU Setting dialog box will be displayed Select Single Chip Mode for Processor Mode on the MCU tab of the dialog box and click OK MCU Setting MCU MAP Flash Clear MCU Setting MCL Status MCU MIBC b2P ARAL H Processor Mode G Single Chip Made HOLD AD External Data Bus Width 0i CHWss NC Memon Space Expansion fr mal Mode BYTE i PM13 b3 of OOO005H is 1 PM10 b0 of 000005H is 1 Debug Option Disable Internal Flash ROM for TUMH2 or below operating frequency QS IE i Cancel Help Do not show this dialog box again REJ06J0070 0100 Rev 1 00 2009 2 Page 7 of 22 M16C 60 Series PC7501 Emulator E RE N ESAS CO Coverage Facility 7 A connection of the PC7501 emulator will be completed by which the High performance Embedded Workshop screen becomes ready to operate When this connection is complete a message Connected i
8. then Coverage 3 Tutorial High performance Embedded Workshop ncrt0 a30 oo File Edit WEYA Project Build Debug Setup Tools Test Window Help D we a Differences F A Ji 1g Fe Map f aye F Command Line CErI L GI Tutori l SE 2 q x TCL Toolkit Ctrl Shift k sl Sour A 5 Source al hg Output AIO CO EJ Status Bar alt a Hg ga Disassembly Ctrl D a Start e S ee Symbol H Graphic j Ei Script 2 The coverage window will open The window shows the function names of the target program under the heading Function as well as the start addresses under Start the end addresses under End and the CO coverage measurement result under Coverage At this point in time the values under Coverage are 0 00 because the program is not run yet In the explanation in this document the Auto Display Update icon is enabled the icon is depressed when enabled x Function tart End Coverage change F41BE UF4219 0 00 init 0F4014 OF4100 O0 Sort OF4102 UF41ED 00 abort OF4S 76 OF4S 76 00 main OF4z214 F423 00 tutorial UF4224 OF4S 7S 00 REJ06J0070 0100 Rev 1 00 2009 2 Page 9 of 22 M16C 60 Series PC7501 Emulator E RE N ESAS CO Coverage Facility e Description of the icons OE G Source selection Selects the source file for which the results of coverage measurements are displayed When you select the Source Select icon the
9. 5 2F 34 04 OFr4350 77 E5 75 Bafles BS FC 77 44 OFr4360 77 ES 75 er 75 2F 3a D4 OF4370 FA D9 OB z CE 41 7D EZ Lae Data Length j Se Radix j O5 notbaz0 6 Tutoriale Code Layout Column WOOO N saye ee Load 14 The memory window will be color coded Shown in the blue part are the executed instructions and those in the gray part are the unexecuted instructions e u oms 10 40 8 Z o de db do de a 26 22 Address 0 1 2 43 4 45 6 7 and 40 h B C 4D E ceni OF42 70 5 OF4250 OF4290 OF42A0 OF42 B0 OF42 0 OF4200 OF 4220 OF42Z FO OF4300 OF4310 OF4320 OF4330 OF4340 OF43 50 OF43 60 OF43 70 OF4350 REJ06J0070 0100 Rev 1 00 2009 2 Page 16 of 22 M16C 60 Series PC7501 Emulator E cE N ESAS CO Coverage Facility 15 Try verifying the content of the internal RAM following the same procedure Right click in the memory window and from the ensuing menu choose Start Address The PC7501 s coverage facility permits you to measure the coverage of data areas whether addresses accessed not just the coverage of instruction execution gek Fill Address 0 or4z70 E ee 0F4280 14 Compare 0F4290 ce Tee UPAZ AU ee Save Memory contents OF42 50 OF4eco 0F42p0 OUF42E0 FA orazro Address 0F4300 77 To OP4a310 F Register EAEAN E Followed Stack Pointer OF4330 OF4340 Set Start Up Symbol 16 The Display Start Address dialog box will be displayed Set
10. 76 OF4214 OF4224 End OF4219 OF4100 OF41BD OF4376 OF4223 OF4375 Coverage 0 00 100 00 1 06 0 00 20 00 24 26 p san gt s6 al6 p san gt st alT p sam s8 a p sam gt s9 a 9 p sam NULL a neti aai si Tutorial c In this case the function change to be called after the function sort and the function abort used for interrupts were not executed Therefore as you can see their measured values are shown as 0 00 8 The result of CO coverage can also be verified in the editor window Choose Set Display Columns from the Edit menu amp 3 Tutorial High performance Embedded Workshop Oe File Pate View Project Build Debug Setup Tools Test Dg M 2 Clear Select All Ckrl A Cay Find In Files F4 Goto Line Chrl 6 Match Braces Cerl ShiFt M Bookmarks i Templates d Ah Toggle Breakpoint Fa ef ine Column Format aS We Po E Pa ri 5 abori oo Evaluate main a oaa i 00 Jamna an Onavea Oonaage 7A FO 8 REJ06J0070 0100 Rev 1 00 2009 2 Page 13 of 22 M16C 60 Series PC7501 Emulator E RE N ESAS CO Coverage Facility 9 The Entire Column State of Editor dialog box will be displayed Select the Coverage and Coverage ASM check boxes in the dialog box and click OK Global Editor Column States Address Match Interrupt Break Points A Ce p Coverage Permits you to verify CO coverage in C source
11. Contents of revision Rev Issue date Points 2009 2 13 __ First edition issued REJ06J0070 0100 Rev 1 00 2009 2 Page 21 of 22 M16C 60 Series PC7501 Emulator E RE N ESAS CO Coverage Facility 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 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 alg
12. Ctrl D ig J Fi kegsters cwr ol Symbol Memory Ctrl M 28 T Ezaa 29 Graphic H tea 10 Ctrl I a ae p a E gt EE Script EH Status Ctrl U 20 Function change Break 0 00 amp init pee sort Trace i 0 0 abort l E 0 00 main n 0 00 g Futoarial BLE ee a ar 70 FA Code gt E RamMonitor 12 The Display Start Address dialog box will be displayed Set H F4270 for Display Start Address in this dialog box and click OK Display Address Display Address Scroll Start Address iz aa Scroll End Address o FFFFF gl Se REJ06J0070 0100 Rev 1 00 2009 2 Page 15 of 22 M16C 60 Series PC7501 Emulator a cE N ESAS CO Coverage Facility 13 The memory window will open Right click in the window and from the ensuing menu choose Coverage and then Enable e u mms i6 10 40 Ite a6 32 Gl Address 0 1 42 El A 5 D DF4270 04 co 1B Move FD OZ 41 OF OF4260 14 04 FD Compare BO FO 75 ZF OF4290 eg 24 77 Test FA 73 BS F Or4za0 77 E5 75 sae MSGR A ATA 75 2F ia 04 OF42B0 FA 73 B5 o j 75 Fr ic o4 Or4zco 77 ES 75 Search BS Fo 77 44 Or4zp0 77 E5 75 Seach Meat i 75 ZE 22 D4 OF42E0 FAR 73 BS ns 75 2E 24 g OF42F0 77 E5 75 Address BS Fc 77 44 OFr4300 77 E5 75 Scroll Area i 75 ZF ZA 04 0F4310 FA 73 B5 Regier ti 75 2F 2 D4 0F4320 77 ES 75 Followed Stack Pointer BS Fo 77 44 OF4330 Ty E53 75 753 4AF 32 D4 0F4340 FA 73 B5 ech Stab Up MDD 7
13. QE NESAS Application Note M16C 60 Series PC7501 Emulator CO Coverage Facility Summary The full spec emulator PC7501 for the M16C 60 series incorporates the CO coverage facility This document explains how to use the CO coverage facility while using the PC 7501 emulator Explained in this document is for the case where the user system incorporating an M16C 60 series microcomputer and the PC7501 emulator are used in combination The content of this document may be used in common for even a different target microcomputer providing it is one of the M16C 60 series microcomputers Table of Contents Te 2 ee E ee ee ee ee 2 2 26 8 Used ne ne ee ee eee eee eee 2 3 Preparing the Software cccccecccccccccceeaeeeeeeeeeeeeeeeeeseeeeeessaeeeseceeeeeesseeeseeceeeeesseeaaseeceeeeessaasaeeeeeeees 2 ed GEMO NE ene ee ee ee ee ee eee 2 3 2 Installing the Software Supplied with the PC 7501 Emulator cccccecccecceeeseeseeeeeeeeeseeseeeeeeeeeneaas 2 23 OC UM eccrine ea clea eee E dence bet deine E ech do EE 2 4 Operaional SS CMO UG i saca as ce te cass socetesce a E a 3 4 1 Starting the High performance Embedded Workshop ccccccccseeeeeeeeeeeeeeeceeeeeeeeeeeaaeseeeeeeseeeeaas 3 4 2 Opening a WOrkSPaCe cccccccseceecccceeeceeeeseeeeeeeceaeeseeeeeeeesseeeeseeeeeeesseeeaseceeeeesseeseeeeeeeesseeeseeeeeseeeesenaas 4 4 3 Downloading the Target Program ccccccsssseccecseseeceeeseeeeeeeeeeeeeseeees
14. ed Workshop Change sessions to connect the PC7501 emulator To do it change DefaultSession in the toolbar to SessionM1i6C_R8C_PC7501_Emulator Before changing sessions here be sure that the interface select switch on the back panel of the PC7501 emulator main body is set to the USB side and then turn the power for the PC 7501 emulator on Tutorial High performance Embedded Workshop File Edit View Project Build Debug Setup Tools Test Window Help D cor kel g r 2 T ala HJAR a aa sas Debug Ten z At W T S f f ae B Session IEE AEC PCPSOT RSC PC 501 Tutorial H E Assembly source nertO 330 H E C source file sort c Tutorial c Sy Dependencies E nc_define in sect30 inc sort h Tjaa A 2 o of al at 21 Bt A Be tl 2 vill lt 1 gt Debug A FindinFiles1 A FindinFiles2 A Macro A Test A Version Control Ready Ce bee ie i 3 lf a dialog box is displayed prompting for your confirmation of whether to save the previous session click the Yes button High performance Embedded Workshop A Session DefaultSession in project Tutorial has been modified Do you want to sawe it REJ06J0070 0100 Rev 1 00 2009 2 Page 6 of 22 M16C 60 Series PC7501 Emulator E RE N ESAS CO Coverage Facility 5 The Init M16C R8C PC7501 Emulator dialog box will be displayed Select the USB radio button on the MCU tab of
15. folder positions in order while you locate When the workspace Tutorial nhws is found specify it and click the Select button C WorkSpace Tutorial PC7501 M16C Tutorial Tutorial hws C WorkSpace L Tutorial L pc7501 L M16C L Tutorial L Tutorial hws Note Depending on the software version used it will occur that the above directory cannot be specified In such a case select the directory given below lt Directory in which the High performance Embedded Workshop is installed gt Tools Renesas DebugComp Platform E8 M16C Tutorial Examples of directory C new3 Tools Renesas DebugComp Platform E8 M16C Tutorial C new2 Tools Renesas DebugComp Platform E8 M16C Tutorial 3 If the workspace version is old the dialog box shown below is displayed To update it to a new version click the OK button High performance Embedded Workshop The Workspace you are about to open was created with an earlier version of HEW The data files For the workspace projects and sessions will be updated Once updated this workspace cannot be opened by an older version of HEW Backup versions of your old Files will be created in the workspace and project directories with the prefix i Cancel old version xxx Do vou wish to continue REJ06J0070 0100 Rev 1 00 2009 2 Page 5 of 22 M16C 60 Series PC7501 Emulator E cE N ESAS CO Coverage Facility 4 When the workspace is opened you are ready to use the High performance Embedd
16. irect 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 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 character
17. istics 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 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 c
18. ograms P Log OFF oJ Turn OFF Computer REJ06J0070 0100 Rev 1 00 2009 2 Page 3 of 22 M16C 60 Series PC7501 Emulator E cE N ESAS CO Coverage Facility 4 2 Opening a Workspace 1 The Welcome dialog box will be displayed in the High performance Embedded Workshop gy High performance Embedded Workshop File Edit View Project Build Debug Setup Tools Test Window Help x Welcome e Create a new project workspace Cancel E Open a recent project workspace LI Administration Browse to another project workspace a ER Hoaoaat URA Be iha 3 Build A Debug A FindinFiles1 A FindinFiles2 A Macro A Test A Version Control Ready INS NUM Select the Browse Another Project Workspace radio button in the Welcome dialog box and click the OK button Welcome ee E Create a new project workspace Cancel Open arecent project workspace w Administration REJ06J0070 0100 Rev 1 00 2009 2 Page 4 of 22 M16C 60 Series PC7501 Emulator E RE N ESAS CO Coverage Facility 2 The Open a Workspace dialog box will be displayed Open Workspace Look in E Tutorial ay ey Ed File name Tutorial A Select J Files of type HEW Workspaces hws hd Cancel If the installation of the CD ROM of this product is complete the workspace Tutorial hws is stored as standard in the folder position shown below Check
19. ontact 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 REJ06J0070 0100 Rev 1 00 2009 2 Page 22 of 22
20. orithms 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 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 d
21. p Tutorial c oe File Edit View Project Build Beet Setup Tools Test Window Help Cah a gle amp Debug Sessions lly lal lb 10 g i a Debug Settings s f Reset CPU ra Tutorial E Tutorial Z Go 2 Assembly source file Elpesct 50 Shift F5 nerti a30 F Free Go C source file 3 sort c Tutoral c a ga 0 RE m Run 3 EE ee pe Display PC Ctrl Shift Y 6 While a CO coverage measurement is in progress the Coverage values in the coverage window are shown as ajx a ERE i Function start End Coverage change F41BE 0F4219 init 0F4014 OF4100 Sort OF4102 OF41ED abort OF43 76 OF43 76 main OF42Z 14 OF4225 tutorial F424 OF43 75 REJ06J0070 0100 Rev 1 00 2009 2 Page 12 of 22 M16C 60 Series PC7501 Emulator E cE N ESAS CO Coverage Facility 7 The program will stop at the breakpoint showing the result of the CO coverage measurement in the coverage window x 1 Tutorial a ale Tutorial 2 Assembly source file Line Sour AL 5 Source E nertl a30 3 C source file A zort c A Tutoriale J E Download modules Sy Dependencies sd Test p sam gt s0 a O p Ssam gt sl al1 p san gt se ale p_sam gt s37a 3 p san gt st a 4 p sam gt s5 a 5 Project lE Templates Mavigaton w e Function change init Sort abort main tutorial otart OUF41BE OF4014 OF4102 OF43
22. s displayed on the Debug tab of the output window Tutorial High performance Embedded Workshop File Edit Yiew Project Build Debug Setup Tools Test Window Help Ose Ge 6 ejo ical al Debug SessionM16C_R8C_PC7 gt At w O eae 2 Bm E E E REI POD x xl E G Tutorial H E Assembly source A nert0 a30 a Kra file sot c E Tutorial c Download modu Tutorial x30 E Dependencies ne_detfine ir sect30 inc sorth x oait 2 21 7 G 9 2 Build Debug FindinFiles 1 FindinFiles2 J Macro Test Version Control Ready Ft E2 ES EA Default desktop desktop poe INS N NUM 4 4 3 Downloading the Target Program First download the target program 1 In the example here we ll download the program Tutorial x30 00000000 appearing beneath Download Modules in Workspace Double click it to download Execute fa ey Tutorial ee sy Tutorial a Assembly source file oo E ert a0 I a C source file gt zort c When the program is successfully downloaded its icon is marked by a down arrow B E3 Download modules DE Hoooooo0 REJ06J0070 0100 Rev 1 00 2009 2 Page 8 of 22 M16C 60 Series PC7501 Emulator E RE N ESAS CO Coverage Facility 4 4 Measuring the CO Coverage To view the results of coverage measurements open the coverage window 1 From the View menu choose Code and
23. saeeeeesaeaueeeeesseaeeeeesseageeeeesegaees 8 4 4 Measuring the CO Coverage ccccccccsssseseeeceeeeeeueeeeeceeeseueeeeeeceeeesesseaseeceeeesessaaseeeeeeeeessaaeeeeeeeeeeesaaas 9 5 Freguently Asked QUESIONS meee ert een tne oe eee ee eee 18 5 1 Why do the measurement result in source units and that in the coverage window differ 18 6 Re lat d Documento sc sea scisere ees cance ina e aAA aa E aE RA n EEA 20 REJ06J0070 0100 Rev 1 00 2009 2 Page 1 of 22 M16C 60 Series PC7501 Emulator E RE N ESAS CO Coverage Facility 1 Overview The coverage facility refers to the one that measures the extent of a test covered The coverage rate of a test program measured while it was run is used to determine the validity of the test program The coverage facility comes in several types such as CO coverage and C1 coverage Incorporated in the PC7501 is the CO coverage Also known as instruction coverage the CO coverage allows measuring the coverage of whether instructions were executed On the other hand the C1 coverage also referred to as branch coverage allows measuring the coverage of whether a branch occurred on true or false side of a conditional branch instruction The PC7501 can not only display the result of a CO coverage measurement in the CO coverage window but also permits you to verify instruction execution or non execution in source line units using the editor window columns as well as verify instruction execution or non e
24. tallation procedure is omitted here 3 3 Auto Update Utility If you ve selected the auto update utility when installing the software it is possible to confirm via the Internet whether the latest version of each tool is available REJ06J0070 0100 Rev 1 00 2009 2 Page 2 of 22 M16C 60 Series PC7501 Emulator E RE N ESAS CO Coverage Facility 4 Operational Description This section describes the method for using the CO coverage facility after starting the High performance Embedded Workshop HEW The procedure is shown below Start of operation Starting the HEW Opening a workspace Downloading the target program Measuring CO coverage End Figure 4 1 Example Program Execution Procedure 4 1 Starting the High performance Embedded Workshop To begin with first connect the PC7501 emulator that has the user system connected to it and the host computer with USB cable and check to see that everything is ready to debug Next start the High performance Embedded Workshop From All Programs on the Start menu choose Renesas High performance Embedded Workshop gt High performance Embedded Workshop to start fg Renesas fgg High performance Embedded Workshop rn Setup Tool For 104 US6 Emulator T Multiple Install Manager 2 Renesas Tools HomePage igh High performance Embedded Workshop EA High performance Embedded Workshop Help E High performance Embedded Workshop Read Me ga Manual Mavigator All Pr
25. units Coverage ASM Permits you to verify CO coverage in assembly units 10 The Coverage column will be added in the editor window allowing you to verify CO coverage visually The yellow part of this column represents executed instructions and the gray part represents unexecuted instructions S A 5 Source 36 F4259 dy SL 37 36 F4262 39 I 40 F4276 41 P4275 change al 42 m 43 F4266 p Sar gt s0 al O 44 F4296 p sam sisa i 45 F42 iF H samn gt s2 ale 6 F42C6 Pp san sss als 47 F42 DE p San gt s4 al4 46 F42 F6 p sam s5sa 5 49 F430E p s3am s6sa 6 50 F4326 p sam gt sv al7 51 F433E p sam s s7a S 52 F4356 p san gt s9 al9 53 F436E p sam NULL 54 F4a74 I 4 2 a nerti aai SO Tutorial c In mixed mode or disassembly mode too it is possible to verify CO coverage visually in the same way REJ06J0070 0100 Rev 1 00 2009 2 Page 14 of 22 M16C 60 Series PC7501 Emulator E RE N ESAS CO Coverage Facility 11 What s more it is possible to verify CO coverage visually in address units using the memory window Choose CPU and then Memory from the View menu 3 Tutorial High performance Embedded Workshop Tutorial c gt Fie Edit BER Project Build Debug Setup Tools Test Window Help Cj c il Differences 1g aH Map Command Line CErl L Tutor A T 0 TCL Toolkit Ctrl ShiFt k 4g A Outpu i Status Bar Alt A Disassembly
26. xecution in address units in the memory window The coverage measurement area can be any area comprised of 1 to 32 blocks up to 8 Mbytes beginning with the 256 kbyte boundary There is another thing to be noted for the PC7501 s CO coverage facility that its measurement result includes prefetches 2 Facilities Used In this document the method of CO coverage measurement is explained using the sample program included in the CD ROM supplied with the PC7501 emulator or a downloaded package from the Renesas website The tool versions used are listed below M16C R8C PC7501 Emulator Debugger V 1 03 Release 00 for the M16C series 3 Preparing the Software 3 1 Getting Started Install the software included in the CD ROM that is supplied with the PC 7501 emulator The sample program tutorial workspace used in this document will be expanded in your PC The software included in the CD ROM that is supplied with the PC 7501 emulator may also be installed in a PC that has had the High performance Embedded Workshop already installed In this case part of the dialogs displayed during the installation work will be omitted 3 2 Installing the Software Supplied with the PC7501 Emulator Execute M16cPc7501 Debugger exe present in the CD ROM supplied with the PC7501 emulator For details on how to install see the PC7501 emulator setup guide published at the Renesas website During installation work follow the instructions displayed on the screen The ins

Download Pdf Manuals

image

Related Search

Related Contents

Handbücher  Samsung AR10HVSFQWKXST คู่มือการใช้งาน  Brodit ProClip 854838  ALO Duo Roll DMX LED barrel scanner with dual light - Bax  a manual  Maytag MGDB800V User's Manual  Sika CuraSellador STD  

Copyright © All rights reserved.
Failed to retrieve file