Go to page of
Similar user manuals
-
Network Card
Renesas M16C/6NN
104 pages 3.11 mb -
Network Card
Renesas HS7339KCU01HE
43 pages 0.24 mb -
Network Card
Renesas PCA7442SP
18 pages 0.15 mb -
Network Card
Renesas PCA4738G-100A
26 pages 0.13 mb -
Network Card
Renesas M3A-HS19
72 pages 2.27 mb -
Network Card
Renesas PCA7412G-100
20 pages 0.11 mb -
Network Card
Renesas User System Interface Board HS1664ECH61H
37 pages 0.46 mb -
Network Card
Renesas HS7343KCU01HE
57 pages 0.38 mb
A good user manual
The rules should oblige the seller to give the purchaser an operating instrucion of Renesas M16C/64, along with an item. The lack of an instruction or false information given to customer shall constitute grounds to apply for a complaint because of nonconformity of goods with the contract. In accordance with the law, a customer can receive an instruction in non-paper form; lately graphic and electronic forms of the manuals, as well as instructional videos have been majorly used. A necessary precondition for this is the unmistakable, legible character of an instruction.
What is an instruction?
The term originates from the Latin word „instructio”, which means organizing. Therefore, in an instruction of Renesas M16C/64 one could find a process description. An instruction's purpose is to teach, to ease the start-up and an item's use or performance of certain activities. An instruction is a compilation of information about an item/a service, it is a clue.
Unfortunately, only a few customers devote their time to read an instruction of Renesas M16C/64. A good user manual introduces us to a number of additional functionalities of the purchased item, and also helps us to avoid the formation of most of the defects.
What should a perfect user manual contain?
First and foremost, an user manual of Renesas M16C/64 should contain:
- informations concerning technical data of Renesas M16C/64
- name of the manufacturer and a year of construction of the Renesas M16C/64 item
- rules of operation, control and maintenance of the Renesas M16C/64 item
- safety signs and mark certificates which confirm compatibility with appropriate standards
Why don't we read the manuals?
Usually it results from the lack of time and certainty about functionalities of purchased items. Unfortunately, networking and start-up of Renesas M16C/64 alone are not enough. An instruction contains a number of clues concerning respective functionalities, safety rules, maintenance methods (what means should be used), eventual defects of Renesas M16C/64, and methods of problem resolution. Eventually, when one still can't find the answer to his problems, he will be directed to the Renesas service. Lately animated manuals and instructional videos are quite popular among customers. These kinds of user manuals are effective; they assure that a customer will familiarize himself with the whole material, and won't skip complicated, technical information of Renesas M16C/64.
Why one should read the manuals?
It is mostly in the manuals where we will find the details concerning construction and possibility of the Renesas M16C/64 item, and its use of respective accessory, as well as information concerning all the functions and facilities.
After a successful purchase of an item one should find a moment and get to know with every part of an instruction. Currently the manuals are carefully prearranged and translated, so they could be fully understood by its users. The manuals will serve as an informational aid.
Table of contents for the manual
-
Page 1
REJ10J1733-0100 ( T ) R0E530640MCU00 Rev.1.00 Apr. 01, 2008 User’s Manual E100 Emulator MCU Unit for M16C/64 Grou p[...]
-
Page 2
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[...]
-
Page 3
R0E530640MCU00 User’ s Manual Preface REJ10J1733-0100 Rev.1.00 Apr. 01, 2008 Page 3 of 229 Preface The R0E530640M CU00 is a full-spec emulat or for M1 6C/60 Series M 16C/64 Gr oup MCUs. T his user's m anual mai nly describes speci fications of the R0E530 640MCU00 and how to setup it. For detail s on the em ulator debu gger included i n this [...]
-
Page 4
R0E530640MCU00 User’ s manual Important REJ10J1733-0100 Rev.1.00 Apr. 01, 2008 Page 4 of 229 Important Before usin g this pr oduct, be su re to read t his user’s manual careful ly. Keep this use r’s manual , and refer t o it when y ou have que stions abo ut this pr oduct. Emulator: The emulator in this document refers to the following pro duc[...]
-
Page 5
R0E530640MCU00 User’ s manual Important REJ10J1733-0100 Rev.1.00 Apr. 01, 2008 Page 5 of 229 Usage restrictions: This emulat or has been de veloped as a means of s upportin g system devel opment by u sers. Theref ore, do n ot use it as a de vice used for eq uipment-em bedded appl ications. Al so, do not use it for developing the systems o r equip[...]
-
Page 6
R0E530640MCU00 User’ s Manual Precautions for safety REJ10J1733-0100 Rev.1.00 Apr. 01, 2008 Page 6 of 229 Precautions for Safety Definitions of Signal Words In both t he user’s manual a nd on t he pro duct itself, several i cons are use d to in sure pro per handl ing of t his prod uct and als o to prevent inj uries to you or other persons, or d[...]
-
Page 7
R0E530640MCU00 User’ s Manual Precautions for safety REJ10J1733-0100 Rev.1.00 Apr. 01, 2008 Page 7 of 229 WARNING Warnings for AC Power Su pply: z If the attached AC power cable does not fi t the receptacl e, do not alter the AC power cable and do not pl ug it forcibly. Failure to comply may cause electric shock and/or fire. z Use an AC power cab[...]
-
Page 8
R0E530640MCU00 User’ s Manual Precautions for safety REJ10J1733-0100 Rev.1.00 Apr. 01, 2008 Page 8 of 229 CAUTION Cautions to Be Taken for Turning On the Power: z Turn ON/OFF the power of the emulator and use r system as sim ultaneously as p ossible. z When turning on the power again after shutting off the power, wait about 10 seconds. Cautions t[...]
-
Page 9
R0E530640MCU00 Use r’s Manual Contents REJ10J1733-0100 Rev.1.00 Apr. 01, 2008 Page 9 of 229 Contents Page Preface ........................................................................................................................ .................................................. 3 Import ant .................................................[...]
-
Page 10
R0E530640MCU00 Use r’s Manual Contents REJ10J1733-0100 Rev.1.00 Apr. 01, 2008 Page 10 of 229 3.13 Single-Steppi ng a Program ................................................................................................. ........................ 48 3.13.1 Executing Step In Command ................................................................[...]
-
Page 11
R0E530640MCU00 Use r’s Manual Contents REJ10J1733-0100 Rev.1.00 Apr. 01, 2008 Page 11 of 229 5.5 Periodically Reading Out and Sh owing the Emul ator Status ..................................................................... 98 5.5.1 Periodically Reading Out and Show ing the Emulator Information ............................................... 98[...]
-
Page 12
R0E530640MCU00 Use r’s Manual Contents REJ10J1733-0100 Rev.1.00 Apr. 01, 2008 Page 12 of 229 5.11.13 Searching for U nexecuted Lines................................................................................................ 163 5.11.14 Clearing Code Cove rage Information .......................................................................[...]
-
Page 13
R0E530640MCU00 Use r’s Manual Contents REJ10J1733-0100 Rev.1.00 Apr. 01, 2008 Page 13 of 229 6. Troubleshooting (Action on Error)......................................................................................................................... 211 6.1 Flowchart to Re medy the Troubles .......................................................[...]
-
Page 14
R0E530640MCU00 Use r’s Manual User Registration REJ10J1733-0100 Rev.1.00 Apr. 01, 2008 Page 14 of 229 User Registration Customer Registration Sheet is included with this manual, fill it in and FAX or email it to you r local distributor. If you regi ster it by email, you can use a text format for user registration cr eated when installing th e sof[...]
-
Page 15
R0E530640MCU00 User’ s Manual Terminology REJ10J1733-0100 Rev.1.00 Apr. 01, 2008 Page 15 of 229 Terminology Some specific words used i n this user's m anual are defi ned as foll ows: MCU unit R0E5306 40MCU00 This means the E100 emulat or for M16C/ 64 Group. Emulator sys tem This means an emulator system built around the MCU unit R0 E5306 40M[...]
-
Page 16
R0E530640MCU00 User’ s Manual 1. Outline REJ10J1733-0100 Rev.1.00 Apr. 01, 2008 Page 16 of 229 1. Outline This ch apter descr ibes the p ackage co mpone nts, the s ystem co nfi guration, the specificatio ns of the emulato r functions and the operatin g environm ent. 1.1 Package Components The R0E530640MCU0 0 package consists of the fo llowing ite[...]
-
Page 17
R0E530640MCU00 User’ s Manual 1. Outline REJ10J1733-0100 Rev.1.00 Apr. 01, 2008 Page 17 of 229 1.3 System Configuration 1.3.1 System Configuration Figure 1.1 s hows a confi guration of the emulat or system. Figure 1.1 Syst em configurati on (1) MCU U nit R0E5 30640MCU 00 (this p roduct ) This is an MC U mountin g board for the M16C/60 Se ries M16[...]
-
Page 18
R0E530640MCU00 User’ s Manual 1. Outline REJ10J1733-0100 Rev.1.00 Apr. 01, 2008 Page 18 of 229 1.3.2 Names and Functio ns of each part of the emulator Figure 1.2 s hows the nam es of each part of the em ulator. (1) P ow e r sw itch (2) US B cable connector (3) P o w e r c on ne c tor (4) External tr i gger connect or (5) Syst em stat us LEDs (6) [...]
-
Page 19
R0E530640MCU00 User’ s Manual 1. Outline REJ10J1733-0100 Rev.1.00 Apr. 01, 2008 Page 19 of 229 (5) System Status LE Ds The system status LEDs indicate the emul ator E100's power supp ly, firmware operatin g status, etc. Table 1.3 lists the definitions of each system status LED. Table 1.3 Defi nitions o f the syst em status LEDs Name Status M[...]
-
Page 20
R0E530640MCU00 User’ s Manual 1. Outline REJ10J1733-0100 Rev.1.00 Apr. 01, 2008 Page 20 of 229 1.4 Specifications Table 1.5 lis ts the specificat ions of the R 0E530640MC U00. Table 1.5 Spec ifications of the R0E530640 MCU00 Applicable M CU M16C/60 Seri es M16C/6 4 Group MCUs wi th 512 KB RO M Applicable M CU mode Single-chi p mode, mem ory expan[...]
-
Page 21
R0E530640MCU00 User’ s Manual 1. Outline REJ10J1733-0100 Rev.1.00 Apr. 01, 2008 Page 21 of 229 1.5 Operating Environment Make sure to use this emulator in the operatin g environments listed in Tables 1.6 and 1.7. Table 1.6 Oper ating environm ental conditi ons Item Description Operating te mperature 5 to 35°C ( no dew) Storage tem perature -10 t[...]
-
Page 22
R0E530640MCU00 User’ s Manual 2. Setup REJ10J1733-0100 Rev.1.00 Apr. 01, 2008 Page 22 of 229 2. Setup This chapter describes the preparation for using this prod uct, the proce dure for st arting u p the emulat or and how t o change settings. 2.1 Flowchart of Star ting Up the Emulator The procedure for starting up the emul ator is shown in Figures[...]
-
Page 23
R0E530640MCU00 User’ s Manual 2. Setup REJ10J1733-0100 Rev.1.00 Apr. 01, 2008 Page 23 of 229 14 Change the sett ings. Change the setti ngs of the power supply to MCUs or clock s upply, according to the use condition. ▼ 15 Connect the user system . Connect th e user system as occasion dem ands. ▼ 16 Turn on the power supply. Turn ON the powe r[...]
-
Page 24
R0E530640MCU00 User’ s Manual 2. Setup REJ10J1733-0100 Rev.1.00 Apr. 01, 2008 Page 24 of 229 2.2 Installing the Included Software If you ha ve Windows X P or 2000 on the host machine, this i nstallation must be execut ed by a user with admi nistrator right s. Note that users without administrator rights cannot complete the installation . When you[...]
-
Page 25
R0E530640MCU00 User’ s Manual 2. Setup REJ10J1733-0100 Rev.1.00 Apr. 01, 2008 Page 25 of 229 2.3 Connecting/Disconnecting the MCU Unit to/from the E100 Emul ator Main Unit Figure 2.3 shows the procedure for connecting th e MCU Unit to the E100 Emulator Main Unit. Connecting 1 0 0 HI G H PE R F O R M AN CE EM U L AT O R SY S T EM R 0 E 5 3 0 6 5 0[...]
-
Page 26
R0E530640MCU00 User’ s Manual 2. Setup REJ10J1733-0100 Rev.1.00 Apr. 01, 2008 Page 26 of 229 2.4 Connecting the Host Machine USB interface is use d for connecting the emulator t o the host machine. T he USB cable is connected to the USB cable connector of the emulator and the USB port of the host machine. Figure 2.4 Connecting the host machine[...]
-
Page 27
R0E530640MCU00 User’ s Manual 2. Setup REJ10J1733-0100 Rev.1.00 Apr. 01, 2008 Page 27 of 229 2.5 Connecting the Emulator Power Supply Power is supplied from the included AC adapter to th e emulator. The following show s how to connect the AC adapter. (1) Turn O FF the emulator . (2) Connect the DC cable of th e AC a dapter to the emulator. (3) Co[...]
-
Page 28
R0E530640MCU00 User’ s Manual 2. Setup REJ10J1733-0100 Rev.1.00 Apr. 01, 2008 Page 28 of 229 2.6 Turning ON the Power 2.6.1 Checking the Connections of the Emulator Syste m Before turning the po wer ON, ch eck the connection of the interf ace cable with the ho st machine, emulator, and user system . 2.6.2 Turning ON/OFF the Powe r - Turn ON/OFF t[...]
-
Page 29
R0E530640MCU00 User’ s Manual 2. Setup REJ10J1733-0100 Rev.1.00 Apr. 01, 2008 Page 29 of 229 2.7 Self-check The self-check i s to check the em ulator func tions operat e properly. T o run the self-c heck functi on of the em ulator, follow t he procedure below. While the self-check is in progress, the LEDs will change as shown in Figu re 2.6. In c[...]
-
Page 30
R0E530640MCU00 User’ s Manual 2. Setup REJ10J1733-0100 Rev.1.00 Apr. 01, 2008 Page 30 of 229 2.8 Selecting Clock Supply 2.8.1 Clocks You can choose a clock supp lied to the evaluation MCU by the Emulator tab in th e Configuration properties dialog bo x of the emulator debugger. Tabl e 2.1 sho ws the clocks a nd their i nitial set tings. Table 2.1[...]
-
Page 31
R0E530640MCU00 User’ s Manual 2. Setup REJ10J1733-0100 Rev.1.00 Apr. 01, 2008 Page 31 of 229 2.8.2 Using an Internal Oscillator Circuit Board Kinds of Oscillator Circuit Boards An oscillator module (20MHz) is mounted on the IC17 at factor y setting. If you change the freque ncy, replace the oscillator module. (1) Replacing the Oscillator m odule [...]
-
Page 32
R0E530640MCU00 User’ s Manual 2. Setup REJ10J1733-0100 Rev.1.00 Apr. 01, 2008 Page 32 of 229 2.8.3 Using the Oscillator Circuit on the User System To operate this product with an external clock, con struct the os cillator circu it as shown in Figure 2.8 in the user system and input the oscillato r output at 50% duty (within the operatin g range o[...]
-
Page 33
R0E530640MCU00 User’ s Manual 2. Setup REJ10J1733-0100 Rev.1.00 Apr. 01, 2008 Page 33 of 229 2.9 Connecting the User System Figure 2.1 0 shows ho w to connect this prod uct to your user system . 100-pin Fle xi bl e cabl e 0.65mm pitch 0.5mm pitch R0E01 00TN PFK0 0 100-pin LQFP R0E 0100TN PFJ00 100-pin QFP Figure 2.1 0 Connecting t his product to [...]
-
Page 34
R0E530640MCU00 User’ s Manu al 2. Setup REJ10J1733-0100 Rev.1.00 Apr. 01, 2008 Page 34 of 229 2.9.1 Connecting to a 100-pin 0.65mm Pitch Foot Pattern The followin g is a procedu re of connecting t o a 100-pin 0.65mm pitch foot pat tern on the us er system using t he R0E0100TNPFJ00 (not included). Fo r details on the R0E010 0TNPFJ00 (n ot include [...]
-
Page 35
R0E530640MCU00 User’ s Manu al 2. Setup REJ10J1733-0100 Rev.1.00 Apr. 01, 2008 Page 35 of 229 2.9.2 Connecting to a 100-pin 0.5mm Pitch Foot Pattern The follo wing is a procedure of con necting t o a 100- pin 0.5m m pitch fo ot patte rn on the user system using t he R0E0100TNP FK00 (n ot included ). For deta ils on the R 0E0100TNPF K00 (not inclu[...]
-
Page 36
R0E530640MCU00 User’ s Manual 3. Tutorial REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 36 of 229 3. Tutorial 3.1 Introduction The E100 emulato r has a tutorial progra m available. This program is prov ided as a means for presen ting to you the main features of t he emulat or, as will be explained in this docum ent. This tutorial program is writt[...]
-
Page 37
R0E530640MCU00 User’ s Manual 3. Tutorial REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 37 of 229 3.2 Starting the High-per formance Embedded Workshop Open a workspace followi ng the procedure describe d in Section 4.4, “ Opening an E xisting Workspace” For the direct ory, specify the one that is give n below. OS installed driveWorkspaceTu [...]
-
Page 38
R0E530640MCU00 User’ s Manual 3. Tutorial REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 38 of 229 3.4 Downloading the Tutorial Program 3.4.1 Downloading the Tutorial Program Download the object prog ram you wa nt to debug. Note, howe ver, that the prog ram to be downl oaded and the a ddress in the microcomputer to which downloa ded differ with ea[...]
-
Page 39
R0E530640MCU00 User’ s Manual 3. Tutorial REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 39 of 229 3.4.2 Displaying the Source Program In the High-performance Embedd e d Workshop you can debug a program at the source level. Double-click Tutorial.c of C source file. Figure 3.3 E ditor wind ow (displ aying the so urce program ) If necessary, you can[...]
-
Page 40
R0E530640MCU00 User’ s Manual 3. Tutorial REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 40 of 229 3.5 Setting Software Breakpoints Software breakpoints are one of simple debug facilities. The Editor window perm its you t o set s oftware brea kpoints easil y. For exam ple, you can set a soft ware break point at a place where the sort function is c[...]
-
Page 41
R0E530640MCU00 User’ s Manual 3. Tutorial REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 41 of 229 3.6 Executing the Program The following d escribes how to run the progr am. 3.6.1 Resetting the CPU To reset the CPU, choose Reset CPU from the Debug menu or click the Reset CPU button in the toolbar. 3.6.2 Executing the Program To execute the progra[...]
-
Page 42
R0E530640MCU00 User’ s Manual 3. Tutorial REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 42 of 229 The Status win dow perm its you to c heck th e cause of the break that last occurred. Choose CPU −> Status from the View menu or click the View Status tool bar button . When the Status window is displayed, open the Targe t sheet in it and check.[...]
-
Page 43
R0E530640MCU00 User’ s Manual 3. Tutorial REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 43 of 229 3.8 Altering Register Contents Choose CPU −> Registers from the View menu or click the Registers toolbar button . The Register window shown below will be displayed. Figure 3.8 R egister win dow The content of any regist er can be altere d. Doubl[...]
-
Page 44
R0E530640MCU00 User’ s Manual 3. Tutorial REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 44 of 229 3.9 Referencing Symbols The Labels wi ndow perm its you to display t he symbol inf ormation i ncluded in a m odule. Choose Symbols −> Labels from the View menu o r click the Label s toolbar button . The Labels windo w shown b elow will be displa[...]
-
Page 45
R0E530640MCU00 User’ s Manual 3. Tutorial REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 45 of 229 3.10 Checking Memory Contents Specifying a l abel name, you can c heck in the Memory window the content of memo ry where the label is reg istered. For example, you can check th e content of memor y corresponding to _main in byte size, as shown below.[...]
-
Page 46
R0E530640MCU00 User’ s Manual 3. Tutorial REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 46 of 229 3.11 Referencing Variables When single-stepping a program, you can see how the values of the variables used in the program will change as you step through source l ines or instructi ons. For exam ple, following the p rocedure descri bed below, y ou c[...]
-
Page 47
R0E530640MCU00 User’ s Manual 3. Tutorial REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 47 of 229 Enter a variable ‘i’ in the Variable or Expression edit box and click the OK button. An int-type variable ‘i’ will be displayed in the Watch window. Figure 3.16 W atch windo w (showing a va riable) Clicking t he “+” ma rk shown to the l e[...]
-
Page 48
R0E530640MCU00 User’ s Manual 3. Tutorial REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 48 of 229 3.12 Showing Local Variables Using the Local w indow you can display the local variables incl uded in a function. As an exam ple, let’s check the local variables of the tutorial function. This functio n d eclares three local variables ‘j,’ ‘i[...]
-
Page 49
R0E530640MCU00 User’ s Manual 3. Tutorial REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 49 of 229 3.13.1 Executing Step In Command The Step In command ‘steps in’ a called function a nd st ops at the first statement of the called function . To enter the s ort functi on, choose St ep In from the Debug m enu or clic k the Step In button in t he [...]
-
Page 50
R0E530640MCU00 User’ s Manual 3. Tutorial REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 50 of 229 3.13.2 Executing the Step Out Command The Step Out com mand exits a called function by executi ng it quick ly and stops at the next stat ement of a progr am from which the function was called. To exit the sort fun ction, choose Step Out from the Debu[...]
-
Page 51
R0E530640MCU00 User’ s Manual 3. Tutorial REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 51 of 229 3.13.3 Executing the Step Over Command The Step Over comm and executes the whole of a function call as one step and t hen stops at the next statem ent of the main program. To execute all statements in the cha nge functi on at a tim e, choose Step Ove[...]
-
Page 52
R0E530640MCU00 User’ s Manual 3. Tutorial REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 52 of 229 3.14 Forcibly Breaking a Program The High-perf ormance Embedde d Works hop permit s you to forcibly break a program . Clear all break points. To execute the rest of t he tutorial function, choose Go f rom the Deb ug menu or click the Go butto n in th[...]
-
Page 53
R0E530640MCU00 User’ s Manual 3. Tutorial REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 53 of 229 3.15 Hardware Break Facility Hardware breaks cause the program to stop when it executes a specified address (ins truction fetch) or reads or writes to a specified memory location (data access). 3.15.1 Stopping a Program when It Ex ecutes a Specified [...]
-
Page 54
R0E530640MCU00 User’ s Manual 3. Tutorial REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 54 of 229 3.16 Stopping a Program when It Accesses Memory To stop a pr ogram when it reads or wri tes a value to a global va riable, set u p a hardware b reak as describe d below. Choose Event -> Hardware Break from the View menu t o display t he Hardwa re [...]
-
Page 55
R0E530640MCU00 User’ s Manual 3. Tutorial REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 55 of 229 3.17 Trace Facility The trace facility of the E100 em ul ator has a special m emory known as “trace m e mory” that can hold an execution record of up to 4M bus cycles, which is always updated during program execution. The conten t of trace memory[...]
-
Page 56
R0E530640MCU00 User’ s Manual 3. Tutorial REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 56 of 229 3.17.1 Showing the Trace Informat ion Acquired by Fill Until Stop The free trace facility acquires trace inform at ion successively from when the use r program starts running till when it bre aks. (1) Clear all break conditions. Click the right mouse[...]
-
Page 57
R0E530640MCU00 User’ s Manual 3. Tutorial REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 57 of 229 (2) Set a software break in a line of the tutorial function where p_sam ->s0=a[0]; is written. (3) Choose Reset Go from the De bug menu. Processing wi ll be halted by a break, and th e trace information from start to break will be displayed in the[...]
-
Page 58
R0E530640MCU00 User’ s Manual 3. Tutorial REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 58 of 229 (5) Furtherm ore, choosing Display Mo de −> SRC fro m the cont ext me nu, you can display t race inform ation in a bus, disassemble and s ource mixed mode. Figure 3.33 Trace window (bus, disa ssemble and so urce mixed dis play)[...]
-
Page 59
R0E530640MCU00 User’ s Manual 3. Tutorial REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 59 of 229 3.17.2 Showing the Trace Informat ion Acquired by Fill around TP The point & delay facility stops acquiring trace inform ation a sp ecified num ber of cycles after a trace poi nt is encountered. This facility allows you to keep track of program f[...]
-
Page 60
R0E530640MCU00 User’ s Manual 3. Tutorial REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 60 of 229 (3) Next, set a trace point at which the debu gger starts acquiring trace i nformation. Open the OR page of the Trace conditions dialog box. Select the main functio n in the Editor window an d drag-and-drop it into th e OR page. Click the Apply butto[...]
-
Page 61
R0E530640MCU00 User’ s Manual 3. Tutorial REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 61 of 229 3.17.3 Showing a Function Execution History A function execution history can be displa yed from the acquired trace information. (1) Clear all break conditions. Click the right mouse button an ywhere in the Trace window an d choose Acquisition from th[...]
-
Page 62
R0E530640MCU00 User’ s Manual 3. Tutorial REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 62 of 229 (5) Click t he right m ouse butt on anywhere in the displa yed functio n execution history wi ndow and cho ose Analyze Execut ion History from the conte xt menu. A functio n execution history will be displayed in the uppe r pane of the Trace window. [...]
-
Page 63
R0E530640MCU00 User’ s Manual 3. Tutorial REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 63 of 229 3.17.4 Filter Facility Use the filter facility to extract only the necessary cycles from the acquired trace information . The filter facility does this by filtering the trace information in software that wa s acquired by hardware. Unlike the “Captu[...]
-
Page 64
R0E530640MCU00 User’ s Manual 3. Tutorial REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 64 of 229 (5) Click the button i n the R/ W column an d choose R f rom the context menu. Figure 3.41 Trace window (Auto Filter) (6) That way, the trace information for only R in the R/W colu mn can be displayed. Figure 3.42 Trace window (Auto Filter) Notes: (1[...]
-
Page 65
R0E530640MCU00 User’ s Manual 3. Tutorial REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 65 of 229 3.18 Stack Trace Facility Using stack information, it is possible to sh ow which functio n is the caller to the function where the current PC ex ists. Set a software brea kpoint in a ny line of t he sort functi on by double -clicking at it s correspo[...]
-
Page 66
R0E530640MCU00 User’ s Manual 3. Tutorial REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 66 of 229 After a break, choose Code −> Stack Trace from the View menu to ope n the Stack Trace window. Figure 3.44 Stack Trace window You will see that the current PC exists w ithin th e sort() function, and that the so rt() function is called from the t[...]
-
Page 67
R0E530640MCU00 Use r’s Manual 4. Preparing to Debug REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 67 of 229 4. Preparing to Debug 4.1 Starting the High- performance Embedded Workshop Follow the procedure described below to st art the High-perform ance Embedded Works hop. (1) Connect the host machin e and the E100 Em ulator and user system. Then t[...]
-
Page 68
R0E530640MCU00 Use r’s Manual 4. Preparing to Debug REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 68 of 229 4.2 Creating a New Workspace (Toolchain Unused) The procedure for creating a new project workspace differs depending on whether you use a toolchain or not. The E100 Em ulator has n o toolchain s included in i t. You c an use a toolc hain in[...]
-
Page 69
R0E530640MCU00 Use r’s Manual 4. Preparing to Debug REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 69 of 229 The other list boxes are used for setting up a toolchain. If no toolchains are installed, the information specific to the CPU family is displayed here. Click the OK button. (3) Select the debugger target. Figure 4.4 Setting the Ta rget Syst[...]
-
Page 70
R0E530640MCU00 Use r’s Manual 4. Preparing to Debug REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 70 of 229 When you have finished setting configu ration name s, emulator-related settings are completed. Click the Finish button, and th e Summary dialog box will be displayed. Clicking the OK button in it starts the High- performance Em bedded Works[...]
-
Page 71
R0E530640MCU00 Use r’s Manual 4. Preparing to Debug REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 71 of 229 Workspace Name: Enter a workspace name here. Project Name: Enter a project name here. If the sam e na me as a workspace name is good, you do not need to enter it. Directory: Enter a directory in which you want a work space to be created. Or[...]
-
Page 72
R0E530640MCU00 Use r’s Manual 4. Preparing to Debug REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 72 of 229 (5) Set a configuration name. Figure 4.9 Setting the Debugger Op tions dialog bo x If you have se lected two or more target platform s, click the Ne xt butto n and then set a configuratio n name for ea ch target platform selected. When you [...]
-
Page 73
R0E530640MCU00 Use r’s Manual 4. Preparing to Debug REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 73 of 229 4.4 Opening an Existing Workspace Follow the procedure described below to open an existing workspace. (1) In the Welcome! dialog box, select the radio button titled “Browse to another project work space” and click th e OK button. Figure[...]
-
Page 74
R0E530640MCU00 Use r’s Manual 4. Preparing to Debug REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 74 of 229 4.5 Connecting the Emulator 4.5.1 Connecting the Emulator There are foll owing m ethods for c onnecting the emulator. (1) Setting up the emulator at startup before connecting Choose Debug Settings fro m the Debug menu to open the Debug Sett[...]
-
Page 75
R0E530640MCU00 Use r’s Manual 4. Preparing to Debug REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 75 of 229 4.6 Disconnecting the Emulator 4.6.1 Disconnectin g the Emulator To disconnect the emulator while it is active, follow one of the procedures descri bed below. (1) Choose Disc onnect from the Debug menu. (2) Click t he Disconnect tool butt o[...]
-
Page 76
R0E530640MCU00 Use r’s Manual 4. Preparing to Debug REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 76 of 229 4.8 Setting Up the Debug Register dow nload modules, set up aut omatic execut ion of comm and line batch files and set download opti ons, etc. 4.8.1 Specifying a Downlo ad Module Choose Debug Settings from the Debug menu to op en the Debug [...]
-
Page 77
R0E530640MCU00 Use r’s Manual 4. Preparing to Debug REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 77 of 229 4.8.2 Setting Up Automatic Execution of Command Line Batch Files Click the Options tab of the dialog box. Figure 4.13 De bug Settings dialog box Here, register a comm and chain that is au t omatically executed with specifi ed timing. Select[...]
-
Page 78
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 78 of 229 5. Debugging Functions The E100 Em ulator supports t he functio ns listed i n the table bel ow. Table 5.1 List of Debug Functions Item No. Item Specification 1 Software break 4,096 points Number of event points Maximum number of effective [...]
-
Page 79
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 79 of 229 5.1 Setting Up the Emulation Environment When the em ulator is connec ted, the De vice setti ng and the C onfiguration propertie s dialog boxes are display ed. Here, select the general opti ons associated with the em ul ator. Note that the[...]
-
Page 80
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 80 of 229 5.1.2 Setting Up the Target MCU (1) Selecting the target MCU On the Device page of the Device setting dialog box, specify the ta rget MCU to be emulated. For details, refer to the hardware manual sup plied with eac h product . Figure 5.1 D[...]
-
Page 81
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 81 of 229 (4) Selecting a memory expansion space You can set t his when the operation m ode you have selected is Mem ory expansio n mode or M icroprocessor m ode. Select one from the following options : Normal Mode (initial value), 4MB Mode (5) Usin[...]
-
Page 82
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 82 of 229 5.1.3 Setting Up the System On the System page of t he Config uration Propert ies dialog box, set up the entire emulator system . This dialog box is displayed follo wing the Device setting dialog box at startup. Although t his dialog box c[...]
-
Page 83
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 83 of 229 (2) Selecting the direction of external trigger cable For External t rigger cabl e, select whet her EXT pins 16–31 are direct ed for inp ut or output . EXT pins 0–15 are fixe d for input . Select this option from the following : - EXT [...]
-
Page 84
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 84 of 229 5.1.4 Creating a Memory Map On the Me mory ma p page of t he Configu ration pr operties dial og box, set a lending memory allocation. You can specify 4 areas. (In a unit of 4KB) Figure 5.3 C onfigurati on prop erties dialo g box (Mem ory m[...]
-
Page 85
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 85 of 229 5.1.5 Setting Up Flash ROM Overwrite On the Internal flash memory overwrite page of the Configur ation properties dialog box , set up the overwriting of flash ROM blocks, bl ock by bl ock. Figure 5.4 C onfigurati on prop erties dialo g box[...]
-
Page 86
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 86 of 229 5.1.6 Setting the Warning of Exceptional Events On the Excepti on Warning page of the Con figuration p roperties dialo g box, set whether or not to display warnin gs of exceptional events in th e Status wind ow and status bar balloon. Figu[...]
-
Page 87
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 87 of 229 5.1.8 Showing Progress in Boot-up Processing You can co nfirm the pro gress of bo ot-up processi ng by chec king the Co nnecting di alog box. The Connecting dialog box co ntinues displaying progress information from when boot-up pro cessin[...]
-
Page 88
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 88 of 229 (4) Showi ng progress with p rogress ba rs The upper progres s bar shows the progress of the entire boot-up proce ssing. The lower progress bar shows the prog ress of each individual processing. The content of the current ly executed proce[...]
-
Page 89
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 89 of 229 5.2 Downloading a Program 5.2.1 Downloading a Program Download the load modu le to be debugged. To downloa d a program , choose Dow nload from the Debu g menu an d select y our desired l oad module f rom the ens uing list , or right-click [...]
-
Page 90
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 90 of 229 (1) Line colum n Shows the line numbers corresponding to lines in the source file. (2) Source A ddress colum n When a progra m is downloaded, this column shows the addr e sses corresponding to lines in th e current source file. This functi[...]
-
Page 91
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 91 of 229 5.2.3 Turning columns in all source files off (1) From the Editor window 1. Right-click in th e Editor window and choose D efine Column Format from the context menu. 2. The Global Editor Column States dialog box will b e displayed. Figure [...]
-
Page 92
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 92 of 229 5.2.5 Showing Assembly Language Code While a source file is open, click th e right mouse button in the Editor wind ow and choo se Vi ew Disassembly from the context menu. The Disassembly window will be displayed. The display start address [...]
-
Page 93
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 93 of 229 (2) S/W Break points - ASM c olumn This column shows the following : Table 5.5 Software breakpoint – ASM column list Software break is set. PC position (3) Disassembly Address colum n Shows disassem bly addresse s. Double-clic king here [...]
-
Page 94
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 94 of 229 5.3 Displaying Memory Contents in Real Time 5.3.1 Displaying Memory Contents in Real Time To monitor memory contents while the user program is running, use the RAM Monitor window. The RAM monitor function perm its the memory content and ac[...]
-
Page 95
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 95 of 229 (3) Initialization-omitted detect function If an area not yet write accessed is accessed for read, this func tion assumes such a case to be “initialization omitted” a nd outputs an error. To display initialization- omitted detection, c[...]
-
Page 96
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 96 of 229 5.4 Showing the Current Status 5.4.1 Showing the Emulator Status To know the current status of the emulator, display the Status window. To open the Status window, choo se CPU -> Status from th e View menu, or click the Vi ew St atus too[...]
-
Page 97
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 97 of 229 5.4.2 Showing the Emulator Status in the Status Bar The status of the emulator can be displayed in the status bar. By right clic king on t he status bar, t he items are sh own. Check the items you want to s how in the status bar. Figure 5.[...]
-
Page 98
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 98 of 229 5.5 Periodic ally Reading Out and Showing the Emulator Status 5.5.1 Periodically Reading Out and Showing the Emulato r Information To know t he changin g emulat or inform ation whether the user program is runni ng or re mains idle, use the[...]
-
Page 99
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 99 of 229 5.5.2 Selecting the Items to Be Displayed Choose Properties f rom the context menu of the Extended Monito r window, and the Extended Mon itor Configuration di alog box will be d isplayed. Figure 5.1 8 Extende d Monito r Config uration di a[...]
-
Page 100
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 100 of 229 5.6 Using Soft ware Breakpoints 5.6.1 Using Software Breakpoints A software break causes the user program to stop running by rewriting the instruction code at a specified address with a BRK instruction to generate a BRK interrupt. In that[...]
-
Page 101
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 101 of 229 (1) From the Editor or the Disassembly window 1. Check to see that the Ed itor or the Disassembly window that is currently ope n include s the positi on at whic h you want to set a software brea kpoint. 2. In the S/W Breakpoints column, d[...]
-
Page 102
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 102 of 229 5.6.3 Enabling/Disabling Software Breakpoint s Follow one of the foll owing m ethods to e nable or disabl e software brea kpoints. - From the Editor or the Disassembly window - From t he Breakpoint s dialo g box - From the command line (1[...]
-
Page 103
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 103 of 229 (2) From the Breakpoints dialog box 1. Select Source Breakpoints from the Edit menu to bring up the Breakpoints dialog box . In this dialog box, you can alternately enable or disable a currently set brea kpoint, as wel l as remove it. Fig[...]
-
Page 104
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 104 of 229 5.7 Using Events 5.7.1 Using Events An event refers to a combination of phe nomena that occur during progra m execution. The E100 emulator perm its you to use the event y ou have se t as a condition of the break, trace or performance func[...]
-
Page 105
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 105 of 229 (1) Creating a new event [When creatin g an event from any setup dialog box] 1. Click the Add button or choo se a line where you want to input an d double-click. Figure 5.24 Ha rdware Break dial og box 2. The Event dialo g box shown be lo[...]
-
Page 106
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 106 of 229 [When addi ng an e vent from the Registered Events dial og box] 1. Click the Add butt on in the Registered Eve nts dialog box. Figure 5.2 7 Registered E vents dialo g box 2. The Ev ent dialog box shown below will be d isplayed. In th is d[...]
-
Page 107
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 107 of 229 3. An event will be added to the list of registered events. Figure 5.2 9 Registered E vents dialo g box (2) Adding an event from the event colu mn of the Editor window [When addi ng a ha rdware bre akpoint] 1. Select the HW B reak Point f[...]
-
Page 108
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 108 of 229 2. If there is room for event coun ts, the event you hav e added from the Editor window is added to the oth er events as an OR condition. If there is no room, an error message is displayed. CAUTION If you are doing some editing work in th[...]
-
Page 109
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 109 of 229 (3) Adding ev ents by dragging and dropping [When dra gging a nd droppin g the varia ble and funct ion name s in the Edit or window] 1. Dragging and dro pping a variable nam e into the Event col umn, you can s e t an event bas ed on an ac[...]
-
Page 110
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 110 of 229 5.7.3 Removing Events Follow one of the following methods to remove events. [When del eting an e vent from any setting d ialog box] 1. To remove one point, select a line you want to remove in the event setting area and then click the Dele[...]
-
Page 111
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 111 of 229 [When del eting an e vent from the Registered E vents dial og box] To remove one point, select a l ine you wan t to remove i n the Regist ered Events dialog box a nd then cli ck the Del ete button (You can use t he keys Ctrl + Del instead[...]
-
Page 112
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 112 of 229 5.7.4 Registering Events “Registering an even t” refers to placing an event into th e list of registered events. A registered event can be re used at a lat er time. Foll ow one of the following m ethods to register a n event. Up t o 2[...]
-
Page 113
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 113 of 229 [When regi stering a n event by dragging a nd dro pping] The event you have created c an be registere d in the Regi stered Events by dragging a nd droppi ng it into the list. Figure 5.38 Hardware Br eak dialog box and Register ed Events d[...]
-
Page 114
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 114 of 229 5.7.5 Entering Events Each Time or Reusing Events There are following two methods to set ev ents in any function conc erned. One method is to create events in the respect ive setting dialog boxes each tim e. The other method is to choose [...]
-
Page 115
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 115 of 229 5.7.6 Applying Events To enable t he setting of an event after you have created it, click the Apply button. The content of what you have set has no effect until you click the Apply button . [*] after the title on the title bar of the dial[...]
-
Page 116
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 116 of 229 5.8 Setting Hardware Break Conditions 5.8.1 Setting Hardware Break Conditions A hardware break causes the us er program to stop ru nning a speci fied number of cycles after a set event or phenomeno n is detected (i.e., a hardware brea kpo[...]
-
Page 117
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 117 of 229 (2) Setting OR conditions You can choose to enab le or disable the OR condition. By default, the OR condition is enabled. To disable the OR condition, deselect the check box to the left of “OR Condition.” If you add an even t by doubl[...]
-
Page 118
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 118 of 229 (3) Setting other conditions You can select one of five choices a vailable: AND ( Accumulation), AND (Simul taneous), Subro utine, Sequenti al and State Transition. To set any condition , select the check box to the le ft of “Other Cond[...]
-
Page 119
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 119 of 229 (4) Detection of excep tion events Specify whether you want detection of following exception ev ents to be used as a breakpoint. - Violation of access pro tection - Read from uninitialized memory - Stack access violation - Performance ove[...]
-
Page 120
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 120 of 229 5.9 Looking at Trace Information 5.9.1 Looking at Trace Information A trace is the function to ac quire bus in formation every cycle and store it in trace memory during user program execution. Using a trace you can track the flow of appli[...]
-
Page 121
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 121 of 229 The following items of information are di splayed. (Thi s applies for bus di splay.) Table 5.13 Di splay item s Column Description Cycle Cycle num bers stored in tr ace memo ry. The last c ycle acquired is num bered 0, and th e older cycl[...]
-
Page 122
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev.1.00 Apr. 01, 2008 Page 122 of 229 TID Task ID (when RTOS is used). Example display: A t ask ID (task entr y label) is displayed like 1 (_Task1). T o s h o w T a s k I D c o l u m n , y o u n e e d t o s e l e c t the Task ID on the Option page of the Trace conditions dialog[...]
-
Page 123
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 123 of 229 (3) Setting Capture/Do not Capture If the selected trace mode is Fill until st op, Fill until full or Fill aro und TP, you can specify Capt ure/Do not Ca pture condit ions in the Record co ndition group bo x. Figure 5.47 Record cond ition[...]
-
Page 124
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 124 of 229 5.9.4 Setting Trace Modes (1) Setting trace modes Following five trace modes a re available. Table 5.14 Tra ce modes Stop mode Description 1 Fill until stop Trace acquisition continue s until the program stops running. 2 Fill until full T[...]
-
Page 125
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 125 of 229 1. Fill until stop The trace memory can hol d up to 4M bus cy cl es. When the buffer is fille d, the oldest data of th e acquired trace information is overwritten with new data. Th at way, the emulator continue s acquiring trace informati[...]
-
Page 126
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 126 of 229 5. Repeat fill until full Each time a trace point is encountered, a total of 512 c ycles before and after that point are ac quired, and acquisition continues that way. When the trace m emory overflows, acqui sition is halted. The position[...]
-
Page 127
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 127 of 229 (2) OR condition You can choose to enab le or disable the OR condition. By default, the OR condition is enabled. If you reenable the OR condition when it is disab led, the previ ou sly set event is restored with its OR condition check box[...]
-
Page 128
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 128 of 229 (3) Othe r condit ions You can select one of five choices a vailable: AND ( Accumulation), AND (Simul taneous), Subro utine, Sequenti al and State Transition. To set any condition, select th e ch eck box to the left of “Oth er Condition[...]
-
Page 129
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 129 of 229 (4) Detection of excep tion events Specify whether you want detection of following exception ev ents to be us ed as a trace point. - Violation of access pro tection - Read from uninitialized memory - Stack access violation - Performance o[...]
-
Page 130
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 130 of 229 5.9.6 Setting Capture/Do not Capture Conditions If the selected trace mode is Fill until stop, Fill until full or F ill around TP, you can specify Capture/Do not Capture condit ions. You can choose to extract only the necessary portions o[...]
-
Page 131
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 131 of 229 CAUTION When you specify extraction or deletion conditions, you cannot se lect DIS (disassemble display) and SRC (source d isplay) from Display Modes in t he Trace window. When you use a data access e vent for extraction or deletion, be s[...]
-
Page 132
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 132 of 229 5.9.7 Selecting the Content of Trace Acquisiti on Select the content of trace inform ation you want to be cap tured into trace mem ory. Use the Opti ons page of t he Trace conditions dialog box to make this selection. Figure 5.56 Trace co[...]
-
Page 133
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 133 of 229 5.9.8 Showing Trace Results To check trace results, look at the Trace window. Trace results can be shown in one of th e following displ ay modes. These display modes can be switched using Displa y Modes on the context m enu of the Trace w[...]
-
Page 134
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 134 of 229 (3) Source Dis play Mode From the cont ext menu, cho ose Display Modes -> SRC. This di splay m ode allows you to i nspect the sou rce program ’s execution path. The execution path can be verifi ed by stepping through t he source with[...]
-
Page 135
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 135 of 229 5.9.9 Filtering Trace Information Use the filter function to extract only the necessary records from the acquired trace inform ation. The filter function filters the trace information in software th at was acquired by hardware. Unlike the[...]
-
Page 136
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 136 of 229 If there are multiple items you can sp ecify in the Option dialog box, these items can be used as an OR condition with which to filter. Figure 5.62 Optio n dialog box[...]
-
Page 137
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 137 of 229 5.9.10 Searching for Trace Records You can search the acquire d trace information for a s pecific trace record. To search for trace records, use the Find dialog box. To open it, choose Find -> Find from the context menu of the Trace wi[...]
-
Page 138
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 138 of 229 (1) Search history The conditions once searched are left as a hi story in the hist ory column w hile the High -perform ance Embedded Workshop remains active. The next time you perform a search, choose the line you wan t to se arch from th[...]
-
Page 139
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 139 of 229 5.9.12 Loading Trace Information from Files To load trace information from a file, choose File -> Load from the co ntext me nu or clic k the Load button in t he toolbar . Specify a trace inform ation file saved i n binary format. The c[...]
-
Page 140
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 140 of 229 5.9.16 Showing the History of Function Execut ion To show the history of function executio n from the acquired trace i nformation, choos e Function Exec ution History -> Function Execution Hist ory from the context menu or click the Fu[...]
-
Page 141
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 141 of 229 5.9.17 Showing the History of Task Execution The history of task execution can only be d isplayed when you are d ebugging a realti me OS progr am. Furthermore, to show the history of task ex ecution, you need to sel ect Task ID on the Opt[...]
-
Page 142
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 142 of 229 5.10 Measuring Performance 5.10.1 Measuring Performance The perform ance function m easures a ma ximu m, minimum, average and to tal execution time and a pass count in each of up to eight specified sections of t he user pr ogram and then [...]
-
Page 143
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 143 of 229 The contents displayed in this windo w are listed below. Table 5.23 C olumns and c ontents Column Description No Numbers assigned to 1–8 measurement sections set in the Performance Analysis Condition s dialog box. Click Setti ngs on the[...]
-
Page 144
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 144 of 229 (1) Setting measurement conditions A measurement condition can be selected from the following four modes. Select one measur ement condition for one section. Use events to set a section. Event counts ar e fixed t o 1. Even w hen an event c[...]
-
Page 145
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 145 of 229 Table 5.25 M easurement con dition modes (Contin ued) [Interrupt- disabled ra nge between t wo events] Figure 5.7 0 Interrupt -disable d range bet ween two eve nts Measurement is taken of an interrup t disabled section from when a start e[...]
-
Page 146
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 146 of 229 5.10.5 Clearing Performa nce Measurement Condition s Select the measurement condition you wa nt to clear in the Performance Analysis wind ow and then choose Set from th e context menu to display the Perform ance Analysis Conditions dialog[...]
-
Page 147
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 147 of 229 5.11 Measuring Code Coverage 5.11.1 Measuring Code Coverage Code coverage is the function to indicate the ‘digestion’ degree of test, i.e., “to what degree tests have been carried out on software code (pass).” Instruction executio[...]
-
Page 148
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 148 of 229 Figure 5.7 2 Code Cove rage wind ow (1) Measurem ent met hod The Code Coverage window consists of two sheets. Table 5.28 S heets of t he Code Co verage win dow Sheet name Description Address Range sheet Measurement is performed on any add[...]
-
Page 149
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 149 of 229 Figure 5.7 3 Allocation o f Code Co verage Mem ory dialog b ox When using the C0 level coverage an d C1 level cove rage, you ca n specify any of 1– 8 blocks (m aximum 2 Mbytes) each beginning w ith the 256-Kb yte boundary and any o f 1?[...]
-
Page 150
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 150 of 229 (2) Changing m emory allocation If coverage memory all ocation is cha nged, the coverage data ac quired from the addre sses before being change d is retrie ved from covera ge memory into a covera ge-only buffer. Figure 5.7 5 Schemati c of[...]
-
Page 151
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 151 of 229 5.11.4 Measuring an Address Range The Address R ange sheet sho ws the code c overage inf ormation (C 0 cove rage and C 1 coverage) c ollected by the emulat or from a user-specified a ddress range. Multiple address ranges can be registered[...]
-
Page 152
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 152 of 229 The lower area shows detail information of the address range selected in the upper area . (Assem bler level) Table 5.30 C ontents displ ayed in t he upper area of the Cod e Coverage window [Executed] 1: Instructio ns executed 0: Instructi[...]
-
Page 153
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 153 of 229 2. In the A dd Address R ange dial og box tha t is displa yed, enter a n addres s range. Figure 5.78 Add Address Range d ialog box 3. The address range you have added will be displayed in the upper area of the Code Coverage window. Figure[...]
-
Page 154
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 154 of 229 5.11.6 Changing Addre ss Ranges Follow the p rocedure desc ribed below t o change address ranges. (1) From the Address Range sh eet of the Code Coverage window 1. Selec t an addre ss range you want to ch ange in the Add r ess Range sheet [...]
-
Page 155
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 155 of 229 3. The address range you have chang ed will be displaye d in the upper area of the Code Coverage window. Figure 5.8 2 Code Cove rage wind ow 5.11.7 Removing Address Ra nges Follow the p rocedure desc ribed belo w to rem ove address range [...]
-
Page 156
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 156 of 229 2. A dialog box asking for your con firmation will be d isplayed. Choose to save or n ot save coverage data. To save, s pecify a file name and then click the OK button. If you do not save, simply click the OK button. Figure 5.8 4 Delete A[...]
-
Page 157
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 157 of 229 5.11.8 Measuring Source File s The Source sheet shows the code covera ge inform ation (C0 covera ge and C1 coverage) collected by the em ulator from a user- specified source file. Multiple source files can be registered. A source file exc[...]
-
Page 158
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 158 of 229 The lower area shows detail information of the address range selected in the upper area . (Assem bler level) Table 5.32 C ontents displ ayed in t he lower area of the Code Coverage wi ndow [Executed] 1: Instructio ns executed 0: Instructi[...]
-
Page 159
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 159 of 229 3. The source file you have added and th e function names in cl uded in it will be displayed in the upper area of the Code Coverage wi ndow. Figure 5.8 9 Code Cove rage wind ow 5.11.10 Removing So urce Files Delete source files by the fol[...]
-
Page 160
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 160 of 229 2. A dialog box prompting for your confirmatio n will be displayed. Choose to save or not sav e coverage data. To save, specify a file name and then click the OK button. If you do no t save, simply click the OK button. Figure 5.91 De lete[...]
-
Page 161
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 161 of 229 5.11.11 Showing Percenta ges and Graphs When the program has stopped, r ight-click in the upper area of the Cod e Coverage window and cho ose Percentage from the context menu. The emulator will start calculating the C0: instru ction co ve[...]
-
Page 162
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 162 of 229 5.11.12 Using the Sort Function Clicking a header colum n in the uppe r area of the Code Coverage windo w, you can so rt coverage dat a. (1) Clicking the File column The data can be sorted by file nam e. Lines of one and the sam e file ar[...]
-
Page 163
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 163 of 229 (3) Clickin g the C0 C overage and the File c olumns in t hat order The data is sorted in order of decreas ing cov erage separately for eac h file. Example: File Function C0 Coverage ---------- -------- ---------- -------- -- file1.cpp fu[...]
-
Page 164
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 164 of 229 5.11.14 Clearin g Code Coverage Information (1) Clearing a specified range of code coverage inform ation Choose Clear Coverage Range from the context menu, and the Cl ear Address Range dialog box shown below will be disp layed. Figure 5.9[...]
-
Page 165
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 165 of 229 5.11.17 Saving Code Coverage Information to Files Save the code coverage in formati on of the currently selected sheet to a file . Choose Sa ve Data from the co ntext m enu of the Code Coverage window, a nd the Save Coverag e Data dialog [...]
-
Page 166
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 166 of 229 Click the Add button, and the Ad d Coverage Files dialog box shown below will be disp layed. Figure 5.9 8 Add Cove rage Files di alog box Use this dialog box to enter a covera ge in formation file you want to load. You ca n sp ecify a loa[...]
-
Page 167
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 167 of 229 (2) When selecting Merge Figure 5.100 Schemati c of load m odes when selecti ng Merge (3) Example application of m erge mode Figure 5.1 01 Schem atic of merge mode appl ications [Procedure] (1) Open the L oad Coverage Data dialo g box. To[...]
-
Page 168
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 168 of 229 5.11.20 Showing Cod e Coverage Results in the Editor Wind ow When the Editor w indow is displayed in source mode, covera ge results are disp layed in its code coverage co lumn. The positions correspond ing to the source lines that have h [...]
-
Page 169
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 169 of 229 5.12 Measuring Data Coverage 5.12.1 Measuring Data Coverage The E100 emulator has its c ode coverage, data coverage and realtime profile functions usable exclusive ly to each other. To use the da ta coverage function, choose Data Covera g[...]
-
Page 170
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 170 of 229 (1) Measurem ent met hod The Data Coverage window consists of three sheets. Table 5.34 S heets of t he Data Cove rage wind ow Sheet name Description Address Range sheet Measurement is perform ed on any address range. Section sheet Measure[...]
-
Page 171
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 171 of 229 Figure 5.1 05 Schem atic of dat a coverage m emory all ocation (2) Changing m emory allocation If coverage memory all ocation is cha nged, the coverage data ac quired from the addre sses before being change d is retrie ved from covera ge [...]
-
Page 172
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 172 of 229 5.12.4 Measuring an Address Range The E100 emulator s hows the access information it co llected from a user-specified address range. Figure 5.107 Da ta Coverage win dow (address s pecification) The Data Coverage window is vertically divid[...]
-
Page 173
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 173 of 229 5.12.5 Adding Address Ranges Follow the procedur e described below to add add ress ranges. (1) From the Address Range sheet of the Data Coverage wind ow 1. Right-cli ck in the up per area of the A ddress Range s heet and choose Add Range [...]
-
Page 174
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 174 of 229 3. The address range you have added will be displayed in the upper area of the Data Coverage window. Figure 5.1 10 Data C overage wi ndow 5.12.6 Changing Addre ss Ranges Follow the p rocedure desc ribed below t o change address ranges. (1[...]
-
Page 175
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 175 of 229 2. In the Edit Address Ra nge dialog bo x that is di splayed, chan ge the address ran ge. Figure 5.112 Edit Ad dress Range dialog box 3. The address range you have chang ed will be displaye d in the upper area of the Data Coverage window.[...]
-
Page 176
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 176 of 229 5.12.7 Removing Address Ra nges Follow the p rocedure desc ribed belo w to rem ove address range s. (1) From the Address Range sheet of the Data Coverage wind ow 1. Select an a ddress range you want t o remove in t he Addre ss Range sheet[...]
-
Page 177
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 177 of 229 3. The address range you have selected will be removed. Figure 5.1 16 Data C overage wi ndow[...]
-
Page 178
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 178 of 229 5.12.8 Measuring Sections The E100 emulator s hows the access information it collected from a user-specified section. Figure 5.117 Da ta Coverage win dow (section nam e specification) The Data Coverage window is vertically divided into ha[...]
-
Page 179
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 179 of 229 5.12.9 Adding Sections Follow the procedure described below to add sections. (1) From the Section sheet of the Data Co verage window 1. Right-click in the upp er area of the Section sh eet and choose Add Range from the context m enu. Figu[...]
-
Page 180
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 180 of 229 3. The address range (section name) you have added will be displayed in the upper area of the Data Coverage window. Figure 5.1 20 Data C overage wi ndow 5.12.10 Removing Sections Follow the p rocedure desc ribed below t o remove sect ions[...]
-
Page 181
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 181 of 229 2. A dialog box pro mpting for your confirmation will b e displayed. Choose to save or not save coverage data. To save, click the Yes button and specify a file name. If you do not save, click the No button. Figure 5.122 Con firmati on of [...]
-
Page 182
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 182 of 229 5.12.11 Measuri ng Task Stack The Task Stack sheet shows the access information collected from a task stack. Task stacks are autom atically registered. You cannot a dd, rem ove or change a ny task. If tasks are c hanged pursuant to altera[...]
-
Page 183
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 183 of 229 If located outside the coverag e memory a llocated area, address lines are displayed in gray. Although the existing coverage information of those addr esses is retained, updating of co verage informatio n by program execution does no t ap[...]
-
Page 184
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 184 of 229 5.12.15 Saving Data Cove rage Information to Files Save the data c overage in formation of the currently selected sheet to a file. Choose Save Data from the context menu of the Data Coverage window, and the Save Data dialog box shown belo[...]
-
Page 185
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 185 of 229 Click the Add button, and the Ad d coverage data file dialog box shown below will b e displayed. Figure 5.1 28 Add cove rage data fi le dialog box Use this dialog box to en ter a coverage information file you want to load. You can specify[...]
-
Page 186
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 186 of 229 5.13 Viewing Realtime Profile Information 5.13.1 Viewing Realtime Profile Information The E100 emulator has its c ode coverage, data coverage and realtime profile functions usable exclusive ly to each other. To use the realtime profile fu[...]
-
Page 187
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 187 of 229 (e) Relationshi p between Go executi on start address and break address within a m easurem ent range and the m easurable range Figure 5.129 M easurable range Measurable range when the p rogram brea ks at the location of a black dot [ ● [...]
-
Page 188
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 188 of 229 (2) Task profile Execution perform ance is meas ured one task at a tim e. The Realtime profile window shows task IDs, counts and the cumulative execution ti me, execution rate and avera ge execution time of tasks. 5.13.2 Setting Realtime [...]
-
Page 189
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 189 of 229 5.13.4 Setting Function Profile Measurement Range s Choose Set Ra nges from the context m enu that is di sp layed when you right-click in the present window. The Realtime Profile Setting dialog box will be disp layed. In this dialog box, [...]
-
Page 190
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 190 of 229 5.13.5 Saving Function Profile Measurement Ranges Save the current task mode and fun ction profile measurement range (memory allo cation state). Click the Save button of the Realtime Profile Setting dialog box, and the Save As d ialog box[...]
-
Page 191
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 191 of 229 5.13.7 Measuring Task Profiles Measure execution perform ance one task at a tim e. Figure 5.133 Real time Profile dialo g box (task pr ofile): The following shows detail information in each column. Table 5.42 Details on each colum n Block[...]
-
Page 192
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 192 of 229 5.13.8 Setting Task Profile Measurement Ranges Choose Set Range from the context menu that is d isplayed when you right-click in the present window. The Realtime Profile Setting dialog box will be disp layed. In this dialog box, set a pro[...]
-
Page 193
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 193 of 229 5.13.9 Saving Task Profile Measurement Tasks Save the curre nt task mode a nd measurem ent tasks (t ask IDs a nd enabled/di sabled stat es). Click the Save button of the Realtime Profile Setting dialog box, and the Save As d ialog box wil[...]
-
Page 194
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 194 of 229 5.13.11 Clearing Realtime Profile Measurement Results Choose Clear from the context menu of the Realtime Prof ile window, and all measurement resu lts will be cleared. Unless you choose to Clear, measurem ent results are accum ulated in m[...]
-
Page 195
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 195 of 229 5.13.14 Maximum Measu rement Time of the Realtime Profile (1) Maximum measurement time The timer used for perform ance measurement is com prised of a 40-bit counter. The maximum measur ement time varies with the unit of measurement select[...]
-
Page 196
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 196 of 229 5.14 Detecting Exception Events 5.14.1 Detecting Exception Events The E100 em ulator perm its you to det ect various e xception events t hat have occu rred durin g user progr am executio n. Exception eve nts include a n abnorm al behavior[...]
-
Page 197
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 197 of 229 (3) Methods for setting protection There are foll owing two m ethods of specificat ion: - Automa tic setting by section in formati on in a downloa d modul e - Specifying the access attribute of any area i ndividually (4) Detection me thod[...]
-
Page 198
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 198 of 229 5.14.3 Setting an Access Protected Area Follow the procedure described belo w to set an access protected area. (1) From the Hardware Brea k dialog box 1. Select the Exception check box on t he Hardwa re Break sheet and then click the Deta[...]
-
Page 199
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 199 of 229 3. The Violation of access pr otection dialog box shown bel ow will be displayed. To have the access attributes autom atically set according to the section information in a download module when a program is downloaded, select the check bo[...]
-
Page 200
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 200 of 229 6. The protected area y ou have added will be displayed in t he Address Areas list of the Viola tion of access protection dialog box. Figure 5.1 42 Violation of access pr otection dial og box[...]
-
Page 201
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 201 of 229 (2) From the Trace co nditions dialog box 1. In the Trace Mode drop-dow n list of the Trace sheet, select Fill around TP. Select the Exce ption c heck box and then click the Detail button. Figure 5.143 Trace co nditions dialog box 2. The [...]
-
Page 202
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 202 of 229 The Violation of access protection dialog box will be displayed. The rest is the same as you opened it from the Hardware Break dialog box. 5.14.4 Detecting Initialization-Omitted This is the function to determine the cas e where an access[...]
-
Page 203
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 203 of 229 5.14.5 Detecting a Performance Overflow This is the function to detect that the time or count being measured by the perform ance function has exceede d the maxim um measurement time or ma ximum measur ement count and out put an error. Tim[...]
-
Page 204
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 204 of 229 5.14.7 Detecting a Trace Memory Overflow This is a function to detect tha t trace memory capac ity (4MB cycle) overflowe d and out put an error. (1) Actions taken when a trace memory overflow is detected The following actions can be set: [...]
-
Page 205
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 205 of 229 5.14.9 Setting a Task Stack Area Follow the procedur e described be low to set a task stack area. (1) From the Hardware Brea k dialog box 1. Select the Exception check box on t he Hardware Break sheet and then click the Detail button. Fig[...]
-
Page 206
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 206 of 229 3. The Violation of task stack access dialog box shown be low will be displayed. To have th e task stack ranges automatically set when a program is downloaded, sel ect the check box labeled “Automatically set address areas at downloadin[...]
-
Page 207
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 207 of 229 (2) From the Trace co nditions dialog box 1. In the Trace Mode drop-dow n list of the Trace sheet, select Fill around TP. Select the Exce ption c heck box and then click the Detail button. Figure 5.150 Trace co nditions dialog box[...]
-
Page 208
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 208 of 229 2. The Exception page shown bel ow will ap pear. Click the Detail button to the right of the Task stack access violation check box. Figure 5.151 Trace co nditions dialog box 3. The Violation of task stack access dialog box will be display[...]
-
Page 209
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 209 of 229 5.15 Using the Start/Stop Function The emulator executes the sp ecified routine of the user program immediately b efore starting and immediately after halting program execu tion. This f unction is use d to control the user syst em in sync[...]
-
Page 210
R0E530640MCU00 Use r’s Manual 5. Debugging Functions REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 210 of 229 Table 5.44 Lim itations to t he registers a nd flags Register/flag Name Limitations ISP register When a specified r outine has ended, t he value of this regi ster must be rest ored to one th at it had when the specified routine started. U[...]
-
Page 211
R0E530640MCU00 User’ s Manual 6. Troubleshooting (Action on Error) REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 211 of 229 6. Troubleshooting (Action on Error) 6.1 Flowchart to Remedy the Troubles Figure 6.1 shows the flowchart to remedy the troubles from when power to the emulator is activated until the emulator debugger sta rts up. Check t his[...]
-
Page 212
R0E530640MCU00 User’ s Manual 6. Troubleshooting (Action on Error) REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 212 of 229 6.2 Self-check Error When an error oc curs in the self- check , check th e following. (1) Recheck the connection of the E100 emulator main un it and MCU unit. (2) Redownload the pro per firmware. (3) Check the self- check er[...]
-
Page 213
R0E530640MCU00 User’ s Manual 6. Troubleshooting (Action on Error) REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 213 of 229 6.3 Error at Debugger Startup (1) When the LEDs of the E100 Do Not Display Norm ally Table 6.1 Chec kpoints o f errors whe n the LEDs d o not displ ay norm ally Error Connection to the user system Checkpoint SAFE LED remains[...]
-
Page 214
R0E530640MCU00 User’ s Manual 6. Troubleshooting (Action on Error) REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 214 of 229 (2) Configuration Properties Dial og Box Does Not Appear at Emulator Debugger Startup Table 6.2 Chec kpoints o f errors at debugger st artup 1 Error Checkpoint Communi cation error occ urred. Data was not sent to the target.[...]
-
Page 215
R0E530640MCU00 User’ s Manual 6. Troubleshooting (Action on Error) REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 215 of 229 6.4 How to Request for Support After checking the items in " 6. Trou bleshooting (Action on Erro r)", fill in the text file which is downloaded from the following URL, then send the informatio n to your local distr[...]
-
Page 216
R0E530640MCU00 User’ s Manual 7. Hardware Specifications REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 216 of 229 7. Hardware Specifications This chapter describes speci fications of this product. 7.1 Target MCU Specifications Table 7.1 lists the specification s of target MCUs which can be debugged with this product. Table 7.1 Specification s of [...]
-
Page 217
R0E530640MCU00 User’ s Manual 7. Hardware Specifications REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 217 of 229 7.2 Differences between the Actual MCU and Emulator Differences be tween the actua l MCU and e mulator are s hown belo w. When debu gging the M CU using thi s product, be careful about the following precautions. IMPORTANT Note on Diff[...]
-
Page 218
R0E530640MCU00 User’ s Manual 7. Hardware Specifications REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 218 of 229 7.3 Connection Diagram 7.3.1 Connection Diagram for the R0E530640MCU0 0 Figure 7.1 s hows a connect ion diagram of the R0E 530640MC U00. This co nnection di agram ma inly shows the ci rcuit to be connected to the user system. The circ[...]
-
Page 219
R0E530640MCU00 User’ s Manual 7. Hardware Specifications REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 219 of 229 7.4 External Dimensions 7.4.1 External Dimensions of the E100 Emulator Figure 7.2 s hows exter nal dimensi ons of th e E100 emul ator. W: 7 3 mm D: 184m m H: 132m m Figure 7.2 Ext ernal dime nsions of the E100 em ulator[...]
-
Page 220
R0E530640MCU00 User’ s Manual 7. Hardware Specifications REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 220 of 229 7.4.2 External Dimensions of the Converter Board R0 E0100TNPFJ00 Figure 7.3 s hows exter nal dimensi ons and a sam ple foot pat tern of the co nverter b oard R0E01 00TNPFJ00 for a 100-pi n 0.65mm pitch QFP. R0E0100TNP FJ00 REV. B CN1 [...]
-
Page 221
R0E530640MCU00 User’ s Manual 7. Hardware Specifications REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 221 of 229 7.4.3 External Dimensions of the Converter Board R0 E0100TNPFK00 Figure 7.4 shows extern al dimensions an d a sample foot pattern of the conver ter board R0E0100TNPFK00 for a 100-pin 0.5mm pitch LQFP. R0E 0100TN PFK00 REV.A CN1 1 50 5[...]
-
Page 222
R0E530640MCU00 User’ s Manual 7. Hardware Specifications REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 222 of 229 7.5 Notes on Using This Product Notes on using this product are listed bel ow. When de bugging the MCU using the e mulator, be careful abo ut the foll owing precautions. IMPORTANT Note on the Version of the Emulator Debugge r: z Be su[...]
-
Page 223
R0E530640MCU00 User’ s Manual 7. Hardware Specifications REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 223 of 229 IMPORTANT Note on Clock Supply to the MCU: z A clock suppl ied to the evalu ation MCU i s selected by the Emulat or tab in the Ini t dialog box of the em ulator debugger. (1) When "Emulator" is selected: A clock generated by[...]
-
Page 224
R0E530640MCU00 User’ s Manual 7. Hardware Specifications REJ10J1733-0100 Rev.1.00 Apr. 01, 2008 Page 224 of 229 IMPORTANT Notes on Power Supply to the User System: z Pins Vcc1 and Vcc2 are connected to the user system to observe the voltag e. Therefore, the power is no t supplied to t he user system from the em ulator. Desig n your system so that[...]
-
Page 225
R0E530640MCU00 User’ s Manual 7. Hardware Specifications REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 225 of 229 IMPORTANT Memory Space Expansion Functio n (4Mbyte mode): z When using the m emory space expansion function (4Mb yte mode), a m emory that the evaluation MCU accesses is different depending on each setting. Refer to the tables below. [...]
-
Page 226
R0E530640MCU00 User’ s Manual 8. Maintenance and Guarantee REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 226 of 229 8. Maintenance and Guarantee This chapter describes h ow to perform maintenance, warrant y information , repair provi sions and the procedures fo r requesting a repair. 8.1 User Registration When you p urchase our pr oduct, be s ure[...]
-
Page 227
R0E530640MCU00 User’ s Manual 8. Maintenance and Guarantee REJ10J1733-0100 Rev. 1.00 Apr. 01, 200 8 Page 227 of 229 (3) Expiration of the repair period When a period of one year elapses a fter the m odel was drop ped from pr oduction, repairing pro ducts of the m odel may become im possible. (4) Transportation fees at sending you r product for re[...]
-
Page 228
E100 Emulator Main Unit for M16C/64 Gro up User’s Ma nual R0E530640MCU00 Publication Date: Apr. 01, 2008 Rev.1.00 Published by: Sales Strategic Planni ng Div. Renesas Technology Corp . Edited by: Microcomputer Tool Development Dep artment Renesas Solutions Co rp. © 2008. Renesas Technology Corp. and Renesas Solutions Corp., All rights reserved. [...]
-
Page 229
R0E530640MCU00 User’s Manual[...]