Renesas E100 User Manual Download Page 3

 

 

General Precautions in the Handling of Microprocessing Unit and Microcontroller 
Unit Products 

The following usage notes are applicable to all Microprocessing unit and Microcontroller unit products from Renesas. For detailed usage notes on the products 
covered by this document, refer to the relevant sections of the document as well as any technical updates that have been issued for the products. 

1.  Precaution against Electrostatic Discharge (ESD) 

A strong electrical field, when exposed to a CMOS device, can cause destruction of the gate oxide and ultimately degrade the device operation. Steps 

must be taken to stop the generation of static electricity as much as possible, and quickly dissipate it when it occurs. Environmental control must be 

adequate. When it is dry, a humidifier should be used. This is recommended to avoid using insulators that can easily build up static electricity. 

Semiconductor devices must be stored and transported in an anti-static container, static shielding bag or conductive material. All test and 

measurement tools including work benches and floors must be grounded. The operator must also be grounded using a wrist strap. Semiconductor 

devices must not be touched with bare hands. Similar precautions must be taken for printed circuit boards with mounted semiconductor devices. 

2.  Processing at power-on 

The state of the product is undefined at the time when power is supplied. The states of internal circuits in the LSI are indeterminate and the states of 

register settings and pins are undefined at the time when power is supplied. In a finished product where the reset signal is applied to the external reset 

pin, the states of pins are not guaranteed from the time when power is supplied until the reset process is completed. In a similar way, the states of pins 

in a product that is reset by an on-chip power-on reset function are not guaranteed from the time when power is supplied until the power reaches the 

level at which resetting is specified. 

3.  Input of signal during power-off state 

Do not input signals or an I/O pull-up power supply while the device is powered off. The current injection that results from input of such a signal or I/O 

pull-up power supply may cause malfunction and the abnormal current that passes in the device at this time may cause degradation of internal 

elements. Follow the guideline for input signal during power-off state as described in your product documentation. 

4.  Handling of unused pins 

Handle unused pins in accordance with the directions given under handling of unused pins in the manual. The input pins of CMOS products are 

generally in the high-impedance state. In operation with an unused pin in the open-circuit state, extra electromagnetic noise is induced in the vicinity of 

the LSI, an associated shoot-through current flows internally, and malfunctions occur due to the false recognition of the pin state as an input signal 

become possible. 

5.  Clock signals 

After applying a reset, only release the reset line after the operating clock signal becomes stable. When switching the clock signal during program 

execution, wait until the target clock signal is stabilized. When the clock signal is generated with an external resonator or from an external oscillator 

during a reset, ensure that the reset line is only released after full stabilization of the clock signal. Additionally, when switching to a clock signal 

produced with an external resonator or by an external oscillator while program execution is in progress, wait until the target clock signal is stable. 

6.  Voltage application waveform at input pin 

Waveform distortion due to input noise or a reflected wave may cause malfunction. If the input of the CMOS device stays in the area between V

IL

 

(Max.) and V

IH

 (Min.) due to noise, for example, the device may malfunction. Take care to prevent chattering noise from entering the device when the 

input level is fixed, and also in the transition period when the input level passes through the area between V

IL

 (Max.) and V

IH

 (Min.). 

7.  Prohibition of access to reserved addresses 

Access to reserved addresses is prohibited. The reserved addresses are provided for possible future expansion of functions. Do not access these 

addresses as the correct operation of the LSI is not guaranteed. 

8.  Differences between products 

Before changing from one product to another, for example to a product with a different part number, confirm that the change will not lead to problems. 

The characteristics of a microprocessing unit or microcontroller unit products in the same group but having a different part number might differ in terms 

of internal memory capacity, layout pattern, and other factors, which can affect the ranges of electrical characteristics, such as characteristic values, 

operating margins, immunity to noise, and amount of radiated noise. When changing to a product with a different part number, implement a system-

evaluation test for the given product. 

 

Summary of Contents for E100

Page 1: ...d product specifications represents information on the product at the time of publication and is subject to change by Renesas Electronics Corporation without notice Please review the latest information published by Renesas Electronics Corporation through various means including the Renesas Electronics Corporation website http www renesas com www renesas com ...

Page 2: ...D ALL WARRANTIES EXPRESS OR IMPLIED WITH RESPECT TO THIS DOCUMENT AND ANY RELATED OR ACCOMPANYING SOFTWARE OR HARDWARE INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE 8 When using Renesas Electronics products refer to the latest product information data sheets user s manuals application notes General Notes for Handling and Using Semiconduc...

Page 3: ...put signal during power off state as described in your product documentation 4 Handling of unused pins Handle unused pins in accordance with the directions given under handling of unused pins in the manual The input pins of CMOS products are generally in the high impedance state In operation with an unused pin in the open circuit state extra electromagnetic noise is induced in the vicinity of the ...

Page 4: ... Directive 2012 19 EU United States Regulatory notices on Electromagnetic compatibility FCC Certifications United States Only This equipment has been tested and found to comply with the limits for a Class A digital device pursuant to Part 15 of the FCC Rules These limits are designed to provide reasonable protection against harmful interference when the equipment is operated in a commercial enviro...

Page 5: ...0E417250MCU00 contact your local distributor The manuals relevant to usage of the R0E417250MCU00 are listed below You can download the latest manuals from the Renesas Tools homepage https www renesas com tools Related manuals Item Manual Accessory R0E0100TNPFK00 User s Manual Integrated development environment High performance Embedded Workshop User s Manual C C compiler and assembler H8S H8 300 S...

Page 6: ... product the judgment as to whether it can be put to practical use is entirely your own responsibility and should be based on evaluation of the device on which it is installed and other experiments 2 In no event shall Renesas Electronics Corporation be liable for any consequence arising from the use of this product 3 Renesas Electronics Corporation strives to provide workarounds for and correct tr...

Page 7: ...efforts to improve the design and performance of this emulator Therefore the specification or design of this emulator or this user s manual may be changed without prior notice About rights 1 We assume no responsibility for any damage or infringement on patent rights or any other rights arising from the use of any information products or circuits presented in this user s manual 2 The information or...

Page 8: ...s an imminently dangerous situation that will cause death or heavy wound unless it is avoided However there are no instances of such danger for the product presented in this user s manual WARNING WARNING indicates a potentially dangerous situation that will cause death or heavy wound unless it is avoided CAUTION CAUTION indicates a potentially dangerous situation that will cause a slight injury or...

Page 9: ...intained If you smell a strange odor hear an unusual sound or see smoke coming from this product then disconnect power immediately by unplugging the AC power cable from the outlet Do not use this as it is because of the danger of electric shock and or fire In this case contact your local distributor Before setting up this emulator and connecting it to other devices turn off power or remove a power...

Page 10: ...not touch the connector pins of the emulator main unit and the target MCU connector pins directly Static electricity may damage the internal circuits Do not pull this emulator by the communications interface cable or the flexible cable And excessive flexing or force may break conductors Do not flex the flexible cable excessively The cable may cause a break Do not use inch size screws for this equi...

Page 11: ...8 Selecting the Clock Supply 33 2 8 1 Clock Source 33 2 8 2 Using an Internal Oscillator Circuit Board 34 2 8 3 Using the Oscillator Circuit on the User System 35 2 8 4 Using the Internal Generator Circuit 35 2 9 Connecting the User System 36 2 9 1 Connection to a 100 pin 0 5 mm Pitch Pad Pattern 37 3 Tutorial 38 3 1 Introduction 38 3 2 Starting the High performance Embedded Workshop 39 3 3 Connec...

Page 12: ...e System 85 5 1 4 Setting up the Memory Map 88 5 1 5 Setting for Overwriting Blocks of the Flash ROM 90 5 1 6 Settings to Request Notification of Exceptional Events 91 5 1 7 Viewing the Progress of Boot Up Processing 92 5 2 Downloading a Program 94 5 2 1 Downloading a Program 94 5 2 2 Viewing the Source Code 94 5 2 3 Turning columns in all source files off 96 5 2 4 Turning columns off for one sour...

Page 13: ...urement 154 5 11 Measuring Code Coverage 155 5 11 1 Measuring Code Coverage 155 5 11 2 Opening the Code Coverage Window 155 5 11 3 Allocating Code Coverage Memory Hardware Resource 156 5 11 4 Code Coverage in an Address Range 159 5 11 5 Code Coverage in a Source File 160 5 11 6 Showing Percentages and Graphs 161 5 11 7 Sorting Coverage Data 162 5 11 8 Searching for Nonexecuted Lines 163 5 11 9 Cle...

Page 14: ...be Executed 203 5 15 4 Limitations of the Start Stop Function 204 5 15 5 Limitations on Statements within Specified Routines 204 5 16 Using the Trigger Output Function 205 5 16 1 Using the External Trigger Cable for Output 205 5 16 2 Opening the Trigger Output Conditions Dialog Box 206 5 16 3 Manual Setting for Output through Trigger Pins 31 to 24 207 5 16 4 Setting for Output through Trigger Pins...

Page 15: ...R0E417250MCU00 User s Manual Contents R20UT3587EJ0302 Rev 3 02 Page 15 of 232 Sep 01 21 Revision History 1 ...

Page 16: ...emulation probe rewrite an emulator name and serial number in the text file you filled in earlier to register your new hardware products Your registered information is used for only after sale services and not for any other purposes Without user registration you will not be able to receive maintenance services such as a notification of field changes or trouble information So be sure to carry out t...

Page 17: ...and the debugger elements for various debugging platforms including emulators and evaluation boards This provides the user with a single interface to fully exploit the advanced capabilities of the development tools for the entire development cycle from evaluation of a device through to completion of code development Emulator debugger This means a software tool that is started up from the High perf...

Page 18: ...debugger H8SX E100 emulator debugger User s Manual 1 Please keep the R0E417250MCU00 s packing box and cushioning materials at hand for later reuse in sending the product for repairs or for other purposes Always use the original packing box and cushioning material when transporting the MCU unit If you have any questions or are in doubt about any point regarding the packaged product contact your loc...

Page 19: ...or the host machine and emulator 5 AC adapter supply for the emulator 6 Host machine A personal computer to control the emulator 7 Pitch converter board R0E0100TNPFK00 for connecting the user system 8 User system and user system power supply User system is your application system This emulator can be used without the user system The user system power supply is power supply for the user system This...

Page 20: ...igger connector 5 System status LEDs 6 Target status LEDs Figure 1 2 Names of the emulator parts 1 Power switch This is a switch to turn the emulator ON and OFF 2 USB cable connector This is a connector for connecting the USB cable of the emulator 3 Power connector This is a connector for connecting the DC cable of the AC power adapter of the emulator 4 External trigger connector This is a connect...

Page 21: ... in progress OFF Emulator system is not operating normally system status error 6 Target Status LEDs The target status LEDs indicate the operating state of the target MCU and power supply of the user system Table 1 4 lists the definitions of the target status LEDs Table 1 4 Definitions of the target status LEDs Name Status Meaning POWER ON Power is being supplied to the user system OFF Power is not...

Page 22: ...s 4 M cycles Address data status CPU status bus status target status task ID timestamp 32 external trigger inputs Trace modes Fill until stop fill until full fill around TP repeat fill until stop repeat fill until full Extraction deletion of trace data Extracting or deleting data by specifying events or extracting the instruction that accesses the specified data Extracting data before and after tr...

Page 23: ...l the emulator debugger or refer to the user s manual Table 1 8 Operating environment of the host machine Windows Vista Item Description Host machine IBM PC AT compatible 1 OS Windows Vista 32 bit editions 1 4 CPU Pentium 4 running at 3GHz or Core 2 Duo running at 1GHz or more recommended Interface USB 2 0 2 Memory 1 5 Gbytes or larger more than 10 times the file size of the load module recommende...

Page 24: ...ich complies with the safety standards of the country where it is to be used Table 1 9 lists the recommended specifications of the AC adapter Table 1 9 Recommended Specifications of the AC Adapter Item Description AC input voltage range AC 100 to 240 V 50 60Hz single phase Output power 36 W DC output voltage current 12 0 V 3 0 A DC output polarity EIAJ TYPE IV inner side positive outer side negati...

Page 25: ... the power connector 7 Turn on the power supply Turn ON the power to the emulator 8 Check the LEDs on the emulator Check that the system status LEDs are lighting 9 Try to use the emulator debugger according to the tutorial When using the emulator debugger for the first time try to use the emulator functions referring to 3 Tutorial page 38 If the emulator debugger does not start follow steps 10 thr...

Page 26: ...of the target status LED are lighting When the user system is not connected the POWER LED does not light up 18 Start up the emulator debugger from the High performance Embedded Workshop Start up the High performance Embedded Workshop to launch the emulator debugger 19 Set up the operating environment of the emulator debugger Check the contents set in step 12 in Figure 2 1 Do not select the Start b...

Page 27: ...cluded Software If you have Windows Vista XP or 2000 on the host machine this installation must be executed by a user with administrator rights Note that users without administrator rights cannot complete the installation Place the CD ROM in the CD ROM drive and follow the instructions to install the software ...

Page 28: ... EMULATOR SYSTEM R0E530650MCU00 E100 emulator main unit R0E001000EMU00 Insert the MCU unit following the inside rails of the main unit Push the MCU unit down to check it is attached properly Disconnecting R0E530650MCU00 100 HIGH PERF ORM ANCE EMULATO R SYST EM Pull the MCU unit up Figure 2 3 Connecting the MCU Unit to and Disconnecting it from the E100 Emulator Main Unit CAUTION Note on Connecting...

Page 29: ... 29 of 232 Sep 01 21 2 4 Connecting the Host Machine USB interface is used for connecting the emulator to the host machine The 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 30: ...r 4 Connect the AC power cable to the outlet Figure 2 5 Connecting the emulator power supply CAUTION Cautions for AC Power Cable If the AC power cable does not fit the receptacle do not alter the AC power cable and do not plug it forcibly Failure to comply may cause electric shock and or fire Do not touch the plug of the AC power cable when your hands are wet This may cause electric shock Cautions...

Page 31: ...e power wait for about 10 seconds IMPORTANT Notes on Power Supply The emulator pin Vcc is connected to the user system in order to monitor user system voltage For this reason the emulator cannot supply power to the user system Supply power to the user system separately The voltage of the user system should be as follows 3 0 V Vcc 3 6 V 4 5 V Vcc 5 5 V When you start the emulator without the user s...

Page 32: ...disconnect it 2 Turn on the emulator 3 Launch the emulator debugger and select the Start booting up on successful completion of self checking checkbox in the Device setting dialog box 4 When you click OK self checking will start If the normal result is displayed in about 60 seconds self checking has ended SYSTEM POWER SAFE TARGET POWER RESET RUN Emulator turned on SYSTEM POWER SAFE TARGET POWER RE...

Page 33: ...k supply to the MCU Clock Clock selection in the emulator debugger Description Default setting Main EXTAL Emulator Oscillator module mounted on IC21 Yes User Oscillator circuit on the user system Generate Internal generator circuit 8 0 to 10 0 MHz Sub OSC1 and OSC2 Emulator Internal oscillator circuit 32 768 kHz Yes IMPORTANT Notes on Changing the Clock Supply The clock supply can be set on the Sy...

Page 34: ...a 1a CN2 40a 1a CN3 40a 1a 40b 1b CN4 40a 1a 40b 1b 40b 1b CN6 1 50 51 100 CN5 1 50 51 100 40b 1b 40b 1b 40b 1b 8 11 14 1 4 7 IC21 1 4 7 8 11 14 SG 8002DB SG 8002DC EPSON TOYOCOM SG 8002DC DB Series power voltage 2 7 to 3 6V PC SC Figure 2 7 Replacing the oscillator module CAUTION Note on Replacing the Oscillator Module and Oscillator Circuit Board Always shut OFF power when replacing the oscillat...

Page 35: ...it The dedicated circuit in the E100 can generate clock source of any frequency specified in the emulator debugger and it can be supplied as a main clock It does not depend on the oscillator circuit board in the MCU unit or the oscillator circuit on the user system If you want to debug programs without the user system or change a frequency temporarily you can check its operation before purchasing ...

Page 36: ...hows how to connect the MCU unit to your system 100 pins 0 5 mm pitch R0E0100TNPFK00 100 pin LQFP Flexible cable Figure 2 10 Connecting the MCU unit to the user system CAUTION Note on Connecting the User System Take care not to attach a converter board in a wrong direction It may cause a fatal damage to the emulator and user system ...

Page 37: ...he R0E0100TNPFK00 to CN2 of the flexible cable 5 Connect CN1 of the R0E0100TNPFK00 to CN1 of the flexible cable 100 pin 0 5 mm pitch PLQP0100KB A pad pattern Flash MCU YQPACK100SD NQPACK100SD ND YQ GUIDE x 4 HQPACK100SD not included R0E0100TNPFK00 Evaluation with the actual MCU Pin 1 User system 4 5 These four products are available in one package These corners are not round 3 1 2 Figure 2 11 Conn...

Page 38: ... tutorial function generates the random data to be sorted and calls the sort and change functions in that order The sort function accepts input of an array that contains the random data generated by the tutorial function and sorts this data into ascending order The change function accepts input of the array that was sorted into ascending order by the sort function and sorts the data into descendin...

Page 39: ...page 75 Specify the directory given below Drive where the OS is installed Workspace Tutorial E100 H8SX Tutorial Specify the file shown below Figure 3 1 Open Workspace dialog box 3 3 Connecting the Emulator When the debugger is connected to the emulator a dialog box for setting up the debugger is displayed Make initial settings of the debugger in this dialog box When you have finished setting up th...

Page 40: ...wnload the object program you want to debug Note however that the name of a program to be downloaded and the address where the program will be downloaded depend on the MCU in use Accordingly strings shown in the screen shots should be altered to those for the MCU in use Choose Download for Tutorial abs under Download modules Figure 3 2 Downloading the tutorial program ...

Page 41: ... the source level Double click on the C source file Tutorial cpp Figure 3 3 Editor window displaying the source program If necessary you can change the font and size to make the text more easily readable For details refer to the High performance Embedded Workshop User s Manual The Editor window initially shows the beginning of the program Use the scroll bar to view other parts of the program ...

Page 42: ...e Editor window For example you can set a software breakpoint at the line where the sort function is called Double click in the row of the S W Breakpoints column which corresponds to the source line containing the call of the sort function Figure 3 4 Editor window setting a software breakpoint The source line that includes the sort function will be marked with a red circle indicating that a softwa...

Page 43: ... choose Reset CPU from the Debug menu or click on the Reset CPU toolbar button 3 6 2 Executing the Program To execute the program choose Go from the Debug menu or click on the Go toolbar button The program will be executed continuously until a breakpoint is reached An arrow will be displayed in the S W Breakpoints column to indicate the position where the program stopped Figure 3 5 Editor window b...

Page 44: ...tus window CAUTION The contents displayed in this window differ with the product For details of the contents displayed for particular products refer to Chapter 5 Debugging Functions page 80 or the online help 3 7 Checking Breakpoints Use the Breakpoints dialog box to check all software breakpoints that have been set 3 7 1 Checking Breakpoints Press the keys Ctrl B on the keyboard of your PC The Br...

Page 45: ...w menu or click on the Registers toolbar button The Register window shown below will be displayed Figure 3 8 Register window The contents of any register can be altered Double click on the line for the register you want to alter The dialog box shown below is displayed allowing you to enter the new value for the register Figure 3 9 Set Value dialog box PC ...

Page 46: ...to Symbols The Labels window permits you to view the symbolic information in a module Choose Symbol Labels from the View menu or click on the Labels toolbar button The Labels window shown below will be displayed Use this window to look at the symbolic information a module includes Figure 3 10 Label window ...

Page 47: ...egistered For example you can check the contents of memory corresponding to _main in byte units as shown below Choose CPU Memory from the View menu or click on the Memory toolbar button to open the Display Address dialog box Enter _main in the edit box of the Display Address dialog box Figure 3 11 Display Address dialog box Click on the OK button The Memory window will be displayed showing a speci...

Page 48: ...inning of the program Click on the left hand side of the line containing the array a in the Editor window to place the cursor there Right click and select Instant Watch The dialog box shown below will be displayed Figure 3 13 Instant Watch dialog box Click on the Add button to add the variable to the Watch window Figure 3 14 Watch window array display Alternatively you can specify a variable name ...

Page 49: ...xpression edit box and click on the OK button The int type variable i will be displayed in the Watch window Figure 3 16 Watch window showing a variable Click on the mark shown to the left of the array a in the Watch window You can now look at the individual elements of the array a Figure 3 17 Watch window showing array elements ...

Page 50: ...ow Figure 3 18 Locals window Click on the mark shown to the left of array a in the Locals window to display the elements comprising array a Confirm that the random data are being sorted into ascending order by inspecting the elements of array a before and after execution of the sort function 3 13 Single Stepping through a Program The High performance Embedded Workshop provides various step command...

Page 51: ...n command steps in to a called function and stops at the first statement of the function To enter the sort function choose Step In from the Debug menu or click on the Step In toolbar button Figure 3 19 Step In button Figure 3 20 Editor window Step In The highlight in the Editor window moves to the first statement of the sort function ...

Page 52: ... completing its execution at once and only stopping at the next statement of the program from which the function was called To exit from the sort function choose Step Out from the Debug menu or click on the Step Out toolbar button Figure 3 21 Step Out button Figure 3 22 Editor window Step Out The data of the variable a displayed in the Watch window will have been sorted into ascending order ...

Page 53: ...ction call as one step and then stops at the next statement of the main program To execute all statements in the change function at once choose Step Over from the Debug menu or click on the Step Over toolbar button Figure 3 23 Step Over button Figure 3 24 Editor window Step Over The data of the variable a displayed in the Watch window will have been sorted into descending order ...

Page 54: ...Workshop permits you to forcibly break program execution Clear all breakpoints To execute the rest of the tutorial function choose Go from the Debug menu or click the on Go toolbar button Figure 3 25 Go button Since the program execution is now in an endless loop choose Stop Program from the Debug menu or click on the Halt toolbar button Figure 3 26 Halt button ...

Page 55: ...ion at a Specified Address It s easy to set an instruction fetch event in the Editor window For example you can set an instruction fetch event where the sort function is called Double click in the row of the Event column which corresponds to the source line containing the call of the sort function Figure 3 27 Editor window setting a hardware breakpoint The source line that includes the sort functi...

Page 56: ...page of the Hardware Break dialog box Select a global variable in the Editor window and drag and drop the selected variable into the OR page so that the program will stop when it reads or writes the value of that variable Then click on the Apply button The program will stop running when it reads or writes the value of the global variable you have set Figure 3 28 Hardware Break dialog box Notes 1 T...

Page 57: ... hold a record of the execution of up to 4 M bus cycles This memory is constantly updated during program execution The contents of trace memory are displayed in the Trace window Choose Code Trace from the View menu or click on the Trace toolbar button The Trace window shown below will be displayed Figure 3 29 Trace window The following section gives an outline of the tracing facility and how to se...

Page 58: ...cquired from the start of user program execution until a break is encountered 1 Clear all break conditions Click the right mouse button with the cursor anywhere in the Trace window and choose Acquisition from the popup menu The Trace conditions dialog box shown below will be displayed Check that the selected trace mode is Fill until stop Click on the Close button Figure 3 30 Trace conditions dialo...

Page 59: ...Processing will be halted by the break and the trace information acquired prior to the break will be displayed in the Trace window Figure 3 31 Trace window fill until stop tracing 4 A mixed display of bus information and disassembly listing is possible Choose Display Mode DIS from the popup menu to view trace information in mixed bus and disassembly mode Figure 3 32 Trace window mixed bus and disa...

Page 60: ...Rev 3 02 Page 60 of 232 Sep 01 21 5 Choosing Display Mode SRC from the popup menu on the other hand shows a mixture of bus information disassembly listing and source code as the trace information Figure 3 33 Trace window mixed bus disassembly and source mode ...

Page 61: ...a trace point is encountered This facility allows you to use trace information to keep track of program flow without having to break the user program 1 If any break conditions are set clear all of them 2 Choose Fill around TP as the trace mode in the Trace conditions dialog box In the Delay cycle section specify 4M Up to 4 M cycles of trace information from where a trace point is encountered will ...

Page 62: ...n function in the Editor window and drag and drop it onto the OR page Click on the Apply button and then the Close button Thus the debugger will start acquiring trace information when the main function is executed Figure 3 35 Trace conditions dialog box OR page 4 Choose Reset Go from the Debug menu As soon as the trace point is reached trace information as shown below will start to be displayed in...

Page 63: ...dialog box will open Switch to fill until stop tracing and click on the Apply button and then the Close button 2 Set a software break on the following line of the tutorial function p_sam s0 a 0 3 Choose Reset Go from the Debug menu Processing will be halted by the break and the trace information acquired prior to the break will be displayed in the Trace window 4 Click the right mouse button with t...

Page 64: ... history of function execution will be displayed in the upper pane Figure 3 38 Trace window function execution history after analysis 6 Double click on a function in the upper pane to view the trace information corresponding to that function in the lower pane Figure 3 39 Trace window function execution history Display form of function execution history Function name start address of function funct...

Page 65: ... This makes it easy to extract the information you need 1 Clear all break conditions Click the right mouse button with the cursor anywhere in the Trace window and choose Acquisition from the popup menu that is displayed The Trace conditions dialog box will be displayed Check that the selected trace mode is Fill until stop Click the Close button 2 Set a software break on the following line of the t...

Page 66: ...dow Auto Filter 6 The Trace window now only shows trace information for cycles that have R in the R W column Figure 3 42 Trace window Auto Filter Notes 1 Filtering does not affect the trace memory so that its contents remain intact 2 Filtering is available for trace information regardless of whether the setting is fill until stop fill until full or fill around TP ...

Page 67: ...tion can be used to find out which function called the function corresponding to the current PC value Set a software breakpoint in any line of the tutorial function by double clicking on the corresponding row in the S W Breakpoints column Figure 3 43 Editor window setting a software breakpoint Choose Reset Go from the Debug menu ...

Page 68: ... Clear the software breakpoint that you set on a line of the tutorial function by again double clicking on the corresponding row in the S W Breakpoints column 3 19 What Next In this tutorial we have introduced to you several features of the E100 emulator and usage of the High performance Embedded Workshop The emulation facilities of the E100 emulator provide for advanced debugging You can apply th...

Page 69: ...on the Start menu choose Renesas High performance Embedded Workshop High performance Embedded Workshop The Welcome dialog box shown below will appear Figure 4 1 Welcome dialog box Select the startup method from among the following Create a new project workspace Open a recently used project workspace Select this option when you use an existing workspace The names of recently opened workspaces will ...

Page 70: ...w workspace 1 In the Welcome dialog box select the radio button with the caption Create a new project workspace and click on the OK button Figure 4 2 Welcome dialog box 2 The Project Generator will start Figure 4 3 New Project Workspace dialog box Workspace Name Enter a workspace name here Project Name Enter a project name here You do not need to enter any name if you wish this to be the same as t...

Page 71: ... Debugging dialog box Select the target platform you wish to use by placing a check mark in its checkbox and click on the Next button 4 Set a configuration name Configuration refers to a file in which information on the state of the High performance Embedded Workshop for use with target software rather than emulators is saved Figure 4 5 Setting the Debugger Options dialog box If you have selected ...

Page 72: ...e OK button in this dialog box starts the High performance Embedded Workshop 5 After starting the High performance Embedded Workshop connect the E100 emulator 4 3 Creating a New Workspace with a Toolchain in Use Follow the procedure below to create a new workspace 1 In the Welcome dialog box select the radio button titled Create a new project workspace and click on the OK button Figure 4 6 Welcome...

Page 73: ...y from the dialog box CPU family Select the CPU family of the MCU you are using Toolchain To use a toolchain select the appropriate toolchain here If you do not use any toolchain select None The other list boxes are used for setting up a toolchain If no toolchains are installed fixed information is displayed here Click on the OK button 3 Set the CPU and options for the toolchain and make other nec...

Page 74: ...click on the Next button and then set a configuration name for each of the selected target platforms When you have finished setting configuration names emulator related settings are completed Click on the Finish button and the Summary dialog box will be displayed Clicking on the OK button in this dialog box starts the High performance Embedded Workshop 6 After starting the High performance Embedde...

Page 75: ...he Open Workspace dialog box shown below will appear Figure 4 11 Open Workspace dialog box Specify the directory in which the workspaces was created select the workspace file extension hws and click on the Select button 3 The High performance Embedded Workshop will start and its state will be restored to the state at the time the selected workspace was saved If the emulator was connected at the ti...

Page 76: ...you can register download modules and the command chain to be automatically executed When you are finished filling in the Debug Settings dialog box the emulator will be connected 2 Loading a session file Switching to a session file in which settings for emulator usage have been made in advance simplifies the procedure of connecting the emulator 4 5 2 Reconnecting the Emulator While the emulator is...

Page 77: ...of the ways described below Choose Disconnect from the Debug menu Click on the Disconnect toolbar button Enter the disconnect command in the Command Line window 4 7 Quitting the High performance Embedded Workshop Choosing Exit from the File menu closes the High performance Embedded Workshop Before it closes a message box will be displayed asking you whether you want to save the session To save the...

Page 78: ...gs from the Debug menu to open the Debug Settings dialog box Figure 4 12 Debug Settings dialog box In the Target drop down list box select the name of the product you want to connect In the Default debug format drop down list box select the format of the load module you want to download Then register a module in the selected format in the Download modules list box CAUTION At this point in time no ...

Page 79: ...4 13 Debug Settings dialog box Here register a command chain to be automatically executed with the specified timing Select your desired timing from among the following four choices When the emulator is connected Immediately before downloading Immediately after downloading Immediately after a reset In the Command batch file load timing drop down list box select the timing with which you want a comm...

Page 80: ... Trace acquisition stops when trace memory becomes full Fill around TP Trace acquisition proceeds for a delay in cycles after the trace point has been reached Repeat fill until stop Information for a total of 512 cycles before and after each trace point are acquired and this continues until the program stops Repeat fill until full Information for a total of 512 cycles before and after each trace p...

Page 81: ... 5 1 List of Debug Functions cont Item No Item Specification 9 Coverage C0 level code coverage 256 Kbytes x 8 blocks 2 Mbyte space C0 C1 level code coverage 128 Kbytes x 8 blocks 1 Mbyte space Address range and source file Data coverage 64 Kbytes 8 blocks 512 Kbyte space Address range section and task stack ...

Page 82: ...n be re opened by selecting Emulator Device setting from the Setup menu after the emulator has been booted up In this case however be aware that changes of setting made after boot up will not be reflected immediately but will be set as initial values when the emulator is reconnected 2 Configuration properties dialog box This dialog box is opened after the Device setting dialog box Use this dialog ...

Page 83: ...on of operating mode Select the checkbox if you want automatic detection of the operating mode after connection of the emulator has been established When any of the following states is detected the emulator shows an error message and releases the connection The user system is not connected The user system is not supplied with power The setting of the MD2 to MD0 pins of the user system corresponds ...

Page 84: ...ted via USB Clicking on the Refresh button updates the information 5 Performing self checking If you click on the OK button with the Start booting up on successful completion of self checking checkbox selected hardware self checking proceeds after connection to the emulator according to the communications condition you have set The results are shown on completion of self checking If the results ar...

Page 85: ... specify the configuration of the emulator system as a whole During the boot up process this dialog box appears after the Device setting dialog box Although it is possible to open this dialog box even after the emulator has been booted up some items e g target MCU and clock selection will be grayed out since they cannot be changed Figure 5 2 Configuration properties dialog box System page ...

Page 86: ...trigger cable select the direction of EXT pins 16 31 as input or output EXT pins 0 15 are fixed as inputs Select either of the following options EXT 0 31 INPUT initial value EXT 0 15 INPUT EXT 16 31 OUTPUT 3 Selecting a trigger input level Select CMOS level or TTL level as the trigger input level Select either of the following options EXT 0 31 CMOS initial value EXT 0 15 TTL EXT 16 31 CMOS 4 Selec...

Page 87: ...in of the target system to be masked 10 Usage with the EXPE bit of SYSCR 0xFFFDC2 as 1 Select this checkbox if you wish to enable access to external space while the MCU is in single chip mode This option is only available for MCUs that have an EXPE bit in SYSCR When the MCU is not in single chip mode this option is ignored 11 Debugging with overwriting of flash memory Select this checkbox if you w...

Page 88: ...erties dialog box Memory map page 1 Assign emulation memory to internal flash ROM Up to two blocks can be allocated as emulation memory Select the checkboxes for the areas you wish to use and specify the addresses where the blocks start and end Note however that the 16 lower order bits of the addresses are fixed because the blocks are only specifiable in 128 Kbyte units By default up to two areas ...

Page 89: ...signment of emulation memory will not be performed Even when emulation memory has been allocated automatically the allocated memory is treated as if it had been manually allocated deleting a software breakpoint does not release the corresponding memory 3 Write the contents of the flash ROM areas to IEMEMx Selecting a checkbox makes the assignment of emulation memory to internal ROM areas include w...

Page 90: ...ecify whether or not individual blocks of flash ROM should be overwritten Figure 5 4 Configuration properties dialog box Internal flash memory overwrite page Settings for all blocks are automatically shown in the list according to the information on the target MCU When a checkbox is selected the block will be overwritten rather than deleted when the user program is downloaded This is the same even...

Page 91: ...d as a balloon on the status bar when exceptional events occur Figure 5 5 Configuration properties dialog box Exception Warning page The Violation of access protection Read from uninitialized memory and Stack access violation checkboxes are initially selected When a load module that includes an OS has been downloaded the Task stack access violation checkbox is also initially selected Other items a...

Page 92: ...ion of progress The progress history box on the left hand side of the dialog box shows the history of progress The information shown here is saved in a bug report To check the contents of the bug report select Technical Support Create Bug Report from the Help menu 2 Display of pin states The pin states are updated when you close the Configuration properties dialog box A warning will be shown in th...

Page 93: ...ss bar shows the state of progress through the overall process of booting up The lower progress bar shows the state of progress through the current part of the process of booting up The name of the current part of the overall process is shown under the progress bar 5 Canceling the connection Click on the Cancel button to cancel the process of booting up ...

Page 94: ...orkspace window and then choose Download from the popup menu CAUTION Before a program can be downloaded you must have it registered as a load module in the High performance Embedded Workshop For details on how to register load modules refer to 4 8 Making Debugging Related Settings page 78 5 2 2 Viewing the Source Code Select either of the following ways to view the source code Double click on the ...

Page 95: ...owing Table 5 2 Icons in the Event column Hardware breakpoint Trace point fetch condition A hardware breakpoint can be set by double clicking in the Event column A trace point is only displayed when a fetch condition has been set after the title on the title bar of the Hardware break Trace conditions and Performance Analysis Conditions dialog boxes shows that a setting is being edited You cannot c...

Page 96: ...bal Editor Column States dialog box 3 Deselect the checkboxes of columns you want to turn off Click the OK button and the new settings you have made will take effect 5 2 4 Turning columns off for one source file 1 From the Editor window 1 Right click in the Editor window and choose Columns from the popup menu 2 A cascaded menu will be displayed A check mark is to the left of the names of currently...

Page 97: ...lowing methods Click on the Disassembly toolbar button Choose Disassembly from the View menu Use the Ctrl D shortcut keys In this case the Disassembly window opens with a listing from the position currently indicated by the PC The emulator also supports a mixed mode as an optional way to show all source lines from the address where disassembly started To view disassembly code in mixed mode click t...

Page 98: ...nt to correct in the Disassembly window or choose Edit from the popup menu The Assembler dialog box will open Use this dialog box to correct the assembly language code Figure 5 11 Assembler dialog box The dialog box shows the address instruction code and mnemonic of the selected instruction Enter a new instruction or edit the old instruction in the Mnemonic edit box When you have finished hit the ...

Page 99: ...irst address of the internal RAM is allocated as the RAM monitoring area 2 Monitor display Access states are indicated by different background colors according to the access attribute as listed below the background colors are customizable The access attributes read and written indicate the last access to each memory location To view detected errors choose Error Detection Display from the popup men...

Page 100: ...pe choose Error Detection Display from the popup menu Non inspected memory locations are shown against a sky blue background 5 3 2 Setting the Update Interval for RAM Monitoring Choose Update Interval Setting from the popup menu of the RAM Monitor window The Update Interval Setting dialog box shown below will appear Figure 5 12 Update Interval Setting dialog box A separate Update Interval can be s...

Page 101: ...ose CPU Status from the View menu or click on the View Status toolbar button The information shown in this window is not updated while the program is running Figure 5 13 Status window The Status window has the following four sheets Table 5 7 Sheets of the Status window Sheet Description Memory Shows information on memory resources Platform Shows information on the emulator and debugging Events Sho...

Page 102: ...f a break in the user program ExecutionTime Result of time measurement Exception Whether or not an exceptional event has occurred 1 When more than one break source is present When you click on the status bar indicating the source of a break Some factors exist when there is more than one a balloon appears Read the contents of the balloon to check the source of the break Figure 5 15 Checking the sou...

Page 103: ...d Monitor window The extended monitor function only monitors the signals output from the user system or MCU so it does not affect execution of the user program To open the Extended Monitor window choose CPU Extended Monitor from the View menu or click on the Extended Monitor toolbar button The displayed items are updated at an interval of about 1 000 ms during user program execution or about 5 000...

Page 104: ... Selecting the Items to Be Displayed Choose Properties from the popup menu of the Extended Monitor window The Extended Monitor Configuration dialog box will be displayed Figure 5 18 Extended Monitor Configuration dialog box This dialog box allows you to select items to be shown in the Extended Monitor window ...

Page 105: ...n and arrives at an address you have set as a software breakpoint the program stops and the message Software Break is displayed on the Debug sheet of the Output window At this time the Editor or Disassembly window is updated and the position where the program has stopped is marked with an arrow in the S W Breakpoints column CAUTION When a break occurs the program stops immediately before executing...

Page 106: ...oftware breakpoint 2 In the S W Breakpoints column double click on the line where you want the program to stop Figure 5 19 Editor window Alternatively you can select Toggle Breakpoint from the popup menu or press the F9 key 3 When a software breakpoint is set a red circle is displayed at the corresponding position in the S W Breakpoints column of the Editor or Disassembly window Figure 5 20 Editor...

Page 107: ... Editor or Disassembly window From the Breakpoints dialog box From the command line 1 From the Editor or Disassembly window 1 Place the cursor at the line where a software breakpoint exists and then select Enable Disable Breakpoint from the popup menu Alternatively press the Ctrl and F9 keys at the same time Figure 5 21 Editor window and popup menu 2 The software breakpoint is alternately enabled ...

Page 108: ...02 Page 108 of 232 Sep 01 21 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 disable or remove a currently set breakpoint Figure 5 23 Breakpoints dialog box ...

Page 109: ...specified address range Interrupt The emulator detects interrupt generation or return from an interrupt handler Trigger input The emulator detects a signal fed in from the input cable for external trigger signals being in a specified state 2 Event combinations The following types of combination can be specified for two or more events Table 5 10 Types of event combination OR The condition is met wh...

Page 110: ...re the new event is to be added Figure 5 24 Hardware Break dialog box 2 The Event dialog box shown below will be displayed In this dialog box set the details of the event condition and then click on the OK button Figure 5 25 Event dialog box 3 An event will be added at the specified position Figure 5 26 Hardware Break dialog box 4 If you create an event that would make the total number of events e...

Page 111: ...egistered Events dialog box 1 Click on the Add button in the Registered Events dialog box Figure 5 27 Registered Events dialog box 2 The Event dialog box shown below will be displayed Set details of the event condition in this dialog box Enter a comment if any is necessary Then click on the OK button Figure 5 28 Event dialog box ...

Page 112: ...s dialog box 2 Adding an event from the Event column of the Editor window Adding a hardware breakpoint 1 Select HW Break Point from the popup menu opened by double clicking or right clicking in the Event column of the Editor window This sets fetching from the corresponding address as the condition for a hardware breakpoint i e an instruction fetch condition Figure 5 30 Editor window ...

Page 113: ... Editor window Figure 5 31 Hardware Break dialog box Adding a trace point 1 Double click or right click in the Event column of the Editor window then select Trace Point from the popup menu This sets fetching from the corresponding address as the condition for a trace point i e an instruction fetch condition Double click on the instruction fetch event in the Event column of the Editor window to del...

Page 114: ...stered for event detection Static variables in functions cannot be registered 2 By dragging and dropping a function name into the Event column you can set instruction fetching from the address where that function starts as an event to be detected Figure 5 32 Editor window and Hardware Break dialog box Dragging and dropping an address range in the Memory window Select an address range in the Memory...

Page 115: ... to remove in the Event list and then click on the Delete button or use the keys Ctrl Del instead of clicking on the button The selected event will be removed from the Event list Figure 5 33 Hardware Break dialog box 2 To remove multiple events hold down the Shift or the Ctrl key while you select lines you want to remove in the Event list and then click on the Delete button or use the keys Ctrl De...

Page 116: ...g box To remove one point select the line you want to remove in the Registered Events dialog box and then click on the Delete button or use the keys Ctrl Del instead of clicking on the button The selected event will be removed from the list of registered events To delete all events click on the Delete All button Figure 5 35 Registered Events dialog box ...

Page 117: ... following ways to register an event Up to 256 events can be registered 1 Registering events Creating an event in the Event dialog box 1 Open the Comment page of the Event dialog box and select the Add this event to the list checkbox Then click on the OK button Figure 5 36 Event dialog box 2 The event is added at the specified position and registered in the Registered Events dialog box at the same...

Page 118: ...it into the list Figure 5 38 Hardware Break dialog box and Registered Events dialog box Registering an event in the Registered Events dialog box Click on the Add button to create an event Any event you create here is added to the Registered Events dialog box Figure 5 39 Registered Events dialog box 2 Attaching comments An explanatory comment for the event can be attached Check the Registered Event...

Page 119: ...r being registered Once the event is no longer in use i e it has been changed or deleted its setting is nonexistent Any event created by a simple operation such as double clicking in the Event column of the Editor window constitutes an event created per usage Reusing events Any event registered in the Registered Events dialog box can be reused by dragging and dropping it into the Event list in the...

Page 120: ...utton Settings you make do not become effective until you click on the Apply button after the title on the title bar of the Hardware Break Trace conditions or Performance Analysis Conditions dialog box indicates that some setting is being edited While you are editing an event you cannot change the settings via the Event column of the Editor window or the command line Figure 5 41 Activating the set...

Page 121: ...ons 5 8 2 Setting Hardware Breakpoints 1 Setting Hardware Breakpoints For a hardware breakpoint you can set an OR condition other conditions AND cumulative AND simultaneous subroutine sequential or state transitions and detection of exceptional events For each hardware breakpoint you can specify all or only one from among the OR condition other conditions and detection of exceptional events Progra...

Page 122: ... window while the OR condition is disabled the OR condition is automatically enabled When the OR condition is re enabled the previous event settings on the OR page with their checkboxes being selected are restored However if re enabling the OR condition would bring the total number of events to more than 16 the events are restored with their checkboxes not selected disabled on the OR page Figure 5...

Page 123: ...of their timing and order AND simultaneous A breakpoint is encountered when all of the specified events occur at the same time Subroutine A breakpoint is encountered when a specified event occurs within a specified address range subroutine or function Sequential 6 steps forward direction reset point A breakpoint is encountered when the specified events occur in a specified order State transitions ...

Page 124: ...value is specifiable in the range from 0 to 65 535 default 0 5 8 3 Saving Loading Hardware Break Settings 1 Saving hardware break settings Click on the Save button of the Hardware Break dialog box The Save dialog box will be displayed Specify the name of the file where you want the break settings to be saved The file name extension is hev If this is omitted the extension hev is automatically appen...

Page 125: ...ogram execution stops due to an exception break forced stop or breakpoint the contents of trace memory at the time the program has stopped are displayed as the result of tracing even if no trace points have been encountered yet 5 9 2 Acquiring Trace Information In cases where no trace acquisition conditions are set the default behavior of the E100 emulator is to acquire information on all bus cycl...

Page 126: ...to the address displayed only when a label has been set Address Address on the address bus Data Data on the data bus in hexadecimal Size Unit of access byte word or longword R W Data bus state indicated as R for reading W for writing or for no access RWT Whether the bus cycle is valid or not The value 0 indicates a valid bus cycle The Address and Data information is valid when RWT is 0 Status Curr...

Page 127: ... mode 0 Value Description Bit CCR I Bit CCR Ui 0 0 Ui 0 1 I 1 0 I Ui 1 1 The entry under IMD0 is if IMD2 values are being displayed IMD2 Interrupt mask levels of the extended control register in interrupt control mode 2 Value Description Bit EXT I2 Bit EXT I1 Bit EXT I0 0 0 0 0 1 0 0 1 2 0 1 0 3 0 1 1 4 1 0 0 5 1 0 1 6 1 1 0 7 1 1 1 The entry under IMD0 is if IMD2 values are being displayed DEBUG ...

Page 128: ...w the Task ID column you need to select Task ID on the Option page of the Trace conditions dialog box opened by choosing Acquisition from the popup menu of the Trace window EXT Signal fed in from the external trigger cable 1 and 0 indicate the signal being at the high and low levels respectively To show the EXT column you need to select External trigger on the Option page of the Trace conditions d...

Page 129: ... window 1 Selecting the trace mode Start by selecting the trace mode Figure 5 46 Trace conditions dialog box 2 Setting trace points If you have selected Fill around TP Repeat fill until stop or Repeat fill until full you need to set a trace point For trace points you can specify conditions using events and or the detection of specific exceptional events For Fill around TP you can also specify a de...

Page 130: ...the Step execution is recorded checkbox in the Record condition group box Figure 5 48 Recording step execution The recordable modes of step execution are Step In Step Over and Step Out 5 Selecting the type of trace information to be acquired Use the Option page of the Trace conditions dialog box to select the type of trace information to be stored in the trace memory By default Event number is sel...

Page 131: ...d in the range up to the maximum value of trace capacity Repeat fill until stop For each trace point encountered in program execution information for a total of 512 cycles before and after the point is acquired and acquisition continues in the same way until the program stops running Repeat fill until full For each trace point encountered in program execution information for a total of 512 cycles ...

Page 132: ...ture Recording of step execution Possible 3 Fill around TP Trace acquisition is halted a specified number of cycles after a trace point is encountered In this mode the user program continues running and only trace acquisition is halted Sophisticated conditions can be set using a maximum of 16 event points The delay value can be chosen as 0M 1M 2M 3M or 4M cycles Table 5 17 Specifiable conditions F...

Page 133: ...f trace points are encountered in consecutive cycles in the repeat fill until stop or repeat fill until full mode the yellow highlight that indicates a trace point only appears for the trace point in the first of the cycles 5 9 5 Setting Trace Points 1 Setting trace points For trace points you can set an OR condition other conditions AND cumulative AND simultaneous subroutine sequential or state t...

Page 134: ...nabled the previous event settings on the OR page with their checkboxes being selected are restored However if re enabling the OR condition would bring the total number of events to more than 16 the events are restored with their checkboxes not selected disabled on the OR page Figure 5 51 Trace conditions dialog box Table 5 20 OR condition Type Description OR condition A trace point is encountered...

Page 135: ...l of the specified events have occurred regardless of the timing AND simultaneous A trace point is encountered when all of the specified events occur at the same time Subroutine A trace point is encountered when a specified event occurs within a specified address range subroutine or function Sequential 6 steps forward direction reset point A trace point is encountered when the specified events occ...

Page 136: ...ding from a non initialized memory area Stack access violation Performance measurement overflow Realtime profile overflow Task stack access violation OS dispatch 5 Specifying a delay value If this checkbox is selected tracing stops the specified number of bus cycles after the trace point is encountered The delay value is selectable as 0M 1M 2M 3M or 4M bus cycles default 0M Select the desired valu...

Page 137: ...ation of an event occurring in a subroutine Trace information is extracted over the cycles corresponding to occurrence of the specified event within the specified address range subroutine or function Instruction accessing specific data Information is extracted for instructions that access specified data Elimination Between two events Trace information is eliminated from the cycle in which the even...

Page 138: ... specify conditions for extraction or elimination you cannot select DIS disassembly mode or SRC source mode from Display Mode in the popup menu of the Trace window When you specify a data access event as a condition for extraction or elimination be sure to specify MCU bus as the access type Figure 5 55 Event dialog box ...

Page 139: ...on to be stored in the trace memory Make this selection on the Option page of the Trace conditions dialog box Figure 5 56 Trace conditions dialog box Select which signal you want to acquire from three choices available Event number Task ID or External trigger By default Event number is selected CAUTION If you want to view the history of tracing information on a realtime OS program select Task ID ...

Page 140: ... Trace results can be shown in one of the following display modes bus disassembly source or mixed The display can be switched by changing the selection of Display Mode in the popup menu of the Trace window 1 Bus Display Mode In the popup menu select Display Mode BUS Bus information is displayed for all traced cycles this is the default display mode Figure 5 57 Trace window ...

Page 141: ...hows a disassembly of the machine language instructions that have been executed Figure 5 58 Trace window 3 Source Display Mode From the popup menu choose Display Mode SRC This mode shows the flow of execution of the source program You can check the flow of execution by stepping forwards and backwards through the source code from the current trace cycle Figure 5 59 Source mode screen ...

Page 142: ...us disassembly and source information After choosing Display Mode BUS from the popup menu select Display Mode DIS This produces a mixed display of bus and disassembly modes In the same way you can produce mixed displays of bus source disassembly source or bus disassembly source To revert to bus mode after viewing a bus disassembly mixed display reselect Display Mode DIS from the popup menu Figure ...

Page 143: ...ay mode is bus or disassembly 1 Auto filtering To use the filtering facility choose Auto Filter from the popup menu of the Trace window When Auto Filter is turned on each of the columns in the Trace window is marked with an auto filter arrow By simply clicking on the arrows and selecting desired conditions from the drop down lists you can filter the records to get those that meet the conditions Se...

Page 144: ...ual 5 Debugging Functions R20UT3587EJ0302 Rev 3 02 Page 144 of 232 Sep 01 21 If you have specified multiple items in an Option dialog box these items constitute an OR condition for use in filtering Figure 5 62 Option dialog box ...

Page 145: ...ct the required criteria If you have checked more than one item in the Combination column set criteria for each of them The items you have set are used as an AND condition The criteria you have set are shown in Find Setting Contents After setting the criteria click the Find Previous or Find Next button to start a search Searching then proceeds forwards or backwards through the trace records from t...

Page 146: ...nd lines in the Find Setting Contents column Up to 16 conditions 16 lines can be set CAUTION Conditions set on the same line of the Find Setting Contents column are treated as an AND condition 5 9 11 Saving Trace Information in Files To save trace information in a file choose File Save from the popup menu or click on the Save toolbar button The trace information displayed in the Trace window is sa...

Page 147: ...k on the Stop toolbar button Trace acquisition will be stopped with the trace display updated Use this function when you only want to stop acquisition and check the trace information but not to stop program execution 5 9 14 Restarting Trace Acquisition If you want to restart trace acquisition after it has temporarily been stopped during user program execution choose Trace Restart from the popup me...

Page 148: ...e popup menu or click on the Analyze Execution History toolbar button the emulator starts analyzing the history of execution history from the end of the results of tracing The results of analysis are displayed in a tree structure Figure 5 64 Trace window The lower pane of the window shows results of tracing from the cycle in which the function selected in the upper pane was called Results in the l...

Page 149: ... be opened the pane is blank by default When you choose Analyze Execution History from the popup menu that is displayed when you right click in the upper pane or click on the Analyze Execution History toolbar button the emulator shows the history of task execution In the history of task execution note that function calls from within tasks are not displayed in a tree structure Only the order in whi...

Page 150: ... user program Performance measurement conditions cannot be manipulated during program execution 5 10 2 Viewing the Results of Performance Measurement Results of measurement are displayed in the Performance Analysis window To open the Performance Analysis window choose Performance Performance Analysis from the View menu or click on the Performance Analysis toolbar button Figure 5 66 Performance Ana...

Page 151: ...s the cumulative total of measured execution times Count Shows the number of times measurement for the section has proceeded Statistic Shows the ratio of the cumulative execution time relative to the Go Break execution time Ratio calculation formula Cumulative execution time Go Break cumulative execution time 100 Max h m s ms us ns Maximum execution time per measurement performed Min h m s ms us n...

Page 152: ... the time execution takes and number of passes through the range between the start event and the end event are measured The measurement of time starts when the start event occurs and is suspended when the end event occurs The number of passes through the section is incremented by one each time the pair of the start event and end event for the specified range occur Start event One or multiple event...

Page 153: ... Specify fetching from the first address of the function as the start event and fetching from the exit point of the function point corresponding to the line containing the function s return statement as the end event If there is more than one exit point set a fetch condition that covers each of them as the end event 2 Selecting the unit of measurement This setting applies in common to all 8 sectio...

Page 154: ...ximum Time of Performance Measurement 1 Maximum measurement time The timer used for performance measurement is comprised of a 40 bit counter The maximum measurement time varies with selected unit of measurement To select the unit of measurement use the Time unit list box of the Performance Analysis Conditions dialog box The maximum measurable times for the respective units are listed in the table ...

Page 155: ...tic of user program execution The results of coverage are updated when a break is encountered The E100 emulator supports C0 instruction coverage and C1 branch coverage Table 5 27 Code coverage definition C0 Instruction coverage All statements within the code are executed at least once C1 Branch coverage All branches within the code are executed at least once The E100 emulator comes with up to 2 Mb...

Page 156: ...spective sheets permit registration of multiple ranges Up to two instances of the Code Coverage window can be open at the same time 5 11 3 Allocating Code Coverage Memory Hardware Resource 1 Memory allocation Before code coverage can be measured code coverage memory must be assigned to the target address range Coverage data can only be obtained from an address range to which memory has been alloca...

Page 157: ...8 for a total of up to 2 Mbytes each beginning on a 256 Kbyte boundary and a number of blocks from 1 to 8 blocks for a total of up to 1 Mbyte each beginning on a 128 Kbyte boundary as areas for the respective forms of code coverage measurement The blocks may be contiguous or non contiguous With the initial settings the coverage memory is automatically allocated to addresses in the ROM and RAM area...

Page 158: ...e is retrieved from coverage memory into a dedicated coverage buffer Figure 5 75 Schematic view of a change in coverage memory allocation Acquired coverage information is accumulated in the coverage buffer until it is cleared by the user However coverage information is not updated for areas to which coverage memory is not allocated The coverage information shown in the Code Coverage window include...

Page 159: ...ge window is vertically divided in two by the splitter The upper pane shows the address ranges to be measured and the degrees of C0 coverage and C1 coverage Table 5 29 Contents of the upper pane of the Code Coverage window Address Range Address range for which coverage is measured C0 Coverage C0 coverage as a percentage and graph C1 Coverage C1 coverage as a percentage and graph The lower pane sho...

Page 160: ...coverage and C1 coverage acquired by the emulator from a user specified source file Multiple source files can be registered A source file larger than 2 Mbytes or even an area to which no coverage memory has been allocated can be specified However when coverage memory has not been allocated for a portion of the code coverage information on that area is not updated Address lines where coverage infor...

Page 161: ...F The condition was satisfied in one case and not satisfied in another Address Address of the instruction Assembler Disassembled program Source C C or assembly source program The acquired coverage information is accumulated in memory until it is cleared by the user 5 11 6 Showing Percentages and Graphs After the program has stopped right click in the upper pane of the Code Coverage window and choo...

Page 162: ...0 file1 cpp func2 10 file1 cpp func3 80 file1 cpp func4 70 file2 cpp func1 20 file2 cpp func2 60 file2 cpp func3 90 file3 cpp func1 0 file3 cpp func2 30 file3 cpp func3 10 2 Clicking on the C0 Coverage column The data can be sorted by coverage rate Clicking on the column once sorts the values into descending order Clicking on the column a second time sorts the values into ascending order Example F...

Page 163: ...rching for Nonexecuted Lines Search for nonexecuted lines in a selected address range or function When you click on the Find toolbar button the Find dialog box shown below appears Figure 5 79 Find dialog box The following three search options are available Table 5 33 Search options Unexecuted Line Instructions not executed yet Branch T Branch instructions with condition that is always TRUE when te...

Page 164: ...n for the selected range 2 Clearing all of the code coverage information Selecting Clear the Entire Coverage from the popup menu clears all of the code coverage information 5 11 10 Updating Coverage Information Selecting Refresh from the popup menu updates the contents of the Code Coverage window If Lock Refresh has been selected the information is not automatically updated when program execution ...

Page 165: ...e Data dialog box Figure 5 81 Save Coverage Data dialog box Enter the name of the file where you want the information to be saved If the file name extension is omitted cov will automatically be appended as the extension If you specify an existing file name that file will be overwritten 5 11 13 Loading Code Coverage Information from a File You can load code coverage information files Selecting Load...

Page 166: ...An error message will appear if any other extension is entered The files you add will be listed in the Load Coverage Data dialog box The files will be loaded in the order in which they are listed If necessary use the Move Up or Move Down button to change the order CAUTION If the coverage information file you re loading is of the source file type you cannot specify an offset 5 11 14 Modes of Loadin...

Page 167: ...alog box To begin with select the Clear coverage RAM before loading checkbox 2 In the merge mode add the coverage file for test A 3 In the merge mode add the coverage file for test B 4 In the merge mode add the coverage file for test C 5 Click on the OK button You have now finished merging three files By re calculating the percentages in the Code Coverage window you can view the coverage as percen...

Page 168: ...rce mode the results of coverage are displayed in the Code Coverage column Rows of the Code Coverage column that correspond to source lines where the instructions have been executed are highlighted If the user changes any setting related to coverage information in the Code Coverage window the contents of the corresponding Code Coverage column will also be updated Figure 5 87 Example of code covera...

Page 169: ...ccess to data areas The emulator is capable of acquiring information on access per byte without causing program execution to break Therefore the realtime characteristic of user program execution will not be affected The coverage results are updated upon a break The E100 emulator comes with 512 Kbytes of data coverage memory With the initial settings the data coverage memory is automatically alloca...

Page 170: ...ocating Data Coverage Memory Hardware Resource 1 Memory allocation Before data coverage can be measured data coverage memory must be assigned to the target address range Coverage data can only be obtained from an address range to which memory has been allocated To allocate data coverage memory use the Allocation of Data Coverage Memory dialog box To open this dialog box select Hardware Settings fr...

Page 171: ...ess ranges prior to the change is retrieved from coverage memory into a dedicated coverage buffer Figure 5 91 Schematic view of a change in data coverage memory allocation Acquired coverage information is accumulated in the coverage buffer until it is cleared by the user However coverage information is not updated for areas to which coverage memory is not allocated The coverage information shown i...

Page 172: ...for which coverage is measured Access Rate Access rate as a percentage and graph The lower pane shows a detailed view of the address range selected in the upper pane Table 5 36 Contents of the lower pane of the Data Coverage window Address Address value Label Label name Area Memory area flash ROM RAM or SFR This column is blank when the area is unused Data Memory data Data that have been accessed ...

Page 173: ...ection for which coverage is measured Access Rate Access rate as a percentage and graph The lower pane shows a detailed view of the address range selected in the upper pane Table 5 38 Contents of the lower pane of the Data Coverage window Address Address value Label Label name Area Memory area flash ROM RAM or SFR This column is blank when the area is unused Data Memory data Data that have been ac...

Page 174: ...ure 5 94 Data Coverage window task stack specification The Data Coverage window is vertically divided in two by the splitter The upper pane shows the automatically registered task stacks and access rates Table 5 39 Contents of the upper pane of the Data Coverage window Task Task stack task ID and task entry label Access Rate Access rate as a percentage and graph The lower pane shows a detailed vie...

Page 175: ...dialog box Figure 5 95 Clear Coverage Range dialog box Enter the addresses where the range to be cleared starts and ends Clicking on the OK button then clears the coverage information for the selected range 2 Clearing all of the data coverage information Selecting Clear the Entire Coverage from the popup menu clears all of the data coverage information 5 12 8 Updating Coverage Information Selectin...

Page 176: ...e Save Data dialog box Figure 5 96 Save Data dialog box Enter the name of the file where you want the information to be saved If the file name extension is omitted cdv will automatically be appended as the extension If you specify an existing file name that file is overwritten 5 12 11 Loading Data Coverage Information from a File You can load coverage information files Selecting Load Data from the...

Page 177: ...og box to specify the coverage information file you want to load You can also specify a mode of loading and offset for each file you load The only file name extension allowed is cdv An error message will appear if any other extension is entered The files you add will be listed in the Load Coverage Data dialog box The files will be loaded in the order in which they are listed If necessary use the M...

Page 178: ...lative execution time the ratio of this to the overall execution time and the average execution time In function profiling by the E100 emulator execution times for subroutines are not included in the indicated cumulative execution time CAUTION A function profile is subject to the following limitations a Areas to be measured The E100 emulator can acquire profile information on all functions in up t...

Page 179: ...tion has returned to a function higher in the hierarchy of calls the number of calls cannot be measured for a function from which execution of the program started f Function measurement Accurate measurement requires that execution of the function remained in progress for at least 100 ns If this is not the case the execution time and number of passes may be incorrect g Debugging information option ...

Page 180: ...time the ratio of this to the overall execution time and the average execution time 5 13 2 Selecting a Realtime Profile Measurement Mode Choose Set Range from the popup menu that is displayed when you right click in the window The Realtime Profile Setting dialog box will be displayed In the Realtime Profile Mode list box of this dialog box you can select Function Profile or Task Profile When the p...

Page 181: ...n Function name Address Address where the function starts Size Function size Count Number of times the function has been called Time Cumulative time of function execution The timestamp is in the form shown below Hours minutes seconds milliseconds microseconds nanoseconds Statistic Ratio of the time for the given function to Go Break time Average Average of the execution times for individual passes...

Page 182: ...n be measured profile memory must be allocated to the addresses at which measurement will be performed Profile data can only be obtained from address ranges to which memory has been allocated You can specify any number of blocks 1 to 8 for a total of up to 1 Mbyte each beginning on a 128 Kbyte boundary as areas for profile measurement The blocks may be contiguous or non contiguous With the initial...

Page 183: ... an existing file name a message is displayed asking you to confirm whether you want the file to be overwritten 5 13 6 Loading Function Profile Measurement Settings You can load function profile measurement settings Click on the Load button of the Realtime Profile Setting dialog box and the Open dialog box will be displayed Figure 5 102 Open dialog box Enter the name of the file you want to load O...

Page 184: ...Table 5 42 Details on each column Block Block number Task ID Task ID entry address Count Number of times the task has been called Time Cumulative time of task execution The timestamp is in the form shown below Hours minutes seconds milliseconds microseconds nanoseconds Statistic Ratio of the time for the given function to Go Break time Average Average of the execution times for individual passes D...

Page 185: ...box 1 Automatic detection of tasks If you have downloaded a load module that includes an OS the E100 emulator automatically detects the tasks 2 Selecting tasks Select the checkboxes next to the IDs of tasks you want to measure by default all checkboxes are selected The selected tasks will automatically be assigned block numbers 1 8 CAUTION When the eight blocks have been used up the block number c...

Page 186: ...d task profile measurement settings Click on the Load button of the Realtime Profile Setting dialog box and the Open dialog box will be displayed Figure 5 105 Open dialog box Enter the name of the file you want to load Only files bearing the extension rpf can be loaded If you enter any other file name extension an error message will be output When loading of the file is complete the list of tasks ...

Page 187: ...As dialog box will be displayed Enter the name of the file where you want the results of measurement to be saved If the file name extension is omitted txt will automatically be appended as the extension If you specify an existing file name a message is displayed asking you to confirm whether you want the file to be overwritten 5 13 13 Setting the Unit of Measurement Choose Properties from the popu...

Page 188: ...times Resolution Maximum measurable time 10 ns Approx 3 hours 03 minutes 15 seconds 20 ns Approx 6 hours 06 minutes 30 seconds 40 ns Approx 12 hours 13 minutes 00 seconds 80 ns Approx 24 hours 26 minutes 00 seconds 160 ns Approx 48 hours 52 minutes 01 seconds 1 6 µs Approx 488 hours 40 minutes 18 seconds CAUTION Note that results of performance measurement carry an error equal to twice the resolut...

Page 189: ... counter for a section has overflowed Realtime profile overflow An error is detected when the maximum measurable time or maximum measurable number of passes is exceeded during profile measurement of a function or a task Trace memory overflow An error is detected when the trace memory has overflowed Task stack access violation An error is detected when one task attempts writing to the task stack of...

Page 190: ...the number of assigned blocks by using the Delete button before setting protection again Access attribute Read Write Write Read Only Violation detected Read Write Only Violation detected Read Disable Violation detected Write Figure 5 107 Patterns for detecting violation 5 Action taken when violation of access protection is detected The following actions are selectable Display a warning After the V...

Page 191: ...to set protection for an area 1 From the Hardware Break dialog box 1 Select the Exception checkbox on the Hardware Break sheet and then click on the Detail button Figure 5 108 Hardware Break dialog box 2 The Exception page shown below will appear Click the Detail button to the right of the Violation of access protection checkbox Figure 5 109 Hardware Break dialog box ...

Page 192: ...am is downloaded select the checkbox labeled Automatically set address areas at downloading Figure 5 110 Violation of access protection dialog box 4 Click on the Update button and the access attributes will be updated according to the section information in the downloaded module 5 To add an access attribute manually click the Add button The Access protection condition dialog box shown below will a...

Page 193: ...unctions R20UT3587EJ0302 Rev 3 02 Page 193 of 232 Sep 01 21 6 The protected area you have added will be displayed in the Address Areas list of the Violation of access protection dialog box Figure 5 112 Violation of access protection dialog box ...

Page 194: ...he Trace Mode drop down list of the Trace sheet select Fill around TP Select the Exception checkbox and then click on the Detail button Figure 5 113 Trace conditions dialog box 2 The Exception page shown below will appear Click on the Detail button to the right of the Violation of access protection checkbox Figure 5 114 Trace conditions dialog box ...

Page 195: ...d enable error detection in that area Detection circuit Comparison Has access proceeded in the order reading then writing Neither reading nor writing has proceeded at the location Error detected Figure 5 115 Outline of detection of reading from a non initialized area 2 Action taken when reading from a non initialized area is detected The following actions are selectable Display a warning When the ...

Page 196: ...oints to a location outside the stack areas Detection circuit ER7 value Compare Whether the value of ER7 points outside the stack areas Error detected Up to 4 stack areas Figure 5 116 Outline of detection of a stack access violation The emulator will detect the error if the value of the stack pointer is beyond the stack areas on 1 generation of an interrupt or return from an interrupt handler 2 ca...

Page 197: ...a condition of a hardware breakpoint Make the detection of a performance measurement overflow a condition of a trace point 5 14 7 Detecting a Realtime Profile Overflow A time or number of passes in realtime profile measurement coming to exceed the maximum value can be detected as an error Overflows of the counters for time and number of passes for realtime profiling are collectively referred to as...

Page 198: ...s been downloaded The emulator detects an error when one task attempts writing to the task stack for another task 1 Initial settings when the emulator is booted up At the time the emulator is booted up the checkbox labeled Automatically set address areas at downloading is selected flagged by a check mark However automatic selection does not proceed until a program is downloaded because there is no...

Page 199: ...to set a task stack area 1 From the Hardware Break dialog box 1 Select the Exception checkbox on the Hardware Break sheet and then click on the Detail button Figure 5 117 Hardware Break dialog box 2 The Exception page shown below will appear Click on the Detail button to the right of the Task stack access violation checkbox Figure 5 118 Hardware Break dialog box ...

Page 200: ...igure 5 119 Violation of task stack access dialog box 4 Click on the Update button and the task stack areas will be automatically set 5 To manually add a task stack area click on the Add button The Task stack access condition dialog box shown below will appear Specify any task ID and the address range of the corresponding task stack Figure 5 120 Task stack access condition dialog box 6 The task st...

Page 201: ...J0302 Rev 3 02 Page 201 of 232 Sep 01 21 2 From the Trace conditions dialog box 1 In the Trace Mode drop down list of the Trace sheet select Fill around TP Select the Exception checkbox and then click on the Detail button Figure 5 121 Trace conditions dialog box ...

Page 202: ...dialog box 5 14 11 Detecting an OS Dispatch This facility is only available when a load module that includes an OS has been downloaded The emulator detects the generation of task dispatch as an error 1 Action taken when an OS dispatch is detected The following actions are selectable Display a warning When the OS dispatch checkbox has been selected on the Exception Warning page of the Configuration...

Page 203: ...dialog box 5 15 2 Specifying the Work address Use this command to specify the address of a work area for use by a routine to run before the user program execution is started or after user program execution is stopped CAUTION The specified address must be in the RAM area and not used by the user program 5 15 3 Specifying the Routine to be Executed The routines to run immediately before starting and...

Page 204: ...errupts other than WDT are always disabled The table below shows which state the MCU will be in when the user program starts running after execution of a routine specified as a start function Table 5 45 MCU status at start of the user program MCU Resource Status MCU general purpose registers These registers are in the same state as when the user program last stopped or in states determined by user...

Page 205: ...nal is output when a breakpoint is encountered 22 A high level signal is output when a trace point is encountered 21 A high level signal is output when specific trace data is extracted or discarded 20 to 16 An event can be specified for each of the signals and a high level signal is output when that event occurs Output is at the power voltage level of the target system If the MCU in use has two po...

Page 206: ...Output Conditions from the View menu or click on the Trigger Output Conditions toolbar button Figure 5 125 Trigger Output Conditions dialog box Note that you cannot open the Trigger Output Conditions dialog box in either of the following cases EXT 0 31 INPUT has been selected on the System page of the Configuration properties dialog box An external trigger cable is not connected ...

Page 207: ...Output through Trigger Pins 31 to 24 Make the manual settings for output through trigger pins 31 to 24 on the Manual output page Figure 5 126 Trigger Output Conditions dialog box Manual output page 1 Display of output states Output contents Output contents indicates the current signal levels on trigger pins 31 to 24 H High L Low ...

Page 208: ...setting was L or H 3 Starting output of signals Click on the Output button to validate the settings and start output of signals 4 Saving output patterns You can save the settings on trigger pins 31 to 24 and reflect a saved setting as the Output setting This simplifies operations After making settings for an Output setting click on the Add pattern button The new setting will be added as the last l...

Page 209: ...o 21 These pins are always enabled Signals are output through these pins when the respective conditions are satisfied Table 5 47 gives details on how the conditions control output Table 5 47 Trigger Output Conditions and Output No Condition Output 23 A breakpoint is encountered Continued output of a high level signal is started 22 A trace point is encountered A high level signal is output only dur...

Page 210: ...format that is editable in Microsoft Excel Timestamps for up to 2 M cycles of trace data will be output to the file Each section is defined by two events start and end events and up to eight sections are specifiable Follow the procedure below to measure the execution times in a specific section of the program CAUTION This facility is only supported by command line operation To measure the executio...

Page 211: ... an option for Record condition You should specify extraction of trace data during the event No other conditions should be selected An example of a command that specifies Extraction and Duration of an event for the events set in step 2 is given below event_trace_acquisition apo ev1 ev2 ev3 ev4 4 Selecting an option for tracing Select Event number as an option for tracing Do not select any other op...

Page 212: ... Example Section 1 start 0x1000 end 0x10FF Within the acquired data an execution time is not given if a start event has no corresponding end event Section 2 start 0x2000 end 0x20FF Figure 5 128 csv file opened in Microsoft Excel The execution time in nanoseconds is saved in the file Example 1h 23 m 45 s 678 ms 901 s 234 ns 01 23 45 678 901 234 5025678901234 CAUTION Measurement of execution times i...

Page 213: ...s for ROM is not possible if emulation memory has been assigned to the corresponding area of internal ROM 5 19 Generating a State Where External Oscillation Has Stopped A command is available for generating a state where it appears as if external oscillation has stopped For the command line format see the online help system 5 20 Blank Checking for the Internal EEPROM A command is available for che...

Page 214: ...wer Supply View the Device setting dialog box of the emulator debugger 1 Check the operating environment of the emulator debugger See 5 1 Setting Up the Emulation Environment 2 Re install the emulator debugger View the Configuration properties dialog box of the emulator debugger See 6 3 2 On the system page of the Configuration properties dialog box does not appear in booting up of the emulator de...

Page 215: ...ugger software and refer to the instructions given therein see Figure 6 2 Error occurred during the self check test dialog is displayed Click on the OK button Check the log in the self check dialog box Refer to any instructions in the log Figure 6 2 Flowchart for checking of an error in self checking IMPORTANT Notes on Self checking Disconnect the MCU unit from a converter board and the user syste...

Page 216: ...ee 2 4 Connecting the Host Machine page 29 SAFE LED does not light up Re check the connection between the E100 and the MCU unit See 2 3 Connecting the MCU Unit to and Disconnecting it from the E100 Emulator Main Unit page 28 Target Status POWER LED does not light up Connected Check that power Vcc is being correctly supplied to the user system and that the user system is properly grounded GND Targe...

Page 217: ...e content of the E100 ENV file The combination between the emulator software and the MCU unit is not correct Refer to the release notes of the emulator software and confirm the combination between the emulator software and the MCU unit A timeout error The MCU is in the reset state Is system reset issued Check the oscillation of the oscillator module mounted on the MCU unit and confirm that the osc...

Page 218: ...the following URL then send the information to your local distributor https www renesas com contact For a prompt response please fill in the following information 1 Operating environment Operating voltage V Operating frequency MHz Clock supply to the MCU Internal oscillator External oscillator 2 Condition The emulator debugger starts up does not start up The error is detected not detected in self ...

Page 219: ...arget MCUs which can be debugged with the MCU unit Table 7 1 Specifications of target MCUs for the R0E417250MCU00 Item Description Applicable MCU series H8SX family H8SX 1700 series Evaluation MCU R5E61700 Applicable MCU mode Single chip mode On chip ROM enabled extended mode Supported MCU Series H8SX 1700 series with 1 Mbytes ROM 64 Kbyte RAM and 32 Kbyte data flash ROM Power supply voltage Vcc 3...

Page 220: ... the evaluation MCU and the user system 3 A D converter The characteristics of the A D converter differ from those of the actual MCU because there are a converter board and other devices between the evaluation MCU and the user system Note on RESET Input A low input to pin RESET from the user system is accepted only when a user program is being executed only while the RUN status LED on the E100 upp...

Page 221: ...PEN EXTAL RES Connected to the inside of the emulator VSL VCL EMLE OSC2 OPEN C AVCC0 AVCC1 AVSS VCC 33Ω AVCC0 AVCC1 AVSS 74S1053 STBY STBY VSL VCL EMLE OSC2 510kΩ VCC RES VSS VSS User system VCC VCC 510kΩ 510kΩ 1MΩ P1_0 P1_7 P2_0 P2_7 P6_0 P6_7 PA_0 PA_2 PA_7 PF_0 PF_7 PJ_0 PJ_7 PK_0 PK_7 MD0 MD2 MD0 MD2 510kΩ VCC VCC 510kΩ VCC P4_0 P4_7 P5_0 P5_7 P4_0 P4_7 P5_0 P5_7 P3_0 P3_7 PA_3 PA_6 PD_0 PD_7 ...

Page 222: ...R20UT3587EJ0302 Rev 3 02 Page 222 of 232 Sep 01 21 7 4 External Dimensions 7 4 1 External Dimensions of the E100 Emulator Figure 7 2 shows external dimensions of the E100 emulator H 132 mm D 184 mm W 73 mm Figure 7 2 External dimensions of the E100 emulator ...

Page 223: ...0TNPFK00 Figure 7 3 shows external dimensions and a sample pad pattern of the converter board R0E0100TNPFK00 for a 100 pin 0 5 mm pitch LQFP R0E0100TNPFK00 REV A CN1 1 50 51 100 CN2 1 50 51 100 MADE IN JAPAN 38 00 37 00 13 0 17 0 13 0 17 0 0 50 0 25 Unit mm 16 50 12 73 2 73 8 23 8 23 Figure 7 3 External dimensions and a sample pad pattern of the R0E0100TNPFK00 ...

Page 224: ...ppear Download the firmware following the message Do not shut off the power while downloading the firmware If this happens the product will not start up properly If the power is shut off unexpectedly re download the firmware Disconnect the MCU unit from the user system before you start downloading the firmware Notes on Self checking If self checking does not result normally excluding user system e...

Page 225: ...s to the areas will be ignored and values read will be undefined Note on Breaks The following break functions are available in the emulator debugger 1 Software break This is a debugging function which generates a BRK interrupt by changing an instruction at a specified address to a BRK instruction a dedicated instruction for use with the emulator to break a program immediately before the system exe...

Page 226: ...the FCU checkbox on the System page of the Configuration properties dialog box If the message The registers of FCU was manipulated by emulator is displayed debugging with flash ROM rewriting cannot proceed initialize the user program before running the program again Notes on Manipulation of Memory and Reading of Data from the Flash ROM and EEPROM When downloading of data or programming of the flas...

Page 227: ...d data from the flash ROM or EEPROM while the user program is running under any of the following conditions the fixed value FF is read out The operating frequency CPU clock frequency is below 1 MHz e g while the subclock is in use The CPU clock has stopped e g the emulator is in the standby or subsleep mode The emulator is in the reset state The emulator is waiting for release of the external bus ...

Page 228: ...harge will apply to our repair or replacement of the product Misuse abuse or use under extraordinary conditions Unauthorized repair remodeling maintenance and so on Inadequate user system or improper use of the user system Fires earthquakes and other unexpected disasters In the above cases contact your local distributor If your product is being leased consult the leasing company or the owner 8 4 R...

Page 229: ...equest Sheet downloadable from the following URL And email the sheet and send the product to your local distributor https www renesas com repair CAUTION Note on Transporting the Product When sending your product for repair use the packing box and cushioning material supplied with the MCU unit when it was delivered to you and specify caution in handling handling as precision equipment If packing of...

Page 230: ...iption Page Summary 3 01 Dec 01 15 3 Regulatory Compliance Notices changed 3 02 Sep 01 21 The statement of inclusion of an AC adapter was removed 4 Regulatory Compliance Notices changed 24 The specifications of the AC adapter were added ...

Page 231: ...E100 Emulator MCU Unit for H8SX 1700 Series User s Manual R0E417250MCU00 Publication Date Sep 01 21 Rev 3 02 Published by Renesas Electronics Corporation ...

Page 232: ...R20UT3587EJ0302 R0E417250MCU00 User s Manual ...

Reviews: