| The Datasheet Archive - 100 Million Datasheets from 7500 Manufacturers. |
Cautions Keep safety first your circuit designs! Renesas Technolo
Top Searches for this datasheetCautions Keep safety first your circuit designs! Renesas Technology Corporation puts maximum effort into making semiconductor products better more reliable, there always possibility that trouble occur with them. Trouble with semiconductors lead personal injury, fire property damage. Remember give consideration safety when making your circuit designs, with appropriate measures such placement substitutive, auxiliary circuits, (ii) nonflammable material (iii) prevention against malfunction mishap. Notes regarding these materials These materials intended reference assist customers selection Renesas Technology Corporation product best suited customer's application; they convey license under intellectual property rights, other rights, belonging Renesas Technology Corporation third party. Renesas Technology Corporation assumes responsibility damage, infringement third-party's rights, originating product data, diagrams, charts, programs, algorithms, circuit application examples contained these materials. information contained these materials, including product data, diagrams, charts, programs algorithms represents information products time publication these materials, subject change Renesas Technology Corporation without notice product improvements other reasons. therefore recommended that customers contact Renesas Technology Corporation authorized Renesas Technology Corporation product distributor latest product information before purchasing product listed herein. information described here contain technical inaccuracies typographical errors. Renesas Technology Corporation assumes responsibility damage, liability, other loss rising from these inaccuracies errors. Please also attention information published Renesas Technology Corporation various means, including Renesas Technology Corporation Semiconductor home page (http://www.renesas.com). When using information contained these materials, including product data, diagrams, charts, programs, algorithms, please sure evaluate information total system before making final decision applicability information products. Renesas Technology Corporation assumes responsibility damage, liability other loss resulting from information contained herein. Renesas Technology Corporation semiconductors designed manufactured device system that used under circumstances which human life potentially stake. Please contact Renesas Technology Corporation authorized Renesas Technology Corporation product distributor when considering product contained herein specific purposes, such apparatus systems transportation, vehicular, medical, aerospace, nuclear, undersea repeater use. prior written approval Renesas Technology Corporation necessary reprint reproduce whole part these materials. these products technologies subject Japanese export control restrictions, they must exported under license from Japanese government cannot imported into country other than approved destination. diversion reexport contrary export control laws regulations Japan and/or country destination prohibited. Please contact Renesas Technology Corporation further details these materials products contained therein. SH7616 E10A Emulator User's Manual ADE-702-262 Rev. 08/06/01 Hitachi, Ltd. HS7616KCM01HE Cautions Hitachi neither warrants grants licenses rights Hitachi's third party's patent, copyright, trademark, other intellectual property rights information contained this document. Hitachi bears responsibility problems that arise with third party's rights, including intellectual property rights, connection with information contained this document. Products product specifications subject change without notice. Confirm that have received latest product standards specifications before final design, purchase use. Hitachi makes every attempt ensure that products high quality reliability. However, contact Hitachi's sales office before using product application that demands especially high quality reliability where failure malfunction directly threaten human life cause risk bodily injury, such aerospace, aeronautics, nuclear power, combustion control, transportation, traffic, safety equipment medical equipment life support. Design your application that product used within ranges guaranteed Hitachi particularly maximum rating, operating supply voltage range, heat radiation characteristics, installation conditions other characteristics. Hitachi bears responsibility failure damage when used beyond guaranteed ranges. Even within guaranteed ranges, consider normally foreseeable failure rates failure modes semiconductor devices employ systemic measures such fail-safes, that equipment incorporating Hitachi product does cause bodily injury, fire other consequential damage operation Hitachi product. This product designed radiation resistant. permitted reproduce duplicate, form, whole part this document without written approval from Hitachi. Contact Hitachi's sales office questions regarding this document Hitachi semiconductor products. IMPORTANT INFORMATION READ FIRST READ this user's manual before using this emulator product. KEEP user's manual handy future reference. attempt emulator product until fully understand mechanism. Emulator Product: Throughout this document, term "emulator product" shall defined following products produced only Hitachi, Ltd. excluding subsidiary products. Emulator User system interface cable user system host computer included this definition. Purpose Emulator Product: This emulator product software hardware development tool systems employing Hitachi microcomputer. This emulator product must only used above purpose. Limited Applications: This emulator product authorized MEDICAL, atomic energy, aeronautical space technology applications without consent appropriate officer Hitachi sales company. Such includes, limited life support systems. Buyers this emulator product must notify relevant Hitachi sales offices before planning product such applications. Improvement Policy: Hitachi, Ltd. (including subsidiaries, hereafter collectively referred Hitachi) pursues policy continuing improvement design, performance, safety emulator product. Hitachi reserves right change, wholly partially, specifications, design, user's manual, other documentation time without notice. Target User Emulator Product: This emulator product should only used those have carefully read thoroughly understood information restrictions contained user's manual. attempt emulator product until fully understand mechanism. highly recommended that first-time users instructed users that well versed operation emulator product. LIMITED WARRANTY Hitachi warrants emulator products manufactured accordance with published specifications free from defects material and/or workmanship. Hitachi, option, will replace emulator products returned intact factory, transportation charges prepaid, which Hitachi, upon inspection, shall determine defective material and/or workmanship. foregoing shall constitute sole remedy breach Hitachi's warranty. Hitachi warranty booklet details warranty period. This warranty extends only you, original Purchaser. transferable anyone subsequently purchases emulator product from you. Hitachi liable claim made third party made third party. DISCLAIMER HITACHI MAKES WARRANTIES, EITHER EXPRESS IMPLIED, ORAL WRITTEN, EXCEPT PROVIDED HEREIN, INCLUDING WITHOUT LIMITATION THEREOF, WARRANTIES MARKETABILITY, MERCHANTABILITY, FITNESS PARTICULAR PURPOSE USE, AGAINST INFRINGEMENT PATENT. EVENT SHALL HITACHI LIABLE DIRECT, INCIDENTAL CONSEQUENTIAL DAMAGES NATURE, LOSSES EXPENSES RESULTING FROM DEFECTIVE EMULATOR PRODUCT, EMULATOR PRODUCT, DOCUMENTATION, EVEN ADVISED POSSIBILITY SUCH DAMAGES. EXCEPT EXPRESSLY STATED OTHERWISE THIS WARRANTY, THIS EMULATOR PRODUCT SOLD MUST ASSUME RISK RESULTS OBTAINED FROM EMULATOR PRODUCT. State Law: Some states allow exclusion limitation implied warranties liability incidental consequential damages, above limitation exclusion apply you. This warranty gives specific legal rights, have other rights which vary from state state. Warranty Void Following Cases: Hitachi shall have liability legal responsibility problems caused misuse, abuse, misapplication, neglect, improper handling, installation, repair modifications emulator product without Hitachi's prior written consent problems caused user system. Rights Reserved: This user's manual emulator product copyrighted rights reserved Hitachi. part this user's manual, part, reproduced duplicated form, hardcopy machine-readable form, means available without Hitachi's prior written consent. Other Important Things Keep Mind: Circuitry other examples described herein meant merely indicate characteristics performance Hitachi's semiconductor products. Hitachi assumes responsibility intellectual property claims other problems that result from applications based examples described herein. license granted implication otherwise under patents other rights third party Hitachi. Figures: Some figures this user's manual show items different from your actual system. Device names: Sections this user's manual SHxxxx example device names. Limited Anticipation Danger: Hitachi cannot anticipate every possible circumstance that might involve potential hazard. warnings this user's manual emulator product therefore inclusive. Therefore, must emulator product safely your risk. SAFETY PAGE READ FIRST READ this user's manual before using this emulator product. KEEP user's manual handy future reference. attempt emulator product until fully understand mechanism. DEFINITION SIGNAL WORDS This safety alert symbol. used alert potential personal injury hazards. Obey safety messages that follow this symbol avoid possible injury death. DANGER DANGER indicates imminently hazardous situation which, avoided, will result death serious injury. WARNING indicates potentially hazardous situation which, avoided, could result death serious injury. CAUTION indicates potentially hazardous situation which, avoided, result minor moderate injury. WARNING CAUTION CAUTION CAUTION used without safety alert symbol indicates potentially hazardous situation which, avoided, result property damage. NOTE emphasizes essential information. WARNING Observe precautions listed below. Failure will result FIRE HAZARD will damage user system emulator product will result PERSONAL INJURY. USER PROGRAM will LOST. repair remodel emulator product yourself electric shock prevention quality assurance. Always switch host computer user system before connecting disconnecting CABLES PARTS. Connect connectors user system user interface cable confirming correct direction. interface board E6000 E8000 emulator (HS6000EIC01H) E10A emulator card mounted same host computer, connectors illegally connected. Warnings Emulator Usage sure read understand warnings below before using this emulator. Note that these main warnings, complete list. WARNING Always switch host computer user system before connecting disconnecting CABLES PARTS. Failure will result FIRE HAZARD will damage user system emulator product will result PERSONAL INJURY. USER PROGRAM will LOST. CAUTION Place host computer user system that cable bent twisted. bent twisted cable will impose stress user interface leading connection contact failure. Make sure that host computer user system placed secure position that they move during impose stress user interface. Preface Thank purchasing E10A emulator. CAUTION READ section Preparation before Use, this User's Manual before using emulator product. Incorrect operation will damage user system emulator product. This emulator efficient development tool software hardware user systems based Hitachi's original microprocessor. emulator operates using Hitachi debugging interface (hereafter referred HDI), which interface program that runs Microsoft® Windows® Microsoft® Windows® Microsoft® Windows® 2000, Microsoft® Windows® Microsoft® Windows operating system. This manual describes functions operating procedures E10A emulator. Sections describe common features types E10A emulators. Section describes supplements E10A emulator. Read section 1.1, Warnings, carefully before using emulator. This manual consists sections. information contained each section summarized below: Section Overview, gives emulator overview. Section Preparation before Use, gives instructions first-time users, such preparation before system connection. Section Tutorial, describes operating examples functions. Section Descriptions Windows, describes windows operating emulator. Section Command-line Functions describes input commands command types. Section SHxxxx E10A Emulator Specifications describes detailed specifications features E10A emulator each device. Section describes important information E10A emulator according emulator products. Read these sections before using E10A emulator. installation disks provided CD-R. Refer descriptions manuals host computer operating system. Related Manuals: SuperH SuperH SuperH RISC engine C/C++ Compiler User's Manual RISC engine Assembler User's Manual RISC engine C/C++ Compiler Assembler Optimizing Linkage Editor User's Manual Series Linkage Editor, Librarian, Object Converter User's Manual Hitachi Debugging Interface User's Manual Hardware Manual each device Programming Manual each device Notes: registered trademark International Business Machines Corporation. Microsoft Windows Windows registered trademarks Microsoft Corporation United States and/or other countries. Microsoft® Windows® operating system referred Windows® this user's manual. Microsoft® Windows® operating system referred Windows® this user's manual. Microsoft® Windows® 2000 operating system referred Windows® 2000 this user's manual. Microsoft® Windows® Millennium Edition operating system referred Windows this user's manual. Adobe, Acrobat, Acrobat® Reader® registered trademarks Adobe Systems Incorporated. Other brand product names registered trademarks each company. Contents Section Overview.1 Warnings Environmental Conditions Components Section Preparation before Emulator Preparation Installation 2.2.1 Installing under Windows®95 Windows®98 Operating Systems 2.2.2 Installing under Windows NT®4.0 Operating System 2.2.3 Installing under Windows®2000 Operating System Connecting Card Emulator Host Computer Connecting Card Emulator User System System Check Ending HDI. Uninstalling HDI. CD-R. 2.8.1 Configuration CD-R Support Section Tutorial Introduction. Running HDI. [HDI] Window Setting Emulator Setting [Configuration] Dialog Box. Checking Operation Target Memory Downloading. Downloading Tutorial Program 3.7.1 Downloading Tutorial Program 3.7.2 Displaying Source Program Setting Software Breakpoint Setting Registers Executing Program. Reviewing Breakpoints Viewing Memory Watching Variables. Stepping Through Program 3.14.1 Executing [Step Command. 3.14.2 Executing [Step Out] Command 3.10 3.11 3.12 3.13 3.14 3.14.3 Executing [Step Over] Command 3.15 Forced Breaking Program Executions 3.16 Displaying Local Variables. 3.17 Break Function. 3.17.1 Software Break Function 3.18 Hardware Break Function 3.18.1 Setting Sequential Break Condition 3.19 Trace Functions. 3.19.1 Internal Trace Function. 3.19.2 Trace Function. 3.19.3 VP_MAP Translation. 3.20 Stack Trace Function 3.21 Profiling Function 3.22 Download Function Flash Memory Area 3.23 What Next? Section Descriptions Windows.97 Windows Descriptions Each Window 4.2.1 [Configuration] Dialog Box. 4.2.2 [Breakpoints] Window. 4.2.3 [Break] Dialog Box. 4.2.4 [Break Point] Dialog 4.2.5 [Break Condition] Dialog Box. 4.2.6 [Break Condition] Dialog Pages. 4.2.7 [Trace] Window. 4.2.8 [Trace Acquisition] Dialog Box. 4.2.9 [System Status] Window. Section Command-line Functions.141 Table Symbol Description. 5.1.1 Format. 5.1.2 Parameter Input. 5.1.3 Examples. 5.1.4 Related Items Command Descriptions. 5.2.1 AUD_CLOCK:AUCL 5.2.2 AUD_MODE:AUM. 5.2.3 AUD_TRACE:AUT. 5.2.4 BREAKCONDITION_CLEAR: 5.2.5 BREAKCONDITION_DISPLAY: 5.2.6 BREAKCONDITION_ENABLE: BCE. 5.2.7 BREAKCONDITION_SET: 5.2.8 5.2.9 5.2.10 5.2.11 5.2.12 5.2.13 5.2.14 5.2.15 5.2.16 5.2.17 5.2.18 5.2.19 5.2.20 5.2.21 5.2.22 5.2.23 5.2.24 5.2.25 BREAKPOINT: BREAKPOINT_CLEAR: BREAKPOINT_DISPLAY: BREAKPOINT_ENABLE: DEVICE_TYPE: GO_OPTION: JTAG_CLOCK: MEMORYAREA_SET: REFRESH: RESTART: STATUS: STEP_INTERRUPT: TRACE_DISPLAY: UBC_MODE:UM VPMAP_CLEAR: VPMAP_DISPLAY: VPMAP_ENABLE: VPMAP_SET: Section SH7616 E10A Emulator Specifications.183 Components Emulator Arrangement Hitachi-UDI Port Connector. User System Interface Circuit Differences between SH7616 Emulator SH7616 E10A Emulator Functions 6.5.1 Emulator Driver Selection 6.5.2 Hardware Break Functions 6.5.3 Notes Setting [Breakpoint] Dialog 6.5.4 Notes Using JTAG Clock (TCK) 6.5.5 Trace Function 6.5.6 Notes Setting [Trace] Window. 6.5.7 Downloading Function Flash Memory Area. 6.5.8 Notes Figures Figure Figure Figure Figure Figure Figure System Configuration with Emulator (PCMCIA Card Emulator Used). System Configuration with Emulator (PCI Card Emulator Used). Emulator Preparation Flow Chart. Inserting PCMCIA Card Emulator Host Computer's Slot Inserting Card Emulator Host Computer's Slot Connecting User System Interface Cable User System when 14-pin Straight Type Connector Used Figure User System Example Figure [Start] Menu Figure [Select Session] Dialog Box. Figure [E10A Driver Details] Dialog Box. Figure Dialog RESET Signal Input Request Message. Figure 2.10 [HDI] Status Bar. Figure 2.11 [JTAG Connector Disconnected] Dialog Box. Figure 2.12 [Can find /RESET signal] Dialog Figure 2.13 [Check connection] Dialog Figure 2.14 [COMMUNICATION TIMEOUT ERROR] Dialog Figure 2.15 [INVALID ASERAM FIRMWARE!] Dialog Figure 2.16 [Error JTAG boot] Dialog Figure 2.17 [Unable restore previous driver settings] Dialog Figure 2.18 [Exit HDI] Dialog Figure 2.19 [Save session] Dialog Figure [Start] Menu Figure [HDI] Window Figure [Configuration] Dialog Figure [Open Memory Window] Dialog Box. Figure [Memory] Window. Figure [Load Program] Dialog Box. Figure [HDI] Dialog Box. Figure [Open] Dialog Figure [Source] Window (Displaying Source Program). Figure 3.10 [Source] Window (Setting Software Breakpoint). Figure 3.11 [Registers] Window. Figure 3.12 [Register] Dialog (PC) Figure 3.13 [Go] Button Figure 3.14 [Source] Window (Break Status). Figure 3.15 [System Status] Window Figure 3.16 [Breakpoints] Window Figure 3.17 [Open Memory Window] Dialog Box. Figure 3.18 [Memory] Window. Figure 3.19 [Instant Watch] Dialog Figure 3.20 [Watch] Window (Displaying Array). Figure 3.21 Figure 3.22 Figure 3.23 Figure 3.24 Figure 3.25 Figure 3.26 Figure 3.27 Figure 3.28 Figure 3.29 Figure 3.30 Figure 3.31 Figure 3.32 Figure 3.33 Figure 3.34 Figure 3.35 Figure 3.36 Figure 3.37 Figure 3.38 Figure 3.39 Figure 3.40 Figure 3.41 Figure 3.42 Figure 3.43 Figure 3.44 Figure 3.45 Figure 3.46 Figure 3.47 Figure 3.48 Figure 3.49 Figure 3.50 Figure 3.51 Figure 3.52 Figure 3.53 Figure 3.54 Figure 3.55 Figure 3.56 Figure 3.57 Figure 3.58 Figure 3.59 Figure 3.60 Figure 3.61 Figure 3.62 Figure 3.63 [Add Watch] Dialog [Watch] Window (Displaying Variable) [Watch] Window (Displaying Array Elements) [Step Button. [Source] Window (Step [Step Out] Button [HDI] Window (Step Out). [HDI] Window (Step Step In). [Source] Window (Before Step Over Execution). [Step Over] Button [HDI] Window (Step Over). [Go] Button [Stop] Button [Locals] Window. [Breakpoints] Window (Before Software Breakpoint Setting) [Point] Page ([Break] Dialog Box). [Break Point] Dialog Box. [Point] Page ([Break] Dialog Box) (After Software Breakpoint Setting) [Breakpoints] Window (Software Breakpoint Setting) [Source] Window Execution Stop (Software Break). Displayed Contents [System Status] Window (Software Break) [Breakpoints] Window (Before Hardware Break Condition Setting) [Condition] Page ([Break] Dialog Box) [Address] Page ([Break Condition Dialog Box) [Bus State] Page ([Break Condition Dialog Box) [Break] Dialog (After Hardware Break Condition Setting). [Breakpoints] Window ([Break Condition Setting) [Source] Window Execution Stop (Break Condition Displayed Contents [System Status] Window (Break Condition [Configuration] Dialog (Sequential Break Setting) [Breakpoints] Window (After Sequential Break Condition Setting). [Source] Window Execution Stop (Sequential Break) Displayed Contents [System Status] Window (Sequential Break). [Trace mode] Window [Trace] Window [Trace mode] Window [Trace] Window SH7751 E10A Emulator Address Translation according VP_MAP Tables. [Source] Window (Software Breakpoint Setting) [Stack Trace] Window. [Profile-List] Window Selection [Enable Profiler]. [Select Data] Dialog Figure 3.64 [Source] Window (Software Break Setting). Figure 3.65 [Profile-List] Window Figure 3.66 [Profile-Tree] Window Figure 3.67 [Profile-Chart] Window Figure 3.68 [Loading flash memory] Page Figure 3.69 Flash Memory Wiring Figure 3.70 [Loading flash memory] Page Figure [Configuration] Dialog Figure [General] Page ([Configuration] Dialog Box). Figure Warning Message Figure [E10A Driver Details] Dialog Box. Figure [Loading flash memory] Page ([Configuration] Dialog Box) Figure [Breakpoints] Window Figure [Break] Dialog Figure [Point] Page ([Break] Dialog Box). Figure [Condition] Page ([Break] Dialog Box) Figure 4.10 [Break Point] Dialog Box. Figure 4.11 [Break Condition] Dialog Figure 4.12 [Address] Page ([Break Condition Dialog Box) Figure 4.13 [Data] Page ([Break Condition Dialog Box). Figure 4.14 [ASID] Page ([Break Condition] Dialog Box) Figure 4.15 [Bus State] Page ([Break Condition] Dialog Box) Figure 4.16 [Count] Page ([Break Condition] Dialog Box) Figure 4.17 [General] Page ([Break Condition] Dialog Box). Figure 4.18 [Trace] Window Figure 4.19 [Trace mode] Page ([Trace Acquisition] Dialog Box) Figure 4.20 [System Status] Window Figure Error Message Dialog Figure Arrangement Hitachi-UDI Port Connector Pins). Figure User System Interface Circuit (HS7616KCM01H) (Model Name: HS0005KCM03H) Figure User System Interface Circuit (HS7616KCI01H) (Model Name: HS0005KCI03H) Figure Flash Memory Wiring viii Tables Table Environmental Conditions Table Operating Environments. Table Recommended Hitachi-UDI Port Connector Table Contents CD-R Directories. Table Tutorial Program: Configuration Parts Table Step Option Table Sequential Break Conditions Table Trace Functions. Table Address Translation Tables Table Module Interface. Table [Loading flash memory] Page Options. Table Example Board Specifications Table Sample Program Specifications Table Window Menus Related Manual Entries Table [Configuration] Dialog Page Table [General] Page Options. Table Options [E10A Driver Details] Dialog Table [Loading flash memory] Page Options. Table [Breakpoints] Window Display Items Table [Breakpoints] Window Pop-up Menu Operation. Table [Break] Dialog Pages Table [Point] Page Options. Table 4.10 [Condition] Page Options Table 4.11 [Address] Page Options Table 4.12 Setting Conditions [Break Condition] Dialog Boxes. Table 4.13 [Break Condition] Dialog Pages Table 4.14 [Address] Page Options Table 4.15 Address Options Table 4.16 [Data] Page Options. Table 4.17 [ASID] Page Options. Table 4.18 [Bus State] Page Options Table 4.19 [Count] Page Options Table 4.20 [General] Page Options. Table 4.21 [Trace] Window Display Items. Table 4.22 [Trace Acquisition] Dialog Page Options Table 4.23 [Trace mode] Page Options Table 4.24 [System Status] Window Display Items Table E10A Commands. Table AUD_CLOCK Command Parameter Table AUD_MODE Command Parameter Table AUD_TRACE Command Parameter. Table BREAKCONDITION_CLEAR Command Parameter Table BREAKCONDITION_DISPLAY Command Parameter Table BREAKCONDITION_ENABLE Command Parameters. Table BREAKCONDITION_SET Command Parameters Table BREAKPOINT Command Parameters. Table 5.10 BREAKPOINT_CLEAR Command Parameters. Table 5.11 BREAKPOINT_DISPLAY Command Parameter. Table 5.12 BREAKPOINT_ENABLE Command Parameters Table 5.13 DEVICE_TYPE Command Parameter Table 5.14 GO_OPTION Command Parameter Table 5.15 JTAG_CLOCK Command Parameter Table 5.16 MEMORYAREA_SET Command Parameters Table 5.17 REFRESH Command Parameter Table 5.18 RESTART Command Parameter. Table 5.19 STATUS Command Parameter Table 5.20 STEP_INTERRUPT Command Parameter Table 5.21 TRACE_DISPLAY Command Parameter. Table 5.22 UBC_MODE Command Parameter. Table 5.23 VPMAP_CLEAR Command Parameter. Table 5.24 VPMAP_DISPLAY Command Parameter Table 5.25 VPMAP_ENABLE Command Parameter Table 5.26 VPMAP_SET Command Parameters Table Components Emulator (HS7616KCM01H HS7616KCI01H) Table Register Initial Values Emulator Power-On Table Type Name Driver Table Hardware Break Condition Specification Items Table Dialog Boxes Setting Hardware Break Conditions. Table Commands Setting Software Breakpoints. Table Type Name Function Table Example Board Specifications Table Sample Program Specifications Table 6.10 Watchdog Timer Register. Section Overview E10A emulator (hereafter referred emulator) software hardware development support tool application systems using microprocessor developed Hitachi, Ltd. PCMCIA card emulator card emulator (hereafter referred card emulator), which main unit emulator, connected, through Hitachi-UDI (user debug interface) port*, user system. user system debugged under conditions similar actual application conditions. emulator enables debugging anywhere indoors out. host computer controlling emulator must compatible machine with PCMCIA type slot. Figures show system configuration using emulator. Note: Hitachi-UDI interface compatible with Joint Test Action Group (JTAG) specifications. Host computer with PCMCIA TYPE slot) PCMCIA card emulator Insert Card Emulator H-UDI Micro Computer Development System Card User system interface cable HITACHI SHxxxx Insert into PCMCIA TYPE slot Connect Hitachi-UDI port connector User system Figure System Configuration with Emulator (PCMCIA Card Emulator Used) Figure System Configuration with Emulator (PCI Card Emulator Used) emulator provides following features: Excellent cost-performance card emulator Compactness price implemented using PCMCIA interface interface. Realtime emulation Realtime emulation user system enabled maximum operating frequency CPU. Excellent operability Using Hitachi Debugging Interface (HDI) Microsoft Windows Microsoft Windows Microsoft Windows 2000, Microsoft Windows operating systems enables user program debugging using pointing device such mouse. enables high-speed downloading load module files. Various debugging functions Various break trace functions enable efficient debugging. Breakpoints break conditions specific window, trace information displayed window, command-line functions used. Memory access during emulation During emulation, memory contents read modified. Debugging user system final development stage user system debugged under conditions similar actual application conditions. Compact debugging environment When card emulator specific PCMCIA interface used, laptop computer used host computer, creating debugging environment place. trace function* trace function enables realtime trace. Note: abbreviation Advanced User Debugger. Support varies with product. Warnings CAUTION READ following warnings before using emulator product. Incorrect operation will damage user system emulator product. USER PROGRAM will LOST. Check components against component list after unpacking emulator. Never place heavy objects casing. Protect emulator from excessive impacts stresses. details, refer section 1.2, Environmental Conditions. insert emulator into slot (PCMCIA TYPE slot slot) other than specified one. When moving host computer user system, take care vibrate damage After connecting cable, check that connected correctly. details, refer section Preparation before Use. Supply power connected equipment after connecting cables. Cables must connected removed while power Environmental Conditions CAUTION Observe conditions listed tables when using emulator. Failure will cause illegal operation user system, emulator product, user program. Table Item Temperature Humidity Vibration Environmental Conditions Specifications Operating: +10°C +35°C Storage: Storage: Operating: Storage: -10°C +50°C condensation 2.45 m/s2 max. m/s2 max. Operating: condensation Transportation: 14.7 m/s2 max. Ambient gases corrosive gases present Table lists acceptable operating environments. Table Item Operating Environments Description Built-in Pentium higher-performance (200 higher recommended); compatible machine with PCMCIA TYPE slot slot. Windows® Windows® Windows® 2000, Windows Mbytes more (double load module size recommended) Installation disk capacity: Mbytes more. (Prepare area least double memory capacity (four-times more recommended) swap area.) Connectable host computer; compatible with Windows® Windows® Windows® 2000, Windows NT®. 0.25 HSxxxxKCM01H: (max) HSxxxxKCM02H: (max) HSxxxxKCI01H: (max) HSxxxxKCI02H: (max) Required install emulator refer emulator user's manual. Host computer Minimum memory capacity Hard-disk capacity Pointing device such mouse Power voltage Current consumption CD-ROM drive Components Check components unpacking. details E10A emulator components, refer section 6.1, Components Emulator. components complete, contact Hitachi sales agency. Section Preparation before Emulator Preparation WARNING READ reference sections shaded figure before using emulator product. Incorrect operation will damage user system emulator product. USER PROGRAM will LOST. Unpack emulator prepare follows: Reference Unpack emulator Check components against component list When emulator used first. emulator Install Insert card emulator Component list Section Start Turn user system Input user system reset signal Section When emulator used second time later. Figure Emulator Preparation Flow Chart Installation When CD-R inserted host computer's CD-ROM drive, installation wizard automatically activated (holding Shift down while CD-R inserted cancels this automatic activation). installation wizard when been automatically activated, execute Setup.exe from root directory CD-R. Follow cues given installation wizard install HDI. Since hardware settings also made during installation, installation procedure differs according operating system interface (PCI PCMCIA) being used. Follow installation steps carefully according environment using. 2.2.1 Installing under Windows®95 Windows®98 Operating Systems When emulator card: Install (when component type selected during installation, sure select [PCI Card Driver]). Shut operating system down turn power host computer. Insert PCI-card emulator slot host computer. Refer section 2.3, Connecting Card Emulator Host Computer. Restart host computer. hardware recognized driver automatically installed.* When emulator PCMCIA card: Install (when component type selected during installation, sure select Card Driver (PCMCIA)]). Insert PCMCIA-card emulator host computer's slot. Refer section 2.3, Connecting Card Emulator Host Computer. hardware recognized driver automatically installed.* Note: When [Add Hardware Wizard] displayed, select [Search best driver your device. (Recommended)] radio button then [Specify location] check select path searched drivers. location must specified according emulator type, indicated below: When using PCI-card emulator: <Drive>:\DRIVERS\PCI\95 When using PCMCIA-card emulator: <Drive>:\DRIVERS\PCMCIA\95 (<Drive> CD-ROM drive name.) 2.2.2 Installing under Windows Operating System When emulator card: Shut operating system down turn power host computer. Insert PCI-card emulator slot host computer. Refer section 2.3, Connecting Card Emulator Host Computer. Start host computer log-on with administrator-level user name. Install HDI. (For component, sure select [PCI Card Driver]. There check selecting type name product under [PCI Card Driver] component. Select appropriate type name. correct name selected, correct driver will installed, emulator will operate.) Restart host computer. When emulator PCMCIA card: Shut operating system down turn power host computer. Insert PCMCIA-card emulator host computer's slot. Refer section 2.3, Connecting Card Emulator Host Computer. Start host computer log-on with administrator-level user name. During installation, setting value should checked beforehand because inquiries made about resource used PCMCIA-card emulator. Start [Start] menu [Programs] [Administrative Tools (Common)] [Windows Diagnostics], check status IRQ, port, memory from resource panel, determine setting values that conflict with other devices. (The following resources used: IRQ: channel, port: byte, memory: H'4000 byte.) Install HDI. (For component, sure select Card Driver (PCMCIA)]. There check selecting type name each product under Card Driver (PCMCIA)] component. Select appropriate type name. correct name selected, correct driver will installed emulator will operate.) Restart host computer. Notes: SH7729, SH7729R, SH7622 E10A emulators, there check selecting MODEL name that appears component list. Select correct type name. driver that been selected [Drivers] component starts after host computer initiated. host computer initiated with card disconnected with incorrect driver installed, driver cannot initiate service control manager informs system error. This, however, problem. 2.2.3 Installing under Windows 2000 Operating System When emulator card: Log-on with administrator-level user name. Install HDI. (When component selected, sure select [PCI Card Driver].) Shut operating system down turn power host computer. Insert PCI-card emulator slot host computer. Refer section 2.3, Connecting Card Emulator Host Computer. Restart host computer log-on with administrator-level user name. hardware recognized driver automatically installed.* When emulator PCMCIA card: Log-on with administrator-level user name. Install HDI. (When component selected, sure select Card Driver (PCMCIA)].) Insert PCMCIA-card emulator host computer's slot. Refer section 2.3, Connecting Card Emulator Host Computer. hardware recognized driver automatically installed.* Note: When [Found Hardware Wizard] displayed, select [Search suitable driver device (recommended).] radio button then [Specify location] check select path searched drivers. location must specified according emulator type, indicated below: When using PCI-card emulator: <Drive>:\DRIVERS\PCI\2000 When using PCMCIA-card emulator: <Drive>:\DRIVERS\PCMCIA\2000 (<Drive> CD-ROM drive name.) Connecting Card Emulator Host Computer Insert card emulator, according type, PCMCIA TYPE slot slot host computer (figures 2.3). Note: When using Windows Windows Windows 2000, sure install before putting card emulator place. Host computer with PCMCIA TYPE slot) PCMCIA card emulator Insert Card Emulator H-UDI Micro Computer Development System Card HITACHI Insert into PCMCIA TYPE slot Figure Inserting PCMCIA Card Emulator Host Computer's Slot card emulator Insert into slot Host computer Figure Inserting Card Emulator Host Computer's Slot procedure, described section 2.4, connect emulator user system with user system interface cable, disconnect them when moving emulator user system. WARNING When inserting PCI-card emulator, note following. Failure will damage host computer. Turn host computer. Insert emulator into slot parallel. Screw emulator after checking connector cable positions. Connecting Card Emulator User System Hitachi-UDI port connector must installed user system. Table shows recommended Hitachi-UDI port connector emulator. Table Connector 14-pin connector 36-pin connector Recommended Hitachi-UDI Port Connector Type Number 2514-6002 DX10M-36S DX10M-36SE, DX10GM-36SE Manufacturer Minnesota Mining Manufacturing Ltd. Hirose Electric Co., Ltd. Specifications 14-pin straight type Screw type Lock-pin type Note: When 14-pin connector used, install components within Hitachi-UDI port connector. When 36-pin connector used, connect other signal lines HitachiUDI port connector. Note that signal user system interface cable connector must connected Hitachi-UDI port connector signal user system interface cable connector must connected Hitachi-UDI port connector. Section shows arrangement Hitachi-UDI port connector. Figure shows connect user system interface cable user system when 14-pin straight type connector used. Connect ground line cable user system ground. ground line hole having diameter therefore, when ground line screwed user system, screw diameter must User system interface cable line Hitachi-UDI port connector User system connection User system Figure Connecting User System Interface Cable User System when 14-pin Straight Type Connector Used Notes: connect signals output from Hitachi-UDI port connector, refer device alignment. remove user system interface cable from user system, pull connector upward. range frequencies that Hitachi-UDI operates different according devices used. details, refer section 6.5.4, Notes Using JTAG Clock (TCK) Clock (AUDCK). Connect Hitachi-UDI signals from Hitachi-UDI port connector directly device. When developing user systems, connect signals device boundary scan loop, separate them using switch (figure 2.5). Hitachi-UDI port SHxxxx Hitachi-UDI JTAG port Boundary scan loop User system TDI: Test data input TDO: Test data output TAP: Test access port Figure User System Example System Check When program executed, procedure below check that emulator operating correctly. Check that emulator card inserted host computer's slot. Connect user system interface cable connector card emulator. Connect user system interface cable Hitachi-UDI port connector. Supply power host computer select [HDI E10A SHxxxx] [Hitachi Debugging Interface] from [Start] menu. Figure [Start] Menu Select setting used. Figure [Select Session] Dialog [E10A Driver Details] dialog displayed. With [Driver] combo box, select driver connect with emulator. [Interface] displays interface name interface board connected, [Channel] displays interface which board connected. Once driver selected [E10A Driver Details] dialog box, this dialog displayed when next time. (This procedure will executed target devices.) Figure [E10A Driver Details] Dialog With [Driver] combo box, select driver connect with emulator. [Interface] displays interface name card emulator connected, [Channel] displays interface which board connected. [Driver] combo box: Select [E10A Card Driver] PCMCIA card emulator. Select [E10A Card Driver] card emulator. details, refer table section 6.5.1, Emulator Driver Selection. [Interface] combo box: Select Card] PCMCIA card emulator. [PCI] displayed card emulator. driver installed, Card] [PCI] displayed.) Click [Close] button. window displayed, dialog displayed shown figure 2.9. Figure Dialog RESET Signal Input Request Message Power user system. Input reset signal from user system, click [OK] button. When "Link displayed status bar, initiation completed. Figure 2.10 [HDI] Status Notes: When linked even above procedure been executed, driver will correctly. Install drivers provided under /DRIVERS directory CD-R according screen instructions. instructions check driver been correctly set, refer manual your host computer following URL: she10aqa.htm user system interface cable disconnected Hitachi-UDI port connector user system during user program execution, following dialog will displayed. Figure 2.11 [JTAG Connector Disconnected] Dialog emulator initiated, following dialog boxes shown figures 2.12 through 2.16 will displayed. following dialog displayed, power user system input RESET signal input device. Check input circuits power user system reset pin. Figure 2.12 [Can find /RESET signal] Dialog following dialog displayed, check that Hitachi-UDI port connector user system correctly connected. Figure 2.13 [Check connection] Dialog following dialog displayed, device correctly operate. Check there reasons illegal device operation. Figure 2.14 [COMMUNICATION TIMEOUT ERROR] Dialog Figure 2.15 [INVALID ASERAM FIRMWARE!] Dialog Figure 2.16 [Error JTAG boot] Dialog driver correctly connected, following dialog will displayed. Figure 2.17 [Unable restore previous driver settings] Dialog [E10A Driver Details] dialog displayed when [OK] button clicked. Select correct driver. details, refer section 6.5.1, Emulator Driver Selection. Ending Exit using following procedure: Select [Exit] from [File] menu HDI. When [Exit HDI] dialog displayed, click [Yes] button. Figure 2.18 [Exit HDI] Dialog Then, [Save session] dialog displayed. necessary, click [Yes] button save session. After saving session, ends. necessary, click [No] button HDI. Figure 2.19 [Save session] Dialog Turn user system off. Uninstalling Follow this procedure remove installed from user's host computer. Open [Add/Remove Programs Properties] from control panel. Select program from list click [Add/Remove.] button. setup program executed again installed application changed, modified, removed. When application uninstalled, select removal. CAUTION shared file detected while program being removed. another using shared file, remove file. When Microsoft Windows operating system used, removal registry information driver asked. other target driver, remove registry information. another does start after removal process, re-install that HDI. 2.8.1 CD-R Configuration CD-R root directory CD-R contains setup program installation. folders contain files programs listed below. Table Contents CD-R Directories Contents Microsoft runtime library Directory Name Dlls Description runtime library HDI. version checked installation this library copied hard disk part installation process. E10A emulator drivers. online help file. This copied hard disk part installation process. Precautions Using E10A Emulator user's manual. These provided files. Adobe® Acrobat® Reader application displaying, viewing, printing files. Drivers Help Manual E10A emulator driver Online help E10A emulator E10A emulator manual Pdf_read Adobe® Acrobat® Reader setup program Support Information latest version other supporting information emulator found site. Access following URL: Section Tutorial Introduction following describes main functions using tutorial program. tutorial program based program that sorts random data items ascending descending order. tutorial program performs following actions: main function generates random data sorted. sort function sorts generated random data ascending order. change function then sorts data descending order. file tutorial.c contains source code tutorial program. file tutorial.abs compiled load module Dwarf2 format. Table list parts tutorial program outline their configuration hard disk. Table Tutorial Program: Configuration Parts Item Workspace V1.2 Load module Main program (source file) Stack information file Contents [Installation [Installation [Installation [Installation area (CS3 space) operating environment. function used. Notes: Operation tutorial.abs endian. little-endian operation, tutorial.abs must recompiled. After recompilation, addresses differ from those given this section. This program created using Hitachi Embedded Workshop (hereafter referred HEW) V1.2. Older versions will open workspace included with package, create workspace such situations. This program compiled without optimization CPU. recompiled with different settings, addresses differ from those given this section. tutorial.abs load module Dwarf2 format. load module recreated Sysrof format, amount information displayed screen during program's execution will reduced. This section describes general usage examples emulator. specifications particular products, refer section online help file. Running HDI, select [HDI E10A SHxxxx] [Hitachi Debugging Interface] from [Start] menu. Figure [Start] Menu procedure running HDI, refer section 2.5, System Check. [HDI] Window Figure [HDI] Window functions described section Descriptions Windows. Numbers figure indicate following: Menu bar: Gives user access commands using debugger. Toolbar: Provides convenient buttons shortcuts most frequently used menu commands. Source window: Displays source program being debugged. Status bar: Displays status emulator, progress information about downloading. [Help] button: Activates online help about features user interface. Setting Emulator clocks which used data communications must emulator before program downloaded. clock clock used acquiring traces. frequency low, complete data acquired during realtime tracing. frequency high, upper limit device's clock exceeded. clock only needed emulators that have trace function. JTAG clock (TCK) communication clock downloading data emulator except acquiring trace. frequency low, speed downloading will lowered. frequency high, upper limit device's clock exceeded. details limitations both clocks, refer section 6.5.4, Notes Using JTAG Clock (TCK) Clock (AUDCK). following description procedure used clocks. Setting [Configuration] Dialog Select [Configure Platform.] from [Setup] menu communication clock. [Configuration] dialog displayed. Figure [Configuration] Dialog value [AUD clock] [JTAG clock] combo boxes. clock also operates with default value. Note: items that this window differ according product. settings each product, refer online help. Click [OK] button configuration. Checking Operation Target Memory Downloading Check that destination memory area downloading operating correctly. When destination memory SDRAM DRAM, register controller must before downloading. controller correctly [I/O Registers] window according memory type. details, refer section 8.6, Register Display, Hitachi Debugging Interface User's Manual. When required settings, such settings controller, have been completed, display edit contents destination memory [Memory] window check that memory operating correctly. Note: above checking operation memory inadequate. recommended that program checking memory created. Select [Memory.] from [View] menu, enter H'0c000000 [Address] edit box, format [Format] combo Byte. Figure [Open Memory Window] Dialog Click [OK] button. [Memory] window displayed shows specified memory area. Figure [Memory] Window Placing mouse cursor point display data [Memory] window double clicking allows values that point changed. Data also directly edited around current position text cursor. 3.7.1 Downloading Tutorial Program Downloading Tutorial Program Download object program debugged. Select [Load Program.] from [File] menu. [Load Program] dialog displayed. Enter `[installation [File name] list shown figure 3.6, then click [Open] button. Figure [Load Program] Dialog Notes: When installing emulator, directory specified use, program installed under `\Hew\hdi5\e10a'. When use, program installed under `\root directory\E10A'. file required that profiler function used. [Verify] check disabled this product. After file been loaded, following dialog displays information about memory areas which program code been transferred. Figure [HDI] Dialog Click [OK] button continue. 3.7.2 Displaying Source Program allows user debug program source level. Select [Source.] from [View] menu. [Open] dialog displayed. Select source file that corresponds object file user loaded. Figure [Open] Dialog Select [tutorial.c] click [Open] button. [Source] window displayed. Figure [Source] Window (Displaying Source Program) necessary, select [Font] option from [Customise] submenu [Setup] menu select font size that legible. Initially [Source] window shows start main program, user scroll scroll through program look other statements. Setting Software Breakpoint breakpoint simple debugging function. [Source] window provides very simple setting software breakpoint point program. example, breakpoint sort function call: Select double-clicking [BP] column line containing sort function call. Figure 3.10 [Source] Window (Setting Software Breakpoint) symbol will appear line containing sort function, word Break will appear when [BP] column extended. This shows that software breakpoint been set. Note: software breakpoint cannot area. Setting Registers values program counter stack pointer before executing program. Select [Registers] from [View] menu. [Registers] window displayed. Figure 3.11 [Registers] Window change value program counter (PC), double-click value area [Registers] window with mouse. following dialog then displayed, value changed. program counter H'0c00006c this tutorial program, click [OK] button. Move mouse pointer value changed [PC] value area enter value keyboard. Figure 3.12 [Register] Dialog (PC) Change value stack pointer (SP) same way. H'0c000c00 value stack pointer this tutorial program. 3.10 Executing Program Execute program described following: execute program, select [Go] from [Run] menu, click [Go] button toolbar. Figure 3.13 [Go] Button program will executed breakpoint that been inserted, statement will highlighted [Source] window show position that program halted, with message [Break=BREAKPOINT] status bar. Figure 3.14 [Source] Window (Break Status) user cause break that occurred last time [System Status] window. Select [Status] from [View] menu. After [System Status] window displayed, open [Platform] page, check status Cause last break. Figure 3.15 [System Status] Window Note: items that displayed this window differ according product. items that displayed, refer online help. 3.11 Reviewing Breakpoints user breakpoints program [Breakpoints] window. Select [Breakpoints] from [View] menu. Figure 3.16 [Breakpoints] Window pop-up menu, opened clicking [Breakpoints] window with right mouse button, also allows user change breakpoints, define breakpoints, delete, enable, disable breakpoints. 3.12 Viewing Memory When label name specified, user view memory contents that label been registered [Memory] window. example, view memory contents corresponding _main word size: Select [Memory from [View] menu, enter _main [Address] edit box, Word [Format] combo box. Figure 3.17 [Open Memory Window] Dialog Click [OK] button. [Memory] window showing specified area memory displayed. Figure 3.18 [Memory] Window 3.13 Watching Variables user steps through program, possible watch that values variables used user program changed. example, watch long-type array declared beginning program, using following procedure: Click left displayed array [Source] window position cursor. Click [Source] window with right mouse button select [Instant Watch.] from pop-up menu. following dialog will displayed. Figure 3.19 [Instant Watch] Dialog Click [Add Watch] button variable [Watch] window. Figure 3.20 [Watch] Window (Displaying Array) user also variable [Watch] window specifying name. Click [Watch] window with right mouse button select [Add Watch.] from pop-up menu. following dialog will displayed. Figure 3.21 [Add Watch] Dialog Input variable click [OK] button. [Watch] window will also show int-type variable max. Figure 3.22 [Watch] Window (Displaying Variable) user double-click symbol left variable [Watch] window watch elements array Figure 3.23 [Watch] Window (Displaying Array Elements) 3.14 Stepping Through Program provides range step menu commands that allow efficient program debugging. Table Menu Command Step Step Over Step Step. Step Option Description Executes each statement, including statements within functions. Executes function call single step. Steps function, stops statement following statement program that called function. Steps specified times repeatedly specified rate. 3.14.1 Executing [Step Command [Step steps into called function stops first statement called function. step through sort function, select [Step from [Run] menu, click [Step button toolbar. Figure 3.24 [Step Button Figure 3.25 [Source] Window (Step highlighted line moves first statement sort function [Source] window. 3.14.2 Executing [Step Out] Command [Step Out] steps called function stops next statement calling statement main function. step sort function, select [Step Out] from [Run] menu, click [Step Out] button toolbar. Note: takes time execute this function. Figure 3.26 [Step Out] Button Figure 3.27 [HDI] Window (Step Out) data variable displayed [Watch] window sorted ascending order. execute steps, [Step twice. Figure 3.28 [HDI] Window (Step Step value displayed [Watch] window changed maximum data value. 3.14.3 Executing [Step Over] Command [Step Over] executes function call single step stops next statement main program. Using [Step Over], execute steps reach change function statement. Figure 3.29 [Source] Window (Before Step Over Execution) step through statements change function single step, select [Step Over] from [Run] menu, click [Step Over] button toolbar. Figure 3.30 [Step Over] Button Figure 3.31 [HDI] Window (Step Over) 3.15 Forced Breaking Program Executions force break execution program. execute remaining sections main function, select [Go] from [Run] menu [Go] button toolbar. Figure 3.32 [Go] Button program goes into endless loop. force break execution, select [Halt] from [Run] menu [Stop] button toolbar. Figure 3.33 [Stop] Button highlighted line [Program] window moves while statement, value displayed [Watch] window updated most recent value. 3.16 Displaying Local Variables user display local variables function using [Locals] window. example, will examine local variables main function, which declares five local variables: min, max. Select [Locals] from [View] menu. [Locals] window displayed. Initially, [Locals] window empty because local variables have been declared. [Locals] window will show local variables their values. Figure 3.34 [Locals] Window Double-click symbol front array [Locals] window display elements array Refer elements array before after execution sort function, confirm that random data sorted descending order. 3.17 Break Function emulator software hardware break functions. With HDI, software breakpoint using [Breakpoints] window, hardware break condition using [Break Condition] dialog box. overview setting break function described below. 3.17.1 Software Break Function emulator software breakpoints. Other methods setting software breakpoint than section described below. Select [Breakpoints] from [View] menu. [Breakpoints] window displayed. Click [Breakpoints] window with right mouse button select [Delete All] from pop-up menu cancel breakpoints that have been set. Figure 3.35 [Breakpoints] Window (Before Software Breakpoint Setting) Click [Breakpoints] window with right mouse button select [Add] from pop-up menu. [Break] dialog displayed. [Point] page displayed default. Figure 3.36 [Point] Page ([Break] Dialog Box) Click [Add.] button display [Breakpoint] dialog box. Enter H'0c0000c2 [Value] edit box. Figure 3.37 [Break Point] Dialog Click [OK] button. [Break] dialog displayed. address value field [Breakpoint] memory space displayed. Figure 3.38 [Point] Page ([Break] Dialog Box) (After Software Breakpoint Setting) Click [Close] button [OK] button some emulator products). software breakpoint that been displayed [Breakpoints] window. Figure 3.39 [Breakpoints] Window (Software Breakpoint Setting) stop tutorial program breakpoint, following procedure must executed: Close [Breakpoints] window. program counter stack pointer values H'0c00006c H'0c000c00) that have been section 3.9, Setting Registers, [Registers] window. Click [Go] button. program runs, stops breakpoint. Figure 3.40 [Source] Window Execution Stop (Software Break) [System Status] window displays following contents. Figure 3.41 Displayed Contents [System Status] Window (Software Break) Note: items that displayed this window differ according product. items that displayed, refer online help. 3.18 Hardware Break Function method given below which address condition read cycles status condition under Break Condition hardware break conditions. Select [Breakpoint Window] from [View] menu. [Breakpoints] window displayed. Click [Breakpoints] window with right mouse button select [Delete All] from pop-up menu cancel breakpoints that have been set. Click [Breakpoints] window with right mouse button select [Add] from pop-up menu. Figure 3.42 [Breakpoints] Window (Before Hardware Break Condition Setting) [Break] dialog displayed. hardware break conditions, select [Condition] [Break] dialog display [Condition] page. Figure 3.43 [Condition] Page ([Break] Dialog Box) three breakpoints independently Break Condition hardware break condition. this example, hardware break condition Break Condition Note: number hardware break conditions differs according product. number that specified each product, refer online help. Highlight first point [Break Condition] list box. Click [Edit.] button. [Break Condition dialog displayed. Clear [Don't Care] check [Address] page. Select [Address] radio button enter H'0c0000b2 value [Address] edit box. Figure 3.44 [Address] Page ([Break Condition Dialog Box) Note: items that this window differ according product. settings each product, refer online help. Select [Bus State] display [Bus State] page. Select [Read] radio button [Read/Write] group box. Figure 3.45 [Bus State] Page ([Break Condition Dialog Box) Note: items that this window differ according product. settings each product, refer online help. Click [OK] button. [Break] dialog displayed, first point display [Break Condition] list changes from Empty Enable. Figure 3.46 [Break] Dialog (After Hardware Break Condition Setting) Note: number hardware break conditions differs according product. number that specified each product, refer online help. Click [OK] button. newly hardware breakpoint displayed [Breakpoints] window. With this setting, Break Condition displayed [Type] [Breakpoints] window. This completes setting Break Condition hardware break condition. When program executed, break will occur when address H'0c0000b2 accessed read cycle. Figure 3.47 [Breakpoints] Window ([Break Condition Setting) Close [Breakpoints] window. program counter stack pointer values H'0c00006c H'0c000c00) that have been section 3.9, Setting Registers, [Registers] window. Click [Go] button. program runs then stops condition specified under Break Condition Figure 3.48 [Source] Window Execution Stop (Break Condition [System Status] window displays following contents. Figure 3.49 Displayed Contents [System Status] Window (Break Condition Note: items that displayed this window differ according product. items that displayed, refer online help. 3.18.1 Setting Sequential Break Condition emulator sequential break functions. When hardware break conditions listed table satisfied, program execution halted. This mode called sequential break. Table Sequential Break Conditions Break Condition Sequential break condition Description Program halted when Break Condition Break Condition satisfied that order. Sequential break condition described below example. Before executing program, change setting [Configuration] dialog box. Otherwise, sequential break does function. Select [Configure Platform.] from [Setup] menu. [Configuration] dialog displayed. Select Sequential break condition from [Emulation mode] combo box. Figure 3.50 [Configuration] Dialog (Sequential Break Setting) Note: items that this window differ according product. settings each product, refer online help. Click [OK] button close [Configuration] dialog box. hardware break conditions follows: Break condition When address H'0c0000c6 accessed read cycle, break condition satisfied. Break condition When address H'0c0000b2 accessed read cycle, break condition satisfied. Follow setting method described previous section. When Break Condition setting been completed, state [Breakpoints] window follows. Figure 3.51 [Breakpoints] Window (After Sequential Break Condition Setting) Close [Breakpoints] window. program counter stack pointer values H'0c00006c H'0c000c00) that have been section 3.9, Setting Registers, [Registers] window. Click [Go] button. program runs then stops condition specified under Break Condition Figure 3.52 [Source] Window Execution Stop (Sequential Break) [System Status] window displays following contents. Figure 3.53 Displayed Contents [System Status] Window (Sequential Break) Note: items that displayed this window differ according product. items that displayed, refer online help. 3.19 Trace Functions E10A emulator branch-instruction trace functions. Internal Trace Function branch source branch destination addresses, mnemonics, operands, source lines displayed. Since this function uses trace buffer built into MCU, realtime trace acquired. Notes: number branch instructions that acquired trace differs according product. number that specified each product, refer online help. internal trace function supported products. specifications each product, refer section related trace functions section SHxxxx E10A Emulator Specifications, online help. internal trace function extended products. specifications each product, refer section related trace functions section SHxxxx E10A Emulator Specifications, online help. Trace Function This large-capacity trace function that enabled when connected emulator. This function displays branch source branch destination addresses, mnemonics, operands, source lines. When branch source branch destination instructions branch, number branch instructions acquired trace maximum 4,096 PCMCIA-type emulator maximum 16,384 PCI-type emulator. Table shows trace function. Notes: trace function supported products. specifications each product, refer section related trace functions section SHxxxx E10A Emulator Specifications, online help. trace function extended products. specifications each product number acquired branches, refer section related trace functions section SHxxxx E10A Emulator Specifications, online help. Table Trace Functions Type Acquisition mode when branches continuously occur Mode Realtime trace Description When next branch occurs while trace information being output, output stopped next trace information output. user program executed realtime, some trace information will output. When next branch occurs while trace information being output, stops operations until information output. user program executed realtime. This function always overwrites oldest trace information acquire latest trace information. trace information acquired. user program continuously executed. realtime trace Acquisition mode when trace buffer emulator becomes full Trace continue Trace stop 3.19.1 Internal Trace Function branch source branch destination information latest several branch instructions displayed. following procedure internal trace function (this function needed emulator that does support trace function): Select [Trace] from [View] menu. Click [Trace] window with right mouse button select [Acquisition] from popup menu display [Trace Acquisition] window. Select [Internal trace] radio button [Trace type] group box. Figure 3.54 [Trace mode] Window Note: items that this window differ according product. settings each product, refer online help. program shown example section 3.17.1, Software Break Function. trace results displayed [Trace] window after program execution completed. Figure 3.55 [Trace] Window necessary, adjust column width dragging header immediately below title bar. Note: number branch instructions that acquired trace differs according product. number that specified each product, refer online help. 3.19.2 Trace Function This function operational when connected emulator. following procedure setting trace function (this function does need emulator that does support internal trace function): Select [Trace] from [View] menu. Click [Trace] window with right mouse button select [Acquisition] from popup menu display [Trace Acquisition] window. Select [AUD trace] radio button [Trace type] group box. Figure 3.56 [Trace mode] Window Note: description each option, refer table 3.4. Note: items that this window differ according product. settings each product, refer online help. trace results displayed [Trace] window after program execution completed. display specifications [Trace] window same internal trace function. following example display SH7751 E10A emulator. Figure 3.57 [Trace] Window SH7751 E10A Emulator 3.19.3 VP_MAP Translation MCU, which MMU, translates internal addresses (virtual addresses) actual memory addresses (physical addresses). Address translation performed according address translation table (translation look-aside buffer: TLB) MCU. operates during command input wait state well during user program execution. When command memory access executed while address translation function enabled, address translated accessed. specified address within TLB, miss occurs, must updated user program. emulator address translation functions according VP_MAP tables. VP_MAP tables address translation tables emulator created with VPMAP_SET command. following shows example VP_MAP tables. Example: Create VP_MAP tables translating virtual addresses H'10000 H'10FFF physical addresses H'4000000 H'4000FFF virtual addresses H'11000 H'11FFF physical addresses H'FFF. 10000 10FFF 4000000 (RET) 11000 11FFF (RET) (RET) <VADDR_TOP> <VADDR_END> <PADDR_TOP> 00010000 00010FFF 04000000 00011000 00011FFF 00000000 DISABLE Then, enable VP_MAP tables. (When tables disabled, addresses translated.) ;enable (RET) (RET) <VADDR_TOP> <VADDR_END> 00010000 00010FFF 00011000 00011FFF ENABLE <PADDR_TOP> 04000000 00000000 Here, virtual addresses correspond physical addresses shown figure 3.58. H'10000 H'10FFF H'11000 H'11FFF H'12000 H'12FFF H'FFF H'12000 H'12FFF H'4000000 H'4000FFF Virtual address Physical address Figure 3.58 Address Translation according VP_MAP Tables translate addresses depends settings radio buttons memory area group [Configuration] dialog box. following shows translate addresses each setting state. When Normal radio button selected: VP_MAP table priority over TLB. When VP_MAP table enabled specified address within VP_MAP table settings, emulator translates address according VP_MAP table. specified address outside VP_MAP table settings even when VP_MAP table enabled, when VP_MAP table disabled, emulator translates address according state. When Virtual radio button selected: address translated according TLB. specified address outside table settings, error will occur. When Physical radio button selected: address translated. Table Address Translation Tables VP_MAP Radio Button* Normal Enabled/ Disabled Enabled Within/ Outside range Within Range Enabled/ Disabled Enabled Within/Outside Range Within Range Outside range Disabled Outside Range Enabled Within/outside range Within Range Outside range Disabled Disabled Within/ outside range Enabled Within/outside range Within Range Table Used Translation Translated according VP_MAP table Translated according VP_MAP table Translated according VP_MAP table Translated according table error translated Translated according table error translated Translated according table error Translated according table error translated Outside range Disabled Virtual Enabled/ disabled Within/ outside range Enabled Within/outside range Within Range Outside range Disabled Within Range Outside range Physical Enabled/ disabled Within/ outside range Enabled/ disabled Within/outside range Note: Specified [Memory area] group [Configuration] dialog box. 3.20 Stack Trace Function emulator uses stack's information display name calling function function which program counter currently pointing. Notes: This function used only when load module that Dwarf2-type debugging information loaded. details stack trace function, refer online help. Double-click [BP] column sort function software breakpoint. Figure 3.59 [Source] Window (Software Breakpoint Setting) same program counter stack pointer values H'0c00006c H'0c000c00) were section 3.9, Setting Registers (again, [Registers] window). Click [Go] button. After break execution, select [Stack Trace] from [View] menu open [Stack Trace] window. Figure 3.60 [Stack Trace] Window Figure 3.60 shows that position program counter currently selected line sort() function, that sort() function called from main() function. Notes: function deeply nested (lower than 10), main() function will displayed multiple times. details this function, refer online help. online help opened when [F1] pressed [Stack Trace] window. 3.21 Profiling Function profile function measure performance each function. Notes: Realtime operation possible while this function operation, since internal breaks generated during program execution. Measuring profile itself affects measurements. details, refer section SHxxxx Emulator Specifications. When this function used, click [Load stack information file (SNI file)] check [Load Program] dialog load stack information file. Performance profile measurement supported products. those products which supported, characteristics differ according product. specifications each product, refer section related trace functions section SHxxxx E10A Emulator Specifications, online help file. details, refer section Hitachi Debugging Interface User's Manual. Select [Profile-List] from [View] menu open [Profile-List] window. different data measured each function. Figure 3.61 [Profile-List] Window profile function enabled. Place mouse cursor entry [Profile-List] window, click right-hand mouse button, then select [Enable Profiler] from pop-up menu. Figure 3.62 Selection [Enable Profiler] Data measured selected function set. Select [Select Data] from pop-up menu clicking with right mouse button. [Select Data] dialog displayed. Figure 3.63 [Select Data] Dialog [Select Data] dialog select data measured. [All operand access count] selected Data1 first item measured. [Elapsed-time cycle] selected Data2 second item measured. After data been selected, press [OK] button. Double-click [BP] column while statement main function software breakpoint. Figure 3.64 [Source] Window (Software Break Setting) same program counter stack pointer values H'0c00006c H'0c000c00) were section 3.9, Setting Registers (again, [Registers] window). Click [Go] button. After break execution, results measurements displayed [Profile-List] window. Figure 3.65 [Profile-List] Window Figures 3.66 3.67 show [Profile-Tree] [Profile-Chart] windows, respectively. Figure 3.66 [Profile-Tree] Window Figure 3.67 [Profile-Chart] Window 3.22 Download Function Flash Memory Area E10A emulator enables downloading flash memory area. This function requires program writing flash memory (hereinafter referred write module), program erasing flash memory (hereinafter referred erase module), area downloading executing these modules. Note: write/erase module must prepared users. Interface with write/erase module E10A emulator firmware write/erase module branched from E10A emulator firmware. branch from E10A emulator firmware write/erase module return from write/erase module E10A emulator firmware, following conditions must observed: Describe write/erase modules with assembly language. Guarantee general/control register values before after calling write/erase module. Return write/erase module calling source after processing. module interface must follows pass correctly information that required flash memory accessing. Table Module Interface Module Name Write module Argument R4(L): Write address R7(L): Verify option verify, verify R5(L): Access size 0x4220 byte, 0x5720 word, 0x4C20 longword R6(L): Write data Erase module R4(L): Access size 0x4220 byte, 0x5720 word, 0x4C20 longword None Return Value R0(L): code Normal Abnormal other than Verify error Note: means longword size. Note: Write module: write data access size register. When access size word byte, upper register. Flash memory download method required perform necessary settings [Loading flash memory] page [Configuration] window downloading flash memory. Figure 3.68 [Loading flash memory] Page Table shows options [Loading flash memory] page. Table [Loading flash memory] Page Options Option [Loading flash memory] radio button Description Sets Enable flash memory downloading. Enable, when [File load] selected from [File] menu downloading, write module always called. Enable: Download flash memory Disable: download flash memory Sets Enable erasing before flash memory written. Enable, erase module called before calling write module. Enable: Erase flash memory Disable: erase flash memory Sets write/erase module name. file that been loaded area before loading flash memory. maximum characters input file name. Sets width flash memory. Sets TIMEOUT value flash memory erasing. Increase value erasing requires much time; default time three minutes. radix input value decimal. becomes hexadecimal adding Sets calling destination address write/erase module. [All erasing module address] edit box: Inputs calling destination address erase module. [Writing module address] edit box: Inputs calling destination address write module. Note: Although values that D'65535, TIMEOUT hours extended according value. Therefore, recommended input minimum value. value input must only positive integer. [Erasing flash memory] radio button [File name] edit [Bus width flash memory] list [Flash memory erasing time] edit box* [Entry point] group Notes using flash memory download function following notes downloading flash memory. When flash memory download enabled, downloading other than flash memory area disabled. Downloading only enabled flash memory area. Perform memory write software break only area. When flash memory erase enabled, [Stop] button cannot stop erasing. area write/erase module must MMU-disabled space. Examples downloading flash memory following shows examples downloading flash memory manufactured Intel Corporation (type number: G28F640J5-150) that been mounted Hitachi's SH7751 board (type number: HS7751STC01H). sample provided \Fmtool folder installation destination folder. Create program user specification according this sample. SH7751 E10A emulator must used when SH7751 board used. Table Example Board Specifications Item SDRAM address Flash memory address width flash memory Operating environments internal frequency frequency internal module frequency Endian Contents H'0C000000 H'0FFFFFFF H'01000000 H'01FFFFFF bits 55.7 27.83 endian Flash memory Mbytes) A0-A22 CE1,2 D0-D7 D8-D15 8-15 SHxxxx buffer FPGA buffer A2-A24 buffer D0-D31 D0-D7 D8-D15 D0-D7 D8-D15 D0-D7 D8-D15 24-31 16-23 Figure 3.69 Flash Memory Wiring Table Sample Program Specifications Item area used Write module start address Erase module start address Contents H'0C001000 H'0C0015BF H'0C001100 H'0C001000 Since SDRAM used, controller set. (ii) Options [Loading flash memory] page [Configuration] window follows: Figure 3.70 [Loading flash memory] Page Notes: When data already been written flash memory, sure select [Enable] [Erasing flash memory]. [Disable] selected, verify error occurs. When [Erasing flash memory] selected, takes about minute. (iii) [Load Program.] selected from [File] menu downloading flash memory area. 3.23 What Next? This tutorial described major features emulator HDI. Sophisticated debugging carried using emulation functions that emulator offers. This provides effective investigation hardware software problems accurately isolating identifying conditions under which such problems arise. Further details found separately issued Hitachi Debugging Interface User's Manual. Section Descriptions Windows Windows window menu bars corresponding pull-down menus listed table 4.1. Where description menu included Hitachi Debugging Interface User's Manual this manual, mark relevant section number shown. Related commands E10A Emulator User's Manual also shown. Table Window Menus Related Manual Entries Hitachi Debugging Interface User's Manual Menu File menu Pull-Down Menu Session. Load Session. Save Session Save Session Load Program. Initialize Exit This Manual 3.7.1 Edit Menu Copy Paste Find. Evaluate. Table Window Menus Related Manual Entries (cont) Hitachi Debugging Interface User's Manual Menu View Menu Pull-Down Menu Breakpoints Command Line Disassembly. Area Labels Locals Memory. Performance Analysis Profile-List Profile-tree Registers Source. Stack Trace Status Trace Watch This Manual 3.11, 3.17.1, 4.2.4, 6.5.5 3.16 3.12 3.21 3.21 3.7.2 3.20 3.10, 3.17.1, 4.2.9 4.2.7, 6.5.3, 6.5.7 3.13 3.10 3.14.1 3.14.3 3.14.2 Menu Reset Reset Cursor Cursor Run. Step Step Over Step Step. Halt Table Window Menus Related Manual Entries (cont) Hitachi Debugging Interface User's Manual Menu Memory Menu Pull-Down Menu Refresh Load Save Verify Test Fill Copy Compare This Manual 3.5, Setup Menu Status Options Radix Customise Configure Platform. Window Menu Cascade Tile Arrange Icons Close Help Menu Index Using Help Search Help About Descriptions Each Window This section describes each window. Figures this section used examples. Each E10A emulator type explanatory notes. Read section SHxxxx E10A Emulator Specifications. 4.2.1 [Configuration] Dialog Function: This dialog sets emulation conditions emulator. Window: Figure [Configuration] Dialog Note: items that this window differ according product. settings each product, refer online help. Description: [Configuration] dialog consists [General] page listed table 4.2. Table Page Name [General] [Loading flash memory] [Configuration] Dialog Page Description Sets displays emulation mode conditions. Sets download function flash memory. Clicking [OK] button sets emulation conditions. [Cancel] button clicked, this dialog closed without setting emulation conditions. [General] Page ([Configuration] Dialog Box) Function: This page sets emulator operation conditions, displays device name, sets emulation mode, mode, memory area (only product that supports device with function), sets displays clock (AUDCK) JTAG clock (TCK), selects driver. Window: Figure [General] Page ([Configuration] Dialog Box) Note: items displayed contents that this window differ according product. settings each product, refer online help. Description: Table Option [Mode] combo [Emulation mode] combo [General] Page Options Description Displays device name. Selects execution mode. Select Normal perform normal emulation. Select Break disable breakpoint settings. Select Sequential break Condition 2-1, etc. sequential break function*1. (For Sequential break Condition execution stops when conditions satisfied order Break Condition Break Condition Enables disables interrupts during step execution. Disables interrupts during single step execution: Interrupts during step execution masked. Enables interrupts during single step execution: Interrupts during step execution released. [Step option] combo [UBC mode] combo EML: used Break Condition emulator. USER: released users. this case, [Break Condition] page becomes non-active. [Memory area] group Sets address setting mode memory area. default Normal. When VP_MAP enabled address within table range, address translation done according VP_MAP table. other cases, address translation done according state. Select Physical when setting with physical address. Select Virtual when address translation done table. [AUD clock] combo [JTAG clock] combo [Driver] group [Change.] button Selects clock*2. Sets JTAG frequency*3. Displays driver currently selected. Displays [E10A Driver Details] dialog box. when driver currently connected changed. Notes: When using sequential break function, corresponding hardware break conditions. range frequencies that operates under different according devices used. details, refer section 6.5.4, Notes Using JTAG Clock (TCK) Clock (AUDCK). range frequencies that JTAG operates different according devices used. details, refer section 6.5.4, Notes Using JTAG Clock (TCK) Clock (AUDCK). When driver changed with [Change.] button, following message displayed. Figure Warning Message When [Yes] button clicked, [E10A Driver Details] dialog displayed. When [No] button clicked, display returns [Configuration] dialog box. Related Command: GO_OPTION command [E10A Driver Details] Dialog Function Function: When [Change] button [Driver] group clicked [General] page [Configuration] dialog box, [E10A Driver Details] dialog displayed. Figure [E10A Driver Details] Dialog Description: Table Option [Driver] combo Options [E10A Driver Details] Dialog Description Selects driver connect with emulator. Selects [E10A Card Driver] PCMCIA card emulator. Selects [E10A Card Driver] card emulator. details, refer section 6.5.1, Emulator Driver Selection. Displays interface name card emulator connected. Selects Card] PCMCIA card emulator. Selects [PCI] card emulator. driver installed, Card] [PCI] displayed.) Displays interface which board connected. [Interface] combo [Channel] combo [Loading flash memory] Page ([Configuration] Dialog Box) Function: Downloading flash memory [Loading flash memory] page. Window: Figure [Loading flash memory] Page ([Configuration] Dialog Box) Description: Table [Loading flash memory] Page Options Option [Loading flash memory] radio button Description Sets Enable flash memory downloading. Enable, when [File load] selected from [File] menu downloading, write module always called. Enable: Download flash memory Disable: download flash memory Sets Enable erasing before flash memory written. Enable, erase module called before calling write module. Enable: Erase flash memory Disable: erase flash memory Sets write/erase module name. file that been loaded area before loading flash memory. maximum characters input file name. Sets width flash memory. Sets TIMEOUT value flash memory erasing. Increase value erasing requires much time; default time three minutes. radix input value decimal. becomes hexadecimal adding Sets calling destination address write/erase module. [All erasing module address] edit box: Inputs calling destination address erase module. [Writing module address] edit box: Inputs calling destination address write module. Note: Although values that D'65535, TIMEOUT hours extended according value. Therefore, recommended input minimum value. value input must only positive integer. [Erasing flash memory] radio button [File name] edit [Bus width flash memory] list [Flash memory erasing time] edit box* [Entry point] group Notes using flash memory download function following notes downloading flash memory. When flash memory download enabled, downloading other than flash memory area disabled. Downloading only enabled flash memory area. Perform memory write software break only area. When flash memory erase enabled, [Stop] button cannot stop erasing. entry area user module must MMU-disabled space. 4.2.2 [Breakpoints] Window Function: This window lists break conditions that have been set. Window: Figure [Breakpoints] Window Description: [Breakpoints] window displays breakpoint setting information. items listed following tables displayed. Table Item [Enable] [Breakpoints] Window Display Items Description Displays whether break condition enabled disabled. BREAKPOINT: Break Condition: address same that been BREAKPOINT, mark [File/Line] [Symbol] [Address] [Type] Displays file name line number where breakpoint set. Displays symbol corresponding breakpoint address. symbol been defined address, nothing displayed. Displays address where breakpoint set. Displays break condition type follows: Break Point: Software breakpoint (Virtual physical address determined according state setting.) Break Point Virtual Space ASID D'xxx: Software breakpoint (Virtual address. ASID value displayed decimal.) Break Point Physical Space: Software breakpoint (Physical address.) Break Condition Break Condition Hardware break condition Note: Only "Break Point" displayed [Type] item when device does support MMU. pop-up menu, which opened clicking right mouse button, used set, change, clear breakpoints, enable disable break conditions. pop-up menu functions described following table. Table Menu Name [Add] [Edit] [Breakpoints] Window Pop-up Menu Operation Description Sets break conditions. Clicking this button will display [Break] dialog box, enabling break conditions set. Changes break conditions. Select break conditions changed click this button. break condition setting dialog will displayed, enabling break condition changed. Enables disables break conditions. Select break conditions enabled disabled click this button. Clears break conditions. Select break conditions cleared click this button. Clears break conditions. Jumps address which sets break [Source] window. [Disable] ([Enable]) [Delete] [Del All] Source] 4.2.3 [Break] Dialog Function: This dialog displays break condition settings. Window: Figure [Break] Dialog Description: [Break] dialog consists pages listed table 4.8. Table Page Name [Point] [Condition] [Break] Dialog Pages Description Displays software breakpoint settings. Displays Break Condition settings. dialog boxes which modify break conditions displayed from pages above. Clicking [OK] button [Close] button some emulator products) will close this dialog box. [Point] Page ([Break] Dialog Box) Function: This page displays software breakpoint settings. this page, software breakpoints set, changed, cleared. Window: Figure [Point] Page ([Break] Dialog Box) Description: Table [Point] Page Options Option [Break point] list Description Lists software breakpoints currently being set. display contents <breakpoint address> <address space>. <address space> displayed follows: [Add.] button [Edit.] button [Reset] button [Reset All] button Physical Space Virtual Space ASID D'xxx (xxx ASID value displayed decimal form.) Sets software breakpoints. Clicking this button displays [Break Point] dialog box. Changes software breakpoint selected [Break point] list box. Clicking this button displays [Break Point] dialog box. Clears software breakpoint selected [Break Point] list box. Clears software breakpoints displayed [Break Point] list box. Related Commands: BREAKPOINT command BREAKPOINT_CLEAR command BREAKPOINT_ENABLE command BREAKPOINT_DISPLAY command [Condition] Page ([Break] Dialog Box) Function: This page displays Break Condition settings. These conditions also cleared this page. Window: Figure [Condition] Page ([Break] Dialog Box) Note: number hardware break conditions differs according product. number that specified each product, refer online help. Description: Table 4.10 [Condition] Page Options Option [Break Condition] list Description Displays Break Condition settings. display system initiation follows: When conditions set, Enable displayed. When conditions set, Empty displayed. Empty (setting Break Condition Empty (setting Break Condition [Edit.] button [Reset] button [Reset All] button Changes Break Condition settings selected [Break Condition] list box. Clicking this button displays [Break Condition] dialog boxes. Clears Break Condition settings selected [Break Condition] list box. Clears Break Condition settings [Break Condition] list box. Related Commands: BREAKCONDITION_CLEAR command BREAKCONDITION_DISPLAY command BREAKCONDITION_ENABLE command BREAKCONDITION_SET command 4.2.4 [Break Point] Dialog Function: This dialog sets software breakpoints. Window: Figure 4.10 [Break Point] Dialog Note: items that this window differ according product. settings each product, refer online help. Description: [Break Point] dialog consists only [Address] page. This dialog sets address conditions address areas. [Address] page options follows: Table 4.11 [Address] Page Options Option [Value] edit [Normal] radio button [Physical Space] radio button [Virtual Space] radio button [ASID] edit Description Sets breakpoint address with number symbol. Does address area.* Shows that break condition physical area.* Shows that break condition virtual area.* Sets ASID value 255) when breakpoint address virtual area. Nothing default.* Note: These options supported device which built-in. Clicking [OK] button enables breakpoints set. [Cancel] button clicked, this dialog closed without setting breakpoints. Related Commands: BREAKPOINT command BREAKPOINT_CLEAR command BREAKPOINT_DISPLAY command BREAKPOINT_SET command 4.2.5 [Break Condition] Dialog Function: This dialog sets hardware break conditions. Window: Figure 4.11 [Break Condition] Dialog Note: items that this window differ according product. settings each product, refer online help. Description: [Break Condition] dialog consists multiple pages. condition halt program each page. Contents each page described section 4.2.6, [Break Condition] Dialog Pages. Clicking [OK] button sets hardware break conditions. [Cancel] button clicked, dialog closed without setting hardware break conditions. Related Commands: BREAKCONDITION_CLEAR command BREAKCONDITION_DISPLAY command BREAKCONDITION_ENABLE command BREAKCONDITION_SET command 4.2.6 [Break Condition] Dialog Pages Function: [Break Condition] dialog pages allow number hardware break conditions set. Some functions supported some types emulators. setting conditions differ from dialog name table 4.12. details, refer section 6.5.2, Break Condition Functions. Table 4.12 Setting Conditions [Break Condition] Dialog Boxes Type LDTLB Instruction Break Internal Access Break Conditions Dialog [Break Condition dialog [Break Condition dialog [Break Condition dialog Address Data Condition Condition State Read/Write Conditions Count Condition Note: checking radio button dialog box. Cannot dialog box. Table 4.13 shows [Break Condition] dialog pages. Table 4.13 [Break Condition] Dialog Pages Page Name [Address] Function Sets address conditions Break Condition Break Condition (Address condition displayed [Break Condition dialog page.) Sets data conditions Break Condition (Data condition displayed [Break Condition [Break Condition dialog pages.) Sets ASID conditions Break Condition Break Condition (ASID condition displayed [Break Condition dialog page.) Sets state conditions read/write cycle conditions Break Condition Break Condition (Bus state condition displayed [Break Condition dialog page.) Sets satisfaction count conditions Break Condition (Count condition displayed [Break Condition [Break Condition dialog pages.) Sets conditions Break Condition (Data condition displayed [Break Condition [Break Condition dialog pages.) [Data] [ASID] [Bus State] [Count] [General] Note: This function differs according product. specifications each product, refer section 6.5.2, Break Condition Functions, online help. [Address] Page ([Break Condition] Dialog Box) Function: This page sets address conditions. Window: Figure 4.12 [Address] Page ([Break Condition Dialog Box) Note: items that this window differ according product. settings each product, refer online help. Description: Table 4.14 [Address] Page Options Option [Don't Care] check [Address] radio button [Only program fetched address] radio button [Only program fetched address after] radio button [X-bus address] radio button [Y-bus address] radio button [Address] edit [Non user mask] radio button [User mask] radio button [Mask] edit Description Does address conditions. Sets normal address break conditions. Sets break before prefetched address execution break conditions. Sets break after prefetched address execution break conditions. Sets X-bus address break condition. only with Break Condition Sets Y-bus address break condition. only with Break Condition Sets address value with number symbol. Sets mask conditions. Sets mask conditions. Sets mask bits [User mask] selected. masked bits, break condition satisfied regardless address values. Note: This page displayed when conditions Break Condition Break Condition set. page name displayed contents option that will change depending radio button selected. Table 4.15 Address Options Option [Address] radio button, [X-Bus address] radio button, [Y-Bus address] radio button [Only program fetched address] radio button Description pages selected masks set. [Address] [ASID] pages set; however, mask set. [Only program fetched address after] radio [Address] [ASID] pages set. button Note: This function differs according product. specifications each product, refer section 6.5.2, Break Condition Functions, online help. [Data] Page ([Break Condition] Dialog Box) Function: This page sets data conditions. Window: Figure 4.13 [Data] Page ([Break Condition Dialog Box) Note: items that this window differ according product. settings each product, refer online help. Description: Table 4.16 [Data] Page Options Option [Don't Care] check [Value] edit [Byte] radio button [Word] radio button [Long] radio button [X-bus data] radio button [Y-bus data] radio button [Non user mask] radio button [User mask] radio button [Mask] edit Description Does data conditions. Sets data value with number. Sets byte data access cycles. Sets word data access cycles. Sets longword data access cycles. Sets X-bus data access cycles. Sets Y-bus data access cycles. Does mask conditions. Sets mask conditions. Sets mask bits when [User mask] selected. Mark masked with masked bits, break conditions will satisfied regardless data values. Note: This page displayed when conditions Break Condition set. [ASID] Page ([Break Condition] Dialog Box) Function: This page sets ASID conditions. Window: Figure 4.14 [ASID] Page ([Break Condition] Dialog Box) Description: Table 4.17 [ASID] Page Options Option [Don't Care] check [ASID] edit Description Does ASID conditions. Sets ASID condition value. default Note: This page displayed when conditions Break Condition Break Condition set. Note: These options supported device which built-in. [Bus State] Page ([Break Condition] Dialog Box) Function: This page sets state conditions read/write cycle conditions. Window: Figure 4.15 [Bus State] Page ([Break Condition] Dialog Box) Note: items that this window differ according product. settings each product, refer online help. Description: Table 4.18 [Bus State] Page Options Group [Bus State] group Option [All] radio button [Data] radio button [DMA] radio button [Read/Write] group [Read/Write] radio button [Read] radio button [Write] radio button Description Sets state conditions break conditions. Sets execution cycle break conditions. Sets cycles break condition. Sets read/write cycle conditions break conditions. Sets read cycles break conditions. Sets write cycles break conditions. Note: This page displayed when conditions Break Condition Break Condition set. [Count] Page ([Break Condition] Dialog Box) Function: This page sets conditions Break Condition Window: Figure 4.16 [Count] Page ([Break Condition] Dialog Box) Table 4.19 [Count] Page Options Option [Don't Care] check Input area Description Sets satisfaction count conditions. Sets satisfaction count break condition. maximum count 4,095. Breaks when conditions [Break Condition] dialog specified times satisfied. default D'1. Note: Some products supported this function. specifications each product, refer online help. [General] Page ([Break Condition] Dialog Box) Function: This page sets conditions Break Condition Window: Figure 4.17 [General] Page ([Break Condition] Dialog Box) Description: Table 4.20 [General] Page Options Group [LDTLB] group Option [Don't Care] radio button [Stop after executing LDTLB instruction] radio button [DMA] radio button [I/O] group [Don't Care] radio button [Stop accessing internal area] radio button [Write] radio button Description Does break conditions when LDTLB instruction executed. Sets LDTLB instruction execution break conditions. Sets cycle break conditions. Does break conditions when internal area accessed. Sets internal area access break conditions. Sets only write cycle break conditions. Note: Some products supported this function. specifications each product, refer online help. 4.2.7 [Trace] Window Function: This window displays trace buffer contents. Window: Figure 4.18 [Trace] Window Note: types information number branch instructions differ according product. settings each product, refer online help. Description: This window displays trace buffer contents. items listed table 4.21 displayed. Table 4.21 [Trace] Window Display Items Item [No.] [IP] [TYPE] Description Displays number ascending order trace stop point (signed decimal). Displays instruction pointer (signed decimal). branch instruction trace, displays information type, that branch source branch destination. BRANCH: Branch source DESTINATION: Branch destination branch instruction trace, displays branch source branch destination address. Displays execution instruction mnemonic. Displays execution instruction operand. Displays C-source line address that trace been acquired. [ADDR/DATA] [MNEMONIC] [OPERAND] [Source] pop-up menu, opened clicking right mouse button, used set, change, clear trace conditions. details, refer Hitachi Debugging Interface User's Manual. Notes: some cases, emulator address acquired trace. such case, following message will displayed. Ignore this address because user program address. [Halt] menu pop-up menu active only when [Trace] window open during user program execution. When internal trace used, realtime emulation cannot performed using [Halt] menu. Related Command: TRACE_DISPLAY command 4.2.8 [Trace Acquisition] Dialog Function: This dialog sets trace acquisition conditions. When [Acquisition] menu selected from pop-up menu, which displayed clicking right mouse button [Trace] window, [Trace Acquisition] dialog displayed. Table 4.22 [Trace Acquisition] Dialog Page Options Page Name [Trace Mode] Description Sets conditions trace mode. [Trace Mode] Page ([Trace Acquisition] Dialog Box) Function: This page sets conditions trace mode. Window: Figure 4.19 [Trace mode] Page ([Trace Acquisition] Dialog Box) Note: This function differs according product. specifications each product, refer section related trace functions section SHxxxx E10A Emulator Specifications, online help. Description: Table 4.23 [Trace mode] Page Options Option [AUD trace] radio button [Internal trace] radio button [Realtime trace] radio button Description Uses trace functions. default, this checked. Uses internal trace functions. default, this checked. When next branch occurs while trace information being output, information stopped next trace information output. user program executed realtime, some trace information will output. default, this checked. When next branch occurs while trace information being output, stops operations until information output. user program executed realtime. default, this checked. When trace buffer becomes full, this function always overwrites oldest trace information acquire latest trace information. When trace buffer becomes full, trace information acquired. Inputs start pointer value trace display range numerical values. default, start pointer -D'8191 pointer -D'0000. PCMCIA card emulator, -D'8191 trace pointer. card emulator, -D'32767 set. [Non realtime trace] radio button [Trace continue] radio button [Trace stop] radio button [AUD trace display range] group Related Command: AUD_MODE command 4.2.9 [System Status] Window Function: This window lists information, such conditions that have been emulator execution results. Window: Figure 4.20 [System Status] Window Note: items that displayed this window differ according product. items that displayed, refer online help. items listed following table displayed [System Status] window. Table 4.24 [System Status] Window Display Items Page [Session] Item Target System Session Name Program Name [Platform] Connected status Description Always displays Connected. Displays session file name. Displays load module file name. Displays name connected emulator selected driver name. Displays target device name. Displays execution status: RUNNING: Being executed Break: Stopped Displays cause emulator stopping break. this example, cause stop BREAK POINT. Displays program execution time. display format hours, min: minutes, seconds, milliseconds. this example, 0h:0min:0s:16ms displayed. Displays emulator operating mode (setting information [Emulation Mode] [Configuration] dialog box). Displays endian state (Big Endian Little Endian). this example, Endian displayed. Displays whether function used. This item displayed emulator with function. Displays loaded area load module. Displays usage states BREAKPOINT Break Condition. Cause last break time count Emulator mode Endian/Little Endian [Memory] [Events] Loaded Memory Areas Resources Section Command-line Functions Table Symbol Description This section describes format used section 5.2, Command Descriptions. descriptions some commands given over more pages. 5.1.1 Format input format each command follows. Characters shown bold-italics input. Parameters enclosed omitted. Contents shown set. parameter left sign input format shown right. This represents non-exclusive selection. This represents exclusive selection. command parameter details described parameter table. 5.1.2 Parameter Input Numerical Parameters: binary, octal, decimal, hexadecimal value, symbol, formula input. symbol contain characters. Terms formula separated with operators (such Keyword Parameters: bold characters given description column table input. character string shown description input, error will occur. Character-String Parameters: Character-string parameters used input mask data file name. mask data, radix (H': hexadecimal binary) character string digit masked. 5.1.3 Examples These actual input examples. commands whose execution results specific display output, example display given. 5.1.4 Related Items Related E10A commands (abbreviations) dialog boxes shown. (Refer section Descriptions Windows.) Command Descriptions command list E10A emulator shown below. Table E10A Commands Abb. AUCL Function Sets clock (AUDCK). Sets trace conditions. Displays trace information. Clears hardware breakpoints that have been set. Displays hardware breakpoints that have been set. Enables disables hardware breakpoints that have been set. Sets hardware breakpoints. Sets software breakpoints. Clears software breakpoints that have been set. Displays software breakpoints that have been set. Enables disables software breakpoints that have been set. Displays device type currently selected. Displays sets emulation mode during user program execution. Displays sets JTAG clock (TCK) frequency. Displays sets memory area command input, such load, verify, save, memory display, memory change. Command AUD_CLOCK AUD_MODE AUD_TRACE BREAKCONDITION_ CLEAR BREAKCONDITION_ DISPLAY BREAKCONDITION_ ENABLE BREAKCONDITION_ BREAKPOINT BREAKPOINT_CLEAR BREAKPOINT_DISPLAY BREAKPOINT_ENABLE DEVICE_TYPE GO_OPTION JTAG_CLOCK MEMORYAREA_SET Table E10A Commands (cont) Abb. Function Updates memory information latest contents. Restarts emulator. Displays emulator state information. Displays sets enable disable status interrupts during step execution. Displays acquired trace buffer information. Displays sets states. Clears emulator address translation (VP_MAP) table which been set. Displays emulator address translation (VP_MAP) table. Enables disables emulator address translation (VP_MAP) table. Sets emulator address translation (VP_MAP) table. Command REFRESH RESTART STATUS STEP_INTERRUPT TRACE_DISPLAY UBC_MODE VPMAP_CLEAR VPMAP_DISPLAY VPMAP_ENABLE VPMAP_SET Note: Support these commands varies with product. specifications each product, refer online help. 5.2.1 AUD_CLOCK:AUCL Description: Sets displays clock (AUDCK) values that have been set. Format: aucl [<option>] <option> <aud_clock> Table Parameter <aud_clock> AUD_CLOCK Command Parameter Type Numerical value Description Sets values from (PCI), (PCMCIA) (PCI), (PCMCIA) (PCI), (PCMCIA) (PCI), (PCMCIA) (PCI) (PCI) (PCI) Notes: When <option> omitted, clock (AUDCK) values that have been displayed. range frequencies that operates under differs according devices used. details, refer section 6.5.4, Notes Using JTAG Clock (TCK) Clock (AUDCK). clock (AUDCK) value, which with this command, differ according emulator products. details, refer section 6.5.4, Notes Using JTAG Clock (TCK) Clock (AUDCK). Note: parameters this command differ according product. specifications each product, refer online help. Examples: clock (AUDCK) MHz: >AUD_CLOCK (RET) CLOCK 15MHz clock (AUDCK) displayed: >AUD_CLOCK (RET) CLOCK 15MHz Related Item: [Configuration] dialog 5.2.2 AUD_MODE:AUM Description: Sets displays trace acquisition conditions. Format: [<option1>] [<option2>] <option1> mode<mode> <option2> full<full> Table Parameter <mode> AUD_MODE Command Parameter Type Keyword Description Selects trace mode. Internal trace realtime trace Realtime trace <full> Keyword Continues stops emulation when trace memory full. Always overwrites oldest information acquire latest information. When trace buffer memory full, information acquisition stops. Note: When <option1> <option2> omitted, current setting conditions displayed. Note: parameters this command differ according product. specifications each product, refer online help. Examples: select realtime trace mode continue option: >aum mode full (RET) display settings: >aum (RET) mode Realtime trace, continue internal trace mode: >aum (RET) mode Internal trace Related Item: [Trace Acquisition] dialog 5.2.3 AUD_TRACE:AUT Description: Displays trace information. Format: [<option1>] [<option2>] <option1> start<start_pointer> <option2> end<end_pointer> Table Parameter <start_pointer> <end_pointer> AUD_TRACE Command Parameter Type Numerical value (-n) Numerical value (-m) Description Start pointer value trace display. pointer value trace display. Notes: PCMCIA card emulator, -D'8191 trace pointer. card emulator, -D'32767 set. When internal trace selected, command displays information that been acquired using function. Example: display trace information according information acquired during user program execution: >AUD_TRACE (RET) TYPE -D'xxxxxx BRANCH DESTINATION ADDR ******10 01000020 MNEMONIC MOV.L OPERAND Instruction pointer (signed decimal) Types branch source branch destination BRANCH: Branch source DESTINATION: Branch destination Address instruction word Instruction mnemonic Instruction operand Related Item: [Trace] dialog 5.2.4 BREAKCONDITION_CLEAR: Description: Clears hardware breakpoints that have been set. Format: [<channel>] <channel> channel <channel_number> Table Parameter <channel number> BREAKCONDITION_CLEAR Command Parameter Type Numerical value Description Hardware break channel number Note: When <channel> omitted, hardware breakpoints that have been cleared. Examples: clear hardware breakpoints: >bcc (RET) clear hardware breakpoint channel >bcc channel (RET) Related Items: BCD, BCE, commands [Breakpoints] window [Break] [Break Condition] dialog boxes 5.2.5 BREAKCONDITION_DISPLAY: Description: Displays hardware breakpoints that have been set. display contents include hardware breakpoint channel nu Other recent searchesXZDUR05A3 - XZDUR05A3 XZDUR05A3 Datasheet M68AW512M - M68AW512M M68AW512M Datasheet HM6216255HCI - HM6216255HCI HM6216255HCI Datasheet GSS4228 - GSS4228 GSS4228 Datasheet DVPEN01-SL - DVPEN01-SL DVPEN01-SL Datasheet CXA1753M - CXA1753M CXA1753M Datasheet CGH35015 - CGH35015 CGH35015 Datasheet C8051F303 - C8051F303 C8051F303 Datasheet 1764940000 - 1764940000 1764940000 Datasheet
Privacy Policy | Disclaimer |