Home

ID78K0-LCE User`s Manual, Preliminary

image

Contents

1. SUB4 DEEZ END 1 2 27 Break Dialog Box Break event conditions are set registered and displayed from this dialog box In the Main window select Event Break or in the Event Manager select New gt Break Break event conditions are registered using the event and event link conditions registered in the Event Manager A maximum of 64K break event conditions can be registered but only ten can be used simultaneously Figure 4 53 Break Dialog Box 90 4 OPERATION Cancel Help Add Event Break Event ddd Add Link pen Hemose 4 nj Shrink gt gt gt Event Manager Add H Info nj Other a The Break Name box allows you to select a break event name using a maximum of eight characters NEW is the default Press the down arrow to select from the list Break Mame Brk b The break condition box is where you set a break event condition by dragging the event icon and dropping it into an event name A maximum of 12 conditions can be set EL Event EL Event 91 4 OPERATION c Command buttons Registers the break condition in the Event Manager DW Creates a new break condition Enables the break condition whereby break events are generated Restore Restores the break condition Disables the break condition whereby break events are not generated Help Opens the Help window Opens the Event win
2. nem oo b00a F Illegal symbol entry An illegal symbol is in the load module file This may be a language related bug bOOb F Current type nothing There is no debugging information Load the load module file bOOc Current file nothing The current source file is not found Or since the load module file is not loaded the source cannot be opened b012 Line number too Line number too large The line number is illegal b015 The file read failed The file may be corrupted DA not exist DoF No line information not compile with g There is no information in the source line in the load module file Add the debugging option and then bO1f b020 recompile assemble and link b026 F Max dimension array over An array with more than four dimensions cannot be displayed b027 End of file The file is not at the end b029 MIU address The address is illegal b02a Communication failed Cannot communicate with the IE Check that the IE is functioning properly b02b No stack frame point A stack trace is not possible for the current PC b02d Max block overflow The maximum number of blocks in one function is exceeded The function cannot be displayed Maximum number of blocks per function 256 blocks 145 APPENDIX A ERROR MESSAGES Table A 3 Error Message List 9 9 memi A c009 Not enough memory The memory is insufficient Exit unused applications or close the Uo rU window wea F
3. 65 D Data size specification 152 Debugger file list 26 Debugging modes Instruction level 48 Source level 48 Delay count 220 Dialog boxes Auxiliary dialog boxes 59 Confirmation dialog boxes 59 Display dialog boxes 59 Display setting dialog boxes 59 Modal dialog boxes 58 Modeless dialog boxes 58 Selection dialog boxes 58 Setting dialog boxes 58 Specification dialog boxes 58 Disassemble 128 Double click 51 Drag amp drop 51 Drive voltage selection 79 Drop down list 53 E Emulation CPU selection 79 Emulation execution function 22 Environment
4. 49 Symbols 22 Symbol to address 110 System operating modes 223 System operating states 224 T Terms 24 Time measurement function 179 240 Tool bar 52 64 Trace function 234 Trace mode 181 Trace view 187 V Variable Display 111 113 115 Specification 111 113 119 Version 213 View mode 54 W Watch function 17 Wild cards 19 Window Display window 56 Display setting window 56 Execute window 55 Management window 57 Window connect function 105 131 136 184 Write mode 84 151
5. ix Click Set to register the condition for E LINK in the Event Manager 4 OPERATION Figure 4 50 Setting Event Link Conditions HER Set Restore Lancel Help Link Mame LJ Lnkooo0 a Add Event Fhase 1 D Phase z D Phase 3 D Phase 4 per Hemaore Event Manager E 4 e Example This example shows how to set event link conditions for the program shown in Figure 4 49 which has the following structure Main processing 1 Initialization process INIT 2 Subprogram 0 SUBO 3 Condition decision a Subprogram 1 SUB1 b Subprogram 2 SUB2 4 Subprogram 4 SUB4 The execution route of this program follows routes 1 and 2 shown in Figure 4 52 When an event is generated the event condition shown in Table 4 28 is set Setting the event link condition shown in Figure 4 51 causes the desired events to be generated Table 4 17 Setting in Event Link Dialog Box Setting Position Set Event 88 4 OPERATION Figure 4 51 Event Link Dialog Box Event Link Fla Set Restore Lancel Help Link Name Lakonan Add Event Phasel p Phase De Phase X D Phase 4 Iden E E sue NE E sua RENOVE E E suB2 E Shrink gt gt gt Event Manager A into 4 89 4 OPERATION Figure 4 52 Example Using Event Link Conditions Main Process vy Initializatio SUBO oa BEST DEA
6. Startup Routine Begin label estat End labe Gcend D ig amp ssemble show Offset Label w Mnemonic Register Name Function Name C Absolute Name Watch Default SIZE pte m Radix Hes gt Show Variable Type Or amp Df Cancel Restore Help a The Source Path box allows you to specify a path for the source file For example if the source were in directories 1 a 78k c 2 b src and 3 c asm then the source path would be a 78k c b src c lasm Pictures only Source Path Base C nectools 32 Browse b The Default Extension box allows you to specify the default extensions for the source file and the load module file Default Extension Source File EET Load Module Ink Imi d26 50 4 OPERATION c The Open File History box displays the number of recently opened files under the File menu and allows for easy loading of a file or project in the LCE Open File History Mas Number D 10 ja d The Project File box allows you to enable or disable the auto save and auto load functions Froject File Auto Save COn C Of Quer Auto Load C n Off load Project Pile Bose e The Tool Bar Pictures box sets the appearance of the icons on the Main window Tool Bar Pictures C Pictures and Text Pictures only f The Tab Size box sets the tabs for the display format of the Sou
7. a Display area displays the local variable names A variable displayed with at the beginning indicates a pointer variable Double clicking a pointer variable displays that data value in the variable value amp 3 display setting area The display switches to the display Command 0 Command 1 Command 2 Command 3 KevHunber b Local variable value display setting area displays local variable values When the variable is a pointer variable the address value or data value is displayed 62 4 OPERATION 17 Assemble Window This window allows you to assemble online and display the disassemble result To open the Assemble window select Browse gt Assemble from the Main window or click Fe To display the corresponding assemble line from another window move the program cursor to the selected position right click and select Assemble Figure 4 33 Assemble Window d Assemble Search zx gt Watch Quick Refresh Llose E EB1C HOVW SP Ax 225EK01 CALL hdwinit B E954FD MOV errno E955FD Moy errno l xil1 B E941FD HOY WENCENT 0 1 4 E944FD HOY SEED 0s2 4 EY45FD HOY SEED 0 x1 DACI INC A EY42FD Moy a Point mark area breakpoints are set and deleted and events displayed in this area B B l Breakpoint set delete function Clicking the mouse in this area sets and deletes breakpoints Table 4 20 Cursor Pos
8. spi cH Absolute Name Displays the register names as absolute names Functional Name Displays the register names as functional names Displays values in binary format Displays values in octal format Dee Displays values in decimal format dex Displays values in hexadecimal format 105 4 OPERATION 31 SFR Window SFR values are displayed and changed in the SFR window which can be opened from the Main window by selecting Browse gt Sfr or by clicking Hal Figure 4 78 SFR Window SFR Refresh Close Name Attribute W 1 8 FFOO co cog co 04 co 07 A read only SFR is displayed in gray and ones that cannot be changed are highlighted The display format and reading method of the SFR display can specified in View menu d The Name box displays the SFR names e The Attribute box displays the SFR read write attributes access type and address The attribute display can be selected from the View menu FFFU B amp FFFU FFF E FFFU F FFF1U FFF12 FFF14 Table 4 32 SFR Attributes Amts Smet 000000 PR Read only displayed in gray 106 4 OPERATION Table 4 33 SFR Access Types f The SFR contents box displays the SFT values based on the SFR attribute write only is displayed as An SFR whose value changes when read in real time is displayed as To change a value highlight and type over it The change is displayed in red Pre
9. File Edit View Option Run Meee Browse Jump Window Help IINE A A Event Manager Q 4l ale amp Solwa Break Manager Event Event Link Break Trace Snap Shoat Timer Dilim Fass Count Delay Count lust 1 asmit37 be 0080 d Table 4 8 Event Command Descriptions Event Manager Opens the Event Manager window Software Break Manager Opens the Software Break Manager window Not supported Event Opens the Event Set window where you can define events in the Event Manager Event Link Creates complex sequential events 31 4 OPERATION E Not supported Sets the number of occurrences of an event condition before the event is triggered Delay Count Performs the number of traces specified by the delay count after the stop condition is satisfied 32 4 OPERATION 7 Browse Menu Figure 4 13 Browse Commands Ele Edit View Option Fun Event Merz Jump Window Help IE E e REL ee EIE SourceT ext Assemble Memory Watch Register Sfr Local Variable Stack Trace Trace overage Find in files tust_1 asmit3 f 10080 d Table 4 9 Browse Command Descriptions SourceText Same as the E h button opens the Source Text window and displays the source text Same as the re button opens the Assemble window and displays the assemble result Same as the button opens the Memory window and displays the contents of memory Watch Cd Same as the 2 1 button
10. 152
11. 25 Equipment connections 25 Errors and warnings 54 243 Event Break event condition 170 Event condition 149 Event link condition 164 Event management 154 Trace event condition 174 Event display function 104 130 Event setting and detection function 237 Execution control 55 Exiting 39 214 EXPC INI file 25 Expressions 22 F File specification 19 Files 19 48 Font 103 Function specification 49 G GUI function 17 H Hold state 53 1 Icon 76 106 124 133 137 148 186 200 Installation 25 J 149 APPENDIX C Jump function 105 131 136
12. Help Main 5 MHz Sub 32 KHz a Mask Iv RESET Memory Mapping Memory Attribute Mapping Address Add Emulation HUM m Delete voltage Peripheral Break te intemal i Break C Tanger Non Break 37 4 OPERATION The Configuration dialog box has eight components a The Chip box allows you to select the emulation CPU upon initial startup Chip Mame uFD B b The Internal ROM RAM box appears after the emulation CPU is selected and displays the CPU s internal ROM and RAM sizes Internal HO MAAM Internal ROM jiz E Byte Internal HAM 51 as Byte c The Clock box allows you to select the main and subclock settings Clock M ain 5 MHz a Sub faz KHz Main Clock Selections Setting Description 5 MHz Subclock Selections Setting Description 32 kHz Clock provided by user target d The Voltage box is inactive The LCE is driven by 3 volts or 5 volts depending the jumper settings on the motherboard refer to document no 50889 Getting Started for more information Vnltage Internal C External 38 4 OPERATION e The Peripheral Break box is inactive Peripheral Break a Break C Non Break f The Mask box masks the signal of the RESET pin from the target used when the target is unstable during the debugging phase Mask RESET g The Memory Mapping box specifies the ma
13. Table A 3 Error Message List 7 9 Fererunter Type messe LN 9002 Illegal set value The specified value cannot be set in the register Input a value that can be set F F F Illegal expression The expression is illegal a002 F Start address bigger than end address The start address is larger than the end address start address end address Check the addresses a003 F Source path not found The specified source path data is illegal Set valid source path data Expression is too big The expression exceeded 127 characters close the debugger window File not found The file is not found File not open This file cannot be opened Not source file of LM The specified source file is not registered in the load module file A file not registered in the load module file cannot be displayed in the Source Display window File not closed The file close failed File not read The file read failed The file may be corrupted Illegal line number The line number is illegal Illegal variable The variable does not exist a010 Communication failed Cannot communicate with the IE Check that the IE is functioning properly Can t access register The register cannot be accessed Check the IE Check the IE or the mapping setting b009 A Not enough memory The memory is insufficient Exit unused applications or close the debugger window 144 APPENDIX A ERROR MESSAGES Table A 3 Error Message List 8 9 Eror numvor Type messas
14. 131 Project file 85 88 Pull down menu 52 R Real time execution 227 Real time RAM sampling 50 84 Register display 191 Register manipulation function 240 Registers 21 191 Reset function 211 225 150 INDEX S Save function 88 205 240 Scroll bar 52 Search 107 SFR display 197 Software break 84 Source debugging 241 Source file 99 Source path 101 Source text display 102 Stack frame number 49 Starting 37 Status bar 53 Step execution 64 71 Structures
15. 3 nectools32 b File name Click the name of a file to select it and then click Open You can also double click the file name to select and open it The default extension is HEX File name Save as Hype Intel Hex hex 48 4 OPERATION c Save Address specifies the address range in memory to be uploaded Save Address 0 0 d Save as type specifies the file format of the object to be uploaded Intel Intel extended hexadecimal format Motrola Motorola hexadecimal format S type format standard address Tektro Extended Tektronix hexadecimal format Binary Standard binary data format e Command Buttons Saves the memory contents in the address range to a file in the specified directory Cancel Closes the dialog box 49 4 OPERATION 7 Debugger Option Dialog Box The Debugger Option dialog box allows you to specify the path for sources located in multiple directories To open the dialog box select Option Debugger Option from the Main window Figure 4 23 Debugger Option Dialog Box Debugger Option Tab Size Extension Source Path Base C nectools 32 Browse Default Extension Source File cs asm Load Module gt Ink Imi d26 Open File History Font Max Number 0 10 E Font Project File Auto Save COn C Of Quer Auto Load f On amp t isad Perret Emse Tool Bar Pictures C Pictures and Text Tab Size 72 Tab List
16. Assemble VWIBdOW uno conet onec odos Lee 63 18 Memory WindoOw esssessseeeeeneeeen nennen mnn nnne nn nnne rn nnn nnne nnns nae nsns rns enne nns 66 19 Memory Fill Dialog BO x sss ts ck ose e ut ipti edite ee sio sae o e erano 68 20 Memory Copy Dialog BOX iine acts 69 21 Memory Compare Dialog BOX oed na 70 22 Memory Compare Result Dialog Box sese nnns 71 23 Stack Trace WV IMG OW Porc 72 25 Eyen Manage lesen te cepa ee ee I EE IM PEL LL I PUE 79 20 Event CNK Dialog BOX rotto iari bai eeu aee ee a ines adela tibios 85 20 Break AIO hye ON cats A A 29r LACA DA elote eee eee telde ZO Trace VIEW WiNdOW A SOL REGISTER VWI GOW MR TM ai as Ol MERI EAM groom o e Dd el dea 32 SAO BOX T IT T eae ge ees 99 SAVE AS Dial BOX ti a a s Io du uico peas cu 34 Exit Debudoger Dialog BO dl td o ee eh ce 99 Pass COUNT Dialog BOX ria is 50 Delay Count Dialog BOX oreesa n aE NA oc 97 Timer Dialog BOX sitas 38 Flash Programming Dialog BOX coooccccconccncococccnnoccnnonconconnconononcnnnnnnnnnnnrnnnnnnrnnnrnnrnnnnnrnnnrnnrnnrnnnnrnrrnnnnrnnanenns Figure 4 70 Flash Programming Dialog BOX a ia oru 118 FUNCTIONAL OVERVIEW costaria As Dat Operating Modes arn IUE 5 1 1 Break Mode ciscus dia 121 5 132 Emulation ModE rated lalo OR RM MP EM 121 5 1 3 Hace VOCS entr LC E EE 121 o Basic I UNI CONS ose fos
17. Go F5 Return Out Fr lose Step In F8 Nest Over F10 Start From Here Shitt F6 Come Here FE get length to c aa amp Go Start value Slowmotion store a value bump address bump value count down loop until dc CPU Reset F3 Change PL Ltrl F3 Break Point F3 Solta Break Eat Eii Delete sll Satwa Break branch to self loop when p Uncond Trace UN Cond Trace ON Coverage Start Timer Start Tracen Start Ignore Break Paint Fl Table 4 7 Run Command Descriptions n Same as the button restarts the debugger Stop Reset Go Same as the am button stops program execution Go Same as the button executes the program Executes the program in real time until the PC reaches the highlighted source line number or address Go amp Go Same as clicking the gt button when a break occurs continues program execution or resumes program execution if a break is generated by a break condition after the window is updated Continues step execution F3 CPU Reset Same as the EI button opens the Reset Debugger dialog box where you can reset the target system or the entire debugger Change PC Sets the PC register to the address at the selected line 30 4 OPERATION Break Point Sets the breakpoint in the selected line Software Break Point Sets software breakpoint on the selected line Table 4 7 Run Command Descriptions continued 6 Event Menu Figure 4 12 Event Menu Commands
18. Menu bar Option Execute Operation Browse Jump Window 2 Display Type Window A display type window has a location area and data display area where the contents of the target are displayed and values cannot be changed Figure 4 2 The Source Text Stack Trace and Trace View windows are display type windows Figure 4 2 Display Type Window 17 4 OPERATION Location area Data display area 3 Display Setting Type Window A display setting type window is used to display the contents and change the values of the target Usually only the contents are displayed but the values can be changed in Modify mode There are two types of display setting type windows those opened in the Main window and those opened outside the Main window a Opened in the Main Window This type of display setting window consists of function buttons a location area and a data display area The Local Variable Memory SFR and Disassemble windows are display setting type windows opened from the Main window Figure 4 3 Display Setting Type Window Opened in Main Window Function buttons Data display area Location area 18 4 OPERATION b Opened Outside the Main Window This type of display setting window can be located anywhere outside the Main window but it is always displayed in front of the Main window and cannot be minimized The window has a menu bar function buttons a location area and a data display area The Register and
19. Selection dialog boxes are selection type dialog boxes b Specification type dialog box A specification type dialog box allows you to specify the conditions usually in a text area The Address Specification Source Path Specification and Trace Window dialog boxes are specification type dialog boxes c Setting type dialog box A setting type dialog box allows you to set conditions The Extended Option Setting Event Link Trace Event Set and Break dialog boxes are setting type dialog boxes d Confirmation type dialog box A confirmation type dialog box prompts for confirmation of a selected action The Reset Debugger Error Warning and Exit Debugger dialog boxes are confirmation type dialog boxes e Auxiliary type dialog box An auxiliary type dialog box is used for the auxiliary operations in each window The Variable View Memory Copy Memory Compare Add Variable Memory Fill and Search dialog boxes are auxiliary type dialog boxes 20 4 OPERATION f Display type dialog box A display type dialog box temporarily displays data The Memory Comparison Result and About dialog boxes are display type dialog boxes g Display setting type dialog box A display setting type box has an area for setting conditions and displaying data The Timer dialog box is a display setting type dialog box 4 2 Functional Overview The table below lists and briefly describes the various windows and dialog boxes Table 4 1 List of Windows a
20. The Source Text window opens The contents of the clipboard buffer are pasted at the text cursor position The window switches to View mode same as Jo view X Executes the next step same as or Z The previous editing operation is undone c BEI mE 148 Appendix C INDEX A Active state o3 Address specification 125 Addresses 21 111 ASCII display 69 136 B Break cause 65 Break event setting function 105 131 Break function 232 Break mode 84 Breakpoint set and delete functions 104 Button Function button 51 Push button 51 Radio button 51 Scroll arrow 52 C Character set 18 Check box 51 Click 51 Clock selection function 224 CPU status
21. clicking OK closes the windows and exits the program Command buttons If the Save Project file option is selected OK opens the Save dialog box closes the windows and exits the program If the Save Project file is not selected OK closes the windows and exits the program Cancels the operation Opens the Help Window 115 4 OPERATION 35 Pass Count Dialog Box The Pass Count dialog box allows you to set the Pass Count From the Main window select Event gt Pass Count Figure 4 88 Pass Count Dialog Box Pass Count Pass Count Restore Cancel Help The Pass Count is used by the debugger to stop execution of the program and tracer after a specified number of events have occurred The Pass Count may be set to values from 1 to 255 The Pass Count is set to 1 as a default In this case the debugger will stop on each event which would normally cause an execution break If the Pass Count is set to a value other than one the debugger will continue execution until the specified number of events have occurred The value set in the Pass Count remains until it is changed again with the Pass Count Dialog Box Note that setting the Pass Count to a value other than one will cause some program breakpoints to be skipped resulting in unexpected operation If the debugger is not stopping where you have set a breakpoint make sure that the Pass Count is set to the correct value Command buttons Accepts the change and close
22. 147 157 192 L Line specification 50 List of debugging windows 60 List of key functions 253 Load function 85 91 201 225 M Mapping function 80 225 Mark 156 Memory Compare 142 144 Copy 140 Initialization 138 Manipulation 134 240 Menu bar 54 62 66 116 158 193 Modify mode 54 Mouse 51 N Non real time execution functions 230 Numerical values 20 O On line assembly 128 Operands 20 Operators 22 P Pass count 160 Pin mask 80 Point mark 103 183 Program counter setting function 105
23. 5 6 7 8 9 Equivalent English Characters amp ooo Seme RE EE Stat tei cpa d Table 1 2 Character Descriptions enact Wane mn E mem meseensede ma Bemerewengemdk OOO E sm umane E senem sementem RN uma rester pir E ese oO COMAS owes Tssa tor ete sears E mee l Tetra rar a ening OOO D romsa rm 1 OVERVIEW 1 3 2 File Specification A file is specified in the format primary name file type A directory is specified in the format drive name directory name Table 1 3 File Directory Naming Character string up to 8 characters File type Character string up to 3 characters Only one character same format as the file name Figure 1 1 File Specification Download El E Look in E nectools32 4 d ezez EEE Bin C Setup LJ dev J Dac firmware JJ Lib LL Pertd Load If Symbol If Object Reset Teel e CPU Offset Address 1 OVERVIEW Table 1 4 Wild Cards Can be used in a path name or file name as wild cards Denotes any character string Denotes any one character blank is also considered one character Notes 1 Ifa wild card is specified then the corresponding directory names under the directory and all of the file names are displayed 2 Ifafile name is directly specified an error occurs when a wild card is used For example if these eight files are saved in a directory then the
24. Event Manager Only access events can be set in the Qualify box Qualify c Command buttons Registers the trace to the Event Manager Creates new trace Enables the trace conditions the T marker changes to red Restores the trace condition re ae Disables the trace condition the T marker changes to black Opens the Help window Opens the Event window to define new events Opens the Add Link window to link events Em Opens the setting window for the highlighted event icon Removes the highlighted event Shmo Displays the contents of the Event Manager at the bottom of the Break window d Example i Select the Run Cond Trace ON in the menu bar in the main window ii Open the event set dialog box Select Event gt Event iii Enter event condition in the Event Set dialog box for two events named Evt00001 and Evt00002 IV Open the trace dialog box Select Event gt Trace V Drag the event icon from the Event Manager to the Trace window 95 4 OPERATION Vi Enter trace event name for example TRACE vii Press Set to register it in the Event Manager The Set button becomes the Enable button viii Press Enable to enable it Figure 4 56 Trace Window Trace Mew Set Restore Cancel Help ICI Add Event xti ra dere Section atan section End Qualify HEemgve Shrink gt gt gt edd Info nj Other Event Manager 29 Trace View
25. Operation results are handled as unsigned 32 bit data fanoverflow occurs the low order 32 bits are valid and the overflow is not detected 4 The operator precedence is as follows High 1T sign NOT MOD AND Low Y OR XOR 6 Terms When a constant is described in a term the following numerical values can be described For binary numbers OY lt numerical value x 11111111111111111111111111111111Y 32 digits For octal numbers OO x numerical value x 377777777770 For decimal numbers 2147483648 x numerical value x 4294967295 a negative decimal number is converted internally into a two s complement For hexadecimal numbers OH x numerical value x OFFFFFFFFH 2 TERMINOLOGY This chapter describes the terminology related to the ID 1 2 3 4 5 6 7 8 9 Debugging Modes Files Current File Functions Current Function Structures Stack Frame Number Line Real Time RAM Sampling 2 1 Debugging Modes Three debugging modes are available from the Main window n source mode a program is executed in one line units of the source text In instruction mode step execution is performed at the instruction level n auto mode the mode is automatically detected based on the active window 2 2 Files The ID handles the following types of files C ASM S source files LNK LMF load module files HEX hexadecimal files PRJ pr
26. Variable windows are both display setting type windows opened outside the Main window Figure 4 4 Display Setting Type Window Opened Outside Main Window Menu bar Function buttons Data Display Area Location area 4 Management Type Window A management type window manages the debugging settings and has a menu bar and data display area The Event Manager window is a management type window Figure 4 5 Management Type Window Menu bar Data Display rea 19 4 OPERATION 4 1 2 Dialog Boxes Dialog boxes are classified into two types e Modal dialog boxes e Modeless dialog boxes 1 Modal Dialog Boxes From a modal dialog box you cannot access other windows or dialog boxes To do so you must first close the dialog box either by waiting for the operation to finish or by clicking the is button to cancel it 2 Modeless Dialog Boxes From the modeless dialog box you can access other windows or dialog boxes even if the current operation is still in progress There are seven types of dialog boxes Selection type dialog box Specification type dialog box Setting type dialog box Confirmation type dialog box Auxiliary type dialog box Display type dialog box Display setting type dialog box a Selection type dialog box A selection dialog box allows you to select conditions The Configuration Project File Load Upload View File Save Load Module Selection Project File Save View File Load and Source File
27. an illegal SFR access break generated after illegal access to an SFR 129 5 FUNCTIONAL OVERVIEW region A fail safe break occurs if there is a problem in the user program or a mistake in the environment settings of the debugger 5 2 7 Trace functions A trace function accesses the memory during user program execution and writes in real time data such as external sense clip values to the trace memory With the data written in the trace memory the execution process of the target program can be examined by opening the Trace View window The trace conditions can be set in the Trace dialog box The settings for the trace data display can be specified in the Trace Data Select dialog box The main functions related to trace execution and trace display are summarized below Trace operation Operation during real time execution Operation during step execution Operation during next step execution Trace condition setting function trace dialog box race mode specification e Qualify trace setting Trace data display format and search condition settings race data display specification race data search condition setting 1 Relationship between trace execution and trace memory The trace is divided into trace blocks according to the periods shown below Block from real time execution to a break by an event Block from emulation execution until the generation of a fail safe break Block from emulation execution until a forced bre
28. delete mapping then click the _ Delete button The currently selected mapping will be deleted h Command buttons A T pM Sets the current environment and closes the dialog box EM Cancels the changes and closes the dialog box Restores the previous environment Emm Opens a project file Help Opens the Help window to explain the Configuration dialog box 2 Extended Option Dialog Box The Extended Option dialog box allows you to display and set extended options for the debugger From the Option menu select Extended Option to open the dialog box Figure 4 18 Extended Option Dialog Box Extended Option Trace Timetag Count Rate El f Add Up Timetag max Dh 00m 01 s 342 ms 1 rus 280ns Internal RAM Monitor Fedra Eo mzec On Mouse Click C Softbreak Hard break M Break Sound Cancel Restore Help a Trace Timetag Count Rate allows you to set the rate for the trace timetag the Add Up Timetag check box allows you to enable disable the Add Up Timetag for display Not supported Trace Timetag Count Rate 4 Add Up Timetag mas Oh Om 0T s 342 ms 1 us zB ns b Real Time Internal Monitor Redraw allows you to set the rate in 1 ms units for real time internal RAM sampling 40 4 OPERATION Internal RAM Monitor Redraw Eno M ec c The break option On Mouse Click allows you to select mouse driven software or hardware breaks not supported The Break Sound check box allows you to
29. enable disable the break triggered sound On Mause Click C Softbreak Hard break Y Break Sound d Command buttons Accepts this change and closes the dialog box Cancel Cancels this change and closes the dialog box Bee Restores the previous settings of the window Opens the Help dialog box 41 4 OPERATION 3 Open Dialog Box From the Open dialog box you can restore the debugging environment to its previous state After a file is loaded the displayed window size and position revert to their previous states The analyzer relationship is not restored To open the dialog box select File Project Open Figure 4 19 Open Dialog Box Open Look in E nectaalz32 d SE L3 Setup Dac E firmware 1 Lih L1 Pci fd Files of type Project pr Cancel Help a Look in Click the folder name to display the project files in that folder The display formats are x Drive name xxx Directory name Look ir 3 nectools32 b File name Click the name of a PRJ file to select it and then click Open You can also double click the file name to select and open it File name Files of type Project pri c Command Buttons Loads the selected project file and sets the environment Cancel Closes the Project File Load dialog box 42 4 OPERATION d Contents of load operation The following items are set by loading the project file However the ta
30. file names corresponding to the wild cards would be AAAAA HEX ABC C ABC HEX ABC SYM ABCDEFGH HEX AXYZ BCDEFG HEX XYZ Table 1 5 File Name Corresponding to Wild Card x _ A mm T A HEX ABC HEX 1 3 3 Operands There are five types of operands Numerical values Addresses Registers Symbols Expressions and operators 1 OVERVIEW 1 Numerical Values Table 1 6 Numerical Values Input Format Example s n nY ete 9 n 0 1 n nO f n 0 1 2 3 4 5 6 7 n n T n 0 1 2 3 4 5 6 7 8 9 n nH etes xn ox n Nete n 0 1 2 3 4 5 6 7 8 9 A B C D E F 1 2 2 1 1 Notes 1 The suffixes Y O T H Ox and the hexadecimal letters can be either uppercase or lowercase 2 Ifthe first character is A to F a O must be added at the beginning for example FFH gt OFFH 2 Addresses An address is specified by a numerical value symbol or expression If an address is specified by a numerical value a hexadecimal decimal octal or binary number can be used 3 Registers A general purpose register is specified by an absolute name or function name The PSW register has a name assigned to each bit Table 1 7 Registers Control registers 1 OVERVIEW General purpose registers R1 R2 R3 R4 R5 R7 RP1 RP2 P3 a NE NE 4 Symbols A symbol is any of the characters A to Z a to z O _ underline and O to 9 A symbol name must
31. from the jump pointer Highlight the address destination in the Source Text window and then select Jump Source Text or press CTRL U 64 4 OPERATION d Label display area displays the labels e Data display area displays the mnemonic data Eb1L 225E01 EJ54FD ESBSFLD EJ41FD ESA4AFTD ESA3FD DACS E942FD f The Mnemonic display modify area displays the disassembly result and can be modified directly HOVW SP Ax CALL hdwinit MOV errno A Moy errno l xl GFHCEHT Uxi SEED O0 x2 A WSEED x1 A SEED A g Command Buttons Rete Refreshes data from the window 65 18 The Memory window allows you to display and change its contents To open the window select Memory Window 4 OPERATION Browse Memory or click al Right clicking any part of the window displays a pop up window where you can change the display format Memory Search B 2 m MEN Close Addr 0 OOF O22 ln1nnlni In110 n8 n12n 43 101 30 0A In140lp6 In15n 22 In1sn 40 FB DA 30 D2 i3 EU F7 FD Memory 00 De FL oD ES DA 72 CO FO E4 20 01 E ab az 29 DD DA Az ES FD Ze F7 41 00 7TA Ad 2B 0g OA 73 FD Figure 4 34 Memory Window 22 lE Fo E5 DA DA 40 CO SF DA 70 10 De 02 F7 DA i 43 FD 29 EU DA r B3 4 30 EJ ZE 70 AD 36 Du Co 4 FE E DA FD Al 2 F7 lz No ASCII D
32. line select the appropriate file extension C for C language S for structured assembly language or ASM for assembly language File name Files af type Source c asm c Command Buttons Opens and displays the selected source file or function in the Source Text window Closes the Source File Selection dialog box Help Opens the Help window 53 4 OPERATION 9 Source Text Window To display source text select Browse gt Source Text or click the J command button To display source text from another window use the jump function Choose a pointer location and then select Jump Source Text or press CTRL U Table 4 16 Jump Function Source Text Window Operating Method Method moo ooo ela uim a lA Dmeveewdo recerca o 9 9 mekmeewue setmmeemwr mysm O0 o 9 eemmwe em ET C mserwdo mw EN TO Figure 4 25 Source Text Window File Edit View Option Run Event Browse Jump Window Help 8 x etl ow xm RM nm BE Es unsigned int temp Channe LHumber H channel B ANIA setup ANIA interrupt INMTHH BHxHH external interrupt mode register E IFH HxHfh relear flags for IMTP INTP2 MEA HxFE5 enable interrupt servicing INTPH INTP2 Init_ADC lt gt Init PUMZ PMA Axan 2 PMS x00 Ready main cH35 main 0080 ve a Point mark area The point mark area is the first column in
33. local variables and values Displays the stack contents Displays the Trace windows Opens the Event Manager Opens the Event dialog box 4 OPERATION Emm Opens the Break dialog box E Opens the Trace dialog box Displays the Timer dialog box 4 Launches the flash programmer 2 Window Display Area This area displays the following program windows all of which can be resized or minimized Source Text window Disassemble window Local Variable window Trace View window Memory window SFR window Stack Trace window 3 Status Display Area Function name CPU Status Ready main c 25 main 0280 BREAK Source file name line number PC value Status Table 4 2 Program and LCE Status Source file name Displays the source file name and the source line number referenced by the program counter PC value If there is no file data is displayed Function name Displays the function name referenced by the PC value If there is no file data is displayed PC value Displays the current PC value CPU status Displays the CPU state STOP HALT modes and so forth Displays the low cost emulator state RUN BREAK modes and so forth 25 4 OPERATION 4 3 2 Menus 1 File Menu Figure 4 7 File Commands File Edit View Option Run Event Browse Jump Window Help Open Libet gl m gm al Al gal E jave s Eloze Download Upload Flash Program Project Sa
34. of the connection target d Trace frame number display Frame Range 0 Trace frame number lt 65 535 e Fetch access display Address Data Status Fetch address display Fetch data display The fetch access display can be selected from the Trace Data Select dialog box From the Main window with the Trace window active select the View Select Figure 4 59 Trace Data Select Dialog Box 99 4 OPERATION Trace D ata elect Sete ell ae rei Mame 2 di Eres pee Ste Titel ETOILE dus993393 100 4 OPERATION f Data access result display can be selected from the Trace Data Select dialog box Figure 4 59 Table 4 25 Data Access Result Display Status Display Contents Data read write by user program PRD Data read by user program Data write by user program g Mnemonic display DisAsm displays the disassemble result and the status for BRM1 and M1 101 4 OPERATION 30 Register Window General purpose and control register values are displayed and changed in the Register window which can be opened from the Main window by selecting Browse Register or by clicking Al Figure 4 60 Register Window EF Register a The register bank setting area displays and sets the bank number of the general purpose registers Register 0 Current po Table 4 26 Register Bank Setting Area Item Description Register Bank Displays and sets the register bank displayed in th
35. opens the Watch window and displays the values of the variables Same as the 4 button opens the Register window and displays the register contents Same as the del button opens the SFR window and displays the contents of the SFRs Local Variable Opens the Local Variable window and displays the local variables Stack Trace Same as the button opens the Stack Trace window and displays the stack contents Same as the Lie button opens the Trace window 33 4 OPERATION 8 Jump Menu Figure 4 14 Jump Commands p IDKO32L Em File Edit View Option Aun Event Browse Window Help cp am pe x fr e EE TES Sourcelext tr Assemble Ctrl D Memory Chrl k Eoverage Etri E Source tus lhusr 1 asmit37 gt 10080 A Table 4 10 Jump Command Descriptions SourceText Displays the source text for the jump destination address specified by the data value in the current window If there is no line data in the jump destination address jumping does not occur Displays the Assemble result for the jump destination address specified by the data value in the current window Memory Displays the contents of memory beginning at the jump destination address specified by the data value in the current window 34 4 OPERATION 9 Window Menu Figure 4 15 Window Commands ee IDKO32L IEEE EE File Edt View Option Run Event Browse Jump TI Eb MESE ey et E New Window Cascade Til
36. point address In an address condition the event condition setting the range cannot be used 4016 F Not renew event condition This event condition is used in another event The address range condition and the pass count condition cannot be changed 4017 F Specified odd address by word access The data value cannot be detected in the word data that starts at an odd address Delete the data specification and set 5000 Illegal type number The type is illegal 5002 Illegal file name The device file cannot be opened 5003 Cannot file seek The file seek failed 142 APPENDIX A ERROR MESSAGES Table A 3 Error Message List 6 9 Eror nanoa rva CS gt eS 50a No match device No match device file of version of version The version of the device file is The version of the device file is illegal 500b Device has no relocatable IRAM There is no function to move the internal RAM in the CT selected device 6001 Wo Ilegal entry symbol name entry symbol name The The symbol name is illegal name is illegal 6002 E Illegal parameter The parameter is illegal 6003 ES Illegal entry function name The function name is illegal 6004 Out of buffer flow The function display in the Stack Trace window is incomplete One line has a maximum of 512 characters 6005 F ilegal expression expression The expression is illegal 7001 User program is running The user program is running This command cannot be executed 700
37. products or if you have any other inquiries Note 1 Renesas Electronics as used in this document means Renesas Electronics Corporation and also includes its majority owned subsidiaries Note 2 Renesas Electronics product s means any product developed or manufactured by or for Renesas Electronics 424 NE S AS User s Manual ID 8K0 LCE Integrated Debugger Preliminary Document No U18152EU1VOUMO O 1st edition 1999 2001 NEC Electronics Inc All rights reserved Printed in U S A No part of this document may be copied or reproduced in any form or by any means without the prior written consent of NEC Electronics Inc NECEL The information in this document is subject to change without notice All devices sold by NECEL are covered by the provisions appearing in NECEL s Terms and Conditions of Sales only including the limitation of liability warranty and patent provisions NECEL makes no warranty express statutory implied or by description regarding information set forth herein or regarding the freedom of the described devices from patent infringement NECEL assumes no responsibility for any errors that may appear in this document NECEL makes no commitments to update or to keep current information contained in this document The devices listed in this document are not suitable for use in applications such as but not limited to aircraft control systems aerospace equipment submarine cables nuclear reactor c
38. right of the screen the screen scrolls to one item to the left Confirms the input data 1 147 APPENDIX B KEY FUNCTIONS Table B 2 Special Function Key Function List CTRL Key Key Common to the PC 9801 9821 Series Function and the IBM PC AT Series The data value selected in the current window is the jump destination address The disassemble is displayed from that address The Assemble window opens Boo Sets a breakpoint at the selected line Copies the selected string to the clipboard buffer The window switches to Modify mode same as ToModify Runs the program same as Switches the window to the hold state Switches the window to the active state The data value selected in the current window is the jump destination address The memory contents are displayed from that address The Memory window opens When the Source Text window is current The source view file is selected The Source File Selection dialog box is opened Otherwise The appropriate view file for the current window is displayed The View File Save dialog box opens Step executes until returning to the calling function same as x l fel El lol le v The displayed contents of the current window are saved in the view file e Executes in steps same as The data value selected in the current window is the jump destination address The appropriate source text and source lines are displayed
39. specified address address 1004 E Illegal parameter The parameter is illegal 1006 DoF Illegal address The address is illegal 1007 A Not enough substitute memory Tried to map the substitute memory to a region larger than 1 MB 100b PENNE Program Is running This command cannot be used while a user program is x t000 Different Bus Size Bus Size A setting A setting duplicated a region with a different bus size a region with a different bus size 100d Total Maximum Over Tried to register above the maximum number 8 of bus size rr E IT Enable Maximum Enable Maximum Over The divisions The divisions of the bus size exceeded 8 the bus size exceeded 8 100f ES Wrong Target Status Power Off The target state is unstable 10ff Communication Error Cannot communicate with the IE Check that the IE is 5 E properly 200 F MegaSFRname SFR name The SFR name is The SFR name is illegal 2002 User program is running The user program is running This command cannot be executed 140 APPENDIX A ERROR MESSAGES Table A 3 Error Message List 4 9 Eror nanoa ues pomi F F 2006 This SFR is hidden The SFR is not usually open The data cannot be displayed and changed 2007 Can t Read Write Tried to write to a write protected SFR Or tried to read a read protected SFR 2008 353 Too big number The specified SFR does not exist Illegal Bit Pattern Tried to set an illegal value in the SFR 20
40. the Source window It is used to set and delete breakpoints at the asterisk locations and to display the event setting state 54 4 OPERATION Breakpoint set and delete functions Clicking in this area allows you to set and delete breakpoints as explained in the following table Table 4 17 Cursor Position for Breakpoint Set Delete B mark is displayed Red black Delete the breakpoint B mark is not displayed or something else o Oe Set the breakpoint Ies playen EHE Right click Set the software breakpoint ii Event display function This function displays the event settings If an execution event or access fetch event is set in the corresponding source line the mark corresponding to that event type is displayed Table 4 18 Event Mark Display b Current PC position c The gt symbol points to the current PC value and highlights the line in yellow Pressing the mouse at this position displays the PC register value in a pop up window Line number area The line numbers of the source text are displayed in this area Highlighting and then right clicking a line displays a window where you can perform the following functions i Come function This function executes the user program until reaching the selected line In this mode currently set break events are not generated This function is executed by selecting the line numbers where the breaks should occur and then selecting Run Come Here from the
41. the window Closes the window Searches for the highlighted string 67 4 OPERATION 19 Memory Fill Dialog Box In this dialog box the memory contents are initialized to the specified code This dialog box is in the active window state and can be opened from the Main window by selecting Edit gt Memory gt Fill Figure 4 41 Memory Fill Dialog Box Memory Fill Address Fram ponoon pooo00 fill code gt jod Cancel Bestore Help a Address range specification area specifies the address range for the memory contents to be initialized The input is from initialization start address to initialization end address Address b Data specification area specifies the initialization data up to 16 bytes of string data c Command buttons Initializes the memor Restores the input data to the original value Closes the Memory Fill dialog box LE Opens the Help window 68 4 OPERATION 20 Memory Copy Dialog Box This dialog box is in the active window state and copies memory from one location to another The dialog box can be opened from the Main window by selecting Edit gt Memory gt Copy Figure 4 36 Memory Copy Dialog Box Memory Copy Address From banano ononon To ponoon Cancel Restore Help a Address range specification area specifies the beginning and ending addresses of the copy source and the beginning address of the copy destination Address b C
42. tries Paste etry rib A Enter Restore Esc Memory Edit Source Do T O fT Table 4 4 Edit Command Descriptions Cut Cuts a selected string Restore Cancels the changes to the window Fill Opens the Memory Fill dialog box where you can Initialize the memory Opens the Memory Copy dialog box where you can copy the memory Opens the Memory Compare dialog box where you can compare the memory Edit Source Allows you to edit source code in the Source window provided the debugger is invoked from the Project Manager available with the RA78KO package 27 4 OPERATION 3 View Menu Figure 4 9 View Commands File Edit BMGS Option Aun Event Browse Jump Window Help Search Ctrl G ER fu 5 ES Hiep D ow Dm Quick Watch Ctra Add Watch View Watch belete Watch Symbol Event Mix El Source tus EJlal Fa tust_1 ambar 0080 E Table 4 5 View Command Descriptions Opens the Search dialog box where you can search for strings or numerical values same as sess button Moves cursor to specified address in the Memory or Assembly window or line number in Source Text window Quick Watch Views the highlighted variable from the source text in the Quick Watch window Add Watch Opens the Add Variable window where you can add a variable from the Source window to the Watch window View Watch Displays the Watch window Delete Watch Deletes the variable highlighted in
43. 2 User program is stopped The user program had a break This command cannot be executed 7003 Trace function is active The tracer is running This command cannot be executed 7004 Trace Trace memoryisOFF is OFF The tracer is off 7005 No Return Address Can t Execute The return address of the current function cannot be 7010 7012 EN 7801 7802 7f00 7f02 7f03 Tl TI found Stepping by the Return command is not executed Warning No Source Line Information Since there is no source information instruction level stepping was executed Not enough memory The memory is insufficient Exit unused applications or close the debugger window Bus Hold Error There is a bus hold The user program cannot be executed Communication Error Cannot communicate with the IE Check that the IE is functioning properly Step wait canceled The step execution was stopped Since the step execution is not finished communication with the IE may no longer be possible Step aborted An illegal access break was generated during stepping Check the user program F Interrupted step The step execution process was forcibly ended Suspended step The stepping was suspended Run Step cancel failed CPU reset The user program break failed The CPU was reset and the IE is unstable Check that the IE is okay and restart 7104 F Mlegaladdress address Tried to execute from an unmapped region 143 APPENDIX A ERROR MESSAGES
44. Ilegal address address The address is The address is illegal wb F LM not load The load module file is not loaded cOOd User program is emulating The user program is running This command cannot be executed cO0e User program is tracing The tracer is operating This command cannot be executed c010 Communication failed Cannot communicate with the IE Check that the IE is a properly P du F ilegalfileformat file format The file format in the load module file The file format in the load module file LNK is ilegal is illegal c012 Check sum error A checksum error occurred while reading the load MEE file Check the load module file c3 Too Tolagesze size The address range to be The address range to be uploaded exceeds 1 MB exceeds 1 MB ee Cannot write file Cannot write to the file m Not supported The Tektronix format is not supported Not enough memory The memory is insufficient Exit unused applications or close the debugger window a em or vegades Tre era aearss snee Ce fewo mestesste O oo ee TFT es or omane e nerona ed Te tie moy ve compes e008 F Not enough memory The memory is insufficient Exit unused applications or close the debugger window Illegal file format The file format is illegal 146 Appendix B Key Functions Special function keys can be used to debug effectively with ID operations In the descriptions because the key expression differs with the type
45. Main window ii Break event setting function The break event is set at the first address corresponding to the selected line numbers To set a breakpoint using execution events highlight the line number where the break event is set and then select Run Break Point from the Main window iii Jump function Assemble or Memory This function jump to the first address corresponding to the selected line numbers in the Assemble window or Memory window The jump destination window is displayed from the jump pointer 55 4 OPERATION d Source display area Source text can be displayed in the source display area C and assembly text may be displayed simultaneously in this window Right click in any part of the source display area and select Mix from the pop up window e Command buttons Es Search for a string in Source window lt lt Search back for selected text in the Source window gt gt Search forward for selected text in the Source window 56 4 OPERATION 10 Source Search Dialog Box This operation performs a data or string search and displays the search result in the active window To open the Source Search dialog box click Search from the Source Text Assemble or Memory window Figure 4 26 Source Search Dialog Box Source Search Find what 1 T V Match Case Direction Set Find C Up Down Cancel FE T ENEE Help REN a Find What allows you to specify the search data B
46. Number Descriptions 1 9 Eror memer Type messes ep O OOOO Can t open this file Please make sure Illegal format of the project file or corrupted file contents now Active Window loading of the project file stops Cannot find string Cannot find search string search stops or file open stops MEI the specified file did not contain data EventNameisnotse Name is not set No event name event name not No event name event name not registered Even number already exists An event with the same number cannot be registered twice Change the number of the event to be registered or change the number of the event that was already registered with the same number Not enough memory There is insufficient memory to display or change the window or to save the changes After freeing more memory execute again Other view mode window exists Two or more active windows having the same type cannot be opened simultaneously Other active windows were closed Sorry too large view file Max is 1000 The contents of the specified view file MEM TVW frames DIS are longer than 1 000 lines The display was stopped Event name already exists An event with the same name cannot be registered Change the name of the event to be registered or change the name of the event already registered with the same name 0103 A Send timed out Data cannot be sent to the in circuit emulator IE Check for possible causes such as the setting of the inte
47. PERATION a The Point Mark box displays the event settings If the execution or access fetch event is set at the corresponding trace address this box displays the mark corresponding to the event type Table 4 16 Event Mark Display Mak Description SOS O OO Event condition is set Last phase of an event link is set B Break event is set b The Trace Mode box displays the type of trace mode where A All Trace Q Qualify Trace and S Step Execution Trace c The Trace View window displays the trace results and is used for the jump and window synchronize functions Figure 4 58 Trace View Window Frame Address Data Status Address Data Status Disz m C2 98 4 OPERATION i The Trace window can be synchronized with the Source Assembly or Memory windows so that the code displayed in each window coincides with the Trace window To initiate the window synchronize function from the Trace window right click and select Window Synchronize any window on the pop up window Table 4 17 Connection Window Items in Window Connect Connect Window ii Highlight the trace result display area of the Trace View window iii With the address of the trace result selected in step ii as the pointer highlight the display areas of each window selected in step i The window synchronize function differs from the jump function because the area selected in the Trace View window moves and the result is reflected in each window
48. Search range over The size of the search data exceeds the size of the search MEME Oda Number of Number of Trigger condition overflow condition overflow The number of software break The number of software break settings exceeds 100 exceeds 100 04a1 Emulation memory is not enough Tried to map the substitute memory to a region larger than 1 MB 04a2 Bus size conditions overflow The divisions of the bus size exceeded 8 Sometimes events cannot be properly set 04a3 F BRS event conditions overflow More than 5 execution event conditions are set The maximum number of execution event conditions is 4 04a4 F BRA event conditions overflow More than 5 bus event conditions are set The maximum number of bus event conditions is 4 04a6 F External Trigger event conditions More than 2 external trigger conditions are set The overflow maximum number of external trigger conditions is 1 05a0 A Evade runaway hardware The IE is unstable Reset the IE and forcibly break the user program 0600 A Communication buffer error The region of the buffer for the communication data with the IE cannot be guaranteed Exit other Windows applications or change the setting of the swap file used by Windows to increase the main memory of the host machine 1000 Failure in initialization The IE initialization failed Make sure the IE is cs properly 1003 F illegal relocation address relocation address Cannot locate to the Cannot locate to the
49. To our customers Old Company Name in Catalogs and Other Documents On April 1 2010 NEC Electronics Corporation merged with Renesas Technology Corporation and Renesas Electronics Corporation took over all the business of both companies Therefore although the old company name remains in this document it is a valid Renesas Electronics document We appreciate your understanding Renesas Electronics website http www renesas com April 1 2010 Renesas Electronics Corporation Issued by Renesas Electronics Corporation http www renesas com Send any inquiries to http www renesas com inquiry 24 NE S AS 8 10 11 12 Notice All information included in this document is current as of the date this document is issued Such information however is subject to change without any prior notice Before purchasing or using any Renesas Electronics products listed herein please confirm the latest product information with a Renesas Electronics sales office Also please pay regular and careful attention to additional and different information to be disclosed by Renesas Electronics such as that disclosed through our website Renesas Electronics does not assume any liability for infringement of patents copyrights or other intellectual property rights of third parties by or arising from the use of Renesas Electronics products or technical information described in this document No license express implied or otherwise is gra
50. Window 4 OPERATION The Trace View window displays the trace result From the Main window select Browse Trace or click el Figure 4 57 Trace View Window W Trace View Of x Search gt gt Hefresh Close Frame Address Data Status Address Data Status Diz zm 81772 FEFB CA E 8173 0111 30 H1 BE ma A174 0112 EC OP 175 OLOF O8 H1 HOP S1 6 0110 Oe H1 HOP 8177 0111 3ll H1 BE 5 nail 8178 0112 FC OP v 8173 Ul1UF 06 H1 HOP ES 81850 0110 8 H1 HOP _ The tracer has a capacity of 65 535 frames and a ring structure If more than 65 535 frames of data are written the oldest is overwritten The oldest data is frame 0 and the frame numbers are displayed in order During pauses in program execution the block data is written to the tracer and displayed as one horizontal line in each display area Table 4 20 Block Data Write Previous Execution Mode Next Execution Mode In real time execution During real time execution during step execution In step execution During real time execution when the execution address was changed and the execution was in steps Table 4 21 Block Data Normal Break Step Break Step break Event Break Event break Fail Safe Break Fetch Guard Fetch guard break Write Protect Write protect break SFR Illegal SFR illegal access break Stack Overflow Stack guard break stack overflow break Unspecified Illegal Other breaks 97 4 O
51. additional choices Source Mode Instruction Mode a Auto Mode Configuration Mask Option Extended Option Debugger Option Add 1 0 Part 3 1 8 Toolbar Ie er gt i E RS E Oa IE Tj The toolbar contains buttons that invoke frequently used commands Each button is identified by a symbol depicting the operation Click the button to initiate the operation 14 3 WINDOW FUNCTIONS 3 1 9 Status Bar Ready main c 25 main 10280 BREAK U2 The status bar at the bottom of the window shows several pieces of information about the debugger and emulator gt Source file name and line number indicated by the program counter PC Function name indicated by the PC PC value CPU uPD789xxx status Status of the low cost emulator VV VV WV Break cause 3 1 10 Drop Down List Font Bef licki A drop down list is a closed version of a list box with s ihid an arrow next to it Clicking the arrow opens the list the arrow Highlight and click an item in the list to select it After clicking the arrow HS Sans Serif Courier 3 2 c State In the active state execution of a user program or command automatically updates values displayed in the window The static state maintains the values regardless of user program or command execution When displayed contents sometimes change because of user program execution the display window or display setting window can switch to the act
52. address display area This area displays the address of the variable specified in the variable specification area The format can be changed by Hadi Hex Dec Oct Bin c Command buttons Accepts settings and closes the dialog box Restores previous data 58 4 OPERATION 12 Quick Watch Dialog Box This dialog box allows you to temporarily display the value of the variable specified in the Source Text window To perform this operation select the variable in the Source window and then select View Quick Watch Figure 4 30 Quick Watch Dialog Box Proper Adaptive Add Close Name n a Number a Name allows you enter a variable name to be displayed in the Source Text window Name a b Variable value displays the specified variable value 2 30000 c Command buttons tmb Displays the number variable rre Displays the format of the data Close Closes the dialog box 59 4 OPERATION 13 Watch Window This window allows you to display View mode and change Modify mode the value of the variable specified in the Source Text window The variable display is added for each display requirement If the same variable is added the addition is not displayed In the Main window select View View Watch or highlight the variable in the Source window and then click the Watch button in the source window Figure 4 31 Watch Window Delete Up Down R
53. ak Step execution block The trace memory is a 64K frame ring buffer Therefore if 64K frames are exceeded during a trace the latest trace data is overwritten in the oldest frame 130 5 FUNCTIONAL OVERVIEW Figure 5 10 Trace Memory Concept a When less than 64K frames b When above 64K frames c During repeated executionz and breaks Mevest imme Cadet fan Mevest imme Firg birtar Traced fame A gt Mriraced fam gt Arat tam traced inthe retes arton 2 Trace operation Tracer operation depends on the execution state a Operation during real time execution The tracer starts the trace at the specification of the real time execution When the event conditions including delay conditions specified in the break conditions of the Trace dialog box are set up the trace operation ends b Operation during step execution The tracer runs for each step execution The trace data in one step is added to the tracer for each subsequent step execution c Operation during next step execution When executing an instruction other than a call instruction CALL CALLF CALLT BRK BRKCS operation is identical to the operation during step execution When executing a call instruction CALL CALLF CALLT BRK BRKCS operation is identical to the operation during real time execution Real time execution stops by returning to the call function 3 Trace condition setting function Trace dialog box The following
54. ak dialog box or Trace dialog box There are three types of functions set by the event detected condition a Bus event condition setting function The user program accessing the specified memory or inputting data to an external sense clip can be set in the Bus Event Condition register as the event detected condition Bus event condition register A maximum of four conditions can be set in the Bus Event Condition register BRA in the Event Set dialog box ii Event condition Table 5 9 lists the items that can be set in the event detected condition Table 5 9 Path Event Detection Condition Fem me O Beshblon 133 5 FUNCTIONAL OVERVIEW b Execution event condition setting function The user program executing the instruction at the specified address and inputting the data for the external sense clip at that time can be set in the Execution Event Condition register as the event detected condition Execution event condition register A maximum of eight conditions can be set in the Execution Event Detection register BRS in the Event Set dialog box ii Event condition Table 5 10 lists the items that can be set in the event detected condition Table 5 10 Execution Event Detection Condition em sm o Been OOOO Address Address address range c Event condition link setting function The execution event conditions registered in the Event Set dialog box can register the event connect conditions in the event link dia
55. and the emulation and analyzer functions Table 5 1 The operating mode is shown on the status bar in the Main window Table 5 1 Operating Modes wa em mum Emulation mode Enabled Disabled 5 1 1 Break Mode In Break mode the emulation and analyzer functions are disabled 5 1 2 Emulation Mode In Emulation mode the emulation function is enabled and the trace function is disabled The user program is executed and the analyzer functions are performed 5 1 3 Trace Mode In Trace mode the emulation and analyzer functions are enabled Figure 5 1 Example of System Operation Event Start condition Event Restart Stop Forced Generated event execution match delay tracer tracer Stop command B i j 77 f Ys Deme ADN ZY elay period 121 5 FUNCTIONAL OVERVIEW 5 2 Basic Functions This section describes the ID s debugging functions 5 2 1 Clock Selection Function This function specifies the clock source to be supplied to the target device and is set at the time of power up or by means of the Configuration dialog box There are two methods for supplying the clock 5 2 2 Mapping function This function enables you to map address regions except those for internal ROM and the SFRs Mapping is set at power up or by means of the Configuration dialog box 5 2 3 Stack area Creating a stack area prevents stacking outside the stack area If the target device attempts to perform stacking outside the stack area the syst
56. be qualified as address read write or read write values However the number of events that can actually be used in a break and tracer is 3 points The events that can be simultaneously used have 12 points and can be set in multiple event conditions such as breaks tracers and event links a Event name setting area selects the event name NEW is displayed by default Press to display the list of event names Event names can have a maximum of eight characters E vent Mame EvtQU001 b Address setting area specifies address conditions in the format range 0 x address value x Oxffff There are two types of address conditions those that set the address value and those that input the mask value Address Mask 74 4 OPERATION i Address Input in the order of low order address high order address The address condition has two possible settings 1 Point setting Set the point setting to only the low order address or set the same values in the low order address and the high order address The Mask setting can also be made at this time 2 Range setting Set the address range in the low order address and the high order address The Mask setting cannot be made at this time An address condition can also be specified by a symbol as follows Function and variable _fnc function or variable name file fnc for static functions and variables SFR Sfrname SFR name Line number in the source text fil
57. begin with a character other than 0 to 9 and be no longer than 31 characters maximum If a symbol longer than 31 characters is defined then only the first 31 characters are valid Uppercase letters A to Z are distinguished from lowercase letters a to z case sensitive A symbol is defined by loading a load module file It can be described instead of an address or numerical value but its valid range is determined by the source debugging data when assembled or compiled Each valid range has several types of symbols Public symbols assembler structured assembler C described by a symbol name Local symbols described by a file name or module name Local symbols in a module assembler and structured assembler languages ocal symbols in a file C language Local symbols in a function C language For each language used the following are available Assembler language and structured assembler language label names constant names bit symbol names gt C language Variable names including point variable names enumeration variable names array names structure names union names Function names and label names if a C function name duplicates a register name flag name SFR name or SFR bit name an must be added immediately before the symbol to explicitly distinguish it Array elements structure elements union elements bit fields when the symbol is an array structure or union 1 OVERVIEW 5 Exp
58. break during program execution Figure 6 6 Figure 5 6 Example of COME Command Come BRK BRK BRK Cursor Vo XY V V anaye RRs Time Stopped PERS Executing Come Come command issued BRK Break event Cursor Executes the cursor setting address e CPU RESET amp GO command The CPU RESET amp GO command resets the emulation CPU and executes the program by the reset vector Figure 5 7 The operation before a program is executed and after the emulation CPU is reset is identical to a GO command Figure 5 7 Example of CPU RESET amp GO Command CPU Reset amp Go BRK ou _ _ e Tracer Time Id Stopped ENSE Executing A Resetting CPU Reset amp Go CPU Reset amp Go command issued BRK Break event 126 5 FUNCTIONAL OVERVIEW Table 5 5 Non Real Time Execution Co e O Step P Step executes at the source level in Source mode Step executes at the instruction level in Instruction mode Next vor Next step executes at the source level in Source mode Next step executes at the instruction level in Instruction mode Slowmotion Continuously step executes Non real time execution functions are broadly classified into functions that execute in steps d STEP command The STEP command step executes the program in one line segments starting from a specified source line in Source mode or instruction line in Instruction mode Figure 5 8 After execution each wind
59. ction When the Execution Pauses 1 1 2 6 Saving and Restoring the Debugging Environment cccccccseeeceseeeeeeeeeeeesaeeeeeseeeeesaeeeesaees 1 1 2 7 Displaying the Source Text in a Function occcoocccnccccnccnoccncnnnnnnononnnnnnnnnnnnnnnnnnonnnnonnnnnnnnncnnnnnnnns 1 1 97 IAPUCONVEN ION Sessa rtorras bes encantos 2 1 3 1 CAV ACSI SODsdsuscuuctacteditusm aita auti m c ULM MEL IER D LM ELE 2 1 3 2 Pile Speciica lO iii 3 1 3 3 Operands A A 4 TERMINOLOGY costi aE EY 9 A DeDUd dnd ModE cUm 9 A 9 LS UE T 9 A t 10 2 9 Quien FUNCION ursa ce toe ae econ atta a I DAI EE iE 10 PA T UG US TN ER noses 10 24 Slack Frame Numb css asec trees m mr 10 X XEM E c A A A A A A A 10 2 9 Realtime RAM Sear pC sd la ME 11 WINDOW FUNCTION cce 13 Sel Basic Opera ON Sa ras 13 3 1 1 MOS e all e ooo 13 3 1 2 Push Button and Function Button ooocccocccconcnccnccncncnnoncnnnnncnnnncnnnncnnonononnnnnnnrnnonaronnaranonnnnons 13 4 OPERATION CONTENTS 3 1 5 SCOB Wie oaee ee e eat aa 13 3 1 6 YAS pT lcs NER RE m NI MU 14 3 1 7 Menu Command and ODpLOFiS niue tu etra eet eiae bees cun tact eevee bum uino aa ces on e um egeo ioe 14 3 1 9 AA A IEEE NE 15 3 1 10 Drop DOWN Ec cT 15 3S2 ACVE Slate AMC Static State goo a rada dete etched Sy orn etos ep dta petulant De Mes KD M MIL IE TAE 3 3 Errors angd VV apiid Soissons uina RM MM del Lc MM CM EAM 3 3 1 Errors and Warnings During GUI Opera
60. d with the underline character _ at the beginning and with the sharp character as a separator between a file name and a function or variable name The colon is used as a separator between a file name and a line number ii The Mask option sets a mask for the data value by means of an OR condition The default is Oxff The data condition becomes invalid matches the condition for any data Example When the settings are Data Ox7F Mask 0x00 the condition is matched wHertme data value Is Ux7 When the settings are Data 0x80 0x80 Mask oxof OxOf the condition 1s matched for data values rrom 0x80 to OxSF When the settings are Data 902 Mask oxfd 02 Mesk the condition is matched w When the settings are Data 0x00 Mask Oxfd the condition is matched when bit is O e The External Probe box is not supported Ext Probe Mask Range Inrange Dutrange f Event Manager Event Manager 77 4 OPERATION g Command Buttons 78 Displays the Event Manager in the Event Setting window Opens a previously saved event setting Displays detailed information regarding the event 4 OPERATION 25 Event Manager The Event Manager allows you to display and delete various events In other words an event condition registered in the Event Set dialog box or Event Link dialog box can be assigned to a break or a trace To open select Event Event Manager from the Main window Fig
61. dow to define new events pm o Opens the Add Link window to link events EE Opens the setting window for the highlighted event icon Remove Removes the highlighted event Displays the contents of the Event Manager window at the bottom of the Break window d Example l Open the Event Set dialog box Select Event Event li Create event conditions for Evt00001 and Evt00002 iii Open the Break dialog box Select Event Break IV Drag the event icon from the Event Manager to the Break window the cursor changes from AS to O V Drag the cursor and drop it into Break dialog box to copy the event the cursor changes from ooQ Vi Enter the break event name Brk00001 vii Click Set to register the break in the Event Manager The Set button becomes the Enable button viii Click Enable to enable the break event condition the B marker changes from black to red Figure 4 54 Setting Break Event Conditions 92 4 OPERATION Break Mew Set Restore Cancel Help Break Hame EJ prkonant bi Add Event Break Event Add Link pen di Hemose Shrink gt gt gt H vt00001 Event Manager E vtQO001 re i 93 4 OPERATION 28 Trace Dialog Box Trace event conditions are registered set and displayed in this dialog box and then automatically registered in the Event Manager A maximum of 64K trace event conditions can be registered but only one is enabled From
62. e Arrange Icons Close All Help Ww medio Refresh a Active Static wv Source tusr 1 asm El Source tus zin Ea tust_1 asmit37 0080 E Table 4 11 Window Command Descriptions 35 4 OPERATION 10 Help Menu Figure 4 16 Help Commands Ns IDK 32L Fille Edit View Option Bun Event Browse Jump Window Main Window Help Curent Window Help About Source tus Elim E tust_1 asmi 3 Es 0080 E Table 4 12 Help Command Descriptions Help Topics Displays the Help window Main Window Help Displays the Help window for the Main window Current Window Help Displays the Help window for the current window Displays information about the debugger 36 4 OPERATION 4 3 3 Dialog Boxes 1 Configuration Dialog Box The Configuration dialog box is used to display and set the operating environment of the low cost emulator The dialog box opens automatically upon power up It can also be opened in the Main window From the Option menu select Configuration During debugging this dialog box can be used to modify and add pin mask settings location settings and memory mapping settings as needed The result of reading the project file is also reflected here Figure 4 17 Configuration Dialog Box Configuration e LK Mame UPD iss o Cancel Restore Project Internal ROM RM Internal ROM 32 E Byte Internal RAM 1024 Byte Clock
63. e Save As dialog box is used to save the contents of the current window When the window to be saved is a Local Variable Disassemble Memory Stack Trace SFR or Trace View window 1 The window to be saved becomes the current window 2 Select File Save As in the Main window Figure 4 81 Save As Dialog Box When the window to be saved is a Local Variable Disassemble Variable Stack Trace SFR or Register window or a window in the hold state Save As Save In EX smpz8k s File name Save as type Local Variable loc Cancel 110 4 OPERATION Figure 4 81 Save As Dialog Box continued When the window to be saved is a Memory window in the active state C3Newe m Libz 8k J 5mp78kD Lib78kOs J emp78kOs Mubcode J Smp 8k4 Projects E Src Setup Smp ee Memor mem 0 0 my When the window to be saved is a Trace View window in the active state 111 112 LL Ec BkUs LL Ra Skls 4 OPERATION 3 smp 8k s kd E ee Trace it Cancel 4 OPERATION a The File name box is where you specify the file name to be saved Select and highlight a file name Double click the file name or click SAVE to save the file The default extensions are listed in the following table wei NT b The Save in box specifies the folder in which to save the file Double click the folder to display its contents c The Save range box is displayed when the window to b
64. e general purpose register display area Changing the bank number is performed using the button Displays the register bank number currently set to the target current bank Current Bank b The control register box displays the control register values To change a value highlight and type over it Press ENTER to execute the change Double clicking on the register with a t expands the register display c The general purpose register box displays and changes general purpose register values To change a value highlight and type over it Press to execute the change Right click the display area and select between Absolute name display and Function name display and the notation for display 102 4 OPERATION 103 4 OPERATION Figure 4 60 General Purpose Register Display Function Name and Register Pair Function Name and Register Absolute Name and Register Pair ister 104 4 OPERATION Figure 4 61 View Menu Register Window File Edt BEI Option Aun Event Browse Jump Window Help amine i 1 Search tia Ral Add watch Search dies Refresh Close ST Tet EG pe pug Delete watch el Symbol 8 7 Refresh Clase gt Dec e Hex Absolute Mame e Functional M Functional N ame NOP 47 NOP lt gt 48 nBH end maint 7 52 void spitvoid gt t DU 1 56 IZzSHH Test5tringlil n 0080 BREAK
65. e in Source Area A memory range with a different access size was specified in the source address range 3010 F Different Access Size in Destination A memory range with a different access size was Area specified in the destination address range 141 APPENDIX A ERROR MESSAGES Table A 3 Error Message List 5 9 Eror number Type messas nemi 3011 F Different Access Size Source and The access sizes differ in the source address range and Destination the destination address range 30ff A Communication Error Cannot communicate with the IE Check that the IE is functioning properly Tried to register more than 32 767 events of the same type me regatear Sareren oooO me JE Tatieovertow Teo agar sane sent more an s2767 mes 40e F Noentryeventnumber The specified event condition does not exist F F F 400f F Illegal Elink data The event conditions setting the range condition and path condition were used in an event link condition Or only one event condition is set A F 4010 Function not found The specified function is not found 4011 No free memory The memory is insufficient Exit unused applications or close the debugger window 4013 W Data access size mismatch at the bus The mapped bus size and the access size of the event size condition differ 4014 Can t use software break The current software break cannot be used Set a software break in the extended option setting dialog box 4015 F Not
66. e no file name and line number Function or variable names are specified with an underline character _ at the beginning of the symbol name The sharp character is used as a separator between a file name and a function or variable name The colon is used as a separator between a file name and a line number ii Mask A mask can be set as an address condition The default is 0x0000 which is the setting for no mask The mask is set by an OR condition Example When the settings are Address 0x4000 0x4000 Mask the condition is matched for addresses 0x4000 to Ox40FF When the settings are Address 0x4000 0x4000 Mask 0x101 the condition 1s matched for addresses 0x4000 0x4001 0x4100 and 0x4101 c The Event Status area specifies the status condition for execution and access events which can be simultaneously determined Event Status Table 4 23 Contents of Status Condition 75 76 4 OPERATION 4 OPERATION d Data setting area specifies the data condition in the format O x Data x Oxff Data Mask There are two types of data conditions those that set the data value and those that input the data mask value l Data specifies the data value as follows Function and variable _fnc function or variable name file fnc for static functions and variables Line number in the source text file no file name and line number Function or variable names are specifie
67. e saved is a Memory or a Trace View window When the current window is a Memory window this box specifies an address range Gave range All tf Screen shot t Specify Address When the current window is a Trace View window this box specifies the range to be saved where the specification range is 0 lt frame number x 65 535 Save range All f Screen shat Specify Frame The Save Message box appears if a range above 100 frames is specified To abort the save click STOP Figure 4 82 Save Message Save Frame stark end 65534 current 4304 113 4 OPERATION d Command buttons Saves the selected window to the specified name Cancel Closes the dialog box Help Opens the Help window 114 4 OPERATION 34 Exit Debugger Dialog Box The Exit Debugger dialog box allows you to save the debugging environment in a project file and exit the debugger From the Main window select File Exit Figure 4 66 Exit Debugger Dialog Box Exit Debugger This will end your Debugger session M Save Project file eDOCbaododeooocotoeasobO o aoonaaanccoooood Cancel Help Clicking OK in this dialog box when the Save Project file option is enabled opens the Save dialog box where you can save the current debugging environment in a project file After the save operation the project windows closed and exits the program If the Save Project file is not selected default
68. e structures and the unions of the C language A structure is called by using a variable in the structure or the union without explicitly specifying a member 2 Stack Frame Number A stack frame number is a decimal number starting from 1 The functions in the stack are specified by the depth of the stack frame The largest stack frame number is for the current function 2 8 Line The line specifies a particular line in the source file The line display and specification format is 10 2 TERMINOLOGY file file name line line number This line is interpreted as the line at the line number in the specified file Line Specification Example test c 100 Line 100 in the test c file 2 9 Real Time RAM Sampling Even while a user program is executed if the variables are allocated to a space where the memory contents can be read or the memory displayed the ID reads the memory contents and updates the display in real time This function is called the real time RAM sampling function The memory address space is called the real time RAM space which is anything other than the unmapped area and SFR area 11 3 WINDOW FUNCTIONS 3 1 Basic Operations The window interface is used to perform debugging operations In other words after selecting the debugging target variable line task and so forth you can select a corresponding debugging function using a function button Some menus are functionally equivalent to the function bu
69. e toolbar click Option Tool Bar gt Hide Stops or pauses execution of the user program Performs the Reset and Go commands sequentially Executes the user program remains depressed until after completion of program execution Executes a function in real time before returning to the CALL function riv s 2 23 Eer s e ies b ES i i O B a 4 OPERATION Executes a program in single steps Pressing the button once executes one instruction Successively pressing the button executes the corresponding number of instructions Debugging at the source level is in line units Debugging at the instruction level is in instruction units Executes the next step Steps over a CALL instruction by executing the called function in real time If the debugging takes place at the source level step execution is in line units If debugging takes place at the instruction level step execution is in instruction units Initializes the debugger emulation CPU and symbol data opens the Reset Confirmation dialog box Opens the source code to be displayed in the Source window Downloads the load module file LMF to the debugger Opens a previously saved project file Displays the source text Displays the assembly results Displays the memory contents Displays the selected variable Displays the CPU registers and general purpose registers and their contents Displays the SFRs and their contents Displays the
70. ed on each window Related information is easily viewed from the display 1 2 2 Source Level Debugging Function Referencing and setting variables and structures displaying programs and setting breakpoints is efficiently performed at the source text level of function names and line numbers 1 2 3 Instruction Level Debugging Function Referencing and setting symbols and register values displaying programs and setting breakpoints is efficiently performed at the instruction level of labels and addresses 1 2 4 Low Cost Emulator The detailed event setting functions of the low cost emulator are used to set breaks and to trace programs 1 2 5 Watch Function Automatic Display Update Function When the Execution Pauses When the user program pauses the values in the display window and display setting window are automatically updated 1 2 6 Saving and Restoring the Debugging Environment The debugging state is saved and the saved conditions are restored 1 2 7 Displaying the Source Text in a Function The source text in a function is displayed by selecting the function from a list 1 OVERVIEW 1 3 Input Conventions 1 3 1 Character Set This character set can be used in the integrated debugger Table 1 1 Character Set English Letters Uppercase Letters A B C D E F G H IT J K L M EN LO PIO RUS EU SE WE EN EZ Lowercase Letters a b c d e F 8 lri 3 K iio njo pja ry s t uj viw x y z Numer 0 1 2 3 4
71. efresh Close a The variable name display area displays the variable names The variables displayed with a at the beginning are pointer variables By double clicking a pointer variable the data value indicated by the 11 7 pointer is displayed in the variable value display setting area The display switches to a db wi 4 b The variable value display setting area displays the variable values When the variable is a pointer display variable the address value or data value is displayed The notation of the display may be changed by right clicking the value and selecting the desired notation from the pop up window 120 270 41 6037 2 30000 1 Ig c Command buttons Add Adds variable to the Watch window Delete Deletes selected variable from the Watch window 60 4 OPERATION 14 Add Watch Dialog Box The variable displayed in the Watch window is added and registered To open this dialog box select View Add Watch Figure 4 30 Add Watch Dialog Box Add Watch Name E Add Rade Proper Hex C Dec C Oct Bin String Size f Adaptive Byte C Wod C Double Word Number Cancel Restore Help a Name specifies the variable name to be added Name m To specify a variable use an underline character at the beginning of the name Use the sharp character as a separator between the file name and variable name Variables _fnc func
72. em generates a stack overflow break condition 5 2 4 Reset function This function resets the LCE or the target device and is specified in the Reset Debugger dialog box 5 2 5 Load function This function separately loads the debugging environment object files load module files and symbol files Two types of files are loaded a view file for screen reference and a data file that updates the data in the ID A view file records screen data Table 5 2 View Files PT EN Variable view file Variable window Stores the variable data File name XXXXXXXX VAR Disassemble view file Disassemble window Stores the disassemble data File name XXXXXXXX DIS Memory view file Memory window Stores the memory data File name XXXXXXXX MEM Register view file Register window Stores the register data File name XXXXXXXX REG Stack trace view file Stack trace window Stores the stack trace data File name XXXXXXXX STK SFR view file SFR window Stores the SFR data File name XXXXXXXX SFR Local variable view file Local variable window Stores the local variable data File name XXXXXXXX LOC Trace view file Trace view window Stores the trace data File name XXXXXXXX TVW 122 5 FUNCTIONAL OVERVIEW Table 5 3 Data Files PT miim Object file Load Module Selection dialog box Stores the object code Motorola Intel of the user File name XXXXXXXX HEX program Symbol table file Load Module Selection dialog box Stores the symbol
73. ff Communication Error Cannot communicate with the IE Check that the IE is functioning properly F F A 3000 Illegal address The address is illegal The source address specification range exceeds the mapping range in a memory search memory compare memory copy The destination address specification range exceeds the mapping range in a memory search memory compare memory copy The address specification range exceeds the mapping range in a memory search memory compare memory copy 3005 F Illegal parameter The parameter is illegal 3006 F User program is running The user program is running This command cannot be executed F 3009 F Parameter Size Alignment Error The parameter size is illegal Change the parameter to conform to the access size of the memory 300a F Memory Alignment Error The address is illegal Change the address to conform to the access size of the memory F Source Start Address Alignment Error The source address is illegal Change the source address to conform to the access size of the memory 300c F Destination Start Address Alignment A memory range with a different access size was Error specified in the destination address range 300d F End Address Alignment Error The end address is illegal Change the end address to conform to the access size of the memory 300e F Different Access Size in This Area A memory range with a different access size was specified in the address range 300f F Different Access Siz
74. gure 4 57 Event Setting Example Break x Mew fet Restore Cancel Help Break Name EJferkooon AdE vent eE Add Link te h Events Managed by the Event Manager Figure 4 48 Event Related Images 83 4 OPERATION E Dem Evert i LE Lnkoo00 Pet ae aange tana amp vaon EJE vososs Ej evan tr a Treoonmt 84 4 OPERATION 26 Event Link Dialog Box Event link conditions are registered in this dialog box and then automatically displayed in the Event Manager From the Main window select Event EventLink to open the Event Link dialog box Figure 4 59 Event Link Dialog Box Event Link ok Cancel Help T Link M ame Add Event Phase 1 Phase 2 p Phase 3 Fhase 4 pe pe Tiene Ej Shrink gt gt gt Shrink gt gt gt Event Manager m X nj Other a Functions Event link conditions are set with only the execution event conditions registered in the Event Manager An event link condition can have up to four phases but only one can be used at a time When the event link condition is used break and trace events are ignored Events are generated during program execution in the order specified However if the conditions specified in the last phase are satisfied before the conditions specified in phases 1 to 3 then the satisfied event conditions are initialized and the first event condition become
75. in use conditions Further Renesas Electronics products are not subject to radiation resistance design Please be sure to implement safety measures to guard them against the possibility of physical injury and injury or damage caused by fire in the event of the failure of a Renesas Electronics product such as safety design for hardware and software including but not limited to redundancy fire control and malfunction prevention appropriate treatment for aging degradation or any other appropriate measures Because the evaluation of microcomputer software alone is very difficult please evaluate the safety of the final products or system manufactured by you Please contact a Renesas Electronics sales office for details as to environmental matters such as the environmental compatibility of each Renesas Electronics product Please use Renesas Electronics products in compliance with all applicable laws and regulations that regulate the inclusion or use of controlled substances including without limitation the EU RoHS Directive Renesas Electronics assumes no liability for damages or losses occurring as a result of your noncompliance with applicable laws and regulations This document may not be reproduced or duplicated in any form in whole or in part without prior written consent of Renesas Electronics Please contact a Renesas Electronics sales office if you have any questions regarding the information contained in this document or Renesas Electronics
76. ire contents Clicking the vertical scroll arrow moves the display one line in the vertical direction Clicking the horizontal scroll arrow moves the display one line in the horizontal direction Dragging and dropping the scroll box moves the display to that relative position 13 3 WINDOW FUNCTIONS 3 1 6 Menu Bar File Edit View Option Hun Event Browse Jump Window Help The menu bar appears at the top of each window Click a menu name to display the corresponding commands Alternatively you can press the key and the underlined letter in each name to perform the same operation 3 1 7 Menu Command and Options Each menu contains a series of commands and or options Click a name to invoke the corresponding command The File Edit View Option Fun Event Brow same command can be invoked using shortcut keys r z v tolear CTRL letter where CTRL refers to the CONTROL w Status Bar EUR key and letter refers to the letter underlined in each command and or option An operation that can be invoked using shortcut keys has CTRL letter displayed to its right Menu operations are described by the following terminology 1 Item Indicates a command and or option that initiates when the item is selected 2 Item Indicates a command and or option that displays a dialog box requiring a response from the user 3 Item gt Indicates a command and or option that displays a submenu with
77. isplay E DA FD C3 19 24 DA FE EC ASCII Display Search E qa m MEME Close 4 ddr DOFO 22 o100 01 o110 0s 0120 43 lo13of04 01 40 D6 In150 22 1650 40 66 1 FE DA 30 D2 43 EU F7 FD 00 D FC aL ES DA T2 LO FU E4 20 01 7B ab az 29 40 DA Az Es FD ee F7 41 00 TA AA ZE 08 OA 73 FD Ze 1E FE E5 DA DA 40 LO oF DA 78 10 D 02 F7 DA 01 i3 FD 24 EQ DA r B3 4 30 E3 2B 70 AB 36 Du LO 4 FE E DA FL AD oe F7 12 E DA FD Ga 19 2d DA FE EC HC FA DA DE 23 DA l 00 DA HC FA DA DE 23 DA l 00 DA 1E 5b 2B FD 5b 02 20 ZR lE 5b 2B FD 5b Ue 20 oF E 22 EU CO JE E4 DA 20 DA E fe EQ CO 3E E4 DA 20 DA E 3 Ds DA 05 DA 26 29 D F 3t Ds DA 05 DA 26 23 D M pp Ox 01234567 58394BECOEF A EN A A al TD z C E dua O H A C 1E D EUN ea ee eet UN M MM oou E r s n 1 ra DMA E Ed 4 OPERATION b Memory display area displays the contents of memory which can be modified directly 0 1 2 3 4 5 46 2 8 9 B C E F c ASCII display area displays the contents of memory in ASCII format The contents can be changed directly from the window 012345670 94BCOEF E Searches backward E Searches forward Refreshes data from
78. ition for Breakpoint Set Delete B mark is displayed Red black Delete breakpoint B mark is not displayed or Click Set breakpoint something else is displayed 63 4 OPERATION ii Event display function The setting states of various events are displayed If an execution event or an access fetch event is set at the corresponding assemble line the mark corresponding to the event type is displayed Table 4 21 Event Mark Display Mak Description OOOO Event condition is set Last phase in the event link is set B Break event is set Multiple events are set b Current PC location Holding down the mouse at the current PC location displays the corresponding PC register value in a pop up window el c Address display The assemble starting address is displayed in this area Highlighting a line and right clicking displays a pop up window where you can perform the following functions i Come function This function executes the user program until reaching the selected address In the Main window select Execute Come ii Break event setting function A breakpoint can be set at a selected address using an execution event Select the address where you want to set the breakpoint and select Run gt Break Point from the Main window iii Jump function Assemble or Memory With the selected address as the jump pointer you can jump to the Source Text or Memory window The jump destination window is displayed
79. ive or static state An active window can only display one type of window but a static window can simultaneously display multiple windows of the same type The following procedures explain how to change a window from active to static state and vice versa Active State Static State Static State Active State 1 Click Window Static 1 Click Window Active 3 3 Errors and Warnings The LCE KO handles errors and warnings differently Errors are generated by the debugger 3 3 1 Errors and Warnings During GUI Operation An error in GUI operation is regarded as a warning If a warning occurs the warning tone sounds or the error warning dialog box appears 3 3 2 Errors and Warnings Output by the Debugger If an error occurs the Error Warning dialog box appears 15 4 OPERATION 4 1 Overview The LCE KO is composed of windows and dialog boxes A dialog box contains command buttons and options that enable you to invoke a command or specify settings Windows can be minimized dialog boxes cannot 4 1 1 Windows Windows are broadly classified by function into the following types e Execute type window e Display type window e Display setting type window e Management type window 1 Execute Type Window The Main window is an execute type window used to control the other windows and program execution It consists of a menu bar control buttons window display area and status display area Figure 4 1 Figure 4 1 Execute Type Window
80. le Selection dialog box and loads the event setting file the event register setting contents before loading are lost Disables the highlighted event or event based function Deletes the highlighted event or event based function from the Event Manager Deletes all the events and event based functions from the Event Manager Displays the Event Info window Closes the Event Manager Sorts events by name ht Sorts events by type E events B breaks and so forth Unsorts registered events in the Event Manager et Displays the detailed information of the events Overviews Hides the details of the events Cancels the settings Event Setting Select Event Event to open the Event Set dialog box Set the conditions for Event01 and Event02 Select Event EventManager to see the events registered in the Event Manager Figure 4 46 Event Manager z Event Manager Mew Open Disable Delete Delete Al Info Close Open the Trace Break or Event Link dialog box In the Event Manager drag your cursor from the E icon and drop it into the corresponding event box The cursor changes from x to as follows E dgio Drag the cursor from the event box and drop it into the dialog box Trace Break Timer or Event Link to copy the icon The cursor changes from amp to 8 4 OPERATION vii Enter the break event name and click the Set button to register the event Fi
81. le name Click the name of a file to select it and then click Open You can also double click the file name to select and open it The default extension is LNK 46 4 OPERATION File name Files of type Load Module Ink Imf d25 c Load and Reset allow you to set the load conditions where Symbol Specifies to read or not read symbol data Specifies to read or not read object data Reset ssi Resets the symbol and CPU after downloading Offset Address Specifies the offset address Reset he Seri jw CPU Offset Address 0 Load e Symbol W Object d Command buttons Cancel Cancels the changes and closes the dialog box 47 4 OPERATION 6 Upload Dialog Box The Upload dialog box allows you to specify the name and format of the memory contents to be uploaded The file format can be one of the following NW Intel extended hexadecimal format HEX NW Motorola hexadecimal S type format standard address HEX B Extended Tektronix hexadecimal format HEX To open this dialog box select File Upload Figure 4 24 Upload Dialog Box Upload Save In 3 nectools32 Bin LJ dev eee or E firmware Z Lib Pertd Save as type Intel Hex hex Cancel Help Save Address T 0 a Save in Click the folder name to display the project files in that folder The display formats are x Drive name xxx Directory name Look ir
82. log box However when the event link is used a normal execution event cannot be used 2 Event detection The steps for setting and detecting event conditions are illustrated in Figure 5 11 134 5 FUNCTIONAL OVERVIEW Figure 5 11 Event Detection Event cause Memory fetch address External trigger input Event detected condition setting Event link function dialog box Event set i i BRA1 BRA2 BRA3 BRA4 BRS1 Execution event of 7 points or BRS2 dialog box BRA1 BRA2 BRAS BRA4 BRST precion evem of 7 Pontsor LBRS2 Event match signal Event integration Evert manager Break Pass count Trace Delay count dialog box dialog box dialog box dialog box Break Trace condition setting condition setting Various control signals Emulation function and analyzer function Appropriate window BRAx Bus event detector BRSx Execution event detector PAS Pass counter 5 2 9 Register manipulation functions The register manipulation functions display and change the contents of the general purpose registers and SFR 1 General purpose register manipulation function Register window This function displays and changes the contents of the control registers PC SP PSW and general purpose registers RPO RP1 RP2 RP3 AX BC DE HL The PSW flag names Z AC CY are displayed or changed for PSW 2 Special register manipulation function SFR window This function displays and changes the content
83. nd Dialog Boxes 1 2 ma O CN 21 4 OPERATION Table 4 1 List of Windows and Dialog Boxes 2 2 Cn um View File Load dialog box Opens the window for referencing the current window Mask Option setting dialog box Pass Count setting dialog box Delay Count setting dialog box Displays the lash programmer graphical user interface Flash Programming dialog box Displays the flash programmer graphical user interface 22 4 OPERATION 4 3 Detailed Functional Descriptions This section provides an in depth description of each window or dialog box 4 3 1 Main Window The Main window automatically opens after completion of the initialization sequence and remains open until the program is exited The Main window has three modes source mode controls debugging at the source level instruction mode controls debugging at the instruction level and auto mode automatically detects the mode based on the active window default mode after initialization Figure 4 6 Main Window File Edit View Option Aun Event Browse Jump Window Help irme 1 EE RSS E ajalala The Main window is composed of a toolbar window display area and status display area 1 Toolbar The toolbar has buttons for popular commands to be executed in one action Each button has an easy to understand graphical image that makes it readily identifiable Commands can be invoked from the tool bar or the menu bar To hide th
84. nted hereby under any patents copyrights or other intellectual property rights of Renesas Electronics or others You should not alter modify copy or otherwise misappropriate any Renesas Electronics product whether in whole or in part Descriptions of circuits software and other related information in this document are provided only to illustrate the operation of semiconductor products and application examples You are fully responsible for the incorporation of these circuits software and information in the design of your equipment Renesas Electronics assumes no responsibility for any losses incurred by you or third parties arising from the use of these circuits software or information When exporting the products or technology described in this document you should comply with the applicable export control laws and regulations and follow the procedures required by such laws and regulations You should not use Renesas Electronics products or the technology described in this document for any purpose relating to military applications or use by the military including but not limited to the development of weapons of mass destruction Renesas Electronics products and technology may not be used for or incorporated into any products or systems whose manufacture use or sale is prohibited under any applicable domestic or foreign laws or regulations Renesas Electronics has used reasonable care in preparing the information included in this document bu
85. of keyboard used common generic key characters are adopted Table B 1 Special Function Key Function List PC 9801 9821 Series IBM PC AT Series Deletes the character before the cursor The cursor moves to the position of the deleted character The string after the cursor is moved forward COPY The entire display screen is written to the clipboard as a bit image Windows function 1 Closes the pull down menu 2 Closes the modal dialog GRPH Moves the cursor to the menu bar HELP En The last line is displayed The cursor simultaneously moves to the last line HOME CLR CLR Home The first line is displayed The cursor simultaneously moves to the first line ROLL UP UP PageUp The screen scrolls up one screen The cursor simultaneously moves to the top of the screen ROLL DOWN DOWN PageDown The screen scrolls down one screen The cursor simultaneously moves to the top of the screen Space Inserts one space The cursor moves to the next item The cursor moves up If the cursor is at the top of the screen the screen scrolls down by one line each time E a e SPACE 4 gt UJ 4 Q o E E The cursor moves down If the cursor is at the bottom of the screen the screen scrolls up by one line each time E The cursor moves left If the cursor is at the left of the screen the screen scrolls to one item to the right The cursor moves right If the cursor is at the
86. oject files display files 2 3 Current File 2 TERMINOLOGY The current file is the source file containing the instructions pointed to by the program counter PC If a line or a function in the current file is specified in a command the file name can be omitted File Specification Format a path name file name b file name n case a when the path is specified the file is read from or written to the directory given by the path In case b when no path is specified the file is read from or written to the current directory 2 4 Functions These functions form a C source program Function Display and Specification Format a file func b func file file name func function name n case a when the file is specified func is interpreted as a valid static function in the specified file n case b when no file is specified search for the corresponding function name first among the valid static functions and then among the global functions in the current file Function Specification Example test c calc data cale data static function in the test c file main main function that can be searched from the current file 2 5 Current Function The current function is the function containing the instruction indicated by the program counter PC If local variables are accessed in the current function the function name specification can be omitted 2 6 Structures The word structure refers to both th
87. ommand buttons Copies the memor Restore Restores the input data to its original values Cancel Closes the Memory Copy dialog box Help Opens the Help window 69 4 OPERATION 21 Memory Compare Dialog Box This dialog box allows you to compare memory contents This dialog box is in the active window state and can be opened from the Main window by selecting Edit Memory gt Compare Figure 4 37 Memory Compare Dialog Box Memory Compare Address Mem nonoon sa nonoon Meme nonoon Cancel Bestore Help a Comparison range specification area specifies the source and destination address of the memory contents Mem1 compare source starting address compare source ending address Mem2 Input the address of the compare destination Click OK to start If there are no differences the Confirmation dialog box appears Otherwise the differences are displayed in the Memory Comparison Result dialog box To end the compare click OK Figure 4 44 Confirmation Dialog Box IDK0S 32A x OOM Ma differences encountered b Command Buttons Restores the input data to its original values Closes the Memory Compare dialog box jee Opens the Help window 70 4 OPERATION 22 Memory Compare Result Dialog Box This dialog box displays the result of a memory comparison when the compare operation shows differences in the memory contents Figure 4 39 Memory Compare Dialog Box Memory Compa
88. on to the calling function RET The RETURN command sets an execution break at the return address of the function and executes in real time Figure 5 4 Figure 5 4 Example of RETURN Command Return BRK BRK BRK Return address o 4 J u Time Stopped Executing Return Return command issued BRK Break event Return address Return address of the function c GO amp GO Command The GO amp GO command executes the program from the specified address When a break event is generated the program stops execution and updates the screen of each window Execution begins again starting from the address where the program stopped The process repeats until the STOP command is issued 125 5 FUNCTIONAL OVERVIEW Each analyzer enables program operation executing the program according to each event and stopping upon command Figure 6 5 Figure 5 5 Example of GO amp GO Command Go amp Go BRK BRK BRK Stop V V V y Time Stopped Executing ZZ Updating the screen Go amp Go Go amp Go command issued BRK Break event Stop Stop command issued CPU d COME command To execute a COME command move the cursor to the location in the Source Text or Disassemble window where you want to stop program execution Issue the COME command to execute the program starting from the address in the PC register continuing until reaching the specified stop address A break event does not cause a
89. ontrol systems and life support systems Standard quality grade devices are recommended for computers office equipment communication equipment test and measurement equipment machine tools industrial robots audio and visual equipment and other consumer products For automotive and transportation equipment traffic control systems anti disaster and anti crime systems it is recommended that the customer contact the responsible NECEL salesperson to determine the reliability requirements for any such application and any cost adder NECEL does not recommend or approve use of any of its products in life support devices or systems or in any application where failure could result in injury or death If customers wish to use NECEL devices in applications not intended by NECEL customers must contact the responsible NECEL salespeople to determine NECEL s willingness to support a given application Contents 1 OVERVIEW D 1 UN ENS A II IN DERE RCRUM Rn T 1 12 HCI OM Ns pt ici caia EMEN PETER 1 1 2 1 Sergio D 1 1 2 2 Source Level Debugging Function ccooocccccocconocononconononononcnnonnnnnononononnnrnnonnncnnonannnnnnnanonnns 1 1 2 3 Instruction Level Debugging Function occooccccocccconcnconcncnnccnnnncnoncnnonocnnnncnnoncnronrnnonarnnnnrennrnnnnass 1 1 2 4 LOW COST IE MUON e TER 1 1 2 5 Watch Function Automatic Display Update Fun
90. ow 1s updated Figure 5 8 Example of STEP Command In the source mode Step 1 line ends CPU Analyzer Time In the instruction mode Step V cu NEM D o0 0 G6 w L Ef mas MNWN Time Dr Stopped EE Executing 1 instruction Gf End of step execution confirmed Step Step command issued line ends End of instruction execution of one line e NEXT command The NEXT command varies depending on whether a CALL statement is executed or a statement other than a CALL statement is executed Figure 5 9 The CALL statement becomes one of the following instructions depending on the debugging mode e n Source mode CALL becomes the line calling the function e n Instruction mode CALL becomes the CALL CALLF CALLT BRK and BRKCS instructions When executing the CALL statement the NEXT command sets the break in the line or instruction following the CALL statement and then executes it in real time When executing a statement other than the call statement the NEXT command is identical to a STEP command 127 5 FUNCTIONAL OVERVIEW Figure 5 9 Conceptual Diagram of NEXT Command nterrupt Enabled issued ARAS eet ENT Executing program I SOS ES E TOR C APTE e a A E SS l Subroutine function Step execution I Window update eAdded trace i Execute only one step Next real time exec
91. pecified event condition This type of break is valid for the GO GO amp GO and CPU RESET amp GO commands However after an event detected break in the GO amp GO command each window is redrawn and the program is executed again The event detected conditions must set the break events in the Event Set dialog box Event Manager and Break dialog box 2 Break caused by satisfying a condition during step execution A break caused by satisfying a condition during step execution stops program execution by satisfying the stop condition of each command STEP NEXT SLOWMOTION In order to repeat the execution stopping and condition confirmation for each instruction the processing time is delayed compared to real time execution 3 Forced break A forced break forcibly stops the execution of a user program and is valid for all of the commands executed in the program There are two types of forced breaks those resulting from a STOP command and those resulting from a RESET command The STOP command is used to temporarily stop a program the RESET command is used to execute a program starting from the beginning 4 Fail safe break The fail safe break stops execution when the user program is prohibited from using the memory and the registers There are three types of fail safe breaks a nonmapping break generated when a nonmapping region is accessed a write protected break generated when writing to memory that cannot be written such as ROM and
92. pping attribute and address and sets mapping The following types of mapping attributes can be selected Note however that the Emulation ROM Emulation RAM Target and I O Protect cannot be selected for devices without external space Memory Mapping Selections Setting Description Emulation ROM Selects an in circuit emulator alternate ROM Emulation RAM Selects an in circuit emulator alternate RAM Selects a target memory I O Protect Selects an I O protect area Select a memory in the stack area The I O Protect area can only be set inside the area set in the Target and the external SFR area The area set as I O Protect cannot be read unless it has been registered as an I O port in the SFR window or registered in the Watch window If it is necessary to read this area execute a forcible read in these windows Memory Mapping blemon Attribute Mapping Address d Stack Delete The Memory Address area specifies the address to be mapped Input the mapping start address and the mapping end address from the keyboard To add memory mapping After specifying the Memory Attribute and Mapping Address click the a o button 39 4 OPERATION Memory mapping corresponding to the Memory Attribute and to the Memory Mapping address range is added Stack area is set only in the internal RAM area cannot be set in the internal expansion RAM area To delete memory mapping Select the displayed area where you desire to
93. rce window Assemble window and so forth Tab Size Extension Tab size 72 T ab List g The Startup Routine box indicates the start and end labels of the startup routine Startup Routine Begin label estat End label _ cend h The DisAssemble box specifies the display format for the Assemble window 51 4 OPERATION Dis ssemble Show Offset Label J Mnemonic Register Name Function Name C Absolute Name i The Watch Default box specifies the display format for the Watch window Watch Default SIZE Byte Radix Hex Show Variable Type C Or DI j Command Buttons Accepts the source path setting and closes the dialog box ee Cancels the source path setting and closes the dialog box Restore Restores the previous settings x Opens the Help window Browses for the file 52 4 OPERATION 8 Open Dialog Box To display text in the Source Text window select File Open or press CTRL O The Source Text window must be open to perform this operation Figure 4 24 Open Dialog Box Open Look ir 3 nectanls32 EM E Files of type Source css asm Cancel Help a Look in Click the folder name to display the project files in that folder The display formats are x Drive name xxx Directory name Look ir Sy nectaols32 d b File name Double click the name of the source file to select and open it In the Files of type
94. re Memi Meni Addr Memory Addr a Comparison result display area displays the memory comparison result Source Destination Addr Memory Addr Source Addr or Mem1 Addr displays the compare source address where there was a comparison error Memory displays the data where there was a discrepancy Comparison source data is displayed on the left and comparison destination data on the right Destination Addr or Mem2 Addr displays the destination address where there was a comparison error b Command buttons Closes the Memory Compare dialog box and highlights the searched address in the Memory window m Opens the Help window 71 4 OPERATION 23 Stack Trace Window The stack contents of the current user program are displayed To open the window select Browse Stack Trace from the Main window or click the 3 command button Figure 4 40 Stack Trace Window Stack Mie x Refresh Close 0001 Demo lnk main c Xl interij225 0002 Demo lnk main c maint 1456 rial a Stack frame number display area displays the number assigned to the stack contents This number starts at 1 and becomes larger as the nesting of the stack becomes shallower In other words a function with a stack number one less than the stack number for another function becomes the calling number of that function This area also has a jump feature that allows you to jump to the starting address of the function poin
95. ressions and Operators a Expressions An expression uses operators to combine constants register names SFR names and symbols If an SFR name label name function name or variable name is described as a symbol then the address is operated on as a symbol value Elements other than operators forming an expression are called terms constant label and are the first term second term and so on from the left in the description b Operators The types of operators available are listed in Tables 1 8 1 9 and 1 10 Table 1 8 Arithmetic Operators Fe weaning O osn I seme rama me cr eee e tratana eta Table 1 9 Logical Operators E Cr Cn Fon isa rote eto sur of saot btn ir ate ce Table 1 10 Other Operators Left parenthesis An operation enclosed by parentheses has priority over those outside the parentheses Right parenthesis Remarks 1 The left parenthesis and the right parenthesis are always used in pairs 2 A character string can be described in the term in a comparison operation 3 Operations are performed according to the following conventions The order of the operations follows the precedence of the operators f operators have the same precedence the operation is from left to right An operation enclosed by parentheses has precedence over those outside of parentheses Each term in an operation is treated as unsigned 32 bit data 1 OVERVIEW
96. rface board or no power being applied to the IE After rechecking restart the debugger 0104 A Receive timed out No response from the IE The error may be in the IE After checking the IE restart the debugger 0105 A Invalid D4xxx 78K The device file D4xxx 78K cannot be properly read The device file is not in the specified directory or the device file is corrupted Reinstall the device file and start again 01a0 Monitor timed out Data communication with the IE is not possible The clock is not supplied to the target CPU or the power is not applied After checking restart the debugger Unconnected emulation board The emulation board is not properly connected Correctly connect the emulation board to the IE 01a4 Contradictory board set The board configuration in the IE has conflicts Correct the board configuration and restart 01a5 A Unconnected I O emulation board Emulation board 1 is not connected correctly Correctly connect emulation board 1 to the IE 138 APPENDIX A ERROR MESSAGES Table A 3 Error Message List 2 9 Fererenter Type mese CN 01a8 A Invalid EXPC INI The initialization file EXPC INI cannot be properly read The initialization file does not exist or may be corrupted After reinstalling the initialization file restart 01ad No match device file of version ID number of the emulation board does not match the number in the device definition file Check that the specified device ae Men file i
97. rget device and the location data are unchanged from when the debugger started Table 4 14 Load Contents Configuration dialog box All of the items Main window Display position toolbar status bar and button display data execution mode data trace on off data 43 4 OPERATION 4 Save As Dialog Box The Save As dialog allows you to save the debugging environment in other words the active window To open this dialog box select File Project Save As To save a previously loaded or saved project file with the same file name select File Project Save In this case the Save As dialog box does not open and the save is made to the existing file name Figure 4 20 Save As Dialog Box Save As Save In 3 nectools32 a Eje Bin eee d gv Dac Y firmware Lib Pei fd File name Save Save as type Project pr Cancel Help ddi a Save in Click the folder name to display the project files in that folder The display formats are x Drive name xxx Directory name Look ir 3 nectools32 b File name Click the name of a PRJ file and then click Save You can also double click the file name to save it File name Files of type Project pil a c Command Buttons Saves the environment in the selected file name Cancel Cancels the selection 44 4 OPERATION d Saved contents The following items are saved in the p
98. rogram RD data read by a user program WD data write by a user program Disassemble l Disassemble result b Trace data search condition setting Not supported The search conditions for trace data can be selected and specified by any or all of the items in Table 5 8 in the trace window dialog box Table 5 8 Trace Search Items Search address O to OFFFFH OXXXXH Search data O to OFFH OXXH Kind of frame Search data type Same as on left All frames All Frame all of the frames Step step execution frames Next frames other than step execution frames 132 5 FUNCTIONAL OVERVIEW 5 2 8 Event setting and detection function The event setting and detection functions set the conditions for stopping user program execution by the emulation CPU and for starting and stopping the trace operation by the analyzer There are four types of event condition setting and detection functions Bus event condition setting function Execution event condition setting function Event condition link setting function ss 9 9 Integrated function of event detection function break event setting and trace event setting 1 Event condition setting function This function sets the Event Condition register to stop user program execution and to start or stop a trace by the analyzer The event detected condition specified in Event Set dialog box or Event Link dialog box is not valid unless it is set in the Event Mode register by the Event Manager Bre
99. roject file Table 4 15 Contents for Saving Configuration dialog box All of the items target device clock setting pin mask setting mapping data Main window Display position tool bar status bar and button display data execution mode data trace on off data Load Module Slection dialog box Download file data Extended Option setting dialog box Setting data Source Path Specification dialog box Source path data 45 4 OPERATION 5 Download Dialog Box The Download dialog box allows you to download a file in one of the following formats to the LCE or target e Object file in the load module format LNK e Intel extended hexadecimal format HEX e Motorola hexadecimal S type format standard address HEX e Extended Tektronix amp hexadecimal format HEX If a file other than an object file in load module format is loaded source debugging is not possible To open the Download dialog box select File gt Download Figure 4 21 Download Dialog Box Download Look in E nectaals3z d JE Bin C Setup dev Dac J firmware A Lib LL Pertd Filename f Files of type Load Module Ink Irnf d25 m Cancel Help Load Reset J Symbol W Object Thee CPU Offset Address 0 a Look in Click the folder name to display the project files in that folder The display formats are x Drive name xxx Directory name Look ir 3 nectools32 b Fi
100. s correct oa Bushodemr hold error Bus hold The user Bus hold The user program cannot execute cannot execute 0300 User program is running The user program is running This command cannot be executed 0301 User program is stopped The user program had a break This command cannot be executed 0302 User program is tracing The tracer is running This command cannot be executed EM be set is specified DoF 0316 This event number cannot be used An event that cannot be used is used Specify an event that can be used Result Result of timer measurement is over timer measurement is over Pass count conditions overflow The event condition setting the pass count cannot be simultaneously used Specified address range is over Tried to set more than the maximum number of settings for the address range specification condition Event conditions overflow Tried to set more than the number of event conditions that can be simultaneously used A maximum of four 0402 0403 0404 bus event conditions and a maximum of four execution event conditions can be used simultaneously 139 APPENDIX A ERROR MESSAGES Table A 3 Error Message List 3 9 Fermer we messas oempm 0407 F Initialized data overflow The amount of initialized data exceeds the initialization range 0408 F Search data number over The search data becomes string data that exceeds 16 bytes The maximum size of search data is 16 bytes 0409
101. s defined in the source by the user File name XXXXXXXX SYM for the user program Load module file Load Module Selection dialog box Stores the object code and symbols of the user File name XXXXXXXX LMF or program and the source data XXXXXXXX LNK Project file Project File Load dialog box Stores the debugging environment and sets the data in File name XXXXXXXX PRJ the Configuration dialog box Extended Option Setting dialog box Load Module Selection dialog box Source Text window Source Path Specification dialog box Disassemble window Memory window Stack Trace window SFR window Local Variable window Trace View window Event manager Event Link dialog box Break dialog box Trace dialog box Timer dialog box Register window e Variable window Event setting file Event Manager Stores the event setting data File name XXXXXXXX EVN 123 5 FUNCTIONAL OVERVIEW 5 2 5 Emulation function The emulation function starts user program execution by the target device and the analyzer Table 5 4 Real Time Execution ma e OOOO GO d Executes the program starting from a specified address and continuing until a break event is encountered each analyzer executes the program entering the stop state based on each event RETURN RETURN Executes the program in real time until Executes the program in real time until returning to the CALL function no action without a GALL function to the CALL function no action wi
102. s of the special functionregister SFR which can be manipulated by bits 135 5 FUNCTIONAL OVERVIEW 5 2 10 Memory manipulation functions These functions available in the Assemble window and the Memory window use mnemonic codes hexadecimal codes and ASCII characters to change the memory contents 5 2 11 Save function The save function stores the object codes in the low cost emulator and the debugging environment in a file on a disk drive connected to the host machine 5 2 12 Time measurement function This function measures the entire run time until a break after execution begins The time measurement measures the accumulated run time Table 5 11 Timer Specifications en emet Accumulated run time 203 45 ns resolution Maximum 14 minutes 33 seconds 5 2 13 Source debugging In debugging mode object programs and source programs can be debugged Debugging of the source program is called source debugging Compared to debugging of object programs source level debugging has several advantages Debugging is possible while examining the C language or structured assembler source Breakpoints can be set in the source and step execution can be performed Generally if a breakpoint is set the real address of the breakpoint is specified However in source level debugging the position where a breakpoint is set is specified in the source program using the cursor In step execution the line currently being executed in the so
103. s the detection target b Event Link The Event Link box allows you to select and set an event link Press the down scroll arrow to display the list of event link names maximum eight characters NEW is the default Event Link EB c Link Conditions The settings are made in the order of the event condition and the event detection The order is set to Phase 1 gt Phase 2 gt Phase 3 gt Phase 4 The setting does not have to include Phase 4 If the setting does not include Phase 4 when an event condition set in the final phase is selected the event is generated Phase 1 Phase 2 Phase 3 Phase 4 85 86 4 OPERATION 4 OPERATION d Setting Event Link Conditions l Select Event gt EventSet to open the Event Set dialog box ii Create the event conditions for E INIT E SUBO E SUB1 E SUB2 and E SUBA iii Select Event EventManager to open the Event Manager IV Select Event gt EventLinkSet to open the Event Set dialog box V In the Event Manager drag your cursor from the E icon and drop it into the corresponding event box The cursor changes from to as follows E dile vi Drag the cursor from the event box and drop it into the Event Link dialog box The cursor changes from amp to Q vii Repeat steps vi and vii to register the settings listed in Table 4 27 Table 4 27 Settings in Event Link Dialog Box Setting Position Set Event viii Enter the name of the event link E LINK
104. s the dialog box Restores the default value Closes the Pass Count dialog box H amp Opens the Help window 116 4 OPERATION 36 Delay Count Dialog Box The Delay Count dialog box is where you set delay count conditions From the Main window select Event gt Delay Count Figure 4 89 Delay Count Dialog Box Delay Count Delay Count Restore Cancel Help After the stop condition is satisfied the number of traces specified in the delay count condition is performed a The Delay Count box allows you to specify FIRST MIDDLE or LAST Delay Count Table 4 40 Delay Count Condition Condition Meaning OOOO FIRST Stops tracing after approx 8 000 frames MIDDLE Stops tracing after approx 4 000 frames LAST Stops tracer immediately When Run Cond Trace ON is set conditions are effective for delay counts and all trace qualify traces Command buttons Accepts the change and closes the dialog box Restores the default value Closes the Delay Count dialog box ae Opens the Help window 37 Timer Dialog Box The timer function measures run time from the beginning of execution until a break The Timer dialog box is invoked by selecting Event Timer from the Main window The Timer dialog box only supports the Run Break Run until Break function Event based timing is not possible Figure 4 69 Timer Dialog Box 117 4 OPERATION stat Events end Ewert mualice Cop
105. sete cu rp dase a ON 5 2 1 Clock Selection alice MP isla 122 5 2 2 Mai DING THING HOM lt a a tds 122 5 2 9 Stack atea H 122 5 2 4 Reset TUM CHOM PIT T 122 52 5 Ln 122 5 2 5 Emulacion UNCION ao A 124 5 2 6 Break FUNCION eoe EM AR 128 5 Zu Dreier o 130 5 2 8 Event setting and detection fUNC ION cccooccccconnncoconnnononcnonononnnnonononnncononnrnnonannnconaranonnns 133 5 2 9 Register manipulation functions ccccoccccoconnncconcnnoconnconononononconononnnonnrnnononcnnorannnononcnononens 135 5 2 10 Memory manipulation fUNC ONS occcccooccncoccnncnnnnnnononnnnnnnnnnnonennnnnncnnonnrrnnnnnrnnnnnrnnonnnnnnnnos 136 5 2 11 Save NCO ache scl esta a a a a a a 136 5 2 12 Bini maemgl 136 CONTENTS 5 2 13 Appendix A Appendix B Appendix C CONTENTS SOURCE Ce DU OG ING pra mE 136 Eiror IMCS SAQCS ooo DR HM DD NOV FUNCIONS an do LAE MM ELM TL MEE INDEX 1 OVERVIEW 1 4 Debugger The LCE KO integrated debugger known as the D or the debugger operates using a dedicated parallel board connected to an IBM PC compatible host running Microsoft Windows 1 2 Functions This section describes the functions and features of the ID 1 2 1 Operands Debugging takes place in the Windows environment using a mouse Buttons and menus are arrang
106. specifications can specify the trace conditions If these specifications are not made All trace is performed In other words trace data is recorded for each instruction in the user program A complete trace or the type of conditional trace is specified There are two types of conditional trace qualify trace and section trace The trace mode specified becomes valid 131 5 FUNCTIONAL OVERVIEW a Qualify trace setting This specifies a trace only when the specified address was executed or the specified address was accessed The specified conditions are created in the Event Setting window b Sectional trace setting Tracing is controlled by the specified start and end events 4 Trace data display format and search condition settings The data can be displayed or hidden in the trace view window and the display conditions can be set a Trace data display specification The display screen can be effectively used by specifying the display of the trace data Trace data display can specify displaying or hiding the following data by clicking View Trace View Table 5 7 Trace Data Display Menu Trace View Window Frame number F Frame Temporal order written to the trace memory by the frame number in the trace memory range from 0000 to 8192 Instruction fetch address Instruction fetch address A Fetch address Instruction fetch data D Fetch data Memory access status S Access status RW data read or write by a user p
107. ss Enter to execute the change which will then appear in black g Command buttons Refreshes the displayed window Close Closes the SFR Window 107 4 OPERATION 32 Open Dialog Box The view file corresponding to the current window when this dialog box was opened is read and the reference window is opened The Open dialog box can be opened in two ways When the window to be referenced is a Local Variable Disassemble Memory Stack Trace SFR or Trace View window a The window you want to reference becomes the current window b Select File Open Figure 4 63 Open Dialog Box Open Look in Cx smp 8k0s Files of type Memory mem Cancel Memor mem Help Watch weh Register rgwi SFA str Local Variable loc Stack Trace stk Trace bw Coverage cov Event evr a The File name box is where you specify the file to be loaded Click the file name to select it Double click the file name or click OPEN to open the file File name EN CORN NNNM 7 NN 108 4 OPERATION b The Look in box specifies the folder containing the file to be loaded Click the down arrow to view the list Double click a folder name to display its contents Look in E smprekOs c Command buttons T5 Opens the file selected Cancel Closes the dialog box ee Opens the Help window 109 4 OPERATION 33 Save As Dialog Box Th
108. t Renesas Electronics does not warrant that such information is error free Renesas Electronics assumes no liability whatsoever for any damages incurred by you resulting from errors in or omissions from the information included herein Renesas Electronics products are classified according to the following three quality grades Standard High Quality and Specific The recommended applications for each Renesas Electronics product depends on the product s quality grade as indicated below You must check the quality grade of each Renesas Electronics product before using it in a particular application You may not use any Renesas Electronics product for any application categorized as Specific without the prior written consent of Renesas Electronics Further you may not use any Renesas Electronics product for any application for which it is not intended without the prior written consent of Renesas Electronics Renesas Electronics shall not be in any way liable for any damages or losses incurred by you or third parties arising from the use of any Renesas Electronics product for an application categorized as Specific or for which the product is not intended where you have failed to obtain the prior written consent of Renesas Electronics The quality grade of each Renesas Electronics product is Standard unless otherwise expressly specified in a Renesas Electronics data sheets or data books etc Standard Computers office eq
109. ted to by the selected stack frame number in the Source Text Assemble or Memory windows To execute select the stack frame number right click and select either Source Assemble or Memory b Stack contents display area displays the stack contents in the format file name function name parameters The sharp character is used as a separator between a file name and a function name sample c maint i sub ctpaintlunsigned char a c Command buttons Refreshes the data in the window Closes the Stack Trace window 72 4 OPERATION Caution When functions such as noauto or norec do not move the frame pointer when the stack or qf options in the compiler are included for optimization the stack trace display function is not properly displayed 73 4 OPERATION 24 Event Set Dialog Box This dialog box allows you to register and display event conditions in the Event Manager To open the dialog box select Event Event in the Main window Figure 4 41 Event Dialog Box E vent Mew Set Restore Cancel Help Event Name Event Link Event Status Address Mask Break Trace Build Snap Shot DMM 1 Hi Data Mask EDGE Timer Range aande Gubrange Manager Shrink gt gt gt Event Manager Hemose Info di A maximum of 64 KB fetch events and 256 data values can be registered as event conditions where the data value can
110. the Main window select Event gt Trace or click s amp or from the Event Manager select New gt Trace To operate the tracer in accordance with the trace event conditions always select Run Cond Trace ON from the Main window Figure 4 55 Trace Dialog Box Add Event CL Link Section atan section End Qualify aren Rema Shrink gt gt gt Shrink gt gt gt Event Manager cca Info nj Other a The Trace Name box allows you to select a break event name using a maximum of eight characters NEW is the default Press the down arrow to select from the list m Trace Mame Tre There are three trace modes All Trace Qualify Trace and Sectional Trace Table 4 29 Trace Modes Mode TAI All Trace Traces all of the causes Qualify Trace Traces only the locations with matched event conditions Sectional Trace Traces between specified event conditions 94 4 OPERATION When setting the trace mode setting the menu bar in the main window and setting in this area are required The trace modes and each setting are shown below Table 4 30 Trace Mode Settings Mod Execute Setting in Main Window Trace Mode Setting Delay Conditions one Qualify Trace Cond Trace ON Qualify Yes Sectional Trace Cond Trace ON Start and End Sections Yes b The Qualify box sets event conditions for a qualify trace To set an event condition drag and drop the event icons in the
111. the Watch window Symbol Displays the absolute address of a specific symbol Opens the Event Manager and displays event data Simultaneously displays C language and assembly language ode in the Source Text window 28 4 OPERATION 4 Option Menu Figure 4 10 Option Commands File Edit View Option Hun Event Browse Jump Window Help irme m wv Tool Bar wv Status Bar v Button Source Made Instruction Made e Suto Mode Configuration Mask Option Extended Option Debugger Option Add 1 0 Port Coverage overage Wd w Tert ww Tracer WH tuer 1 asmit3 10080 A Table 4 6 Option Command Descriptions Description Button Selects to display or hide the buttons in each window Source Mode Step executes at the source level Instruction Mode Step executes at the instruction level Auto Mode Automatically selects step execution mode Configuration Opens the Configuration dialog box where you can set the environment Mask Option Opens the Mask Option Setting dialog box Extended Option Opens the Option Setting dialog box where you can set the extended functions Debugger Option Opens the Debugger Option window where you can set parameters for the debugger Add I O Port Defines additional I O ports 29 4 OPERATION 5 Run Menu Figure 4 11 Run Commands File Edit View Option Balla Event Browse Jump Window Help SER pe uw e Restart F4 Stop F2
112. thout a CALL function GO amp GO After a break event repeats program execution in real time and ee ea saaan window COME Executes the program in real time until reaching the target address or source line does not generate break events DUUM A execution CPURESET amp GO RESET amp GO Executes the Executes the program in real time after the emulation CPU is reset in real time after the emulation CPU is reset a GO Command Real time execution by the GO command executes the user program from the specified address and stops execution of the user program when a break event is generated Figure 5 2 Each analyzer enables program operation and executes or enters the stop state based on each event Figure 5 2 GO Command Example ceu poU Tracer __ quy 7 l l Time AJ Stopped E Executing Go Go command issued BRK Break event 124 5 FUNCTIONAL OVERVIEW b RETURN Command Real time execution by the RETURN command executes in real time until returning to the CALL function Figure 5 3 Figure 5 3 Conceptual Diagram of RETURN Command Start of program Program execution by a command other than the Return command A Return command issued CALL CALL Ret d S eturn comman 1 a stops executing amm Program execution by the Return command q RET Move between functions CALL Call instruction CALL CALLF CALLT BRK BRKCS J Ni iq RET Return instructi
113. tion ocococcccoccncoccncccnnconcnccncnnnonnnnonnnonnnononnncnnnnnnns 15 3 3 2 Errors and Warnings Output by the Debugger oocccccocccnccccccnccnonnononononnncnnononnnnnnnnccnnnnnncnnnoos 15 4 1 BT RSV ENTRE RERUM MEETING 4 1 1 W EMO EO Er e m Dn E UR PNIS 17 4 1 2 Bs O A O e Eus 20 d2 2 Uei e n ESSI NEED T 4 9 Detailed Functional DescripllO lis 5 oo bone betta ox teneret oos a 4 3 1 VL TIR NV In oie MR NS cT TIT 23 4 3 2 MENUS c 26 4 3 3 Dialog BOXE O e O A 37 D Contigurauon Dialog BO a e e eta id e nl eS arae 37 2 Extended Option Dialog BOX comica boobs 40 5 Open Dialog BOX esaa a A cas 42 A Save AS Dialog BOX ariaren at ci ira dr Less tuis escasa acus 44 5 Download Dialog BOX uie bettie ete c8 iode a Fett aue ci Decret haie laana hu ti tests rta ia tee EAS 46 6 Upload Dialog BOX acs cc 48 7 Debugger Option Dialog BOX adi 50 GO Open Dialog BOX rere a e bl o ee tatu aded clus de e a gratus 53 9 SOULCS TEX VVINDOW 2 oxide TRETEN 54 10 Source Search Dialog BOX cccccccsseccssseeeceescecceueeecseuceeceecesseeeecsuucecsueeessegeeessaeseessuseessaseessagss 57 11 Symbol to Address Dialog BOX cita dali 58 12 ee SurimNBI esis m Hm 59 CTS AEG EV gero ET 60 14 Add Watin Dialog BOX aies C E 61 15 Local Variables in Watch Window eesssesssssesseeeee nennen nennen nnne nns 62 Ty
114. tion variable name for example _int1 file fnc file file name for example main x _int1 Sfrname SFR name for example PCC b Radix allows you to select the notation of the value of the specified variable Rad Proper Hex C Dec C Oct Bin C String Automatically selects the proper format String format ASC c Size and Number allow you to specify the size and number of the added variable Selecting C language in the Type area cannot be specified SIZE Adaptive Bute Wod Double word Number l Size specifies the variable size adaptive automatically selects the format byte word or double word ii Number specifies the number of variables 61 4 OPERATION d Command buttons The variable is added and registered to the Variable window Gown Closes the dialog box 15 Local Variables in Watch Window This window allows you to display and change the local variables in the current function The boundary line between the local variable name display area and the local variable value display setting area can be moved by dragging and dropping the cursor once it changes from oe to gt To open the window select Browse Local Variable from the Main window Figure 4 31 Local Variables in Watch Window Bl Watch PRISI Add Delete Up Down Refresh Close pl i Commandz Lommands U Lommands 1 Lommands 2 Commnand 3 KeyHunber af
115. ttons and debugging can also be performed using shortcut keys from the keyboard These objects are used to manipulate the ID78KO LCE 3 1 1 Mouse Operation of the integrated debugger uses the left mouse button unless otherwise specified There are three basic mouse operations Press the mouse button once and release Double click Consecutively press the mouse button twice and release Drag and drop While continuing to press the button move to drag and then release the button to drop the element in place 3 1 2 Push Button and Function Button A push button is a thick rectangular button used to display a bit map or character string Click the rectangular shape to start the corresponding process p A function button starts a debugging function 3 1 3 Check Box A check box is used to turn an option on or off Click the box to clear E NMI C RESET C or select x the option Multiple selections are possible 3 1 4 Option Button An option button indicates choices in a dialog box Click the button to amp Internal clear C or select amp the option If two or more option buttons are CY Patemal grouped together only one can be selected 3 1 5 Scroll Bar The vertical and horizontal scroll bars are used to move through the s contents of the display vertically and horizontally respectively The j scroll box shows the current location of the display in proportion to the E Scroll box Scroll arrow ent
116. uipment communications equipment test and measurement equipment audio and visual equipment home electronic appliances machine tools personal electronic equipment and industrial robots High Quality Transportation equipment automobiles trains ships etc traffic control systems anti disaster systems anti crime systems safety equipment and medical equipment not specifically designed for life support Specific Aircraft aerospace equipment submersible repeaters nuclear reactor control systems medical equipment or systems for life support e g artificial life support devices or systems surgical implantations or healthcare intervention e g excision etc and any other applications or purposes that pose a direct threat to human life You should use the Renesas Electronics products described in this document within the range specified by Renesas Electronics especially with respect to the maximum rating operating supply voltage range movement power voltage range heat radiation characteristics installation and other product characteristics Renesas Electronics shall have no liability for malfunctions or damages arising out of the use of Renesas Electronics products beyond such specified ranges Although Renesas Electronics endeavors to improve the quality and reliability of its products semiconductor products have specific characteristics such as the occurrence of failure at a certain rate and malfunctions under certa
117. urce Assemble or Memory to jump to the respective window ii Delete function This function deletes the event registration and setting of the selected icon If event condition E and event link condition L are deleted they cannot be used in events B and T To use them in other events first delete the events being used Select the icon Delete iii Event display Figure 4 44 Event Display 5 Run 8 0 0 H4 DU d E 0FF FP 5 Run 8 0 5 M d E FF Py S Program AAW J0xteD0 Ostert R4 0 0 E UFF F 80 4 OPERATION The details for each event are displayed in Detailed View mode by right clicking and selecting detail from the pop up window The contents are displayed in order of status condition address condition address mask condition and data condition using the various keys as separators Table 4 26 Key Data Correspondence For Event Conditions Status condition Address condition Address mask condition Data condition For Event Link Conditions P1 P4 nth event link condition For Break and Trace Conditions Break condition Qualify trace condition Figure 4 45 Event Manager Event Info Window Mew Oper Disable Delete Delete Al Info Close Event Info Fa Sort by Kind 4 F Unzaort Detail Overa Cancel 81 82 vi 4 OPERATION Command buttons Opens the Event Setting window to create a new event Opens the Setting Fi
118. urce program is indicated by the gt mark Therefore program operation can be understood more accurately 1 If assembling or compiling using NEC software the options must be specified to include the source debugging data in the object Table 5 12 Source Debugging and Option Specification Type of Source for Source Debugging Required Action Structured assembler program Specify the GS option in structured assembler Assembler program Specify the GA option when assembling 2 Specify the path data for storing source program in the source path specification dialog box 3 In source level debugging always load the load module file created by the linker Even if the object file created by the object converter is loaded source debugging will not be possible 136 Appendix A Error Messages This appendix explains error and warning messages As shown in Figure A 1 an error message has the following format Error number Message Figure A 1 Error Message Type O 010364 Send timed out Error number Message Table A 1 Type Codes Fatal error Abort error processing stops and debugging terminates Syntax error Fatal error processing stops and open windows and dialog boxes close Warning Warning processing stops and open windows and dialog boxes remain open Table A 2 Message Codes Inputs 3 digits in the device name 137 APPENDIX A ERROR MESSAGES Table A 3 Error
119. ure 4 42 Event Manager Normal Display Mew Oper Disable Delete Delete Al Info Close Detailed display Mew Oper Disable Delete Delete All Info Close ST IB amp B fd78 M JOx0000 D0 Sv 2 8 AJO0sfd78 MJox0000 DTI Event display area displays icons of registered events Figure 4 43 Event Display Area Normal View Detailed View J Event Ef Event Ef vente EZ BEA Cha An icon is a mark indicating the event type and event name E Evento Mark Event name Table 4 24 Mark List Tr RN 79 4 OPERATION Indicates an event condition E Indicates an event link condition B Indicates a break event Indicates a trace event The color of the letter displayed in the mark indicates the setting state and type of the event Table 4 25 Letter Color in Mark List Indicates that events and event link conditions are registered Indicates that an event is set Satisfying a condition generates various events Indicates that an event is registered Even if the condition is satisfied an event is not generated This area also has two functions i Jump function This function jumps to the Source Text window Assemble window or Memory window when the address condition of the selected icon is used as the jump pointer The Jump Destination window is displayed from the jump pointer To execute select the icon Right click on the icon and select either So
120. ution No window update Real time execution Next command l l l l l l l No trace added l l l l f SLOWMOTION command The SLOWMOTION command executes the program beginning from the specified address in steps of one line units in Source mode or one instruction units in Instruction mode The window is updated after each step Execution in this manner continues until the STOP command is issued 5 2 6 Break Function The break function stops execution of the user program by the emulation CPU and stops the analyzer Table 5 6 The four types of break functions are broadly divided into the following Event detected break Break caused by satisfying a condition during step execution Forced break gt 9 9 Fail safe break 128 5 FUNCTIONAL OVERVIEW Table 5 6 Break and Emulation Functions Break Caused by Event Detected Break Satisfying a Forced Break Fail Safe Break Condition During Step Execution Real time execution by the Go command Real time execution by the Go amp Go command Real time execution by the Come command Real time execution by the CPU Reset amp Go command Non real time execution by the Step command Non real time execution by the Return command Non real time execution by the Next command Non real time execution by the Slowmotion command 1 Event detected break An event detected break stops user program execution after detecting a s
121. ve Debugger Reset Save As Exit TH gasproy Mstkk0kest T usr 1 rot 2 H sga prajsMsiskrest T stk 1 rot 3H Ssga pra sM sisk test T mmap 1 Imf 4 H Sga prapM sisktest Tepa 1 Imf lust 1 asmit37 bee 0080 A Table 4 3 File Command Descriptions If the Source Text window is active opens the Source File Selection dialog box where you can select a source file and click OK to open and view it Otherwise opens the View File Save dialog box where you can click OK to view the current file Closes the current active window Opens the File Save dialog box and allows you to save the current window in a new file Opens the Load Module Selection dialog box and allows you to select and download a LMF Upload Uploads the current load module file to a hex file Flash Program Launches the flash programmer graphical user interface Project Open Opens the Project File Load dialog box where you can select and open a project file Save Writes the current version to the project file opened previously Opens the Project File Save dialog box where you can click OK to save the current version Debugger Reset Opens the Reset Debugger dialog box where you can click OK to reset the debugger Opens the Exit Debugger dialog box where you can click OK to exit the debugger 26 4 OPERATION 2 Edit Menu Figure 4 8 Edit Commands ig IDKOSAL File View Option Run Event Browse Jump Window Help T Eut Ctrl Team
122. y ime Wut brea oN UE lr mim Eee meec d dem TEE 38 Flash Programming Dialog Box The KO LCE emulator system incorporates a fully functional flash programmer within the motherboard unit The programmer s graphical user interface GUI may be invoked from the Main window by selecting File gt Flash Program or clicking Figure 4 70 Flash Programming Dialog Box Flash Programming a The Filename box allows you to specify the name of a BIN or HEX file to be programmed 118 4 OPERATION Filename Browse b The Device box displays the device detected after you click _ SSigthk Device c The Status box displays the status of each programming operation S Latus Table 4 41 Programming Status SSig Chk SSig checking Device name displayed in Device box Unrecognized Device d Programming functions 5 Sig Chk Performs silicon signature to check for the device Blank Chk Checks whether the device is blank Erases the device completely Programs the device with the name specified in the Filename box Verifies the content of the device TE Performs Silicon Signature Check Blank Check Erase if necessary Write and Verify in sequence e Command buttons E Closes the dialog box rey Opens the Help window 119 5 FUNCTIONAL OVERVIEW This chapter describes the ID s functional operation 5 1 Operating Modes The ID has three modes that control system operation
123. y default the string highlighted in the active window is displayed but when needed changes can be typed from the keyboard Find what 1 b Match Case allows you to specify whether to distinguish between upper and lower case letters The default is to match case v Match Case c Direction specifies whether to conduct a forward search Up or a backward search Down Direction Up amp Down d Command buttons Searches for the specified search data in accordance with the conditions Sets the data search DEI Exits the Search dialog box Hep Opens the Help window 57 4 OPERATION 11 Symbol to Address Dialog Box To display the address of a specified variable select View Symbol from the Main window Figure 4 27 Symbol to Address Dialog Box Symbol To Address Symbol Radi Hex Dec Oct Bin Cancel Restore Help a Variable specification area Symbol The variable name and line number for the address conversion are specified as shown in the following table After the data is input press the RETURN key from the keyboard to display the address value in the variable address display area Function and variable symbol name gt SFR Sfrname SFT name To specify a function or variable name use an underline character at the beginning and the sharp character as the separator between a file name and a function or variable name b Variable

Download Pdf Manuals

image

Related Search

Related Contents

Télécharger - Université d`été de la communication pour le  Bedienungsanleitung MNPG116-00  Moniteur 7" RLED/LEDD  GSM/GPRS/GPS Tracker (LDW-101  Fronius Primo 208-240 Installation Help  Cisco 802.11a/g/n-draft 2.0 2.4/5-GHz Modular Autonomous AP, 6 RP-TNC, FCC  申込書類の記載例 - JET 一般財団法人 電気安全環境研究所  ZE-MC296  Extech RH350 Dual Input Hygro-Thermometer  HP Pavilion 15-ab028tx  

Copyright © All rights reserved.
Failed to retrieve file