Home
Old Company Name in Catalogs and Other Documents
Contents
1. A M Shift Graphic M Ctrl G hFaaaaa queen i Waveform Shift Ctrl V L PP L A T Imv r n G t naQ v T _ as PV O
2. E 69 4 9 2 Go Reset Go Goto Cursor Set PC to Cursor Run 70 4 9 3 uua M J 71 AAO C SOURCE LEVEL DEBUGGING 72 SECTION 5 H8 300H FUNCTION SUPPORTELD 73 5 1 MCU OPERATING MODE SETTING 73 3 2 MEMORY 74 5 2 1 Ag ROM 74 5 2 2 Internal RAM Area a 74 5 2 3 DT CVI TI ATEO 74 5 2 4 9170 9191082 OG RCRUM 4 5 3 EOW PON EMOD 75 5 3 1 OTE SUA 75 33 2 Sleep and Software Standby 75 5 4 ONT P u gt EAER 75 5 5 CONTROL INPUT SIGNALS RES STBY 75 5 6 WATCH DOG TIMER 0404 75 5 7 INTEGRATED TIMER PULSE UNIT ITU AND TIMING PATTERN CONTROLLER TPO 76 5 8 SERIAL COMMUNICATIONS INTERFACE SC 76 5 9 DMA CONTROLLER 76 SU ID DI IL
3. Er OE mm X To set the debugging conditions or i download modules mE Hexadecimal 16 e E E L 1 2 H 004 EN CoU TE To open memory mapping window Resources for setting of the emulation memory resources O E 1 Reset the MCU and the PC to the reset vector address Start executing user code from the ceurrtentPC I Reset the MCU and execute user code _ from the reset vector Start executing the user program at the current PC until PC reaches address indicated by the current text 2 cumorposiion Set PC to address at row of text cursor Launches the un Progra
4. 33 HIGH PERFORMANCE EMBEDDED WORKSHOP WINDOW 34 HIGH PERFORMANCE EMBEDDED WORKSHOP WINDOW 36 EMULATOR 40 CONBIGUBEJDEATPORNI 40 SELECT ee Cr PIN C TION 4 VC 42 MAPPING OPTIONAL MEMORY SHOWN IN SYSTEM STATUS WINDOW 43 MEMORY MAPPING cc se 44 EDIT MEMORY MAPPING renra 44 FIGURE 49 FIGURE 50 FIGURE 51 FIGURE 52 FIGURE 53 FIGURE 54 FIGURE 55 FIGURE 56 FIGURE 57 FIGURE 58 FIGURE 59 FIGURE 60 FIGURE 61 FIGURE 62 FIGURE 63 FIGURE 64 FIGURE 65 FIGURE 66 FIGURE 67 FIGURE 68 FIGURE 69 FIGURE 70 FIGURE 71 FIGURE 72 FIGURE 73 FIGURE 74 FIGURE 75 FIGURE 76 FIGURE 77 FIGURE 78 FIGURE 79 FIGURE 80 FIGURE 81 FIGURE 82 FIGURE 83 FIGURE 84 FIGURE 85 FIGURE 86 FIGURE 87 FIGURE 88 FIGURE 89 FIGURE 90 FIGURE 91 FIGURE 92 FIGURE 93 FIGURE 94 FIGURE 95 FIGURE 96 FIGURE 97 FIGURE 98 FIGURE 99 MEMOR Y MAPPING ee ee 44 MAPPING RESOLUTION amp RANGE uuu l l i u E 45 NIRE m 46 DISASSEMBLY WINDOW MIXED 0 0020 47 48 REGISTER 48 49 STATUS MEMORY WINDOW cccccssccosccccsc
5. A X Force manual update of the content of all the opened Memory window Menu Option Shortcut Toolbar 2224 2 Debug Reset CPU Go E CU Rosct Co hift 1 Go To Cursor zi p HN cM AM gt _ E m 4 Shik AT m Step Step Mode Auto Assembly poe 8 Initialize Disconnect Download Module Unload Modules Y m3 reet 7077 MEE S S S ll 1 LZLOO oc eM sas M Compare x ic E0000 Refresh E 2 Appendix Technical Specification Physical Characteristics Item CE300H Main Unit Dimensions Weight Power Supply Adaptor Dimensions Weight Power Supply Adaptor Cable Length PC Interface Cable Length User Interface Cable Length Environmental Conditions Item Temperature Operating Relative Humidity non condensing Operating Corrosive Gas Electrical Characteristics CE300H Item Maximum Operating Condition Supply voltage Supply current Target Supply voltage Power Supply Adaptor Item Input Output F 1 tENESAS Specification 145 x 120 x 60 mm 1 x w x h IKg 85 x 45 x 35 mm 1 x w x h 0 2 Kg 1 8m 1 0m 0 3 m Specification 10 C to 35 C 30 to 85 None Specification 0
6. 81 82 RESETPRG C FILE AFTER RESET CP U 87 ING A BRENRPOBNT 88 PROORAM RAR uuu uu uu T 89 PLATFORM PAGE OF STATUS WINDOW 89 ESSA IB ORE U A m 90 POPUP MENUS IN EVENTPOINTS WINDOW 21 90 CPU REGISTERS WINDOW 91 CHANGING REGISTER 91 OPEN MEMORY WINDOW 1 0 testes tesis 92 MEMORY WINDON 92 INSTANT 93 b Wee IPS EE 93 AI II O C S m 94 V AT N TAI I ss secs gt E 94 SJ A U EAE A EN E A EEE EAA 95 SE ee EE 95 xi FIGURE 100 FIGURE 101 FIGURE 102 FIGURE 103 FIGURE 104 FIGURE 105 FIGURE 106 FIGURE 107 FIGURE 108 FIGURE 109 TABLE 1 TABLE 2 TABLE 3 96 BREAKPOINT SETTING DIALOG u uu l u u EE 97 I VENTPOINT S WINDOW 97 LO Au T Ce 98 N DON 99 TRACE 100 102 V INDON 102 CE PROGRAMMER WINDOW 103 CE OS AND LOGIC
7. 1 0 2 104 CE300H H8 3052 EMULATOR FUNCTIONS 4 TYPES OF BREAKS ENCOUNTERED DURING EMULATION 60 MCU OPERATING MODES uu luu asskaossususspayiepasisashaspayaykaqqpussupspasaawapqaqsssupashu apayhspus 73 lt lt Section 1 Introduction 11 Overview The CE300H H8 3052 Compact Emulator is one of the Renesas s Development Tool series It is produced as a cost effective easy to use support tools The CE300H H8 3052 Compact Emulator has an easy to setup USB 2 0 link and a common user friendly Windows based interface High performance Embedded Workshop Its flexibility is evident in its Programmable Function Generator PFG which allows user to select and download different emulation features It has a built in Self Test module that will inform user of its working condition through the LED indicator Moreover it has integrated a PinView module that allow user to have an instant graphical view of the microcomputer pins status The CE300H H8 3052 Compact Emulator can be used as a standalone unit for software development and debugging It can also be connected to a target system via a user interface cable for troubleshooting 5 hardware It is an indispensable tool that caters to the needs of an embedded designer CEA Figure 1 CE300H H8 3052 Emu
8. 33 4 1 oc 33 4 1 1 RETE 33 4 1 2 High performance Embedded Workshop 34 4 2 COMPILER CONFIGURATION amp DEBUGGER 5 55 36 4 3 Dili SIII E 38 4 4 CONNECTING amp DISCONNECTING WITH THE 39 4 5 EMULATOR 40 4 5 1 GALT 40 4 5 2 42 4 6 VIEWING OF PROGRA RR E 46 4 6 1 DONCEL OUO LEVE es a oe pete AME M 46 4 6 2 Diyas 47 4 7 NIC WOR ETA ORMA 48 4 7 1 VE j E ONE AEEA A EE EES AE 48 4 7 2 49 4 7 3 u 50 4 7 4 I l O MNT RE 52 4 7 5 E670 1181 1111917 SR IF uuu a 53 4 7 6 54 4 7 7 TD s 56 4 7 8 Da 59 4 7 9 Trace Function Trace Trace amp Events Break 63 64 65 67 4 8 MEMORY MANIPULATION EA RA ORES 68 4 9 EX CIUTIONORNICUICOP 69 4 9 1
9. 8 aum UT OG Rm 9 HEW DEBUGGER INSTALLER WELCOME SCREEN 9 SELECT DESTINATION DIRECTORY SCREEN 10 SELECT COMPONENTS laesae Ea Ie pc 10 SETUP DIRECTOR Y uu uu m 11 ATO NC OP EON a sesso ese atin 11 HEW DEBUGGER re 12 PowER SUPPLY PLUG 12 aren ee 13 J DD DI 14 JE o e u Uc 14 SELECTING THE USB DRIVER 2 0000 serene senes 15 WIN2K DRIVER LOCATION 15 WINX DRIVER LOCATION 16 SELECTED DRIVER FILE WINDOW 16 COMPACT EMULATOR USB DRIVER INSTALLED 17 DEVICE MANAGER 22 2 2 229 9 200899 2590590202500 29909002009 18 HIGH PERFORMANCE EMBEDDED WORKSHOP WINDOW 19 EXECUTE HEW DEBUGGER FROM START MENU 21 SELECT PLATFORM DIALOGUE
10. OSC1 and OSC2 A 2 434 NE S AS Appendix B User Connector Specification PART NUMBER KEL 1 27mm 50mil PITCH Plug 8830E 080 170S KEL Cable Assembly 8822E 080 171 030 AA LABELLING NOTE The pin assignement of the user connector in Appendix A refers to the definiation of the pins at the target side Capital letter but not the Compact emulator side Small Letter a b User is advised to refer to the cable assembly illustration to avoid confusion b40 Compact Emulator 40 Target bl Compact Emulator 1 Target a40 Compact Emulator B40 Target al Compact Emulator Target 3 i Polarity aw Polarity Tee oe cb I x at HX Cable gt for 20 32 36 40 52 ou 60 68 80 100 pins d Ai Cable 1 1 bi An 68 Az Cable 1 2 bz msn for 26 30 34 50 pins Cable 2 No 1 old Cable 2 No 2 1 1 E S bn 1 _ V HUE Bn an bn Bn Cable 2 No n B 1 DIMENSION Part Number 8830E 080 170S Unit mm inch Printed Circuit Board ol meer ms sim _ For 20 32 36 40 52 60 68 80 100 contacts e Connector Outline n 0 8 min 40 032 min EE e 4 oe n 6 42 i
11. Breakpoints e EV Breakpoints af 55 PC breakpoints in use of Z breakpoints in use of 2 breakpoints in use FFG Trace and Break Points Two Che Figure 58 Status Events window 51 434 NE S AS 4 7 4 PinView The pinview function allows user to have a graphical view of the microcomputer chip pins It can be activated in the break and user mode View CPU Pinview User can select different microcomputer packages to be displayed Options Emulator System in the initial setup stage PinView can only display a snap shot of the MCU Pin status at a regular interval Its performance is incomparable to the real time characteristic of an oscilloscope For slower PC user is advised to view the pin status in Tree form text form FF 11111111 FF 11111111 FF 11111111 FF 11111111 DF 00001111 YF 01111111 FF 11111111 TF 00011111 3B 00111011 FF 11111111 11111111 J RED HIGH GREEN LOW NOT MONITOR Figure 59 PinView Chip and Tree View This function will help user to debug the program when the target system is not ready e to debug the target system when it is connected to the emulator e to debug the target system connection when it is connected to the emulator 52 NE S AS 4 75 Monitor continuous The monitor window make use of the POTF mechanism to access the MCU memory during RUN The window provide a mean to have up
12. C 1 APPENDIX D CASING ASSEMBLY D 1 APPENDIX E SUMMARY OF HEW DEBUGGHER E 1 APPENDIX TECHNICAL SPECIFICATION F 1 APPENDIX FREQUENTLY ASKED QUESTION LS G 1 RENESAS TECHNOLOGY ASIA SALES OFFICES FIGURE 1 FIGURE 2 FIGURE 3 FIGURE 4 FIGURE 5 FIGURE 6 FIGURE 7 FIGURE 8 FIGURE 9 FIGURE 10 FIGURE 11 FIGURE 12 FIGURE 13 FIGURE 14 FIGURE 15 FIGURE 16 FIGURE 17 FIGURE 18 FIGURE 19 FIGURE 20 FIGURE 21 FIGURE 22 FIGURE 23 FIGURE 24 FIGURE 25 FIGURE 26 FIGURE 27 FIGURE 28 FIGURE 29 FIGURE 30 FIGURE 31 FIGURE 32 FIGURE 33 FIGURE 34 FIGURE 35 FIGURE 36 FIGURE 37 FIGURE 38 FIGURE 39 FIGURE 40 FIGURE 41 FIGURE 42 FIGURE 43 FIGURE 44 FIGURE 45 FIGURE 46 FIGURE 47 FIGURE 48 NE SAS Figures amp Tables 23052 EMULATOR usasqa xa 1 CE300H H8 3052 EMULATOR PACKAGE 2 BASIC SETUP CE300H H8 3052 60000000 000 0 00 8 COMPACT EMULATOR FRONT 42 0 06 66
13. Power Supply Target side Compact Emulator Figure 3 Basic Setup of CE300H H8 3052 Emulator The following topics detail the essential steps before proper emulation can be started Power Supply Input POWER Status LED RED Self Test Fail PC USB Connector GREEN Self Test Pass RED Power On ORANGE Self Test ORANGE PC Detection BLINK Self Test Cycle End Figure 4 Compact Emulator Front Panel lt NEC S AS 22 Installing HEW debugger software First install the HEW software from the installation disk proceed as follows e Insert the HEW debugger installation CD e Click CE300H exe to install CE300H HEW Debugger Or Choose Run from the Program Manager File menu Type CE300H and click OK the name of a program Folder document or Internet resource and Windows will open iE Far vou Cancel Browse Figure 5 Run Dialogue Box This will runs the HEW debugger installer and the following Welcome Screen will be displayed High performance Embedded Workshop 2 Setup Welcome to the InstallShield Wizard for HEW Pure Debugger for CESO00H H8 3052 Emulator The InstallShield Wizard wall install Debugger For CE 300H H8 3052 Emulator on your computer Ta continue click lt Back Cancel Figure 6 HEW DEBUGGER Installer Welcome Screen e Click Next to proceed with the installation and follow the on screen instruction
14. i uu u ui 22 HEW DEBUGGER WITHOUT TOOLCHAIN START UP MESSAGES 22 SEDECT T ts eee 23 DEBUGGER CONFIGURATION cccccsecccsccscccsccesccecceesceescesseesscusscenscessseescesscesseusceusseusseuscss 23 DEBUGGER SETTING SUMMARY aa neus ees dra diu supra Pe Seu aud 23 DEBUGGER SETTING SUMMARY ccccccssccsccscccscccscesccesceusceusscusccusceecsesscesseesceusseusseusseuscss 24 STEP 7 SELECTION 24 DEBUG SETTING WINDOW ABSOLUTE PATH 25 DEBUG SETTING WINDOW 26 CONFIGURATION 27 MEMORY MAPPING WINDOW a 29 EDITING THE MEMORY MAPPING 30 TARGET SUPPLY IN STATUS WINDOW 31 USER INTERFACE CABLE DIRECT CONNECTION 32 USER INTERFACE CABLE ACTUAL FOOTPRINT 32 HIGH PERFORMANCE EMBEDDED WORKSHOP WINDOW
15. set the Mode amp Clock signal to follow the target system or any options that is available in the selection The RES amp NMI pins are set to follow the target in default User can choose to mask these signals in the configure window STBY is masked in default 10 Why is STBY pin masked in default STBY pin will initialise some of the emulator registers Thus user is advised not to use the signal unless necessary 11 Why is C Level Stepping not possible If the disassembly window is opened the step in instruction will command a single step execution of the assembly code User has to close the disassembly windows This will inform the system to perform C Level stepping of the loaded C code 434 NE S AS 12 Why must the Programmable Function Generator PFG be programmed What is the PFG used for The PFG is implemented using a RAM based FPGA Thus it must be programmed when required functions is notthe default function The PFG is implemented for its flexibilities A single chip FPGA is used to implement the PFG which can be programmed to any functions that can help user to debug their target system Please feedback your needs to the design group so that more effective functions can be developed For CE300H a default function is preloaded at startup 13 Why is the state changes of port not reflected in the Pinview window The pinview module gives an snapshot of the microcomputer pins at constant interval It is not an
16. 76 76 2342 A DANDD A CONVERTER 76 O45 REFRESH CONTROLLER uu uuu akapa 77 SECTION 6 DIFFERENCES BETWEEN 8 300 MCU AND 78 6 1 78 6 2 78 SECTION 7 USER SYSTEM INTERFACE 79 SECTIONS TUTORIAL 83 8 1 OVER IEN 83 viii 8 2 TUTORIAL PROGRAM LISTING ccccsccscceccecceccecceccescescesccucenccsscsscescecuscescescescessessessctscescescesees 84 8 3 POR 86 8 4 DISPLAYING THE PROGRAM LISTING cccceccececeececcececcsceccecsccscscescsceececescsctscscscscescscescesscnceees 87 8 5 SETTING PC BREAKPOINTS csccescceccescceccecccescenccscenccuscceccesceescesceescesscescesccescesscescessceseeesens 88 8 5 1 Setting a Program Count PC 88 8 6 EXECUTING THE PROGRAM ccccsceccsceccsceccececcececcscsccececcscsccececescecesceceececescectscscscscescsceecesescnceses 89 8 7 REVIEWING THE BREAKPOINTS cccsccscescscecceccsccscescscescescecsccscescscssescescscesescescescssessencescseeses 90 8 8 EXAMINING MCU REGISTERS 9 8 9 EXAMINING MEMORY AND VAR
17. Address Instruction Code F ZW Status Source a 61 00000832 MOV L H OOOFDF1O ERO 7 00 60 00000834 00 59 00000836 d l 58 0000838 BERD R1 6301 57 0000083 1 1 051 56 00020710 0001 55 0000836 R1 BERO 6981 54 000008 5 H 0002 R1 7901 53 00020210 0002 52 00000840 0002 51 00000842 000 2 7 00 50 00000844 ooo 43 00000846 332 48 00000848 sort 8 5514 47 6 QO0008 4a OOOFDF1O ERO 7 00 46 0000085 0100 45 QOOFFEFO 0000 44 DDFFEFZ 4 43 00000860 5df6 00000862 ER7 ER6 DEEG OOOFFEEC 00 OOOFFEEE 00000864 3 24 5 00 00000866 00000664 ERA I ER 7 0100 OO et O Code count Code Code Code Code Data Code Code Sort sectionl ID Data Code Code Code Code Code Code count Code void sort list Data Data Code Code Data Data Code Code Code Ti 4 md md 5i ej mi tU td md 5d 5d fd n d mj nd d td d J a A Figure 105 Trace Window Adjust the width of each column by dragging the column dividers on either side of the labels just below the title bar 8 14 Save the Session Before exiting it is good practice to save the session so that debugging work can be resumed instantly with the same configuration at the next debugging session 100 NE S AS Section 9 Diagnostic The C
18. min list i idcode for j 1 1 list j idcode 0 j if list j idcode lt min list j idcode worklist 115 list i list k list k worklist break 85 434 NE S AS 8 3 Tutorial Setup The execution and setup of HEW is detailed in section 3 Thus these steps will not be fully illustrated in this section 1 Opentutorial workspace in install directory Tools DebugComp Platform EmulatorN CE3052A Tutorial 3052Mode7 hws NOTE On a first loading of the tutorial a dialog box prompting the move of workspace from previous installed directory is displayed Please click YES and the workspace would be configured to the current installed directory permanently 2 Activate Option Debug setting a Select CE300H H8 3052 Emulator as target platform b Select Elf Dwarf2 as debug format c Select install directoryN Tutorial 3052Mode7X Tutorial 30522Mode7XDebug CE300H H8 3052 Emulator CE3052 abs as the download module NOTE Since the output module name is not equivalent to the Project name or workspace name To use the relative path user can click on Configuration directoiry and key in CE3052 abs 3 Configure Platform H8 3052BF Mode 7 1OMHz all at default setting 4 Download the CE3052 abs via Debug Download Modules Now the platform is ready for the tutorial 86 lt lt 8 4 Displayin
19. Hes 300 m Tool chain DIGSSIM Debugger only Emulator Properties Cancel Figure 25 DEBUGGER without toolchain Start Up Messages e Select CE300H H8 3052 Emulator as the target 22 heu Project Sbep Figure 26 Select Target Click Finish New Project Step 8 Target name CE300H H8 3052 Emulator Configuration name Debug 300 8 3052 Emulator Detail options item Value Figure 27 Debugger configuration Project Summar PROJECT GENERATOR PROJECT PROJECT DIRECTORY C Program FilesSHES0_CE_PL SELECT TARGET S052 Emulator DATE amp TIME 11 3 2003 1 08 21 PM is Click to generate the project or Cancel to abort Generate Readme txt as summary file in the project directory cancel Figure 28 Debugger setting summary This will invoke the configure platform window as explain in 3 2 23 tENESAS 3 1 2 With Toolchain debug setting The steps of generating a workspace is detailed in the HEW user manual User may open the workspace directly or create a new workspace This section will focus on the steps required to instruct HEW to use CE300H as the target platform This is done in Options Debug Setting e Click on Create a new project workspace Mew Project Workspace Projects SEE workspace Hame Assembly Application CE 3200H T
20. Trace information is not acquired in sleep and software standby modes When restarting after a break the code after the SLEEP instruction will be executed 5 4 Interrupts During emulation the user can interrupt the H8 If an interrupt occurs while the emulator is in the break mode the interrupt is not processed However if an edge sensitive interrupt occurs while the emulator is in the break mode the emulator latches the interrupt and executes the interrupt processing routine when the Run command is instructed again Interrupt request is masked during single step 5 5 Control Input Signals RES NMI STBY The H8 input signals RES NMI and STBY are controlled by the emulator These signals can be masked by the HEW DEBUGGER In default the STBY signal is masked The RES signal is valid only when emulator enters run mode 5 6 Watch Dog Timer WDT The WDT operates during run mode emulation and does not operate when the emulator is in the break mode The timer is disabled at a break and enabled when emulation resumes 75 434 NE S AS 5 7 Integrated Timer Pulse Unit ITU and Timing Pattern Controller TPC The ITU and TPC operate during the command input wait state as well as during emulation i e the timer pins are valid even when the user program has stopped The user can rewrite the timer registers with the HEW DEBUGGER window or Memory window 5 8 Serial Communications Interface SCI The serial c
21. e Click Next to install into the default directory C HEW3 or specify an alternative directory by clicking on Browse button 434 NE S AS User may install this HEW debugger in the same directory as the previously setup HEW toolchain Make sure both are in the same version User may install the debugger into another directory and register this component into the other HEW tool adminstration menu Do not install a HEW toolchain over in the same directory the HEW debugger A new Toolchain can be installed if it is installed to another directory different from the toolchain directory and register either components to the respective HEW tool adminstration menu High performance Embedded Workshop Setup Choose Destination Location Select folder where setup will install Setup will install HEM Pure Debugger for CE 3000H H 82 3052 Emulator in the following folder install to this folder click To install to a different folder click Browse and select another folder Destination Folder C XHew3 Browse e held z Back Cancel Figure 7 Select Destination Directory Screen e Selectthe required components to be installed And click Next to proceed High performance Embedded Workshop Setup Select Components Choose the components Setup will install 40264 300H H8 3052 Debugger 13388 K Online Manuals 17303 F Description Browse InezhallShreld Spac
22. 1 Ox000fe 36a struct namelist 1 Ox000fe376 struct namelist count H HEF OxO00FdF1 0 4 A Watch A Watcha A Watcha Figure 97 Watch Window 94 tENESAS 8 10 Stepping Through a Program There is basically three types of step functions 8 10 1 Step In F11 Activate Debug Step In in C source level untill the PC execute step into the sort routine 5 steps 0 00000800 naini i 0000006906 count D 0 0000080 Lor p 1 0 00000810 zort section 0 00000815 Ox00000826 eort sectionl 0 00000832 0 0000083 sort sectionl ID 000084 00000 5 0 0000085 void sort lizst key namelist list short short 1 1 long min char name struct namelist worklist 0 00000870 ewitchikev Figure98 Step In The program stops at the first instruction of the sort routine 8 10 2 Step Out Shift F11 Activate Debug Step Out to execute the code until it is out of the current routine 1 step int count void sorti 0 00000800 DUM 0000080 count 0 0 00000890 for d s E og i 0 00000810 sorttsectionl 0 0000091 count 000000926 sortisectionl AGE 0 00000832 count 0 0000093 sortisectionl ID 000064 count 0 00000858 0000065 void zort i list key amp
23. Auto The execution mode will depend on the active window i e when step instruction is activated in a C Source window a C source level step will be invoked Source When Step instruction is executed user will see a C source level step i e a series of assembly code is run in the background Assembly When step is executed the current asembly code located at current PC will be executed The disassembly window will pop up if the current window is a C source window 71 lt lt 4 10 C source Level Debugging If user compiles and links the code with the Debug option enabled the ELF DW ARE2 abs file with the debugging information is generated This enables user to debug the code in C source level i e e Display code in C source level Step in out amp over code in C source level e View label e Goto label address e View local Instant add watches local and user defined e Stack Trace 72 lt lt Section 5 H8 300H Function Supported The CE300H H8 3052 emulator can support the H8 series of microcomputer The various functions support for the H8 are detailed below 5 1 MCU Operating Mode Setting The CE300H H8 3052 emulator supports the four operating modes of the H8 User can select the MCU operating mode via Option Emulator System window The following table shows the MCU settings mode wa Deeper we fo maa po mode we of
24. Cancel Figure 17 Win2K Driver Location 15 434 NE S AS e Win9x directory for Microsoft Window 98 274 edition ME operating system Locate File File name JezusbSk inf Network F Files of type Setup Information inf Cancel Figure 18 Win 9x Driver Location e Select the file available Found New Hardware Wizard Driver Files Search Results The wizard has finished searching for driver files For pour hardware device The wizard found driver for the following device y CE 300H H8 3052 Windows found a driver for this device install the driwer windows found click Next c hew3 taaolssrenesas sdebugcemp platform emulatarsce3052 drverswingk Vez lt Back Cancel Figure 19 Selected Driver File Window 16 e Click on Next to install the driver Found New Hardware Wizard Completing the Found New 55 Hardware Wizard Compact Emulator Windows has finished installing the software for this device To close this wizard click Finish lt Back Figure20 Compact Emulator USB Driver Installed e Click on Finish to complete the installation 17 tENESAS 2 7 PC USB Linkage Steps 2 5 Standalone Test tests the emulator functionality whereas the current step 2 7 confimed the PC amp emulator linkage Step 2 7 is a additional step to confirm the successful installation of USB driver in Step 2 6 Power up th
25. Figure94 Instant Watch dialog e Click Add button to add the variable to the Watch Window Type R section a 05000332 2 fenes name m MODE TID Y heel Ox000fe 33a short idcode OxO00fe 33c lena 1 Ox000fe340 1 struct namelist 1 O2000fe340 char 8 Ox000fe 348 short Ox000feS4a lona 1 DsDDDfe34e struct namelist 3 1 Ox000fe35c struct namelist 4 1 000 struct namelist 5 1 OxDODEe378 struct namelist 8 8 B 4 A Watch A Watcha Watcha Figure 95 Watch Window The symbol allow the expanded view of the variables 93 lt N SAYS A variable can be added to the Watch Window by specifying its name Use this method to add a Watch on the variable count as follows e Right click within the Watch window and choose Add Watch from the pop up menu Variable or expression coun Cancel Figure 96 Add Watch Dialog e Type the variable count and click OK E A section 1 0 000 2232 struct namelist B O 1 0 000 332 struct namelist B name 00002332 1 char 8 age H HEF 4 33a short idcade 1 Ox000fe 33c lori 1 Ox000fe340 struct namelist name 1 Ox000fe340 8 age H HEF 1 00002348 short idcode 1 ODDO Ee 34a lonia 1 Ox000fes4e struct namelist 1 Ox000fe35c struct namelist
26. PFG ID Passed Read Passed On chip ROM Passed Mapping Memory Passed v Dual Port RAM Passed Firmware Memory Passed soi Passed M Cllueite IOCTL Passed Read IOCTL Passed Diagnostic Passed Xllconnected 2 Write IOCTL Passed Read IOCTL Passed Diagnostic Passed CE3852 1 SS EE DR PAstart 1 ca sho g zanamce E Bae 2 57 Figure 107 Diagnostic Window NOTE The diagnostic test will clear all memory contents 102 434 NE S AS Section 10 Emulator Upgrade The emulator can be upgraded to support new features or devices whichout sending the tool back to the service centre At HEW startup the Debugger will check on the OS amp Logic revision of the emulator If it is a older version the debugger will request the user to upgrade the emulator User are required to activate the CE Programmer to upgrade the system The CE Programmer is located in the CE Programmer sub directory of the directory where HEW DEBUGGER is installed Installed dir V Tools V Renesas DebugComp Platform EmulatorV 052 CE Programmer 1 Simply click on the CE Programmer exe to activate the programmer exit HEW 2 Re Power up the emulator and connect the USB cable This is to ensure that the emulator is in the correct state be
27. and run time can be observed User can also view and edit the memory contents in the internal ROM RAM SODIMM or external memory area This process is refered as Parallel On the Fly POTF RUN STEP Figure 39 High performance Embedded Workshop Window lt NE S AS 4 1 2 High performance Embedded Workshop OO Menu b x Title bar 2 0 m i Toolbar AT 2 2 dt e Debua 3052 gt 3052 T Ps amp amp amp 8 window 00000002 E 00000004 00000006 00000008 0000000 0000000 0000000 00000010 s 00000012 5 H FFFF23 8 R5H 00000014 H EO R2L 00000016 881 H 1F R L 00000018 B48 Connected Output window Xl nadress Data 21500000000 00 00 00 00 00 00 86 AC 7C 86 66 86 AD 25 Ready ims Figure 40 High performance Embedded Workshop Window The key features of HEW DEBUGGER are described in the follo
28. so Reset Temporary Breakpoints 00000810 Lancel Figure 78 Program NOTE 1 Goto Cursor will not halt if the running program never executed the code at the cursor Stopping of the execution 1 possible via ESC key 2 Run the temporary PC breakpoint will be cleared after the completion of the current execution 70 434 NE S AS 4 9 3 Single Step There are four types of Single Step e Step In Step Out amp Step Over e Step e Step Mode Auto Assembly and Source Single Step executes the instruction at the current program counter If an interrupt is asserted the interrupt service routine will not be serviced unless a Go command is issued Step In will execute a single instruction only For C source file a single step will execute a single C source code Whereas for an assembly file a single step will execute a single assembly instruction code Step Out executes till it has branched out of the current routine Step Over executes a function call and any function call called by the function and halt at the next instruction Step will execute multiple Step in as specified by the user The delay enable a visual view of the code running sequence Sheps Delay seconds 2 5 seconds Step Over Calls Source Level Step Cancel Figure 79 Step program Step Mode setting decide on how the step instruction operates
29. 227 Read Me Software Distribution Client startup F T User Manual Figure 23 Execute HEW DEBUGGER from Start Menu 3 1 Creating the workspace Unlike the past GUI whereby the activation of the GUI will link up the GUI with the emulator instantly user need to initialize the HEW debugger before the linkage can be achieved This step is to create a workspace to inform the HEW enviroment what type of tool is to be used This will enable user to have the same setup workspace at the following activation of the tool Since it is possible that user do not have any installed toolchain there will be two different possibilities when the workspace is being set up Toolchain is a HEW component that enable user to create compile and link a project 21 434 NEC S AS 3 1 1 Without Toolchain If no toolchain is installed the linkage between the emulator and the HEW debugger is still possible e Click on Create a new project workspace Options Create a new project workspace Cancel 2 Open a recent project workepace Administration ha amp os Browse to another project workspace Figure 24 Select Platform Dialogue Box e Select a directory and key the workspace name as required Mew Project Workspace Projects Workspace Name Project Hame 00H Directory C Program Files HE V 30 CE PLIRE DEBLIE Browse CPLI Farnily
30. 227 000 Code 226 OOOO09RS ER1 ERO 1 9 Code 225 OOOFFED2 0000 Data 224 00 4 0014 Data 223 BH A OE 8 qeza Code a nd n f f fu ocu fu oj on om m um us mi Figure 71 Trace 63 434 NE S AS 4 7 10 Stack Trace The Stack Trace window can be selected if only debug information has been supplied Stack Trace window shows the function call history 4P StackTrace Kind Hame Value namelizt zhort i 0000008970 list 000 ERS lLlistruct namelist key 0001 R4 short 1 0668 1 OsO00ffeda izshort 0000 x ffed8 short H e332 1 x ffed amp short min 0472000 1 0 000 i longi 0 000 0000 0 000 worklist i 0 000 struct namelist 3 i 0 00000832 1 Reset i 0 200000416 L L L L L L TE Figure 72 Stack Trace The following items can be displayed Kind Indicate the symbol type F Function P Function parameter L Local variable Name Indicate the symbol name Value Indicate the value address and symbol type At default the function parameter and local variable are not displayed To enable all the items right click in the Stack Trace window and select View Setting 64 NE S AS 4 7 11 Image The imag
31. 8 9 1 Viewing Memory The contents of a block of memory can be viewed in the Memory Window For example to view memory Click on View CPU Memory e Enter the start and end address or symbol name and relative range B egin z End Format Byte 1 Display Value s ANSI character Bytes Count For One Line 16 Byte Figure 92 Memory Window e Click OK to open the Memory window showing the specified memory area 40 1 2 2 4 45 e OxOOFFEO1Z ll au D aun au au OO ez au au D au au au OxOOFFEOZ2 au 33 au D au au au au au 44 au au au SZ au au D au au au 00 au au D au au au OxOOFFEO42 00 au au D au au au OxOOFFEO44 au au D au au au OxOOFFEOSS au au au aun au au 5 nri nri nri nn nn nn 4 Figure 93 Memory Window 92 lt NE SAS 8 9 2 Watching Variables It is useful to be able to watch the values of variables as the program is being stepped Right click on the variables section in main source file and select Instant Watch The Instant Watch dialog will be displayed Instant Watch H 0 Ox00ffe012 struct nan Hl 1 05002020 struct na 2 Ox00ffeO2e struct nan 31 f nef nrEsnme L zB k
32. 81 All Port Pins Analogue Pins RESET NMI STBY MD 0 2 EXTAL MD 0 2 RESO Target Vcc The pull up resistor location is specified as follow Port The resistor packs connection Pin CO NI ON OT HB GO NT e Resistor Pack Port Signal Numbering User Vcc 3 4 7 10 1 5 QO NO ON Px0 2 Px 3 Px 4 Px 5 Px 6 Px 7 Bottom View of Emulator Figure 83 Resistor Pack Position 82 NE S AS Section 8 Tutorial The following describes a sample debugging session designed to introduce the main features of the CE300H H8 300H emulator used conjunction with the High performance Embedded Workshop HEW software The tutorial is designed to run in the CE300H emulator s resident memory so that it can be used without connecting the CE300H emulator to any external user system User has to setup the tool as stated in section 1 and 2 before the tutorial can be begun 8 1 Overview The tutorial is written in C source code This program is an infinite loop that sort elements based on NAME in the alphabetical order and AGE and ID in the numerial ascending order The tutorial is provided on the installation disk as the project file Tutorial 3052Mode7 The generated output in install directoryNV Tools Renesas DebugComp Platform Emulator V CE3052 N Tutorial 3052Mode7 are Motorola S Record C
33. Data Compare Sequence v Compare None Either value f Channel THEM Channel 2 Channel 2 THEN Channel 1 i ai rite Channel AND Channel i i i Number of Times to Skip m H 0001 Remaining Hoon pana Figure 70 2 Breakpoint Setting Note To activate the IF THEN or AND condition first event must be set before setting the sequence condition for the second event 62 434 NE S AS 4 7 9 Trace Function Trace Trace Events Break There is no permanent trace provided However user can download the Trace Function into the PFG to keep track of the program The Trace provided is a 256 cycles trace The Trace function will display the last 256 cycles of information upon encountering a break condition In each trace cycle the available displayed data are e 24 bit Address e 16 bit Data e Read Write e MCU status e The Executed Code C or assembly oo FTR Address Instruction Code B W Status SOUrCe Lahel 237 00000924 Code 236 00000926 MULSS W EO ERO 0150 Code l 235 00000908 5290 Code 234 0000090 ADDL ERS Code 233 O00009DC H OO08 16 ER0 0 Code 23A 000009 0008 Code 231 000009 0 5 1 ERO l7 U Code 230 OOOFES7 2 OOla Data 229 000009 1 A H FFE6 16 ER6 ER1 0100 Code 228 000009 4 Code
34. accidental misuse abuse neglect corruption misapplication addition or modification or by the use with other hardware or software as the case may be with which the product is incompatible No warranty of fitness for a particular purpose is offered The user assumes the entire risk of using the product Any liability of Renesas is limited exclusively to the replacement of defective materials or workmanship DISCLAIMER RENESAS MAKES NO WARRANTIES EITHER EXPRESS OR IMPLIED ORAL OR WRITTEN EXCEPT AS PROVIDED HEREIN INCLUDING WITHOUT LIMITATION THEREOF WARRANTIES AS TO MARKETABILITY MECRCHANTABILITY FITNESS FOR ANY PARTICULAR PURPOSE OR USE OR AGAINST INFRINGEMENT OF ANY PATENT IN NO EVENT SHALL RENESAS BE LIABLE FOR ANY DIRECT INCIDENTAL OR CONSEQUENTIAL DAMAGES OF ANY NATURE OR LOSSES OR EXPENSES RESULTING FROM ANY DEFECTIVE EMULATOR PRODUCT THE USE OF ANY EMULATOR PRODUCT OR IT5 DOCUMENTATION EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES EXCEPT AS EXPRESSLY STATED OTHERWISE IN THIS WARRANTY THIS EMULATOR PRODUCT IS SOLD AS IS AND YOU MUST ASSUME ALL RISK FOR THE USE AND RESULTS OBTAINED FROM THE EMULATOR PRODUCT iii tENESAS State Law Some states do not allow the exclusion or limitation of implied warranty or liability for incidental or consequential damages so the above limitation or exclusion may not apply to you This warranty gives you specific legal rights and you may have other rights which may va
35. and optional SIMM memory module produced only by Renesas System Solutions Asia Pte Ltd excludes all subsidiary products The user system or a host computer is not included in this definition Purpose of the Emulator Product This emulator product is a software and hardware development tool for systems employing the H8 series microcomputer This emulator product must only be used for the above purpose Improvement Policy Renesas System Solutions Asia Pte Ltd hereafter collectively referred to as Renesas pursues a policy of continuing improvement in design performance and safety of the emulator product Renesas reserves the right to change wholly or partially the specifications design users manual and other documentation at any time without notice Target User of the Product This product should only be used by those who have carefully read and thoroughly understood the information as well as restrictions contained in the user s manual Do not attempt to use the product until you fully understand its mechanism It is highly recommended that first time users Be instructed by users that are well versed in the operation of emulator product tENESAS LIMITED WARRANTY Renesas warrants its products to be manufactured in accordance with published specifications and free from defects in material and or workmanship The foregoing warranty does not cover damage caused by fair wear and tear abnormal store condition incorrect use
36. s semiconductor products Renesas assumes no responsibility for any intellectual property claims or other problems that may result from applications based on the examples described herein 2 No license is granted by implication or otherwise under any patents or other rights of any third party or Renesas 3 MEDICAL APPLICATIONS Renesas Technology s products are not authorized for use in MEDICAL APPLICATIONS without the written consent of the appropriate officer of Renesas Technology Asia Sales company Such use includes but is not limited to use in life support systems Buyers of Renesas Technology s products are requested to notify the relevant Renesas Technology Asia Sales offices when planning to use the products in MEDICAL APPLICATIONS Figures Some figures in this user s manual may show items different from your actual system Limited Anticipation of Danger Renesas cannot anticipate every possible circumstance that might involve a potential hazard The warnings in this user s manual and on the emulator product are therefore not all inclusive Therefore you must use the emulator product safely at your own risk tENESAS PREFACE About this manual This manual explains how to setup the Compact Emulator for usage of the H8 3052 series microcomputers Operation using Renesas High performance Embedded Workshop pure debugger software 15 also detailed in the context Section 1 Introduction Gives an introduction to
37. 3 to 7 0V 2 6A maximum 0 3 to 7 0V Specification 110 230V 47 63 Hz 4 75 5 25 Volt 2 6A 5 overload lt lt Appendix G Frequently Asked Questions WHY DIDN T THE CLOCK INPUT TOGGLE IN THE PINVIEW WINDOW CAN CE WORK WITH OTHER USB DEVICES WHAT IS POTF WHAT CAN IT DO HOW TO DISABLE THE POTF FUNCTION HOW TO MINIMIZE THE INTRUSION OF THE POTF HOW MUCH CURRENT WILL THE EMULATOR DRAW FROM THE TARGET SYSTEM 7 WHY IS THE PROGRAM HALTED AT AN ADDRESS THAT IS NOT SPECIFIED IN THE PRESET COMBINATION BREAKPOINT 8 WHATIS THE CABLE IN N SIGNAL USED FOR 9 HOW ABOUT MODE CLOCK RES NMI amp STBY SIGNALS HOW DOES THE EMULATOR CONTROL THESE SIGNALS 10 WHY IS STBY PIN MASKED IN DEFAULT 11 WHY IS C LEVEL STEPPING NOT POSSIBLE 12 WHY MUST THE PROGRAMMABLE FUNCTION GENERATOR PFG BE PROGRAMMED WHAT IS THE PFG USED FOR 13 WHY IS THE STATE CHANGES OF PORT NOT REFLECTED IN THE PINVIEW WINDOW 14 WHY CAN T THE TWO MBYTES OF OPTIONAL MEMORY BE UTILIZED FULLY 15 WHY IS THE HEW DEBUGGER RESPONSE SLOWED DOWN WHEN WINDOW IS OPENED 16 WHY CAN T THE WORK AS ACCORDINGLY 17 WHY IS THE SELECTION OF TARGET CLOCK NOT AVAILABLE IN THE SYSTEM SETUP WINDOW 18 WHY CAN T THE PC BREAK STOP THE RUNNING PROGRAM 19 WHY IS THE DOWNLOAD SPEED OF CE BECOME SO SLOW SUDDENLY gt 5 gt 1 Why didn t the clock input toggle in the PinView window The PinView window
38. H 0 26 0 27 e m m T E m 8 9 DMAC CHANNEL OB 81 13 DMAC CHANNEL 1 1 13 DMAC CHANNEL 18 9 FLASH 71 D A CONVERTER 4 Figure 66 Input and Output Register 58 4 7 8 Break Functions Various breakpoints setting is discussed as follow View Project Options Build Debug Memory Tools Command Line Workspace 28 Output Disassembly CPU Symbol Eventpaints Graphic d Trace Stack Trace Figure 67 View Code Breaks are events used to intercept the normal program execution when a specific condition is matched There are six types of break in CE300H In general these break functions can be classified into two main classes namely Hardware Event Software PC break For Hardware Event break the preset break condition will cause the break event to occur after an instruction is executed For Software PC break the break condition causes the break event to occur before the break condition 59 Table 2 434 NE S AS Types of Breaks Encountered During Emulation Types of Break Event Break Hardware Break PFG Break Hardware Break PC Break Software Break User Break Hardware Break Reserved Area Break Hardware Break Write Protect Break Hardware Break Description A break occurs when the CPU matc
39. INT 000005 INT ADI 0000085 sort abort sbrk 00000 H 000 00000 46 00000 64 00000 8 0 0 19 3 3 odd to loopl H ooooocco 0 4 copy odd word even to even loone Figure 62 Label NOTE When a label values match an operand the corresponding instruction s operand is replaced by the label If two or more labels have the same value the earlier label alphabetical order will be displayed 55 4 7 6 2 Watch User will has to add the variable into the watch window H f103 Ox000Fd 610 t Ox000fe332 1 1 050002332 1 05000 340 1 05000 4 1 05000 36 5000 int struct namelist E struct namelist struct nametist struct namelist struct namelist struct namelist R i 000 struct namelist Figure 63 Watch R indicates the realtime status of the watch variables This is enable in be selecting Auto Update when right click on the window NOTE 1 The variables can be displayed only if debug information is included in the absolute file abs The variables have not been excluded after the compiler optimization The variables are not cleared as macro When realtime R monitoring is activated realtime emulation is not p
40. administration window for verification e Activate HEW e Click on the Administration button when the Welcome window pops up after HEW is activated or click on the pull down button Tools V Administration e Click on the to expand the tree to view the detail components Tools Administration Registered components Version a Toolchains S lt H85 H8 3DD Standard Toolchain 0 2 E System Tools Register rz Utility Phases B cd D ebugger Components Unregister File ET Event View Generic Image wiew EA COSE discs Generic View EL Generic Label View E To information Generic Locals View EC DUNS Uninstaller Show all components Current HE tools database location C Program Files HEw 30 PURE_DEBUGGER Modify Figure 2 High performance Embedded Workshop Window In this example the following components are installed CE300H H8 3052 Emulator Target System 85 H8 300 Standard Toolchain This is just an example showing the co existance of a toolchain and a debugger The CE300H Debugger installer will not install the H8 Toolchain If user has installed the component e g CE300H Debugger in a separated directory from the current activated HEW directory user may register the component to the current setup so as to use all components together The component information is sto
41. be viewed using the Local Variables Window e Open the Local window by choosing View Local Note There will be no display of local variales in the Local Window if there is no local variable declared or local functions have not yet been entered In another words user target program execution should halt within the specific function with the local variables in order to examine its local variables In this tutorial the local variables of function sort will be shown in Locals Window when the execution halts within the function sort e Click on the symbol to display the individual elements of the arrays Value Type Ox000fes32 1 ERS struct namelist 1 0 0002332 struct namelist Naoko 00002332 0011 Ox000fe33a short 00000442 00 1 0002 short 0868 000 short 0000 Ox000fed short 0004 Ox000fed6 short 0000001 000 2 0s000fe36a 000 Ox000ffecO 1 struct namelist Figure 104 Locals Window 99 434 NE S AS 8 13 Using the Trace Buffer The trace buffer allows the review of the executed code till abreak condition is matched The trace buffer will display the captured bus cycle and decode the data in the trace window e Open the Trace Window by View Code Trace The Trace window is displayed as shown in the following figure D xl
42. d m Empty Application Import Makefile Library Directory Program FilessHEWS0O_ PURE_DEBUE Browse CPU 85 8 300 Toal chain Properties Figure 29 Debugger setting summary e The subsequent steps are not illustrated until step 7 e Select CE300H H8 3052 Emulator as the target Mew Project Step F Target type z Back Finish Cancel Figure 30 Step 7 Selection of Target 24 lt NE S AS e Complete the workspace setup and click on the Finish button Unlike the HEW without Toolchain this will not activate the Configure Platform window This will lead the user to the HEW interface whereby user can edit the generated code Once the project is compiled correctly user will be able to debug the code in the emulator Goto Options Debug Setting Select Target as CE300H H8 3052 Emulator Select Default Debug Format as Elf Dwarf2 Add Download Modules Debug Settings SessionCE 300H H8_3052_Emul Target Options s Tutorial_3052Mode Target CE300H H8 3052 Emulator Default Debug Format El Dwart2 Cancel Download Modules Format Offset Address Form 2 C Program Files 00000000 EI D Eit Dwarte emove Filename C Program Files HEw 30 LE PIRE DEBUG p Browse ACCESS size 1 Download debug information onl
43. following setting is fixed for each workspace created Device mode amp package However the other components of the configure window can be changed in the later part of the emulation This can be found in Options Emulator System Configure Platform E E CPU Control User Reset Enable Device H amp B 3 52BF User NMI Enable Made single chip advanced User STBY Enabl nable Clock 0 000 MHz E Illegal Access Break Enable Package 008 Expansion Memory Control eS logic Channels Extended Memory Map Configuration Change Z Threshold Free running Timer Resolution 20ns j LIV ec Threshold 3 30 V 7 5x Driver Driver USB Driver Paes Figure 33 Configuration Window 3 2 1 Device and Package Selection User has to select the desired device and package The selection will determine the mapping window setting The package selection will also determine the type of graphical display in the pinview window 3 2 2 Operating Mode Selection Depending on the device selected the modes available for the device will be selectable Target Mode will be selectable if target system CABLE_IN_N is detected Low is connected NOTE For ROMless mode operation user has to make sure that external memory is connected before any emulation can occur If user s target system is not ready user may ma
44. limited to the following H 000000 H 100000 H 200000 400000 H 600000 800000 00000 H C00000 H E00000 Oo LB2 2 Mbytes LB3 2 Mbytes LB4 2 Mbytes Figure 50 Mapping resolution range 4 4 45 SBO 64 kbytes H 000000 H 010000 020000 030000 H 040000 H 050000 H 060000 H 070000 080000 090000 0 0000 H 0B0000 H 0C0000 H 0D0000 H 0E0000 H 0F0000 434 NE S AS 4 6 Viewing of Program Programs can be viewed as Source Code level C or assembly language Disassembly level assembly language Mixed level C and assembly language 4 6 1 Source Code level Users may click on the file located in the workspace window to view the source code However this is merely in editor point of view Users have to download the code to the emulator Once the code is downloaded user can observe that address values have appeared in the source address column of the source file NOTE When a break condition occurred during a running program HEW will open up the source code or disassembly window 1 If the source code information is not available the disassembly window will be opened 2 If the downloaded project is a Elf Dwarf2 based file and the project has been moved from its orginal path the source file may not be automatically found In this case HEW will open a source file browser diaglog box requesti
45. ocsilloscope that can snap signal as fast as 2ns It is a tool used to help user to have a feel of the status of the microcomputer pins It will be very helpful when it is at static state User can track any discontinuity in the emulator to target connection 14 Why can t the two Mbytes of optional memory be utilized fully The two Mbytes of optional memory consists of 4 x 512Kbytes of memory Each memory is selected based on the upper address Thus if user intends to use the whole memory at a starting address that is not multiple of 512Kbytes user will not be able to utilize the full memory capacity e g if the external address begin at 20000 However if external address begin at H 0 as in the ROMless mode user will be able to map the whole 2Mbytes space H 0 to H 1F FFFF 15 Why is the HEW DEBUGGER response slowed down when I O window is opened Unlike other windows I O window requires much more communication between the PC and the emulator in order to obtain the required I O data Thus user is advised to close the I O window if it is not used 16 Why can t the OTP work as accordingly User has to note the differences as stated in the user manual such as the initialization of registers SP the delay of signals about 4ns of cabling delay the unused pins OSC1 OSC2 CVCC the regenerated power supply for emulator the smoothed main clock signal 17 Why is the selection of target clock not available i
46. reads the pins status from the emulator at a constant interval Thus there is a possibility that it always snaps the same level from the chip 2 Can CE work with other USB devices CE can work with other USB devices If another hub is used CE must be the last device to be plugged in NE S AS 3 What is POTF What can it do stands for Parallel On The Fly It can read or write memory while the user program is running In this way user can have the instant view of the outcome of the executing program In order to access these memory the emulator will stop the running program for a short interval approximately 150 ns for a word access 4 How to disable the POTF function As long as the user do not modify the memory contents or perform a refresh memory window command POTF function will not be activated to intrude the real time operation of the user program 5 How to minimize intrusion of the will be activated based on the HEW DEBUGGER commands such as memory edit or refresh If several memory windows are opened HEW DEBUGGER will read back all the windows content Thus user is advised to open the memory window at minimal size in order to avoid unnecessary intrusion 6 How much current will the emulator draw from the target system The emulator will not consume the target system supply It will generate an user VCC for internal usage which has an identical level as the target system power
47. sectionl count sortisectionl countt sortisectionl Figure 85 Setting a Breakpoint The dot will be displayed there to indicate that a program breakpoint is set at that address 88 434 NE S AS 8 6 Executing the Program To run the program from reset e Click on Debug Reset Go Or e Debug Go Since reset has been executed The program will execute up to the breakpoint that has been set and a yellow arror will indicate the new PC location void sort 0 00000800 maint j 1 lt 00000806 amp count 0 0 0000080 tor i 0 00000810 sortisectionl 0 00000815 00000826 sortisectionl AGE 0 00000832 0 00000893 sortisectionl Figure 86 Program Break To vieew the tatus of the emulation Click on View CPU Status Platform Connected to Emulator for 3052 Family CPU Made T Clock 10 000 MHz Last Break Cause Elapsed Bum Time D 0005 SOD IMA Connected Ser cable Unconnected CPU status ddrezz accessed Figure 87 Platform page of Status Window The status show break cause PC break Elaspsed Run Time 89 N S lt SASSA 8 7 Reviewing the Breakpoints The list of all the breakpoints set in the program can be viewed in the Eventpoints window Choose View Code Eventpoints zu 222230 ETT S
48. supply 7 Why is the program halted at an address that is not specified in the preset combination breakpoint The emulator will break out of the user code execution once it has detected the preset condition However the emulator will not stop execution immediately as it has to complete its current tasks thus the code will not break at its preset address Another point to note is the prefetch condition if the preset condition matches the prefetch instruction the emulator will also enter the break mode The worst case scenario is if a break condition is set at the beginning of subroutine B which codes are stacking behind subroutine A A break condition will happen when subroutine A is called This is due to the prefetching of subroutine B code when subroutine A is returning to the main routine 8 What is the CABLE_IN_N signal used for This signal is used by the emulator to identify target connection When CABLE_IN_N is lo the emulator will know that target is connected and the power supply will be switched to follow the target power supply 9 How about Mode Clock RES NMI amp STBY signals How does the emulator control these signals Generally the emulator will control all the above signals The only uncontrollable item will be the target power supply The emulator will track and follow the target supply level once the cable is detected User has to set the above signals in the HEW DEBUGGER setup configure platform window User
49. truct namelist list short short i j k Figure99 Step Over The program stops in the main routine a instruction just after the first sort routine 95 434 NEC S AS 8 10 3 Step Over F10 Activate Debug Step Over to execute the code 2 steps It can be observed that the sort routine is being executed step over without entering into the routine int count void sort 0 00000800 maint 1 0 00000806 count 0 0 0000080 For om m 1 0 00000910 eort zectionl NAME 0 0000091 count 000000926 eort zsectionl AGE 000000932 0 0000093 sort sectionl 0 00000945 countt 00000 5 0 0000095 void gort lizt key struct namelist list short i short i j k long min char name Figure 100 Step Over The program stops at the instruction after the secondsort routine 96 lt NE S AS 8 11 Using the Hardware Breakpoint The PFG Breakpoint allows user to halt the program based on several conditions matching at the same time such as address data 8 11 1 Defining a PFG Breakpoint e Click View Code Breakpoint Setting Right Click at the breakpoint window and select Add to define a new breakpoint e Add the PFG break at address H 870 within the sort routine Breakpoint Setting Type Address PC Break Address Range EV Break Address Lo PFG Break AccossHi 400000870 Data Compar
50. 1 1 ZH FE332 ERU sort Disassembly Window mixed display 434 NE S AS 4 7 MCU related information The MCU information can be monitor amp control under the view menu View Project Options Build Debug Memory Tools Window Help Disassembly Chto Command Line Ckri L Ed Workspace xl Output Symbol k Memory IO Ctrl I EH Status Ctrl U T Ctrl F ode Monitor 4 9 Monitor Setting Shift Ctrl E Graphic SA Monitor Setting ShftiCuhE Windows Select Figure53 View CPU 4 7 1 Registers User can access these registers directly through the Register windows during break mode only Register Value 00020045 H OOFESOOO 0000051 H OOOFFESC 00000001 H g zzea H g gsp3ss H ooo400 H ES 1 Figure54 Register 48 lt NE S AS 4 7 2 Memory User will has to set a pre define address range to be monitor before user can access the memory through the memory windows The memory window will not refresh constantly by itself The access methodology is different when emulation is in different mode Run or Break More memory functions are explained in Memory manipulation 77 US Cancel 000000 Format Bute x1 Display Value ANSI character Bytes Count For One Line 16 Byte Figure55 Memory 4 7 2 1 Para
51. 3 2 5 1 13 2 6 INSTALLING THE A SMBI RUNE m 14 2 7 I 18 2 8 HEW 19 2 9 SETUP COMPLETION 20 SECTION 3 EMULATION SYSTEM SETUP FOR DEVELOPMENT 1 2 21 3 1 CREATING THE WORKSPACE ssccevactindenisassacsnacisnedeasanessenaatiedeadoasusentaukiideuasas aoe tadmousicedoansnatadeoutvenaeion 21 3 1 1 Na 22 3 1 2 With Toolchain debug setting 24 3 2 CONFIGURE THE FLA TTORM 27 3 2 1 DEVICE and Selco ON u aaa 3 2 2 u 22 3 2 3 css ee Ge bine 28 3 2 4 User Signal Masking Control RESET NMI amp STBY 28 2 20 llegali Access Break 28 3 2 6 Downloading of Emulation Function Programmable Function Generator 28 3 3 MEMORY MAPPING uu uu acne 29 3 4 CONNECTION TO TARGET SYSTEM uuu a au ua u Vae naa Y Ba txE 31 3 4 1 SUI L RIOS E 31 3 4 2 Types of 32 SECTION 4 PERFORMING EMULATION
52. 839 Fax 65 6278 8001 Fax 65 6278 1226 Email contact singapore renesas com North Asia Headquarters Hong Kong Renesas Technology Hong Kong Ltd 7 F North Tower World Finance Centre Harbour City Canton Road Hong Kong Tel 852 2265 6688 Fax 852 2375 6836 Email contact hongkong renesas com ASIA SALES OFFICES China Renesas Technology Hong Kong Ltd Shenzhen Representative Office Unit 1511 12 Shun Hing Square Di Wang Commercial Centre 5002 Shennan Road East Shenzhen City 518008 China Tel 86 755 8246 1711 Fax 86 755 8246 1728 Email contact chinagrenesas com URL http www cn renesas com Renesas Technology Shanghai Co Ltd 26 F Ruijin Building No 205 Maoming Road S Shanghai 200020 China Tel 86 21 6472 1001 Fax 86 21 6415 2952 Email contact chinaQrenesas com URL http WWW cn renesas com Renesas Technology Shanghai Co Ltd Beijing Office Room 1654 Office Building New Century Hotel No 6 Southern Rd Capital GYM Beijing 100044 China Telex 210509 HTCBJ CN Tel 86 10 6849 2430 Fax 86 10 6849 2819 Email contact chinaQrenesas com URL http www cn renesas com Taipei Renesas Technology Taiwan Co Ltd effective July 1 2003 FL 10 499 Fu Hsing N Rd Taipei Taiwan Tel 886 2 2715 2888 Fax 886 2 2713 2999 Email contact taiwan renesas com URL http www tw renes
53. E300H H8 3052 emulator is designed to have all possible protective measures but it is still subjected to damage by user system or other unforeseen means The 8 3052 emulator has two built in test modes Standalone Test and HEW DEBUGGER Diagnostic Both tests have the same test procedures in which all the internal functions and pins are tested thoroughly 91 Standalone Self Test The test is implemented to allow user to have a quick check of the hardware before linking it to the PC This will help user to isolate the cause of the PC communication problem The testing steps are e Power on the CE300H H8 3052 emulator the POWER LED lights up in RED e Ensure the USB cable is not connected between the PC and CE300H H8 3052 emulator e Wait for 3 minutes e The emulator will enter Self Test mode POWER LED changes from RED to ORANGE colour After the tests are completed about 2 minutes the POWER LED will start to blink whereas the adjacent RUN LED will light up in RED if the self test fails However if the self test passes the RUN LED will not light up NOTE During the self test the RUN LED will be turned on to GREEN occassionally This merely indicates that the emulator is in RUN mode 101 lt NE S AS 9 2 HEW DEBUGGER Diagnostic Test An alternative is to use the built in test in the HEW DEBUGGER with the following steps 1 Open any workspace which can link to CE300H emulator select View TCL Toolk
54. E3052 mot and Elf DWARF2 CE3052 abs 83 8 2 Tutorial Program Listing The Tutorial can be classified in four main parts i Header lt NE S AS include machine h include string h define lt 5 0 define short 1 define ID short 2 define LENGTH 8 struct namelist char name LENGTH short age long idcode struct namelist section1 I Naoko 17 1234 Midori 22 8888 19 7777 Eri 20 9999 26 3333 0 0 int count void sort main count 0 for sort section1 NAME count sort section1 AGE count sort section1 ID count 84 iv Subroutine void sort list key struct namelist list E short key short i j k long min char name struct namelist worklist switch key case NAME for i 0 list i name 0 i name list i name for j 1 1 0 j if stremp list j name name lt 0 name list j name worklist list i list i list k list K worklist break case AGE for i 0 list i age O i min list i age for j 1 1 1 0 if list j age lt min list j age worklist list i list i list k list k worklist break case ID for i O list i idcode O i
55. H OOOTFFFF On chip H OOFFFFZ0 to H OOFFFFFF Internal H OOFFDF1O to H OOFFFFOF On chip RAM System Memory Resources Optional Memory Bankl Unavailable Optional Memory Bankz Available Optional Memory Bank3 Available Optional Memory Bankd Available Memory Loaded Area Figure 46 Mapping of Optional Memory Shown in System Status Window 43 NE S AS To changed the setting e Option Memory memory mapping window click on Modify Memory Mapping Mapping 00000000 OOOFFFFF On Chip Read only OOFFOFOF External Guarded Chip Read write QOOFFFFIF External Guarded gt OOFFFFFF On Chip Read write Figure47 Memory Mapping Key in the desired address at From and To Edit Memory Mapping From 00080000 Setting nulator Aead write Cancel Figure 48 Edit memory Mapping e Select the attribute at the Setting Memory Mapping Memory From Tao Mapping 00000000 Emulator Head write 00090000 OOFFOFOF External Guarded OOFFOFIO OOFFFFOF On Chip Read write OOFFFFIF External Guarded OOFFFF20 QOFFFFFF On Chip Read write Figure 49 Memory Mapping Users are advised to check for successful mapping in the Memory Mapping window 44 tENESAS For CE300H H8 3052 the memory mapping resolution allowed is
56. IABLES ccsccsccecceccescescesccnccsccsccsccuscescescescescencessesscuscescascescs 92 8 9 1 L l E 92 8 9 2 2 2 93 8 10 STEPPING THROUGH A PROGRAM ccccccescosccsccnccescescescescescescescenccuscescescesceecescessesscusctscescescess 95 enn 95 95 ELSE 0 96 8 11 USING THE HARDWARE 00000000000 000000000000 97 BICAKPOU uma 97 RI WATCHING LOCAL VARIABLE 99 8 13 USING THE TRACE BUFFER 100 6 14 SAVETHBSESSION 100 SECTIONS DIAGNOSTIC 101 9 1 STANDALONE SELF 101 9 2 HEW DEBUGGER DIAGNOSTIC TEST ccceccsccsccscesceccsccscesceccsccsccscescecescescescscessencescasens 102 SECTION 10 EMULATOR UPGRADE 103 SECTION 11 TROUBLE SHOOTING 105 APPENDIX USER CONNECTOR PIN ASSIGNMENI A 1 APPENDIX USER CONNECTOR SPECIFICATION B 1 APPENDIX USER CONNECTOR PIN LA YOUI
57. P91 0 92 RxDOUPO2 2 B 19 B 18 IROSSCKMPOS PAO TPO TENDO TCLKA PA1 TP1 TEND1 TCLKB IRQ7 PC7 VSS 1 When target is connected user has to Ground the pin CABLE IN 2 EXTAL Pin can only accept Oscillating Clock 3 User Pins Not available are FWE XTAL OSC1 and OSC2 lt lt User Connector 2 Pin Assignment Column Pin Description B 40 8 B 39 22 B 38 0 2 A 37 0 2 P17 A7 Description Heset out P53 A19 LA 9 PM B 19 B 18 B P tBREQ ys x SS 8 0 37 __ 35 14 39 13 _ Log CUN Lar 32 12 3 30 10 9 9 234 2 28 _ 28 26 _ 25 _ 25 _ _24_ 24 _ 29 _ LA O O A P35 D13 P36 D14 sss x SS SS S s SS SS VSS ss VSS PG _ A B 6 P 2R2 A 5 B 5 Jona 4 2955 VSS P50 A16 P51 A17 L8 52 18 1 When target is connected user has to Ground the pin CABLE_IN_N 2 EXTAL Pin can only accept Oscillating Clock 3 User Pins Not available are FWE XTAL
58. PU Access Read Write The break condition occurs in a AND condition If any of the factors defined are not fulfilled the particular break condition will be ignored A 0 in address mask is to ignore the particular address bit Breakpoint Setting 3 Address PC Break Address Flange f EV Break Address Break Address Mask 000000 CPU Access Execution Data Read Data Write Data Read Write Cancel Figure 68 Breakpoint Setting 4 7 8 2 PFG Function Event Breakpoint Trace amp Event Break Two event breakpoints can be downloaded into the PFG The PFG Event Breaks have the following conditions e Address e Data e Access Read Write Breakpoint Setting 4 E x Address C PC Break Address Range EV Break Address Lo PFG Break AddessHi Data Compare Compare Value Mask 0000 Cancel Figure 69 PFG 1 Breakpoint Setting 61 tENESAS 4 7 8 3 Function Event Breakpoint Sequence Event Break Two event breakpoints can be downloaded into the PFG The PFG Event Breaks have the following conditions e Address In Range or Out of Range e Data compare e Access Read Write e Event counts e Sequence Then AND Breakpoint Setting i X Address PC Break Address Range Trigger when EV Break Address Lo oic PFG Break Address Hi Out of Range i i i i
59. Single Step Functions Breaks Programmable Function Generator PFG 1 Trace Event Breaks tENESAS Specifications Modify and display MCU registers Assemble instruction mnemonics Dis assemble memory contents Radix Bin Octal Dec Hex ASCII input Loading and saving of session Reset MCU Go at current PC Reset Go Go to Cursor 2014 Kbytes internal ROM max Device dependent 32 Kbytes internal RAM max Device dependent Provision of 4 banks of selectable optional memory block 2Mbytes SODIMM Not in Package Copy Search Fill Load and Save memory functions Memory can be edited and viewed in ASCII Byte Word Long Single Float Double Float format Memory viewing and modification during user program execution Step In Step Out Step Over PC breakpoints max 255 Reserved Access Break Write Protected Break User break by ESC key Two Events breaks address address mask access User configurable emulator functions Current function includes PFG 1 256 cycles of Trace Buffer amp 2 channels of Address Data Mask Breakpoints PFG 2 2 channels of sequence event breaks Trace memory size 64 bit x 256 bus cycle Signals displayed of each bus cycle 24 bit address bus o 16 bit data bus o Displays mnemonics of instructions executed during emulation Filter and search for specified trace information address or data Save Trace data into ASCII format Two event breaks are provided to
60. To our customers Old Company Name in Catalogs and Other Documents On April 17 2010 NEC Electronics Corporation merged with Renesas Technology Corporation and Renesas Electronics Corporation took over all the business of both companies Therefore although the old company name remains in this document it is a valid Renesas Electronics document We appreciate your understanding Renesas Electronics website http www renesas com April 1 2010 Renesas Electronics Corporation Issued by Renesas Electronics Corporation http www renesas com Send any inquiries to http www renesas com inquiry 24 NE S AS 10 11 12 Notice All information included in this document is current as of the date this document is issued Such information however is subject to change without any prior notice Before purchasing or using any Renesas Electronics products listed herein please confirm the latest product information with a Renesas Electronics sales office Also please pay regular and careful attention to additional and different information to be disclosed by Renesas Electronics such as that disclosed through our website Renesas Electronics does not assume any liability for infringement of patents copyrights or other intellectual property rights of third parties by or arising from the use of Renesas Electronics products or technical information described in this document No license express implied or otherwise is granted he
61. a prefix is omitted the values are input and displayed indecimals Specifies the width and height of the image to be displayed partly When a prefix is omitted the values are input and displayed indecimals colour 66 NE S AS 4 7 12 Waveform The waveform window displays an waveform based on the MCU memory data The waveform attribute is determined by the following setting Waveform 256 d Maveform Properties 1 Data Address 192 Data Size Time I WL 2 25 320 448 512 Buffer Size H 00001 024 gt Figure 75 Waveform NOTE The Auto Refresh refers to the automatic refresh of memory data to the graphical display after a break condition occurred 67 CENESAS 4 8 MCU memory manipulation General supported functions are e search e fil e refresh e save in File menu e verify in File Menu Memory Data display format can be in e Byte xl e Word x2 e x4 e Double x8 Memory value display format can be in e ANSI character e unsigned char e signed char e unicode character float e double e 16 bit fixed e 32 bit fixed Memory Tools Window Help Search comprare om Fill S Test Refresh B Configure Overlay Figure 76 Memory Functions NOTE User has to set the bus state controller correctly before the external memory c
62. an be accessed These functions can be applied on all the three memory type of the emulator namely On Chip Memory internal e Optional SODIMM Memory 2Mbytes SRAM e User Target Memory 68 lt N S lt SASSA 49 Execution of MCU Code The MCU executes the user code either or STEP modes Debug Memory Tools Window Help f Reset CPL Go F5 Reset Go Shift F5 En Cursor I Set PC To Cursor Run H Step In Fil P Step Over F10 Step Gut Shift F11 Step Step Mode Assembly E Halt Program Source Initialize Disconnect Download Modules Unload Modules Figure 77 Debug Functions 4 9 1 Reset CPU When RESET CPU command is activated the following actions will take place PC Power on Reset vector value ER7 no change ERO 6 no change CCR no change The microcomputer is reset i e all internal peripherals registers will be at default state 69 434 NE S AS 4 9 2 Go Reset Go Goto Cursor Set PC to Cursor Run Real time execution Debug by the H8 chip based on the user setting There is no cycle steal during the execution mode unless user activates the refresh memory command Memory Refresh Auto Update the watch window activate the monitor window The command will cause the HEW Ddebugger to steal a cycle from the running chip in order to access the memory Parallel on the Fly Program Counter
63. annels Integrated 256 Cycles of Bus Trace and Two Event Breaks 2 Sequence Break Two Channels Two Sequence Event Breaks Select PFG Function E Xx Choose function Break Points Twa Channels Trace Break Points Two Channels Sequence Break Two Channels Programming the PFG will take about 30 seconds Programming PFG Trace will cause all PFG Breakpoints ta removed Cancel Figure 44 Select function For the details of each Break capability refer to the following Break discussion More functions will be generated at a later date Please approach the relevant Renesas Technology Asia Sales Office for further information 41 434 NE S AS 4 5 1 6 User Vcc Threshold setting This is set to monitor the voltage level of User VCC Target Power Supply If User Vcc fall below the preset threhold level during execution the emulator will halt the running code At startup the preset value is 3 3Volts The status window will display the read value of User Vcc Figure 45 UVCC in status window 4 5 2 Memory Mapping 4 5 2 1 Usage Once the device and operating mode are selected the default memory mapping will be set The main objective of memory mapping is to instruct control the emulator to have correct memory access namely e Internal memory Internal ROM RAM IO e Emulator memory SODIMM normally used when target external target memory is not available e Externa
64. as Electronics does not warrant that such information is error free Renesas Electronics assumes no liability whatsoever for any damages incurred by you resulting from errors in or omissions from the information included herein Renesas Electronics products are classified according to the following three quality grades Standard High Quality and Specific The recommended applications for each Renesas Electronics product depends on the product s quality grade as indicated below You must check the quality grade of each Renesas Electronics product before using it in a particular application You may not use any Renesas Electronics product for any application categorized as Specific without the prior written consent of Renesas Electronics Further you may not use any Renesas Electronics product for any application for which it is not intended without the prior written consent of Renesas Electronics Renesas Electronics shall not be in any way liable for any damages or losses incurred by you or third parties arising from the use of any Renesas Electronics product for an application categorized as Specific or for which the product is not intended where you have failed to obtain the prior written consent of Renesas Electronics The quality grade of each Renesas Electronics product is Standard unless otherwise expressly specified in a Renesas Electronics data sheets or data books etc Standard Computers office equipment
65. as com lt NE S AS Renesas System Solutions Asia Pte Ltd
66. ccscccsccssccsscesscccscccsccesccccescesccecceseccsecesscessccesceescs 50 STATUS PLATFORM WINDOW uuu a aasan eese Ens deer cud 51 EVENTS WINDOW 51 PIN VIEW CHIP AND TREE VIEW J uuu u u u 52 MONITOR WINDOW 53 VH N MNT 54 EAB n MP 55 56 57 57 INPUTAND OUTPUT REGISTER 58 VIEW CODE apace vtec 59 BREAKPOINT SETTING uu ul ese 61 PFG BREAKPOINT SETTING 61 PFG BREAKPOINT SETTING u sediou res eerren NEN AEO NAE NESKEN EEE EENEN 62 E P v H H 63 AUT TRUE 64 NIEN OPAPP SENTIR a 65 By nu 0 m 65 O PA m 67 MEMORY TON TON 68 DEBOG PONC ION 5 a m 69 70 iM LI 71 BASIC BUS CYCLE TIMING IN EXPANDED MODE 80 BASIC BUS CYCLE TIMING IN EXPANDED 90 INTERFACING
67. communications equipment test and measurement equipment audio and visual equipment home electronic appliances machine tools personal electronic equipment and industrial robots High Quality Transportation equipment automobiles trains ships etc traffic control systems anti disaster systems anti crime systems safety equipment and medical equipment not specifically designed for life support Specific Aircraft aerospace equipment submersible repeaters nuclear reactor control systems medical equipment or systems for life support e g artificial life support devices or systems surgical implantations or healthcare intervention e g excision etc and any other applications or purposes that pose a direct threat to human life You should use the Renesas Electronics products described in this document within the range specified by Renesas Electronics especially with respect to the maximum rating operating supply voltage range movement power voltage range heat radiation characteristics installation and other product characteristics Renesas Electronics shall have no liability for malfunctions or damages arising out of the use of Renesas Electronics products beyond such specified ranges Although Renesas Electronics endeavors to improve the quality and reliability of its products semiconductor products have specific characteristics such as the occurrence of failure at a certain rate and malfunctions under certain use cond
68. date of memory data at constant preset interval Moreover the changes in data value will be highlighted with a change in colour Monitor Setting monitor Address Size byte 0020 Access Format ASCII Auto Refresh at rate ms 2 00500 Reading the Initial Value Color Change Indicator Charne Foreground Background 0 00000000 02 0 00000008 02 Detail OxOO000010 09 ce 2000 4 85 2258 DETAIL WOT Detail 0 00000018 04 m Figure 60 Monitor window 53 434 NE S AS 4 7 6 Symbol This enable easy monitoring of declared variable in the asembly or C files If debug information is not included the Watch and Local sub menu will not appeared View Project Options Build Debug Memory Tools Window Help Disassembly Command Line workspace AIEK Tel Output Symbol E Labels Shift CtrH A Code watch Graphic Fal Locals ShiFt Cktrl w Figure 61 View Symbol 54 NE S AS 4 7 6 1 Label When debug information is included detail of all labels will be displayed in the Label window User can add new label into the window for simple reference too 21815 Address 000005 _INT_TEIO 00005 _ 00005 INT 1 00005 _INT_TXI1 00005
69. e Compare Value Mask 0000 Cancel Figure 101 Breakpoint Setting Dialog e The Eventpoints window show the new breakpoint that have been defined z E ap Action Enable PC H n n S8 ces sSz c 458 main Stop by PC Break BUE Enable Address H n n s7u by FFG Break Channel l 4 4 e f Break Figure 102 Eventpoints window 97 program from current position Debug Go Execution will stop as below a Disassembly bz void sort list key amp ort 100 0000086 OFFS ER ER6 00000854 4 regzvs 3 2937001 001 RY 0000086 85 ERU ERE 008 0014 4 b3 struct namelist liszt short short i j k long min char name struct namelist worklist switch key 00000870 0040 k4 00000872 OCOD ROH ROH 00000874 58600358 H OBRDO 16 2800 H OO ROL 4710 8 00087 01 ROL 000087 58700114 BEQ H O996 16 00000882 ASO2 02 Figure 103 Break The program will halt at the next assembly code location The system status window will display Last Break Cause PFG Break 98 lt lt 8 12 Watching Local Variables The localised variables within a function can
70. e w Z Threshold Free running Timer Resolution os os Lec Threshold 3 30 V 5 Driver Driver USE Driver 5 Cancel Figure 43 Configure Platform 4 5 1 1 User Reset Enable When Disabled user reset will be masked ignored Normally Enable 40 434 NE S AS 4 5 1 2 User NMI Enable When Disabled user NMI will be masked ignored Normally Enable 4 5 1 3 User Standby Enable This is to mask the standby signal Normally Disable If this signal which has the highest priority is enabled and asserted the emulator will not be able to overtake the control of the MCU unless the signal is de activated 4 5 1 4 Illegal Access Break Enable This enables user to ignore the access error and continue emulation usage is for temporary use of the internal ROM space for read write access 4 5 1 5 PFG selection This allows user to download the desired emulation function during debugging Options Emulator System At the power up state A default function is loaded in the PFG i e PFG Break and Trace function User can select another function to be download The PFG function can only be download during break mode To access the function after downloading user has to open up the break or trace window The programmed function will remain in the emulator as long as it is not powered down Currently the available functions are 1 Trace amp Break Points Two Ch
71. e Available on 46373376 lt Back Cancel Figure 8 Select Components 10 lt NE S AS e Click Next to install the selected components into the default directory High performance Embedded Workshop Setup Start Copying Files Review settings before copying Files Setup has enough information to start copying the program files IF you want to review or change any settings click Back IF vou are satisfied with the settings click Next to begin copying files Curent Settings lt Component gt High performance Embedded Workshop 3 8 3052 Debugger 3 sT aals Henesas Online Manuals SH annuals ce z Back Cancel InetallShteld Figure 9 Setup directory e Click Finish to complete the installer process High performance Embedded Workshop 2 Setup E InstallShield Wizard Complete Setup has finished installingHE ww 2 Pure Debugger for 8 3052 Emulator on your computer amp Back Zarmel Figure 10 Installation Completion 11 2 3 Installation Details The installer creates the following Renesas High performance Embedded Workshop k Renesas High performance Embedded Workshop 2 Pure Debugger F Fe Renesas High performance Embedded Workshop Pure Debugger st High performance Embedded workshop 3 Help Accessories ZJ High performance Embedded Workshop 3 Read Manual Navigator 4 High
72. e emulator and link the emulator to the PC window via the USB cable Within a second the window will recognize In USB term Enumeration the emulator and load the correct driver to communicate with the emulator Observation i The emulator red Power LED will become orange in colour ii Window will detect the device Compact Emulator CE300H USB Interface pr Mill Batteries m Computer Disk drives p fa Display adapters DYDICD ROM drives Human Interface Devices Sy IDE controllers 1 4 IEEE 1394 Bus host controllers Infrared devices Keyboards 47 Mice and other pointing devices ea Modems 18 Monitors HF Network adapters PCMCIA adapters i Ports amp LPT p Sound video and game controllers System devices Universal Serial Bus controllers Compact Emulatar CE3Q00H 58 InterFace Generic USB Hub Intel tr 82440 USB Universal Host Controller USE Rook Hub H H H A Figure 21 Device Manager The above step will confirm the correct linkage of the emulator and the PC window 18 lt NE S AS 2 8 HEW Tools Administration HEW has numerous components In this session HEW CE300H debugger component is installed onto the basic HEW interface which may already reside in users PC To verify that every components are installed correctly to the same HEW system user can activate the HEW tools
73. e window displays an image based on the MCU memory data The image attribute is determined by the following setting View Project Options Build Debug Memory Tools Window Help Disassembly Command Line e Workspace Joel Output CPU Symbol IO Ctrl I Code graphic Shift Ctrl 6 Waveform ShifE CErI v Figure 73 View Graphic Image Properties 2 xj Color Information Mode 22 Sampling 444 v BGR C YCbCr Format chunky Y Buffer Infomation Data Address 00001 000 Palette Address 00004000 Width Height Size Pixel Sbit Index Color 4 d Buffer Size a 128 H O0004000 Byte 128 Height View Information r View Position Full Size Position Part Size Position 0 Width 0 Height Cancel Bottom Start Position 3 idth Height SizelPivel Figure 74 Bitmap 65 NE S AS The Image Properties dialog box is used to specify the display method of the Image window The following items are to be specified Colour Information Mode Bit Pixel Sampling Buffer Information Data address Palette Address Wifth Height size Width Pixel Height Pixel Buffer Size View Information View module Start Position Position Widt
74. es 28 2 2 3 0 1271005 955 20009120000 0 050 0 00 HS 0 1 0 0 004 _ 0 15 8 0 006 LE Outline 5 0 8 min 60 032 min jh dem 54 Joe stc CC TNI 2 023501 n 1 2740 05 6 i 2 0 091 0 004 0 050 0 00 5 EE _ 0 0 1 0 0 004 B 0 15 B 0 006 29 2859 25 w Polarity identification Recommended PCB Thickness t 1 6 0 19 0 063 0 007 m is number of contacts X X Cross Section sist a ed Polarity identification 2 2 3 2 0 091 1 410 055 2 SIDE VIEW View at X Connector 1 Connector 2 _ x 1 ZEN a View at X View at X a40 540 AVcc AVss B40 40 AVcc AVss a39 039 AVss AVcc B39 A39 AVss AVcc a38 038 AVss Vref B38 A38 AVss Vref a37 b37 WDTOVF Vss B37 A37 WDTOVF Vss PC6 PC5 6 5 Vss PC7 Vss PC7 NC NC NC NC NC NC 1 lt lt Appendix Casing Assembly 3mm Screws For fastening PCB to casing Connection to optional memory SODIMM 3mm Screws For fastening cover to the base of the casing Appendix E Summary of HEW Debugger
75. fore the upgrading LE Programmer Load Contiguration File Operating System Logic Prograrn Please select the configuration file Using configuration file c Shew stoolsshitachidebug compplathorm em Figure 108 CE Programmer Window 103 3 Click Program button to programm OS amp Logic This will take about 2 minutes CE Programmer Load Contiguration File CE Programmer xi AN Warning You must restart the emulator before using it 1 FLASH ALREADY BLANK Writing 0x14 bytes from address Please wait for 1 or 2 minutes Programming 2 Block written Device programmed in 54 02 seconds Programming JTAG chain with file ce300hwosd jbc Please wait Programming Device 1 Silicon ID is ALTERASS 01 Device 2 Silicon ID is ALTERASS 01 Device 3 Silicon ID is amp LTERASS 01 programming 7KAE 3KA 7KB devices DONE Exit code 0 Success Programming Complete DK Cancel Figure 109 CE OS and Logic Programming 4 Click on the OK button once the programming has completed 5 Repower up the emulator when HEW is activated NOTE The on site upgrade have been designed to withstand interruption such as power supply trip PC crashes Re activation of the Programmer to upgrade the system is still possible after the interruption 104 434 NE S AS Section 11 Trouble Shooting The following are a few suggestions
76. g the Program Listing HEW allows user to debug a program at C Source and Assembly level There are three methods to view the main source file i File open ii Double click on file listed in the workspace window ii Debug Reset CPU resetprg c file will be opened HEW will prompt for the resetprg c file if this is not in the current directory fend1tf pragma section ResetPRG 0 00000400 entryfvect 0 void PowerON Reset void ji O 00000406 set 1 11 0 00000408 _INITSCT 4 CALL 2 Remove the THIT_IOLIB Remove the Figure 84 Resetprg c file after RESET CPU 87 434 NE S AS 8 5 Setting a PC Breakpoints The simplest debugging aid is the program breakpoint it causes execution to stop when a particular point in the program is reached You can then examine the state of the MCU and memory at that point in the program 8 5 1 Setting a Program Count PC Breakpoint The program window provides a very simple way of setting a program breakpoint For example set a breakpoint at main function entry point as follows e Right click in the Editor Window and select Toggle Breakpoint at the popup menu at the desired line or e Double click on the event colume 0 00000800 0 00000805 0 00000838 0 00000810 0 00000816 0 0000081 0 00000824 0000062 0 00000832 void sorti maini j e count 0 for sorti
77. h Height Size Specifies the colour information of the image to be displayed Specifies the format MONOCHROME Display in black amp white RGB Display in Red Green and Blue BGR Display in Blue Green and Red YcbCr Display by Y brightness Cb colour difference in blue and Cr difference in red Specifies Bit Pixel according to the selected Mode valid when RGB or is selected Specifies the format of sampling valid when YcbCr is selected Specifies the area to store data size and the address of the palette Specifies the start address of the memory when image data is to be displayed Display in Hexadecimal Specifies the start address of the memory of the colour palette data Diaply in Hexadecimal Valid when 8bit is selected for RGB or Specifies the width amp height of the image Specifies the width of the image When a prefix is omitted the values are input and displayed in decimal Specifies the width of the image When a prefix is omitted the values are input and displayed in decimal Displays the buffer size of the image from the width and height Display in Hexadecimal Specifies the location size and data start location of the part to be displayed among the entire image Specifies the entire part to be display in the image Displays data from upper left or lower left Specifies the start position X Y of the image when part of the image is to be displayed When
78. hes with a condition specified in the Eventpoints window or when the pre fetch cycle of the CPU agrees with the specified states A break occurs when the CPU matches with a condition specified in the Eventpoints window or when the pre fetch cycle of the CPU agrees with the specified states The configuration of PFG break is dependent on the type of PFG breaks being selected A break occurs at the program address specified by Eventpoints window The instruction at this address is replaced with a system instruction before the execution of code If a PC breakpoint is detected the emulation stops at the specified address before executing the subsequent instruction Pressing the ESC key of the host PC generates a break A reserved area break occurs when user code accesses reads from or writes to prohibited area of the MCU memory map This can be disabled in the Option Emulator System Configure platform window A write protect break occurs when user codes attempts to write to the ROM area This can be disabled in the Option Emulator System Configure platform window NOTE Software PC break cannot be set in External ROM and Flash area User is advised to use the Hardeare Break such as Event Break and PFG Break in this condition 60 lt NEC S AS 4 7 8 1 Event EV Breakpoint For the CE300H H8 3052 emulator two event breakpoints are supplied permanently The conditions to determine the breaks are e Address e C
79. ic window Refer to section 9 2 5 1 LED indication POWERLED RUN LED Enumeration Orange Connected Enumeration Run Orange Green RUN Status LED Self Test Pass POWER Status LED RED Self Test Failed Self Test Fail Red RED Power On Self Test End Pass Blinking Orange Blinking Green ORANGE Self Test ORANGE PC Detection Self Test End Fail Blinking Orange Blinking Red Figure 13 LED descriptions 13 434 NE S AS 26 Installing the USB Driver e Power up the emulator amp check the emulator as in step 2 4 amp 2 5 e Connect the emulator to the PC through the USB cable This will activate the Windows auto detect feature and prompt the user to install the USB driver for the emulator Found New Hardware Wizard Install Hardware Device Drivers gu device driver is a software program that enables a hardware device to work with an operating system This wizard will complete the installation for this device M USB Device device driver is a software program that makes a hardware device work Windows needs driver files For your new device locate driver and complete the installation click Next What do wou want the wizard to Search for suitable driver for my device recommended Display a list of the known drivers for this device that can choose a specific driver lt Back Cancel Figure 14 Found New Device e Click Next to search for a su
80. icrocomputer Architecture e General Hardware Interface Circuitry e General Personal Computer Operation e Microsoft Windows Related Manuals H6 H8 300 series C C Compiler Assembler Optimizing Linkage Editor User s Manual e High Performance Embedded Workshop 8 3052 Series Hardware Manual e SODIMM User s Manual CE300H User Cable User s Manual vi Table of Contents SECTION T INTRODUCTION 1 1 1 T jS 1 1 2 CG a a s 2 1 2 4 i NR MESE 2 7222 SVa C OPO IS eaa EET 2 L23 Blois RN 2 1 3 SYSTEM REQUIBEMENT 3 1 4 SUPPORTED MCU SERIES BY CE300H H8 3052 EMULATOR 3 1 5 SUMMARY OF 8 3052 EMULATOR FUNCTIONS 4 1 6 PRECAUTIONARY MEASURES Uu l 7 SECTION 2 INSTALLATION ee meres aa er 8 2 1 uu 8 252 INSTALLING HEW DEBUGGER 5 1 1 ee ree isst seres 9 2 3 ENS M 12 2 4 POWER 12 2 5 CHECKING THE SYSTEM STANDALONE 1
81. it f Ce300H High performance Embedded Workshop File Edit View Project Options Build Debug Memory Tools Window Help 82 Disassembly ale Command Line Ctrl L Toolkit Ctrl Shift L workspace Figure 106 Toolkit selection 2 In the Console window select File Source 3 Select c installed_dir Tool Renesas DebugComp Platform Emulator CE3052 Diagnostic_CE300H tcl 4 Click on Diagnose button and the test will carry out 5 After the completion of tests user must re initialize the platform In this window users will be able to know which tests have been passed CE300H Diagnostic Target items Testltems Items Single Board Passed Code Load Passed V illegal Guard Access Passed Cable In N Passed Comms Passed V Illegal Guard Access N Passed CPU Board Detect Passed DPRAM Passed Illegal Write Access Passed uvcc Passed On chip RAM Passed V Illegal Write Access N Passed Passed Get Registers Passed Port Data Passed TRES Passed Set Registers Passed v PFG Passed Rus tear Pada Danna Dine TSTBY Passed Console File Edit Help v Passed R Read IOCTL Passed Passed Diagnostic Passed TMD2 Passed 51 Detect N Passed Emulator Logic ID Passed Pinview ID Passed Write IOCTL Passed
82. itable USB driver Found New Hardware Wizard Locate Driver Files Where do vou want Windows to search for driver files Search for driver files For the following hardware device USB Device The wizard searches for suitable drivers in its driver database on your computer and in any of the following optional search locations that you specify To start the search click Nest fF you are searching on a floppy disk of CD ROM drive insert the floppy disk or before clicking Optional search locations Floppy disk drives CD ROM drives Specify a location Microsoft Windows Update lt Back Cancel Figure 15 Locate Driver Files 14 e Click Next to specify the Driver location Found New Hardware Wizard E Locate Driver Files Where do you want Windows to search for driver files Found New Hardware Wizard Insert the manufacturer s installation disk into the drive selected and then click Cancel Copy manufacturer s from Browse gt Cancel Figure 16 Selecting the USB Driver Location e Click on Browse to Hew3 Tools Renesas DebugComp Platform Emulator CE3052 Driver and select either Win2K directory for Microsoft Window 2000 or XP operating system or Locate File HEC Documents hy Computer gs Mp File name My M 1 ork Files of type Setup Information inf
83. itions Further Renesas Electronics products are not subject to radiation resistance design Please be sure to implement safety measures to guard them against the possibility of physical injury and injury or damage caused by fire in the event of the failure of a Renesas Electronics product such as safety design for hardware and software including but not limited to redundancy fire control and malfunction prevention appropriate treatment for aging degradation or any other appropriate measures Because the evaluation of microcomputer software alone is very difficult please evaluate the safety of the final products or system manufactured by you Please contact a Renesas Electronics sales office for details as to environmental matters such as the environmental compatibility of each Renesas Electronics product Please use Renesas Electronics products in compliance with all applicable laws and regulations that regulate the inclusion or use of controlled substances including without limitation the EU RoHS Directive Renesas Electronics assumes no liability for damages or losses occurring as a result of your noncompliance with applicable laws and regulations This document may not be reproduced or duplicated in any form in whole or in part without prior written consent of Renesas Electronics Please contact a Renesas Electronics sales office if you have any questions regarding the information contained in this document or Renesas Electronics products
84. kage For the actual footprint user cable user is advised to refer to the Microcomputer Hardware Manual for the footprint information For the direct connection method the connector information such as pin definitions layout dimensions and part number are detailed in the Appendices A B and C For Direct Connection Target System Figure 37 User Interface Cable Direct Connection NOTE i User has to connect the signal CABLE IN N to ground ii User has to take care of XTAL amp EXTAL Direct connection do not provide roscillation circuitry for crystal For Actual Footprint Target System Figure 38 User Interface Cable Actual Footprint 32 434 NEC S AS Section 4 Performing Emulation 41 Overview 4 1 1 Emulation The CE300H H8 3052 emulator operates in two modes Break and User modes To execute the user program user can either Single Step Run at current program counter or Reset Go This will cause it to operate in the User mode To terminate the User Run state a break condition has to be asserted to bring the emulator to the Break mode This can either be a preset condition eg PC Break Event Break or a force break condition Hit ESC key During Break mode user can manipulate their target system and memory by accessing the HEW DEBUGGER I O Memory Configuration window During Run mode information such as accessed address CPU states e g instruction fetch cycle sleep mode
85. l memory target memory The setting also allow proper control of the emulation Example e When program access to guarded or reserved area the emulator will stop break the running code e When program write to write protected area ROM the emulator will will stop break the running code There are nine available attributes e OnChip Read Write Read Only Guarded e Emulator Read Write Read Only Guarded e External Read Write Read Only Guarded 42 lt lt 4 5 2 2 Changes to memory mapping User will change the memory setting at the following two conditions 1 To access external target memory e Set External Guarded to External Read Write or External Read Only 2 To access optional SODIMM memory e Set External Guarded to Emulator Read Write or Emulator Read Only NOTE 1 For the On Chip attributes user cannot change it to other setting However for the External attributes user can set it to any combination 2 Emulator memory Optional memory is available if only if it is installed For the 2Mytes SODIMM It has 4 banks of 512Kbyte of memory selection If the External Target memory fall within the same address range as the emulator optional memory the emulator optional memory will be accessed instead The availability of the Emulator Optional memory can be viewed under view status memeory Target System Emulator Connected Target Device Configuration 00000000 to
86. lator 234 N S AS 1 2 Package Contents The CE300H H8 3052 emulator is supplied in a package containing the following components x CE300H oe PC Interface Cable USB CD DEBUGGER User Manual FAQ CE Standard User Cable DI Jr Manual User Cable Header Power Supply Figure 2 CE300H H8 3052 Emulator Package 1 21 Hardware Components The hardware components included in the package are listed below e 1x CE300H H8 3052 emulator e 1x PC interface cable USB 2 0 cable 2x 300mm KEL user cable to connect to target system Part No 8822E 080 171 30 AC e 2x KEL connector plugs for the target system Part No 8830 080 1705 e 1x 5V 2 8A power supply adaptor Input Ratings 110 240V 50 60 2 1 2 2 Software Components The software components included in the package are listed below e 1 CD containing HEW Debugger Installation user s manual and FAQ Before proceeding user has to check for all the items listed in the packing list Please contact the relevant Renesas Sales Office if any item is missing 1 2 3 Optional Components The following items can be purchased to further enhance the emulation capability e Actual footprint user cable 2Mbytes of SODIMM memory NE S AS 13 System Requirement The following items are not supplied but they are required to be used with the CE300H H8 3052 emulator e Aminimum Pentium M or equivalent based processor personal comp
87. llel On The Fly POTF The function allows user to access memory during run mode i e user can read or write to the internal ROM RAM optional SODIMM and external target memory when the program is running User has to refresh the memory window Memory Refresh in order to view the latest changes to the memory NOTE 1 This process will steal a cycle from the user running program in order to access the memory If the refresh command is not issued no cycle stealing will happen 2 For internal ROM the interruption will take about 400 ns 3 For other area such as target memory the interruption will depend on the operating clock approximately 20xperiod Therefore user is advised to open the necessary memory window at minimal size while executing POTF during program running Another accessing option is to use the Monitor window whereby is activated in continuous mode 49 lt lt 4 7 3 Status The status window uses three different tabs to monitor the emulator setting 4 7 3 1 Status Memory The memory tab displays e the available memory setting for the selected device amp mode e the Optional memory SODIMM resource usage is also displayed e the address range where the project is loaded teem Status Target System Emulator Connected Target Device Configuration 00000000 to H OOO FFFF On chip F 000 20 to H OOOFFFFF Internal H OOOFDF10 to H OOOFFFOF On chip System Memo
88. m diaglog box allowing the user to enter the PC or PC breakpoint during executing the user program ee ee Execute block of user code before breaking Execute a block of user code before breaking If a subroutine call is reached then the subroutine will not be entered Execute the user code to reach the end of the current function X Lanuches Step Program dialog box allowing the user to modify he setting _ Step only one source line when the Source window is active When the Dissambly window is active stepping is executed in a unit of assembly instruction Execute Stepping in the unit of assembly Bp pone one source line Disconnect he debugging platform This option cannot be used in some product
89. mp header files 36 434 NE S AS Example of usage User may use SessionCE300H H8 3052 Emulator to link to CE300H emulator amp Debug configuration setting to debug on the project output file xxx abs store in the Debug sub directory User may switch the configuration to Release and debug on the new setting e g optimization on On the other hand user may switch the session to DefaultSession which may be set to link to a simulator At this session user may switch the configuration from Release to Debug so as to debug on the generated ouptut xxx abs in the simulator environment NOTE The path name defined OptionsVDebug Setting must relative S CONFIGDIR PROJECTNAME abs If otherwise when the session is switched the download module will not be able to be selected correctly 37 434 NE SAS 4 3 Debug Setting The Debug Setting in Options Debug Setting is to set the environment for a session In HEW debugger user has been provided with two sessions SessionCE300H H8_3052 Emulator DefaultSession In each session user is to set Target CE300H Simulator Default Debug Format Elf Dwaf2 S record IntelHex Download module CONFIGDIR PROJECTNAME abs User is advised to use SessionCE300H H8 3052 Emulator session to link to the emulator In each session users set a list of command chain to be executed at the option tab At con
90. mperature 10 to 35 Humidity 30 to 85 RH No condensation No corrosive gas Re programming of emulator logic and flash OS via USB interface 434 NE SAS 1 6 Precautionary Measures The emulator must be handled with care Otherwise it may not work as intended Before Power On Check all components by referring to the packing list Never place heavy objects on the casing Observe the following conditions in which the emulator is to be used Keep out of direct sunlight or heat Use in an enviroment with constant room temperature and humidity Protect the emulator from dust Avoid subjecting the emulator to excessive vibration Protect the emulator from excessive impact and stresses Check the emulator s specifications such as power output voltage and frequency before connecting the power supply When moving the emulator pack with a good protective box or otherwise damage it Never allow exposed power supply to come into contact with the emulator casing which is grounded 434 NE SAS Section 2 Installation 21 Express Setup Steps The following are the basic steps involved in setting up the emulator e Unpack and verify parts against packing list e Install HEW Debugger by running setup file e Power up the CE300H H8 3052 emulator Performed after installation of HEW software e Connect the CE300H H8 3052 emulator to the PC USB port PC wil prompt to install the USB Driver e Run HEW USB Interface
91. n for the HEW debugger 35 434 NE S AS 4 2 Compiler Configuration Debugger Session In HEW compiler every setting is stored in a configuration The default configuration are Debug amp Release When a HEW debugger is instaled a new Configuration Debug CE300H H8 3052 Emulator is created At the HEW debugger enviroment a default debugger Session SessionCE300H H8 3052 Emulator is created to store information of Target plaform Downloadable program Mode settings Window positioning Clock settings Registers value settings function loading Figure 41 High performance Embedded Workshop Window Session is not directly related to a configuration This means that multiple sessions can share the same download module and avoid unnecessary program rebuilds Users can create new configuration amp session under the Options Build Configuration Options Debug Session pull down menu respectively Generally HEW will organise the workspace s configuration amp session in the following manner Root Directory Workspace directory Files Configuration directory Files xxx hws _ Debug DIR Release DIR Debug CE300H H8 3052 Emulator DIR Configuration Information amp Output abs lst Configuration Information amp Output abs lst Configuration Information amp Output abs lst SessionCE300H H8 3052 Emulator hsf DefaultSession hsf C a
92. n the system setup window HEW DEBUGGER will disallow the target selection if the target is not available The Signal CABLE is Hi 18 Why can t the PC Break stop the running program This is likely that the PC break is not set This can happen if the set location is a external write only location such as Flash EPROM The PC break is implemented using a software mean to replace the user instruction with a special system instruction Thus the operation can be completed with a write only location 19 Whyisthe download speed of CE become so slow suddenly If user download their code to the internal ROM area the speed will be very fast However when the download area is the external target area the download speed will be much slower This is because of the transfer mechanism the data will need to transfer from the PC to the emulator and transfer to the external target area This will also depend on the emulation speed at that time 434 NE SAS Renesas Technology Asia Sales Offices URL http www renesas com URL http www sg renesas com sales ASIA HEADQUARTERS amp TECHNICAL SUPPORT South Asia Headquarters Singapore Technical Support Renesas Technology Singapore Pte Ltd Renesas System Solutions Asia Pte Ltd 1 HarbourFront Avenue 1 Harbourfront Avenue 06 10 Keppel Bay Tower 06 06 Keppel Bay Tower Singapore 098632 Singapore 098632 Tel 65 6213 0200 Tel 65 6213 0333 6387 2
93. necting the emulator Immediately before downloading Immediatedly after downloading 38 434 NE S AS 4 4 Connecting amp Disconnecting with the Emulator The open activation or close exit of the HEW and or workspace will determine the emulator and HEW connectivity The alternative method is to use the session control In HEW debugger user is provided with two sessions SessionCE300H H8 3052 Emulator linking with emulator DefaultSession no target Thus by switching between the session the emulator can be connected amp disconnected from the HEW 39 434 NE S AS 45 Emulator Setting The emulator setting which consists of the system configuration amp memory mapping has to done before any emulation Options Build Debug Memory Tools Window Help Build Phases Build Configurations Debug Sessions Debug Settings Radix th system Memory Resource Figure 42 Option Emulator 4 5 1 Configure Platform The configure platform enable the user to set their target Device mode package at startup Thereafter user can have the following control Configure Platform CPU Control Device User Reset Enable User NMI Enable advanced User STBY Enabl ser nable Clock 0 000 MHz Illegal Access Break Enable Package TFP 1 0B Expansion Menon Control logic j Channels Extended Memory Map Configuration Chang
94. ng user to manually locate the file 4 ce3052 c int count void sort 0 00000800 naini 1 0 00000806 count 0 0 0000080 rer s 72 0 00000810 sort sectionl 0 0000081 0 00000826 sort sectionl AGE 0 00000832 0 0000083 sort sectionl ID 0 0000084 0 00000858 0 0000085 void sort list key struct namelist list short key short i j k Figure51 Source Level Information available Corresponding address for source file PC location Bookmark Breakpoint 46 434 NE S AS 4 6 2 Dis assembly level User can open the disassembly window via View Disassembly pull down menu or Right click on the source window and select Goto Disassembly at Disassembly 48 maint 1 main O1006DF6 00000804 OFFS 43 1 s count 0 00000806 1900 00000808 Bl sleep OOOO080E 4046 52 for i 00000810 1911 00000812 32 00000819 5544 b zortizectionl 00000891 00000820 6901 000008922 0851 00000824 6981 amp 00000826 79010001 2 32 00000830 5527 bb eort zgsectionl Figure 52 47 ERG a ER ER ER6 R RO R m count 24 MA O856 6 1 1 00 32 ERO sort ERO 1 1 Ri ERO 000
95. nnect the AVCC pin the VCC pin for the A D and the VREF reference voltage pin to the A D and D A conversion power supply and the reference power supply on the user s system NOTE AVCC and VREF pins must be connected to VCC pins when the A D and D A converters are not used The conversion precision on the emulator is lower than that of the actual MCU This is mainly due to the extra resistance and capacitance introduced in the cabling and printed circuit boards 76 434 NE S AS 5 13 Refresh Controller The refresh controller operates continuously even during the command input wait state However the emulator does not support battery back up mode When entering battery back up mode the data in DRAM may thus be lost 77 lt lt Section 6 Differences between H8 300H MCU and Emulator 6 1 Power up and reset When the emulator initialises the system or resets the Microcomputer as a result of a command such as switching of the clock or when the reset command is used note that the general purpose registers and part of the control registers are initialized Table 5 1 Differences Between H8 MCU and Emulator Status Register Emulator H8 MCU Power on ERO to ER6 H 00000000 Undefined ER7 SP H OFFF10 Undefined The I mask is set to 1 and the other bits The I mask is set to 1 and the other bits are CCR are undefined undefined Emulator Initialization 1 xxx xxxx B 1xxx xxxx Re
96. o v o m we 1 we mode o o 1 a wes o o mas H8 3048 3022 3035 H8 3078 MCU Mode CPU mode Bus Width MCU Mode CPU mode Bus Width Space Space eee s eee M 8 ROM invalid ROM invalid Ade expansion expansion E NN N 1 H8 3032 3042 3039 3001 2 3 4 5 H8 3067 3024 3062 3068 3069 MCU Mode CPU mode Address Bus Width MCU Mode CPU mode Address us Width Space Space invalid ROM invalid Ady expansion expansion 8 8 H8 3008 3006 3007 MCU Mode CPU mode Bus Width Space ROM invalid expansion Table 3 MCU Operating Modes 73 lt lt 5 2 Memory Area The H8 has a maximum memory area of 16 Mbytes The four classification of memory are 5 2 1 Internal ROM Area The emulator has a substitute RAM for the H8 internal ROM Access to this substitute RAM is as follows Access arising from user program execution Read only write disabled e HEW DEBUGGER Read and write enabled Therefore the user can modify the internal ROM area memory and load the object program 5 2 2 Internal RAM Area The emulator has a substitute RAM for the H8 internal RAM When user tries to access the internal RAM this substitute RAM is always accessed instead User can access the internal RAM area from the user program o
97. ommunications interface signals are connected to the user system directly from the H8 MCU in the emulator Therefore the interface is valid both in the break and run mode For example when writing data to the TDR transmit data register in the HEW DEBUGGER I O or Memory Window the serial communications interface output will be initialized and data will be output to the TXD line 5 9 DMA Controller DMAC The DMAC operates during emulation execution and in the break mode When a transfer request occurs the emulator carries out DMA transfer 5 10 Wait State Controller The H8 300H wait state controller has a programmable wait mode and a WAIT pin input The programmable wait mode is valid when the emulation memory or user target or external memory is accessed but input to the WAIT pin is only valid when the user memory is accessed Input to the user WAIT pin is always valid during refresh cycles 5 11 I O Ports The H8 300H I O ports can be used as peripheral module I O pins or as an address data bus depending on the operation mode or internal register settings The I O port pins are valid during execution amp break state User can access or modify the I O port pins multiplexed with peripheral module I O pins with the HEW DEBUGGER I O and MEMORY window 5 12 A D and D A Converter The analogue I O pins are connected to the user system directly from the H8 300H MCU Thus the reading are valid during the emulation and break state Co
98. on how to perform a basic troubleshooting if the emulator does not respond to the user s commands Symptoms Expected Observation amp Action Cannot link to Power Supply POWER LED lights up in Red PC Bios setup USB must be enabled Window Device USB do not have any contention Compact Emulator Manager must be detected instead of a USB device Observe in system hardware configuration Standalone Self POWER LED lights up in Orange denoting entering self Test test mode Adjacent RUN LED do not light up after the test Blinking POWER LED USB cable and Clean the contact connector contacts Change the USB cable Target System Is user supply provided to the target Removed the target and user cable adaptor HEW DEBUGGER Has HEW DEBUGGER been setup in the PC Setup Cannot run Clock setting Is clock set to target code on target Is there any clock signal input to the emulator Unlike a actual footprint user cable when a direct user cable is used user has to make sure that the clock is a oscillating signal e g TTL Mode setting Is mode set to target or preset to some other setting Reset setting Is reset masked in the HEW DEBUGGER configuration platform window A constant reset or other watchdog reset may cause user program to run abnormally User is advised to mask the signal for troubleshooting purposed 105 NE S AS STBY setting Is STBY masked in the HEW DEBUGGER configuration platform
99. or if you have any other inquiries Note 1 Renesas Electronics as used in this document means Renesas Electronics Corporation and also includes its majority owned subsidiaries Note 2 Renesas Electronics product s means any product developed or manufactured or for Renesas Electronics 7 D n lt CO 2 D Microcomputer Development Environment System Renesas System Solutions Asia Pte Ltd www rss renesas com NE SAS CE300H Compact Emulator for H8 3052 Series Microcomputer User s Manual Published by Renesas System Solutions Asia Pte Ltd Date December 16 2003 Version 2 0 Copyright C Renesas System Solutions Asia Pte Ltd rights reserved Trademarks a General brand or product names used in this manual are trademarks or registered trademarks of their respective companies or organizations b Specific Microsoft Windows is registered trademarks of Microsoft Corporation Pentium is a registered trademark of Intel tENESAS IMPORTANT INFORMATION READ this user s manual before using this emulator product KEEP the user s manual handy for future reference Do not attempt to use the product until you fully understand its mechanism ALExxxx amp CExxxx Emulator Throughout this document the term ALExxxx emulator amp CExxxx emulator shall be defined as the ALExxxx or CExxxx emulator user system interface cable interface board
100. ore it can be used This has to be done again if the emulator is switched off Please refer to section 4 for more details 28 lt NE S AS 3 5 Memory Mapping After the selection of Device Package and Mode the default mapping will be generated This can be viewed under the Option System Memory resources Memory Mapping Type blemon From Mapping 00000000 External Read only 10080000 UDTFFFFF External Guarded O02 7FFFF External Head write QOOSFFFFF External Guarded External Head write External Guarded On Chip Read write QOOFFFFIF External Guarded OOFFFF20 QUFFFFFF On Chip Read write Figure 34 Memory Mapping Window Usually user does not require to change this setting However it may be changed for the following reasons e Addition of target system with memory e Addition of optional SODIMM memory The nine available attributes are e On Chip Read Write Read Only Guarded e Emulator Read Write Read Only Guarded e External Read Write Read Only Guarded 29 434 NE S AS To change the setting user has to e Click on the Modify button in the memory mapping window e Key in the desired address at From and To e Select the attribute Setting Edit Memory Mapping E3 Memory Mapping From 0000 Setting Emulator Read write Cancel Fig
101. ossible as execution is interrupted temporary at constant interval 56 tENESAS 4 7 6 3 Local The Local variables will appear in the Locals window when user code has break stop at a sub routine NOTE Local variables are temporary data stored in stack Therfore it can only be viewed when execution stops within a routine 00002332 1 struct namelist 0002 1 R43 short 0002 1 Ox000ffeda short 0005 1 DOffeda short 0004 1 Ox000ffed6 short 00001 661 1 000 2 lana Ox000fe36a 1 0 000 1 000 struct namelist Figure 64 Locals Tooltip watch place the cursor at the variable and the general information of the variable will appear case AGE 000000996 fru list i age i 1 0 00000950 l 11 1 age 0 00000955 1 0 000009 2 i 1 6 3 888 l 0 J 0 000009 if list j age lt min i 0 000009 min 11 1 5 0 00000 06 1 Figure 65 Tooltip 57 lt NE S AS 477 YO The IO window provide a easy access to MCU IO registers The Address amp Data value of respective peripherals amp controllers registers are displayed in the IO window D x Address DMRC CHANNEL 0 H E MAROAR 0 20 U DFEEE21 regMARORH 0 22 MAROAL DFFEE23 F7 ETCROAM 00 24 ETCROAL 0 25
102. p the area to the optional SODIMM memory for temporary usage 27 lt lt 3 2 3 Clock Selection User can choose from two different sources Internal or External Target Clock For internal clock user can key in any frequency from 1MHz to 25MHz in the step of 100KHz The emulator will generate the requested clock for the running processor For external target clock user can either input an oscillating clock into the EXTAL pin or place a crystal at the actual footprint user cable EXTAL and XTAL pins 3 2 4 User Signal Masking Control RESET NMI amp STBY These signals can be masked by the emulator when user executes the programs At startup the RESET and NMI signals are not masked whereas STBY signal is masked NOTE If STBY signal is asserted during user run mode the emulator will enter standby mode and the emulator control registers are initialised 3 2 5 Illegal Access Break Control Enabling the Illegal Access Break will cause user program to stop execution when write protected area is being written or guarded area is being accessed User may disable the control so as to use the internal ROM area as read write area temporarily 3 2 6 Downloading of Emulation Function Programmable Function Generator At power up a default Function is set in the PFG If another function is required User will have to download the selected function to the Programmable Function Generator bef
103. performance Embedded Workshop 3 Read Me f User Manual Figure 11 DEBUGGER Icons The installer has created the HEW interface and the debugger component A directory is generated in the installed HEW directory c Hew3 Tools DebugComp Platform Emulator CE3052 2 4 Power Up the Emulator A power supply is included in the CE300H H8 3052 emulator package It can accommodate 110 240V 50 60Hz AC supply The unit is capable of a regulated 5V 2 8A output The following diagram shows the polarity of the power supply plug 7 CENTRE POSITIVE 2 1 mm Phone Jack 5V Figure 12 Power supply Plug Connect the plug to the power input of the emulator The POWER LED will lights up red colour 434 NE S AS 25 Checking the System Standalone mode If the emulator is powered up and USB link to PC is not established within 3 minutes it will enter into self test mode The POWER LED changes its colour from RED to ORANGE when it has entered the self test mode This test takes about 3 minutes At the end of the test both the POWER amp RUN LED start to blink If any of the tests failed the adjacent RUN LED lights up in RED For more details about this test please refer to section 8 The self test will continue to run until the emulator is powered down The self test will confirm the working condition of the emulator NOTE The same tests can be activated by HEW diagnost
104. r with an HEW DEBUGGER 5 2 3 Internal I O Area When the internal I O area is accessed the emulator accesses the internal I O User can read and write to the internal I O area from the user program or with HEW DEBUGGER 5 2 4 External Area The external target area will be accessed as long as the area does not belong to e Internal ROM e Internal RAM Internal I O e Mapped Emulator Optional Memory SODIMM User has to set the area to be read write or write protected in order to access the area Otherwise the area will be treated as Access inhibited or Guarded The number of accessing states and type of access e g DRAM access will be determined by the H8 registers eg BSC WCRI 74 434 NE S AS 5 3 Low Power Mode For reduced power consumption the H8 has sleep hardware standby and software standby mode 5 3 1 Hardware Standby Mode The hardware standby mode is switched by the STBY signal input In default the STBY signal is masked in the HEW DEBUGGER setup windows If activated this signal will initialise the emulator registers and force the emulator to enter power on reset state after the signal is released 5 3 2 Sleep and Software Standby Modes The sleep and software standby modes are switched using the SLEEP instruction These modes can be cleared with either the normal clearing function or with the break condition fulfilled including ESC key input The program will then be put to a stop
105. reby under any patents copyrights or other intellectual property rights of Renesas Electronics or others You should not alter modify copy or otherwise misappropriate any Renesas Electronics product whether in whole or in part Descriptions of circuits software and other related information in this document are provided only to illustrate the operation of semiconductor products and application examples You are fully responsible for the incorporation of these circuits software and information in the design of your equipment Renesas Electronics assumes no responsibility for any losses incurred by you or third parties arising from the use of these circuits software or information When exporting the products or technology described in this document you should comply with the applicable export control laws and regulations and follow the procedures required by such laws and regulations You should not use Renesas Electronics products or the technology described in this document for any purpose relating to military applications or use by the military including but not limited to the development of weapons of mass destruction Renesas Electronics products and technology may not be used for or incorporated into any products or systems whose manufacture use or sale is prohibited under any applicable domestic or foreign laws or regulations Renesas Electronics has used reasonable care in preparing the information included in this document but Renes
106. red in the HEW registration file HRF On the other hand user may also remove uninstaller the component from the current HEW 19 CENESAS 2 9 Setup Completion This will complete the initial setup of the emulator HEW debugger installation USB Driver installation Emulator working condition 20 NE S AS Section 3 Emulation System Setup for Development In this section the focus is to highlight the basic steps for any initial setup for a project On subsequent HEW activation user will just be required to select the desired workspace session and the setup will be done automatically To activate the emulation system user has to e Ensure that the CE300H H8 3052 emulator is powered up ie check that the POWER LED 15 illuminated and the colour is RED e Ensure that the emulator is enumerated the USB cable is linked between the emulator and PC and the PC has recognised the attached USB device e Click on the High performance Embedded Workshop 3 icon Ea Renesas High performance Embedded Workshop k Renesas High performance Embedded Workshop 2 Pure Debugger F Renesas High performance Embedded Workshop Pure Debugger Ld 589 High performance Embedded Workshop 3 Help Accessories k High performance Embedded workshop 3 Read Me CyberLink Manual Navigator Microsoft Visual Studio 6 0 High performance Embedded Workshop 3 Roxio Easy CD Creator 5
107. ry Resources Optional Memory Bankl Available Optional Memory BankZ Available Optional Memory Bank3 Available Optional Memory Bank4 Available Program Memory Loaded Area EmulatorXCE3052 abs 00000000 00000003 0000001 00000047 00000050 00000057 00000050 H 0000006 00000070 0000007 00000030 0000008 00000090 00000098 00000020 0000004 000000 0 000000 0000000 000000 00000400 00000609 00000800 00000 g H H H H H H Figure 56 Status memory window 4 7 3 2 Status Platform This platform tab shows the current emulation condition e CPU mode and clock setting e Run time at 100 ns resolution no upper limit e Detect optional memory Sodimm Present e Detect User Cable Target connection e Display snapped address amp CPU status during run e Display read UVCC Target power supply voltage level For H8 3052 possible display of MCU status are e e Refresh High Medium Instruction Fetch e Standby e Sleep e Bus Released State e Data access cycle e Other 50 Emulator for H8 3052 Family H8 3052BF z 10 000 MHz Run 3 8215 Unconnected Unconnected High Medium Instruction Fetch H OFOSFS 3 260 4 L gt Memory A Platform Figure57 Status Platform window 4 7 3 3 Status Events The events tab show the usage of e PC Breakpoints
108. ry from state to state The Warranty is Void in the Following Cases Renesas shall have no liability or legal responsibility for any problems caused by misuse abuse misapplication neglect improper handling installation repair or modifications of the emulator product without Renesas s prior written consent or any problems caused by the user system Restrictions 1 Earthing applies only to manual for Renesas hardware products This hardware is designed for use with equipment that is fully earthed Ensure that all equipments used are appropriately earthed Failure to do so could lead to danger for the operator or damaged to equipments 2 Electrostatic Discharge Precautions applies only to manuals for Renesas hardware products This hardware contains devices that are sensitive to electrostatic discharge Ensure appropriate precautions are observed during handling and accessing connections Failure to do so could result in damage to the equipment All Right Reserved This 5 manual and emulator product are copyrighted and all rights are reserved by Renesas No part of this user s manual all or part any be reproduced or duplicated in any form in hardcopy or machine readable form any means available without 5 prior written consent Other Important Things to Keep in Mind 1 Circuitry and other examples described herein are meant merely to indicate the characteristics and performance of Renesas Technology
109. ser has to consider the adjustment of the user system hardware Compensation for FAN IN FAN OUT and propagation delays are necessary In general the one way propogation delay of the cabling is about 4ns However the user clock signal is delayed for approximately 25 ns All signals are connected to the MCU with no buffering with the exception of e NMI e RESET STBY MD 2 0 EXTAL The emulator does not detect the following signals FWE e OSCT e OSC2 e XTAL All port signals are pulled up by a 47K ohm resistor with the exception of all analogue pins Ports 7 All signals satisfy the MCU AC timing specification Except Parameter H8 300H Emulator Trps 20ns min 30 ns min The illustration of the user interface circuitry are as follows 79 434 NEC S AS 0 23 5 RD Read HWR L WHR Write 2 states DO D15 Read HWR LWR Write 3 states DO D15 Write Note Shorten by one clock in 2 state access cycle since T3 state is deleted Figure 81 Basic Bus Cycle Timing in Expanded mode 80 User 47 Q lt H8 300H Microcomputer 2 Control User Vcc PinView 47 470 Emulator Control User Vcc Emulator Control fuse User Vcc T C R lt Emulator CABLE_IN_N SV Monitor AVCC lt lt AVSS Figure 82 Interfacing Circuitry
110. set CPU command ERO to ER6 Undefined Undefined ER7 SP Undefined Undefined The I mask is set to 1 and the other bits The I mask is set to 1 and the other bits are CCR are undefined undefined Emulator Initialization B 1 B 1 xxx 6 2 User Interface User may have to adjust the target system as follows The emulator s user system interface is provided with pull up resistors and or a buffer causing the signals to be delayed slightly The pull up resistors will change high impedance signals to high level signals The Analog to Digital conversion s resolution will have a slight degradation Load capacitance of the emulator as compared to the actual chip will be larger Crystal oscillator can only used if the actual footprint user cable is used there is an oscillating circuitry built on board If user uses the direct method of connecting to the target system the actual clock signal has to be connected to the EXTAL pin NOTE there is no XTAL pin If user uses the direct connection method the signal CABLE IN has to be connected to ground Please refer to section 6 for the details of user interface circuitry 78 434 NE S AS Section 7 User System Interface The user target system is connected to the emulator via the interface cable Interface circuitry is inserted in between to remove noise and protect the emulator When connecting the user target system to the emulator u
111. t Interface Supported File Formats Interface Software Emulation Functions CE300H H8 3052 Emulator Functions Specifications H8 3003 H8 3001 3002 3003 limitation Page 3 H8 3005 H8 3004 3005 H8 3007 H8 3006 3007 3008 H8 3022 H8 3022F 3022 3021 3020 H8 3024 H8 3024 3024F 3026 3026F H8 3032 H8 3032 3031 3030 H8 3035 H8 3035 3034 3033 H8 3039 H8 3039F 3039 3038 3037 3036 H8 3042 H8 3042 3041 3040 H8 3048 H8 3048F 3048F ONE 3048 3047 3045 3044 8 3052 H8 3052F 3052BF 3052 Hi speed H8 3062 H8 3062 R F 3062AF 3062BF 3062BF Hi speed 3062 3061 3060 3064F 3064BF 3064AF Hi speed H8 3067 H8 3067 R F 3067 3066 3065 H8 3068 H8 3068F H8 3069 H8 3069F H8 3078 H8 3078 3078 Hi speed limitation Page 3 2 MHz Min 25 MHz Max st Device dependent Mode 1 7 st Device dependent larget 2 7 Volts 5 Volts Device dependent Minimum Pentium or equivalent processor PC Microsoft Windows 98SE 2000 XP or ME USB 2 0 480 Mbps or USB Ver 1 1 12Mbps Motorola S type ELF Dwart2 High performance Embedded Workshop HEW Perform real time emulation of a target program C source level debugging e g C level step execution instant watch view labels Display MCU operating status e g Run Sleep and Standby during User run mode Display accessed address during execution Items Emulation Memory Memory Functions Parallel On the Fly
112. the system package and specification It also highlights the precautionary measures when using the emulator Section 2 Installation Explains the initial installation and configuration of the PC in order to operate the emulator Section 3 Emulation System Setup Usage Note 1 Describes the setup steps before embarking on a new project development Section 4 Emulation Functions Usage Note 2 Describes the various functions used in the CE300H H8 3052 emulator Section 5 H8 3052 Function Support Usage Note 3 Covers the emulation of the peripherals and features for the H8 3052 microcomputer in the CE300H H8 3052 emulator Section 6 Differences between the H8 3052 Microcomputer and the Emulator Usage Note 4 Highlights the differences between the usage of the emulator and the actual MCU Section 7 User System Interface Usage Note 5 Details information about the user interface circuitry and memory access timing Section 8 Tutorial Demonstrate step by step guide on using HEW features Section 9 Diagnostic Performs diagnostic test either in standalone mode or with HEW Section 10 Emulator Upgrade Perform upgrade to the Emulator Logic amp OS Section 11 Trouble Shooting Advises on some basic fault locating methods and commonly made mistakes 434 NE SAS Assumptions This manual assumes that the user has a working knowledge of e High Performance Embedded Workshop Compiler Assembler and Linker H8 3052 M
113. trigger on the following conditions o Address range Data with Masking Event counter Items PFG 2 Sequence Event Breaks PinView Clock selection Execution time measurement User Cable interface Voltage Follower Power Supply Environmental Field Upgrade tENESAS Specifications Two event breaks are provided to trigger on the following conditions o Address range o Data with Masking Break occurs on o Break Event 1 THEN Break Event 2 o Break Event 1 OR Break Event 2 o Break Event 1 AND Break Event 2 no predefined sequence Provides instant graphical package view of all the pins of selected microcomputer Provides an alternative view in text form Software selection of 2 types of clocks o User system clock via user cable o Emulator internal clock 2 25 MHz at 100KHz resolution Measure the start run till end break of an execution Resolution 100ns No upper limit Two fine pitch user cable assemblies KEL 8822E 080 171 040 AC are used to interface to two 1 27mm pitch plug KEL 8830E 080 170S on both sides of the emulator and user target Provided in package Selected actual footprint user cables for each microcomputer series are also available Not in package Automatic tracking of the target system supply voltage to ensure that the emulator draws no power Power Adaptor Input 100 240 Vac 50 60 Hz Emulator Voltage Regulated Current consumption 2 8A max Operating Te
114. u Action Enable PC H 00000806 ce3052 c 50 Stop by PC Break Figure 88 Eventpoints Window The Eventpoints window also allows user to perform the following e Define new breakpoints e Delete existing breakpoints e Disable existing breakpoints Perform a right mouse click within the Eventpoints window to show the available breakpoint functions Edit Enable Disable Delete Delete 30 Source Close File Glose Al Files m Allow Docking Hide Figure 89 Popup menus Eventpoints Window 90 NE S AS 8 8 Examining MCU Registers While the program is halted you can examine the contents of the H8 300H Series MCU registers These are displayed in the Registers Window Click on View CPU Register 2 Register Name Register Value OOOO0DDA OOO00DD A 0000000 00000002 55 00 4 H OQOOFFEF4 000806 Figure 90 Registers Window The registers values can be changed from the Registers window For example change the value of the re e Double click on PC in the Registers window The Register PC dialog allows you to edit the value whole Register Figure 91 Changing Register Value 91 NE S AS 8 9 Examining Memory and Variables The behavior of a program can be monitored by examining the contents of an area of memory or by displaying the values of variables used in the program
115. ure 35 Editing the Memory Mapping For more details of memory mapping please refer to section 4 30 N S lt SAAS 34 Connection to Target System 3 4 1 Target Power Supply The CE300H H8 3052 emulator has an automatic voltage follower Once target is connected target connector s signal CABLE_IN_N Lo please refer to the Appendix A the CE300H H8 3052 emulator will operate at the user supply 2 7V 5V Otherwise it will operate at 3 3V When target is connected HEW will indicate User Cable connected in the View CPU Status window se s Connected to Emulator for H8 30572 Family 8 3052 Mode Clock 10 000 MHz Last Break Cause Elapsed Run Time 0 0005 SOD TMM Unconnected Ser cable Unconnected CPU status ddresz accessed Platform Figure 36 Target Supply in Status window The above example show that there is no user cable connection amp UVcc is at 3 3V NOTE e Do not connect the user system interface cable with header board to the emulator without any user system connection i e without target user supply e Power up the user system followed by the emulator 31 lt lt 3 4 2 Types of User Interface Cable There are two ways to connect the target system to the CE300H i e viaan actual footprint user cable purchase separately or e direct connection using the KEL connectors supplied in the pac
116. uter with USB version 1 1 e Microsoft Windows 98 274 Edition Microsoft Windows 2000 Microsoft Windows XP or Microsoft Windows ME e Approximately 60Mbytes of hard disk space for the installation 14 Supported MCU Series by CE300H H8 3052 Emulator e H8 3003 H8 3001 3002 3003 H8 3005 H8 3004 3005 H8 3007 H8 3006 3007 3008 8 3022 H8 3022F 3022 3021 3020 e 8 3024 H8 3024 3024F 3026 3026F H8 3032 H8 3032 3031 3030 H8 3035 H8 3035 3034 3033 e 8 3039 H8 3039F 3039 3038 3037 3036 H8 3042 H8 3042 3041 3040 8 3048 H8 3048F 3048F ONE 3048 3047 3045 3044 8 3052 H8 3052F 3052BF 3052 Hi speed e 8 3062 H8 3062 R F 3062AF 3062BF 3062BF Hi speed 3062 3061 3060 3064F 3064BF 3064AF Hi speed H8 3067 H8 3067 R F 3067 3066 3065 e 8 3068 H8 3068F e H8 3069 H8 3069F e H8 3078 H8 3078 3078 Hi speed Limitation Limited support for H8 3003 Does not support the following Pins and functions 1 Port 5 7 4 multiplexed with A 23 20 2 Port C 0 7 multiplexed with CS 4 7 and TEND2 DREQ2 TEND3 DREQ3 IRQ6 7 Limited support for H8 3078 1 Does not support the RAM overlap function lt lt 15 Summary of CE300H H8 3052 Emulator Functions Table 1 Items Supported Microcomputers Operating Frequency Operating Modes Supported Operating Voltage Range Host Machine Hos
117. window The signal is masked in default The activation of the signal will reset the emulator internal registers NMI Is NMI masked in the HEW DEBUGGER configuration platform window A constant NMI may cause user program to run abnormally User is advised to mask the signal for troubleshooting purposed Power Supply Is Target supplying power to the emulator Observe HEW status window UVcc value Cable detection Has HEW DEBUGGER detected the Cable Is CABLE IN N tied to ground in the target system Observe HEW status window UVcc value Target connection Is the target connection tight and secure Signal level Are the emulator pull up resistors driving the target system Are the internal pull up resistor 47Kohm causing a unknown state to the target when a pull down resistor is also connected to the target User may like to remove the internal pull up resistor 106 CENESAS Blank Page Appendix User Connector Pin Assignment 434 NEC S AS User Connector 1 Pin Assignment Column Pin Description B 40 B 3 AVSS B 3 A A 35 STBYN RES N 34 3 gt 29 RESERVED lt 3V3 gt 5 VS P70 ANO P71 AN1 P72 AN2 5 gt gt 2 P76 AN6 NOTE gt A A A 24 23 23 22 22 21 A 9 8 8 NN GE 6 Description TxDO P90 TxD1
118. wing sections Title Bar Displays the name of the currently open workspace project and file Menus Bar Contains nine standard menus File Edit View Debug Menu will be activated appeared when a debugging platform is connected Toolbar Provides convenient buttons as shortcuts for the most frequently used menu commands The tool bar can be docked or floated It can be created modified and removed Status Bar Displays the status of the Emulator For example progress information about downloads Workspace Display the detail of current workspace provide a quick amp easy mean of navigation Output The output window has four tabs Debug tab shows the output from the Window debugger process The Emulation Function can be described and classified into 4 main topics 34 lt lt The major topics are highlighted Menu General Description Usage 1 Option Emulation Setting Emulator Clock PFG select User signal mask 2 Memory Resource Memory mapping protection View MCU Disassembly ____ information Register memory Status Pinview Monitor Graphic Image waveform manipulation Coy 3 Memory MCU memeory Search Refresh 4 Execution of MCU ResetCPU Z4 Code Go Reset Go Go to DEM S itilize Please refer to the Appendix for the summary of commonly used short cut and ico
119. y OK Cancel Perform memory verify during download Figure31 Debug Setting window Absolute path NOTE User can select a number of files be be download to the emulator The abs file can be from the debug or release sub directory 2 In the example an absolute path is defined for the filename In a integrated enviroment a relative path name CONFIGDIR V PROJECTNAME abs is recommended Please refer to section 4 for more detail explanation related to debug setting 25 lt NE S AS e Tochoose the relative directory Click on the Place Holder gt and choose Configuration directory Project name Debug Settings CE300H Session Target Options ley Target Offset 22000000 Format Elf Dwarf2 Y Filename Remove S CONFIGDIR SSIPROJECTNAME y nasa Configuration directory Project directory Workspace directory HEW installation directory Workspace name 4 Project name Configuration name Download debug information only Perform memory verify during download Figure32 Debug Setting window Relative path This will invoke the configure platform window as explain in 3 2 26 434 NE S AS 3 2 Configure the Platform The configure window will pop up before any emulation can proceed User has to configure the platform for the desired application This will ensure a proper control over the targeted application The
Download Pdf Manuals
Related Search
Related Contents
KitchenAid KEYE800T User's Manual URGENT – Notification de sécurité produit GE SE1200 User's Manual transilluminatore Philips FX55 CDM6083 Ma-TUV # 0710-26 Manual de Instruções SLIM PAR 64 LED Miele DA 3460 Built-In Wall Cabinet Hood Specification Sheet カタログPDF - ユニテックス Copyright © All rights reserved.
Failed to retrieve file