User`s manual

vi
4.3 Diagnostic Test Procedure Using the Diagnostic Program ............................................... 34
Debugger Part
Section 1 Overview ...........................................................................................1
Section 2 Preparation before Use ......................................................................3
2.1 Method for Activating High-performance Embedded Workshop..................................... 3
2.1.1 Creating a New Workspace (Toolchain Not Used)..............................................4
2.1.2 Creating a New Workspace (Toolchain Used).....................................................8
2.1.3 Selecting an Existing Workspace......................................................................... 12
2.2 Connecting the Emulator ..................................................................................................13
2.3 Re-connecting the Emulator.............................................................................................. 14
2.4 Ending the Emulator .........................................................................................................14
Section 3 Debugging .........................................................................................15
3.1 Setting the Environment for Emulation ............................................................................15
3.1.1 Opening the [Configuration Properties] Dialog Box ........................................... 15
3.1.2 Customizing the Settings for the Target MCU ....................................................17
3.1.3 Selecting the Interface to be Connected...............................................................18
3.1.4 Opening the [Memory Mapping] Dialog Box...................................................... 19
3.1.5 Changing the Memory Map Setting.....................................................................20
3.2 Downloading a Program ...................................................................................................21
3.2.1 Downloading a Program ...................................................................................... 21
3.2.2 Viewing the Source Code .................................................................................... 21
3.2.3 Viewing the Assembly-Language Code...............................................................24
3.2.4 Modifying the Assembly-Language Code ........................................................... 25
3.2.5 Viewing a Specific Address................................................................................. 25
3.2.6 Viewing the Current Program Counter Address .................................................. 25
3.3 Viewing the Current Status...............................................................................................26
3.4 Reading and Displaying the Emulator Information Regularly.......................................... 27
3.4.1 Opening the [Extended Monitor] Window .......................................................... 27
3.4.2 Selecting Items to be Displayed...........................................................................28
3.5 Displaying Memory Contents in Realtime........................................................................ 29
3.5.1 Opening the [Monitor] Window .......................................................................... 29
3.5.2 Changing the Monitor Settings ............................................................................ 31
3.5.3 Temporarily Stopping Update of the Monitor .....................................................31
3.5.4 Deleting the Monitor Settings .............................................................................. 31
3.5.5 Monitoring Variables...........................................................................................31
3.5.6 Hiding the [Monitor] Window............................................................................. 32
3.5.7 Managing the [Monitor] Window ........................................................................33
3.6 Looking at Variables.........................................................................................................34
3.6.1 [Watch] Window.................................................................................................. 34
3.7 Using the Event Points......................................................................................................36
3.7.1 Setting a Software Breakpoint ............................................................................. 37
3.7.2 Setting an On-Chip Breakpoint............................................................................ 39
3.7.3 Settings an On-Emulator Breakpoint ................................................................... 42
3.7.4 Editing Event Points ............................................................................................45
3.7.5 Modifying Event Points .......................................................................................45
3.7.6 Enabling an Event Point.......................................................................................45
3.7.7 Disabling an Event Point ..................................................................................... 45
3.7.8 Deleting an Event Point ....................................................................................... 46
3.7.9 Deleting All Event Points ....................................................................................46