Home

M3T-PD45 User`s Manual

image

Contents

1. Address display area Data display area e Double click the address display area to change the display RAM starting address e Doubleclick the memory display area to change the contents of memory 30 Window function of PD45 1 662 Dump Window Toolbar M ROM Rowputten Displays data in ROM RAM button Displays data in RAM 1 6 3 Extended Menus in the Dump Window When the Dump Window is active in the PD45 main display area the Option menu contains the following items View Change contents of display Scroll Area Specify scroll range Address Specify display starting address Memory Area Change display memory Ram Display in RAM Rom Display in ROM Refresh Refresh display Set memory contents Set data at specified address Fill specified memory block with data Move specified memory block to specified address 31 PD45 User s Manual 1 7 ASM Watch Window TheASM Watch Window allows you to check the values at any specified RAM address Y ou can specify the point to watch as an address symbol or global variable as an address and bit No or as a bit symbol The display is updated after each command is executed 17 1 Structure of ASM Watch Window Toolbar ai Mam Set Jens Hex Dec Bin Addr Bit Exer Rdx Data a 000 zxy000 i Hex 0 003 zxy003 4 Bin 1000 010 Mzxy010 8 Hex MFE 012 1 bit1012 B
2. Break Mode sid mai T Break Point Tier 1 Select the mode TimeCount DM Stack Overflow Mode 2 Select the source CYCLE DTrace Event M Trace Full Source 3 Specify the timer count 100 99 PD45 User s Manual To break program a specified time after breakpoint Use the timer s DelayCount function for this purpose This method is effective for breaking program execution some time after a breakpoint Use the H W Break Point Setting dialog box to make this setting The following shows a setting example where the target program breaks 30 us after a breakpoint 6 Click the Set button a Cancel Now Address Event Status A t Address Label Pass dross Even AT 0000 start 00001 Set JAN A2 A2 0000 stat 00001 1 Specify the address break point Trigger Event _ Combination Type High Clow And cOr Sequential Pass O0001 Ist A1 CA2 CT 2 Check the Break Point check box 3rd Al c eT GNone Iv Break Point Timer I Stack Overflow DTrace Event T Trace Full Source TIME 1Dus 3 Select the mode DelayCount Mode 4 Select the source TI M E 10us 5 Spedify the timer count 3 100 Coverage measurement 2 Coverage measurement Use the coverage measuring function to check addresses accessed during execution The coverage measurement results can be referenced from the Coverage
3. 124 S S W Break Point Setting dialog box 43 Script Command ssessss 119 Script Window 34 35 85 Script flle o ine 6 12 34 88 Seat ci dace ne dip et 93 Set p iiec tege edens 11 Software Break essees 4 43 Software break point 43 Source Level Debugging Function 5 Source Window 13 25 93 Stack Overflow sss 97 Starting PD45 eee 11 Symbol dne 5 123 Symbol file ec 6 T TAB Value tetti 13 Table of Script Commands 107 Time Measurement 5 48 Trace Point Setting dialog box 47 75 Trace Window esses 36 72 Trace point iret eee 47 Trigger break point 45 PD45 User s Manual V View buffer 7 34 87 View ilg ee eerta 7 34 87 Ww Writing Script Files 119 dde 120 138 M3T PD45 V 1 00 User s Manual Rev 1 00 October 16 2003 REJ10J0368 0100Z COPYRIGHT 2003 RENESAS TECHNOLOGY CORPORATION AND RENESAS SOLUTIONS CORPORATION ALL RIGHTS RESERVED M3T PD45 V 1 00 User s Manual 21 NE SAS Renesas Electronics Corporation 1753 Shimonumabe Nakahara ku Kawasaki shi Kanagawa 211 8668 Japan REJ10J0368 0100Z
4. 00 0 0 02 00 0 8 0 4 0 Address display Data display area area Symbol display area 28 Window function of PD45 e Double dick the address display area to change the display ROM starting address e Double click a symbol or the memory display area to change the contents of memory 15 2 Memory Window Toolbar RAM button Bin button Displays data in RAM Displays data in binary RAM ROM Bin Dec Hex Hej button ROM button Displays data in hexadecimal default Ded button Displays data in decimal Displays data in ROM 15 3 Extended Menus in the Memory Window When the Memory Window is active in the PD45 main display area the Option menu contains the following items View Scroll Area Address Data Pointer Memory Area Ram Rom Radix Bin Dec Hex Change contents of display Specify scroll range Specify display starting address Change display start address to data pointer position Change display memory Display in RAM Display in ROM Specify radix Display in binary Display in decimal Display in hexadecimal Refresh display Set memory contents Set data at specified address Fill specified memory block with data Move specified memory block to specified address 29 PD45 User s Manual 1 6 Dump Window The Dump Window displays the contents of contiguous memory in dump format The display is updated after each
5. And C Or C Sequential 1 Spedfy combinatorial condition 2 Click the 1st break point 3 Click the 2nd break point or check None if none is to be used 4 Click the 3rd break point or check None if none is to be used 71 PD45 User s Manual 5 Real Time Tracing In PD45 you can check the trace results using any of three display modes bus mode in which you can check the bus data each cyde disassemble mode in which executed instructions are disassembled for display and source mode in which executed instructions are displayed at the source line level Thetrace results are shown in the Trace Window To open the Trace Window select Trace Window Window in the menu in thePD45 window 5 1 To check bus data each cyde Click the BUS button on thetoolbar in the Trace Window to switch to bus display mode Click BUS to change to bus mode ra Window DIS SRC Foward Back Step Dome Range 4095 0000 Area Break File Cycle 0053 Address 0014 Vi 004 0008 102 0000 0040 sub2 0102 2 S e 2 e sS S a ER Use the Up and Down cursor keys the Page U p and Page Down keys or scroll using the vertical scroll bar to check the bus data outside the displayed cycle See Section 1 9 1 Screen Configuration in Bus Mode in the Window function for details of bus mode To change the reference position by specifying the trace cycle Double click the cycles area in the Trac
6. e Trace Window When in bus mode you can change the relative proportion of the label display area LABEL J Drag to resize Cycle Label amp ddress Data 5g eubl o100 oo0 0049 0101 044 004 poge 100 11 4 Displaying the Version of PD45 Select the following from the PD45 Window menu H el p 2 About The About dialog box which shows the PD45 version and monitor version is displayed PD45 version Monitor version kii PD45 Ver 1 00 0 Monitor Ver 1 10R Copyright 1997 MITSUBISHI ELECTRIC CORPORATION AND MITSUBISHI ELECTRIC SEMICONDUCTOR SYSTEMS CORPORATION All Rights Reserved Press OK to close the About dialog box 94 High end Debugging 96 Hardware Breaks 2 1 HardwareBreaks 2 This chapter describes the advanced hardware break functions available with PD45 For details about the structure of the H W Break Point Setting dialog box refer to Section 1 12 1 Screen Structure of H W Break Point Setting Dialog Box For details on how to use the basic hardware break functions of PD45 refer to Section 4 Hardware Breaks 1 in the Basic Operation Part of this manual 1 1 ToBreak Program On Stack Overflow Use the H W Breakpoint Setting dialog box to enter this setting 2 Click the Set button Cancel Now Address Event Status Address Event 34 Address Label Pass UMS Ever AT 0000 start 00001 Set Wi A2 A2 0000 start
7. BREAKAT BREAKAT line No filename Set software break point at specified line No 1 2 7 Hardware Break Setting Commands Command format HardwareBreak HB 1 HardwareBreak 1 Reference hardware break 2 HardwareBreak An address PassCount point 3 HardwareBreakArea An address1 address2 PassCount 2 to4 Set hardware break point 4 HardwareBreak T H L PassCount 5 Set combination 5 HardwareBreak AND OR SEQ3 4An TX 4An TX 4An TH 6 Set break condition 6 HardwareBreak MODE BP SO TE TF NO TO TC DC L TIME CYCLE COUNT I See page 112 for details BreakM ode BM 1 BreakMode 1 Check mode of breaks 2 BreakMode HARDWARE SOFTWARE 2 Change mode of breaks 109 PD45 User s Manual 1 2 8 Real Time Trace Commands TracePoint RP 1 TracePoint 1 Reference trace point 2 TracePoint An address PassCount 2 to4 Set trace point 3 TracePointArea An address1 address2 PassCount 5 Set combination 4 TracePoint T H L X PassCount 6 Set trace condition 5 TracePoint AND OR SEQ An TX 4An TJ 4An TH 6 TracePoint her BEFORE ABOUT AFTER BREAK NOJ TO TC DC L TIME CYCLE X COUNT II See page 115 for details TraceData RD TraceData eevee EndCyde Display contents of real time trace memory in bus signal format TraceList RL TraceList StartCycle end cyde Display the contents of real time trace memory in disassemble list format time trace range 1 2
8. Click the Close button on the Script Window toolbar Run Step pen Close Log0n Log0ff View Clear Click the Close button to close the script file You can also dose a script file by selecting the following when the Script Window is active from the PD45 Window menu Option 2 Script 2 Close e ifthe script files are nested the current script file is closed and the next higher level script fileis opened PD45 User s Manual To execute a script file on PD45 startup Specify the name of the script file to be executed on startup in the Init dialog box which is displayed when you start PD45 Init Lx Specify the name of the script file Init File to be executed on startup IF Serial Port COM1 Baud Rate 9600 TAB 1 32 8 Font FixedSys Font Size 11 I7 AutoDownLoad M Resume Iv Next Hide Cae Y ou can also open the Init dialog box by selecting the following from the PD45 Window menu Environ 31l nit 90 Exiting PD45 10 Exiting PD45 10 1 Exiting PD45 Select the following from the PD45 Window menu File gt E xit A confirmation dialog box is displayed Click OK to exit 3 Do you Exit E Cancel Click the OK button 91 PD45 User s Manual 11 Miscellaneous 11 1 Line Assemble Execute the assemble command Assemble A from the Scri pt Window for line assembling Specify the address for line assem
9. Click the Stop button on the toolbar You can also stop Come execution by selecting the following from the PD45 Window menu Debug gt Stop 2 5 Resetting the Program Toreset the target program click the Reset button on the PD45 Window toolbar You can also press F8 tit le a EJ dup Click the Reset button You can also reset the target program by selecting the following from the PD45 Window menu Debug gt Reset 62 Software Breaks 3 Software Breaks Use a software break to break target program execution at a specified line address Use the S W Break Point Setting dialog box to set a software break point When you set a software break execution of the target program stops immediately before the software break point You can set up to 8 software break points f you set multiple software break points the target program stops as soon as execution reaches any of the software break addresses 3 1 Enabling S W Breaks Click the BM button on the PD45 window s tool bar to change the break mode to SAW break The BM button toggles between S W break and H W break Aja iia sj sje sefe Click the BM button If the current break mode is S W break you will find that the break mode shown in the right part of the PD45 window s status bar is changed as follows BM SAW The break mode can also be switched over using the following commands on the PD45 window menu Debug
10. Fenton pros window cascade cascade wingons SSS Tile Wewmos SSCS arranger _Aarrangeicons O Program Window Make Program window aaie Sourcewindow jomsmrewmdw Reise Window Open Register Window Memory Window Open MernoyyWindow umpWindow Open Dump Window ASM Watch window Open ASM Watch window Saipt Window OpenScripe Window o TraceWindow open Trace window Coverage Window Open Coverage window 1 1 3 8 Help The Help menu contains the items for displaying PD45 help messages and the PD45 version No Display version information about PD45 C s 21 PD45 User s Manual 1 2 Program Window The Program Window displays the machine code at the current program counter The line at the program counter is highlighted in yellow The Program Window is automatically opened in the main display area of the PD45 Window when you start PD45 The Program Window can be used for executing the target program up to the cursor position set or cancel software breakpoints using the mouse and displaying reverse assembles of the target program etc Double dick the software breakpoint display setting area to set or cancel software breakpoints 12 1 Structure of Program Window The Program Window has two display modes source and disassemble The structure of the Program Window is described for each display mode below 1 2 1 1 Stru
11. Specify a value of num or more a value of num or more 2500 Operation code ope code not found pM 2501 File filename not found SSS 5200 Can t execute Come command without Delete one of the break points then perform unused break point Come execution 5702 Address value is out range for scroll area The address specified as the scroll range is greater than the M CU s maximum address 132 Error Messages Ne ErorMemae Notesandaction 5900 Cant open Script F ile filename EE Script File filename is already opened MEN 5902 _ SaiptFileisnotopen SSS 5903 Cant open Log File filename EN 5904 atmemeelophle 5s Cantopentegfile 1 S 5907 Can t open View File filename for new add MEN Ns Error Message notes andan SSS 10022 cant exeatemorecmenstucion 10028 jamteentemmesepimsmdim SSS 10005 Cyclevalueisautofrange nw cantfinathat aceress 133 PD45 User s Manual MEMO 134 Index 135 136 Index A ASM Watch Window 5 32 33 80 Address breakpoint 45 Assign Statement ssss 120 B Break Fundtions een 4 C Character constant sees 125 Comment statement 121 Constant sisse rime cta tie ro dd ret 122 Coverage Measurement 5 41 101
12. These files which are generated by the asm45 absolute assembler take the attribute hex 3 1 2 Symbol Files This file contains debug information such as symbol information and line number information A SYM file can be generated by specifying the S option when executing ASM45 The C option outputs the source line information The file attribute is SYM Although a SYM file is not necessarily required for PD45 to operate most of its functions are unavailable to use without a SYM file read in Therefore always be sure to read in a SYM filealong with a HEX file 3 1 3 Data Files A data file contains the information inherent in the target MCU This data file is included with the product package The file nameis M345xxxx DAT M 345xxxx denotes an MCU name The PC4504 emulator allows you to emulate all MCU types in the 4500 series by changing the MCU boards available for the PC4504 The data file is an information file necessary to accommodate differences in MCU specifications when MCU types are changed 3 14 Script File The script file is for automatic execution of script commands This file which is read from the Script Window takes the attribute scr 3 15 Help File The help file contains help messages for PD45 This file which is supplied with PD45 takes the attribute hlp PD45 Input and Output Files 3 16 Environmental Setup File The environmental setup file which is automatically generated
13. I F Serial Port COMI 1 Spedfy the communications port Baud Rate 9400 2 Specify the baud rate Specify the communications port in the Port field and the baud rate in the Baud Rate field 3 Setting of default TAB values Specify the default tab values for the Program Window Source Window You can specify TAB values between 1 and 32 Note You can set the tabs independently in each window With the target window active select Option gt TAB from the menu in the PD45 Window to open the TAB Setting dialog box You can now Set the tabs for the active window 4 Setting of default font size Specify the default font for the characters displayed by PD45 Click the Font button to open the F ont dialog box then specify the font and the font size N ote You can set the font size independently in each window With the target window active select Option gt Font from the menu in the PD45 Window to open the Font Setting dialog box Y ou can now set the font size for the active window 5 Switches of Init dialog box ON OFF of restarting Specify whether the Init dialog box should be opened when restarting PD45 Check Next Hide to stop the Init dialog box being opened when you next start PD45 If you want to display the Init dialog box when you next start PD45 select Init gt Environ from the PD45 Window menu then uncheck Next Hide in the Init dialog box You can also force the Init dialog box to be displayed when you star
14. Manual For the break condition setting area there are following four types of break conditions that can be specified Multiple break conditions can be specified at a time Break Condition Break Point Break occurs when a break point is reached Stack Overflow Break occurs when the stack overflows or underflow Break occurs when there is a trace event Trace Full Break occurs when write to trace memory has completed e For thetimer setting area there are following four modes of timer operation that can be specified Timer Operation Select this when no timer is used specified time of the program Trace event occurs when the specified time has elapsed since the break point is reached Furthermore there are following two types of count sources that can be specified for the timer TIME 10us The emulator ti mer fixed at 10us is used as the count source CYCLE TheMCU cycleis used as the count source 46 Window function of PD45 1 13 Trace Point Setting Dialog Box Use the Trace Point Setting dialog box to set trace points The method for setting trace points is almost identical to setting break points in the H W Break Point Setting dialog box See section 1 12 1 Structure of H W Break Point Setting Dialog Box for settings other than those discussed below 1 13 1 Structure of Trace Point Setting Dialog Box The following describes only those points of the Trace Point Setting Dialog box screen configuratio
15. PD45 Figure 1 shows the relationship between the real time trace area and the trace point E qe o_o ih n n BREAK Made AFTER Made TRacepont PEFORE Mode ABOUT Made BREAK POINT Figurel Real time Trace Area 116 Table of Script Commands MeasurementPoint MP Setting and Checking Measurement Points Input format Format 1 MeasurementPoint Format 2 MeasurementPoint START END Address Format 3 MeasurementPoint MODE ModeNumber Format 4 MeasurementPoint SOURCE TIME CYCLE Format 5 MeasurementPoint SHOW Function The PC4504 emulator has the following eight modes of time measurements available No Start Event EndEvet Trace Event 4 TraceEvent Measurement pointEnd_ End of program execution 6 MeasurementpontStart Measurement pointEnd_ 8 __ Measurement point Start End of program execution Checking measurement condition Use format 1 Toreference the measurement conditions of the time measurement function enter the command as follows MeasurementPoint Setting measurement points Use format 2 To se the start point of time measurement at address 010016 enter the command as shown below Note however that the start point of time measurement is valid only when the specified mode of time measurement is 1 2 0r 3 MeasurementPoint START 0 To set the end point of time measurement at address O17F e enter the command as shown belo
16. Specified Location ssseeeennee 61 2 5 Resetting the Program sesssesssssseseseesseeenne enne enn ennt nnne nennen tenes 62 3 Software Breaks 63 3 1 Enabling S W Breaks a aeaa a aaa aaa nre 63 3 2 Opening the S W Break Point Setting Dialog Box seeeene 64 3 3 Setting a Break Point viii ii eee deren iier Ese n ne Rl a e te 64 3 4 Deleting a Break Point essssssssesssesseeesee enne nnne nennen nnns nennen nns 65 3 5 Temporarily Disabling Break Points sssssssseeeennennenn nens 66 3 6 Temporarily Enabling Break Points nennen 66 3 7 Setting a Break Point from Program Source Window esee 67 3 8 Setting Breakpoints from the Toolbar ssssseeeeeneee nenne 67 4 Hardware Breaks 1 68 4 1 Enabling HWW Breaks nennen aeaoe aa aaa hiela 68 4 2 Opening the H W Break Point Setting Dialog Box 69 Contents 4 3 Setting Address Breakpoints essssssesseseeeeeeneenn enne nennen 69 4 4 Toset a trigger break point enne nnns 70 4 5 To combination break point enne enne enne enne 71 5 Real Time Tracing 72 5 1 To check bus data each cyde ssssssssssseeseesene enne nennen nennen 72 5 2 To check executed I nstructions sese nennen 73 5 3 To check execution path at the source level sssseeenene 74 5 4 Changing the Real Time Trace Position t
17. Window or using a script command CoVerage abbreviated CV 2 1 Displaying Coverage Measurement Result in Percentage Usethe Coverage Window to show coverage measurement results in percentage To open the Coverage Window choose the following commands from the PD45 window menu Window Coverage Window Before displaying coverage measurement results in percentage you must first set a range of addresses to be measured For details about the Coverage Window refer to Section 1 10 Coverage Window in the Window Function Part of this manual To set a measurement address range Click the Addarea button on the Coverage Window tool bar 1 Click the Addarea button Refresh CI ear Addarea Delarea When you click the Addarea button an Addarea dialog box opens Input a range of addresses to be measured in this dialog box Coverage Area 0000 1 ify the m rement start ress Start Address K Specify the measurement start address End Address 17FF K 2 Specify the measurement end address Cancel Koo 3 Click the OK button 101 PD45 User s Manual To reference measurement results When you chose to show measurement results in percentage they are displayed in the Coverage Window s measurement result display area Refresh Clear Addarea Delarea Coverage Base Address 0000 1 FF Label Start End Coverage Init 0000 001F 100 0096 Subi 0100 0121 95 7596 de
18. address display area and object code display area can be displayed or hidden by selecting or cancelling Option gt Layout gt Address Area and Option gt Layout Code Area Notethat you cannot scroll backwards vertically until you have scrolled forwards When you scroll forwards the previous display address is stored in the internal buffer This address information is used when you scroll backwards Note that the internal buffer is cleared if you execute a command that changes the first line address e If you disassemble an area data or empty area etc other than the program the contents of memory are interpreted as instruction code and displayed in disassembled format In this case is displayed for undefined instructions and operands e Double dick the address display area to change the display starting address 23 PD45 User s Manual 1 2 2 Program Window Toolbar button Displays the program in source mode d button View SRC DIS Displays the program in disassemble mode button Changes the part of the program being displayed You can specify a source file a function an address or the position of the program counter 1 2 3 Extended menu in the Program Window When the Program Window is active in the PD45 main display area the Option menu contains the following items View Change contents of display Source Display from specified source file or function Address Di
19. breakpoint Before using a trigger break prepare an external trace cable A trigger signal is taken in from this cable To set a trigger break point The following shows a setting example where a break occurs at a rising edge of the input signal High Use the H W Breakpoint Setting dialog box to enter this setting r Trigger Event 1 Click the High button l 2 Specify the Pass Count 1 70 Hardware Breaks 4 5 Tocombination break point There are three combinatorial conditions that can be specified These indude And where a break occurs when all conditions are met Or where a break occurs when one of conditions is met and Sequential where a break occurs when conditions are set in a specified sequence Use Combination Type in the H W Break Point Setting dialog box to set these combinatorial conditions To enable a break point one only The following shows a setting example where only address breakpoint A1 is enabled 1 Click the And button Combinatjer Type And C Or C Sequential is eM ca cT 2 Click the A1 button 2nd CAL CA2 CT None ord Al eA eT None 3 Click the None button To combine break points You can specify any of three types of combination when all conditions for the specified break point are satisfied And when any one is satisfied Or or when they are satisfied in the specified order Sequential Combination Type
20. can specify a break for failure such as a stack overflow or a break based on a timer count You can also specify combinations of these three break points The following shows the screen configuration for the H W Break Point Setting Dialog Box Address Event setting area e Cancel m Address Event Status Pass 1 Address Event Address Label peal AT 0000 start 00001 4L Memory Event Status display area Set At A2 0100 subi 00003 Trigger Event r Combination Type Tiger Event ening alse High Clow And C Or C Sequential Pass 00001 ist A1 CA2 CT 4 Combination setting area 2nd CAI CA CT None Break Mode Xd eA A2 T None u Break Point Timer Break condition setting area I Stack Overflow Mode NotUse M Trace Event E Count 2 65535 Timer setting area C Trace Full Source TIME IDus 00002 For the address breakpoint setting area use one of the three methods available for specifying breakpoint addresses for address break one address Point within an address range Range In or outside an address range Range Out You can specify rising edge High or falling edge Low as trigger types for trigger breakpoints As combinations you can specify that all specified break point conditions are satisfied And any one is satisfied Or or that they are satisfied in the order specified Sequential 45 PD45 User s
21. default the address display area is hidden You can search the address being displayed by double dicking on the address display area Reference cyde position display area Displays the current position when searching for an address from the trace data Displayed as gt gt This symbol moves when the search is continued The hyphen indicates a line with address information Come searches can be performed on such lines Note Although the instructions that would otherwise be skipped are traced when searching for execution paths they are skipped correctly in actual operation 39 PD45 User s Manual 19 4 Trace Window Toolbar button button Specifies a forward search 2 button Switches to disassemble mode Searches specified line s m Come Forward Back Step button button Switches to source mode button Searches the next trace path Switches to bue node Specifies a backward search 2 1 The Forward Back Step and Come buttons are only effective in source display mode 2 Forward searches trace the path in the order in which instructions are executed Backward searches trace the path in the reverse order in which instructions were executed 1 9 5 Extended Menus in the Trace Window When the Trace Window is active in the PD45 main display area the Option menu contains the following items Set tabs for source file display we 3 View Change contents of display Cyde Sp
22. file has more lines than can be displayed the file cannot be displayed in the Source Window Switch to disassemble display mode 126 Error Messages 300 Illegal endi filename line Thereis no if statement paired with the endi statement 301 Illegal endw filename line There is no while statement paired with the endw statement 04 Can t find endi filename line There is no endi statement paired with the if statement 305 Linelength is overflow filename line The number of characters exceeds the maximum permissible for one line 306 Nest level is overflow filename line 07 Can t find Script File filename 308 Can t read Script File filename Cannot read rest of script file Description is illegal filename line 310 Can t find endw filename line Thereis no endw statement paired with while statement 311 Nest level is overflow filename line Error Message Notes and Action Address value is out range for scroll area Can t add new watch point because it exceeds limit of watch point number Max number is num 01 Address value is out of range Data value is out of range 650 There are no symbol information Load module file not loaded Ne ErrorMemase Notesandacion Soo SYMBOL fleisilega Ererinfometooimeiefie m edmisandm 902 Cant find SYMBOL file filename 903 Can t get enough memory Insufficient memory Quit other applications or increase mem
23. following shows how to set a break point for the third time the command at address 10016 is fetched 1 Click the Point button Select Type Point Range In C Range Out 2 Specify the Address 100 3 Specify the Pass Count 1 4 Click the OK button 69 PD45 User s Manual To set an instruction fetch inside a specified address range as break condition The following shows a setting example where a break occurs when any instruction at addresses 10016 to 17F e is executed fetched Use the Address Breakpoint Setting dialog box to enter this setting 1 Click the Range In button Select Type Point Range In C Range Out 2 Specify the Address 100 3 Specify the Address 17f 4 Specify the Pass Count 1 5 Click the OK button Toset an instruction fetch outside a specified address range as break condition The following shows a setting example where a break occurs when any instruction at addresses outside the range of O16 to 7Fie is executed fetched Use the Address Breakpoint Setting dialog box to enter this setting 1 Click the Range Out button Select Type Point C Range In Range Out 2 Specify the Address 0 Range Addr lt p 3 Specify the Address 7f Pass 4 Specify the Pass Count 1 Cancel 5 Click the OK button 4 4 Toset a trigger break point The PC4504 emulator allows you to set one trigger
24. i tct de Hn vated e eaa a Pe ER e Deu edat d 28 1 6 DUMP WINDOW cis 5o eie e Pe Rare ED ERES 30 T EN Watch Window t2icccice theeeedicedeetectoste a ic cnsidde a a aia 32 1 8 Script Window PD45 User s Manual T9 Trace WIDOOW 31 oue re eed peregre onic toti dee Debe ped dec te A 36 1 10 Coverage WiInhndoW dace i e ced eie i e ci ehe t le etes 41 1 11 S W Break Point Setting Dialog BOX sssessseeeeennennen nennen 43 1 12 H W Break Point Setting Dialog BOX ssessseeeeeenenneen nennen 45 1 13 Trace Point Setting Dialog BOx sess nennen nennen 47 1 14 Time Measurement point Setting Dialog BOx sse 48 Basic operation 49 1 Loading and Displaying the Target Program 51 T lDownloadirig 55 np deed PEE tr Tg deese dete 51 1 2 Uploading eid bei e ee RE dee OE Tee Ed te dines 52 1 3 Saving Results of Disassembly sssssssssssseeeeenee nennen 52 1 4 Continuing to Display a Selected Program Position ssessssss 52 1 5 Changing the Program Display Position 53 1 6 Checking Source Programs in Other Directories 56 1 7 Displaying the Results of Disassembling sesseeeenne 57 2 Starting and Stopping Target Program E xecution 58 2 1 Starting and Stopping ives ren e ade ede e En 58 2 2 Step E XGCUEION Ec 60 2 3 Returning from Current to Calling Routine esee 61 2 4 Program Execution to
25. of the registers click the register buttons in the Register Window to open the Register dialog box then input the new value Set Register Register Value fo To change the values of flags The Set Register dialog box does not open if you clicked the CY button of the Register Window The value of the carry flag changes each time you click the CY button 79 PD45 User s Manual 8 Checking and Setting Memory Contents 8 1 Checking the Value at a Specified Address Use the watch function to check the value at a specified address Check the value at the specified address in the ASM Watch Window The address is called as the watch point To open the ASM Watch Window select the following from the PD45 Window menu Window gt ASM Watch Window See Section 1 7 ASM Watch Window in the Window Functions for details of the ASM Watch Window Toregister a watch point Click the Add button in the menu bar in the ASM Watch Window to open the Add dialog box Input the address to monitor 1 Click the Add button to open the following dialog box Add BirAaa Set Del DeiAn Hex Dec Bin Add x Address 2 Specify the address to monitor Size ABit 3 Select the data size 4 Select the data radix 5 Click the OK button The registered watchpoint is added at the current cursor position in the ASM Watch Window The cursor position is indicated by a red mark in the
26. satisfaction of the trace point condition Before the 16K cycles centered on the satisfaction of the trace point condition About or the 4K cycles after the satisfaction of the trace point condition After In this case the trace point is like the hardware break point the point at which real time trace are performed when the system detects that data is written to memory read from memory or an instruction is fetched or detects the rising or falling edge of the signal input from the external trace cable Setting a Trace Point To set a trace point open the Trace Point Setting dialog box by selecting Trace Point Debug from the menu in the PD45 Window For details on how to set trace points Section 4 Hardware Break 1 in the basic operation part of this manual and Section 1 Hardware Break 2 in the High end Debugging Part Setting the Trace Area To change the trace area change the setting in the Trace Area group in the Trace Point Setting dialog box Select the trace Area Before Break 1 Break 4K cycles before target program stops Before Trace 2 Before 4K cycles before trace point About Trace 3 About 2K cydes either side of trace point After Trace 4 After 4K cycles after trace point 75 PD45 User s Manual 6 Time Measurement Use the time measurement function to measure the target program s execution time The measured execution time of the target program is displayed on the status bar
27. setting The following shows a setting example where the target program breaks when the routine takes more than 40 us to loop for some reason 6 Click the Set button Cancel Now Address Event Status Address Event 34j Address Label Al 0000 start 00001 Set A1 A2 A2 0000 start 00001 K_ 1 Specify the address break point Trigger Event Combination Type in loop address High Low amp And C Or C Sequential Pass tst eM CA2 cT 2 Check the Break Point check box r Break Iv Break Point C Stack Overflow Mode 3 Select the mode TimeOut all 4 Selrct the source TIME 10us 5 Specifiy the timer count 4 TimeOut C Trace Event C Trace Full To specify target execution time Use the timer s TimeCount function for this purpose Use the H W Break Point Setting dialog box to make this setting The following shows a setting example where the target program is executed for 100 cycles after it started running 4 Click the Set button Cancel Now Address Event Status r Address Event Address Label Pass A1 0000 start 00001 Set AT jA2 A2 0000 start 00001 Trigger Event Combination Type e High CLow And C Or C Sequential Pass DUOD1 ist Al cA2 CT 2nd CAL CA2 CT None
28. the number of cycles You can also open the Cycle dialog box from the PD45 Window menu Option A View 2 Cyde To search for the cycle in which an operation code was fetched to a specified address Double dick the address area in the Trace Window to open the Address Search dialog box Input the address to search You can also open the Address Search dialog box from the menu in the PD45 Window Option 2 View 2 Address Search PD45 User s Manual 5 3 Tocheck execution path at the source level Click the SRC button on the toolbar in the Trace Window to switch to source display mode Line Address eoelesise oo m Tm M3 eo o mi m e ce eie els co Mins a j g S i i l 2 eo o e RA 26 include sample inc Load INC File OP BM subl OP BM I OP NAP sub2 eooo oilo eoolieoeiomooe Click the Back button on the toolbar in the Trace Window to check the execution path in reverse direction then click the Step button Or dick the Forward button on thetoolbar in the Trace Window to check the execution path in the forward direction then dick the Step button Click to display the execution path in the forward direction l BUS DIS SRC Forward pack Step Come Click to display the execution path in the reverse direction Click to check the following execution route as specified by clicking the Forward or Backwa
29. variables Use RAM memory variables to use memory values in expressions The format is as follows RAM address data size You can specify expressions in RAM addresses you can also specify memory variables Example 1 Referencing the contents of RAM memory at address 10016 100h 2 2 7 Line Nos These are source file line Nos The format for line Nos is as follows ine no line_no source file name Specify line Nos in decimal You can only specify line Nos in which software breaks can be set You cannot specify lines in which no assembler instructions have been generated including comment lines and blank lines If you omit the name of the source file the line Nos apply to the source file displayed in the Program Window Include the file attribute in the name of the source file Donotinclude any spaces between the line No and name of the source file 124 Writing Script Files 2 2 8 Character constants The specified character or character string is converted into ASCII code and processed as a constant Enclose characters in single quote marks Enclose character strings in double quote marks e Thecharacter string must consist of one or two characters 16 bits max If more than two characters are specified the last two characters of the string are processed For example ABCD would be processed as CD or value 434416 2 2 9 Operators Thetable below lists the operators that you c
30. when a trace point passed event is established enter the command as follows HardwareBreak MODE TE e To stop the program when a write to trace memory is completed enter the command as follows HardwareBreak MODE TF To break the program when a timer event occurs Use format 6 To stop the program when a routine that loops at a certain interval 35 us takes morethan 40 us to loop for some reason enter the command as follows HardwareBreak MODE BP TO TIME 4 Tostop the program 100 cycles after it started running enter the command as follows HardwareBreak MODE BP TC CYCLE 100 e To stop the program 50 us after it passed a breakpoint enter the command as follows HardwareBreak MODE BP DC TIME 5 114 Table of Script Commands TracePoint RP Setting and checking trace points Input format Format 1 TracePoint Format 2 TracePoint An address PassCount Format 3 TracePointArea An StartAddress EndAddress PassCount Format 4 TracePoint T H L PassCount Format 5 TracePoint AND OR SEQ An T 3 An T An T Format 6 TracePoint MODE BEFORE ABOUT AFTER BREAK L NO TO TC DC LITIME CYCLE COUNT The following table shows the values that can be specified for An An A1 A2 Function e Trace points are the yardsticks for real time tracing You can use the trace points to specify what area is to be traced Set the trace area using format 6 Trace points ar
31. window contains menus and buttons allowing commands to be executed by dicking with the mouse 2 2 Break Functions PD45 has the following two break functions 2 2 1 Software Break Software breaks allow program execution to be stopped after the command at the specified address The point at which this break occurs is called the software breakpoint You can set software breakpoints from the S W Break Point Setting dialog box You can also easily set them from the Program Window and Source Window PD45 supports up to 8 software breakpoints You can set and read in the software breakpoint file via the S W Break Point Setting dialog box 2 2 2 Hardware Break Hardware break causes the target program to break when an event occurs in the target MCU The target program can be made to break when execution of a specified address Fetch is detected or the rising or falling edge of a signal input from an external trace cable is detected The former is called an address break and the latter is called a trigger break PD45 allows you to set two address breakpoints and one trigger breakpoint A combinatorial condition of these three breakpoints can also be set In addition to the above breakpoints you can specify a break for failure such as a stack overflow or a break based on a timer count Use the H W Breakpoint Setup dialog box to set these break conditions 2 3 Real Time Trace Function PD45 supports a real time trace function that records the exec
32. 0 010 zxy 18 Hex eFE 012 1 it1012 Bie 1 111 xy111 Bin 0010 0111 1 Click the watch point to be deleted To delete all watch points click the DelAII button You can also dick the watch point to be deleted then press the Delete key To change the memory display format You can change the radix in which data is displayed to select the watch point to be changed in the ASM Watch Window then clicking Hex Dec or Bin in the toolbar of the ASM Watch Window Click to display in H exadecimal Click to display in Binary Set Del DeiAn Hex Dec Bin Click to display in Decimal You can also double click the radix display area in the ASM Watch Window In this case the radix changes cyclically in order of the following Hexadecimal gt Decimal gt Binary gt Hexadecimal 82 Checking and Setting Memory Contents 8 2 Toreference the contents of contiguous addresses To reference the contents of contiguous addresses open the Memory or Dump Window The Memory Window displays contiguous memory contents in the form of Address Symbol or Data memory contents The Dump Window displays contiguous memory contents in dump form In either case RAM contents are displayed by default To use the Memory Window select the following from the PD45 Window menu Window 2 M emory Window To use the Dump Window select the following from the PD45 Window menu Window 2 Dump Window See Secti
33. 00001 p Trigger Event r Combination Type High Low And Or Sequential Pass 00001 ist Al CA2 CT Lj eds CAD CA2 CT cNone 3rd Al cA T None rBreak Mode 1 Check the Stack Overflow Check box r Timer Stack Overflow NotUse C Trace Event Mode NotUse Count 2 65535 T Trace Full Source TIME 10us 00002 tems in the Break Mode group can be specified simultaneously 97 PD45 User s Manual 1 2 ToBreak Program On Real time Trace E vent Two types of real time trace events are available establishment of a trace event condition and completion of a write to trace memory Enter the following settings from the H W Break Point Setting dialog box 3 Click the Set button cancel Now Address Event Status r Address Event dress Labe ass AT D000 start 00001 Set A JA2 A2 0000 start 00001 r Trigger Event 4 pCombination Type 34 High CLow And C Or C Sequential Pass 00001 Ist A CA2 CT 2nd CAL CA2 CT None Break Mode srd Al A T None Break Point Timer 1 Check Trace Event if you want the r Sta program to break on establishment NotU m tace Event More Nolo Count 2 65535 of a trace event race Full Source TIME 1Dus 00002 2 Chec
34. 8 30 pros sample ASM Add Refer Close a Del Del All All Enable Click All Enable to enable all break points 3 Click the Close button 1 Click the break point to be enabled 2 Click the Enable button You can also double click the breakpoint to be enabled An asterisk is deleted Software Breaks 3 7 Setting a Break Point from Program Source Window You can also set break points in the Program or Source Window To do so double click the break point setting display area BRK column indicated by for the line in which you want to set the break _ BRK Source ae ae 00022 start 00023 DI 5 00024 loop 00025 NOP 00026 include sample inc Load INC File 00027 NOP 00028 B BM subl 00028 NOP 00030 BM sub 00081 NOP 1000827 NOP ANNAA Double click here Lines in which a software break point have been set are marked by a B in place of the in the break point setting display area BRK column You can delete the break point by double dicking again in the BRK column 3 8 Setting Breakpoints from the Toolbar You can set breakpoints from the toolbar in the PD45 Window In the Program Source Window dick the program display area of the line in which you want to set the break lines for which is displayed in the corresponding breakpoint display area To set the breakpoint
35. 9 Coverage Measurement Commands Command format CoVerage CV 1 Coverage LOCAL StartAddress EndAddress 1 Display results of coverage 2 Coverage GLOBAL StartAddress EndAddress measurements in 1 byte units 3 Coverage TOTAL StartAddress EndAddress 2 Display results of coverage 4 Coverage CLEAR measurements in 4 byte units 3 Display results of coverage measurements as percentages 4 nitialize memory for coverage measurements 1 2 10 Run time Display Commands TIME 1 TIME 1 Display settings for run time display 2 TIME ON OFF 2 Set whether to display run timein Script Window MeasurementPoint 1 MeasurementP oint 1 Display the measurement point setting 2 MeasurementPoint START END address 2 Set measurement point address 3 M easurementP oint MODE M odeN umber 3 Set measurement range 4 M easurementPoint SOURCE TIME CYCLE 3 4 Set measurement count source 5 MeasurementP oint SHOW 5 Display the measurement result See page 117 for details 1 2 11 Script Log F ile Commands Command Command format Summary SCRIPT SCRIPT filename Open script file EXIT EXIT Close script file WAIT WAIT Wait for command input until target program stops box and wait for user to press button number of seconds 110 Table of Script Commands 1 2 12 Program Window Control Commands Command Command format Summary PATH PATH search pass search pass I Set source file path FILE 1LFILE 1 List source
36. A Selected Address Range Enter the following settings from the Time Measurement Point Setting dialog box Measurement Point 1 Change the measurement mode to 6 From MP Start to MP End Mode From MP Start fo MP End l Source TIME M 2 Specify the measurement start address MP Start 0100 3 Specify the measurement end address Cancel 4 Click the OK button To use a debug event as a time measurement point The PC4504 emulator has the following eight modes of time measurements available To switch over the time measurement modes change the Mode area in the Time Measurement Point Setting dialog box to your desired mode No Measurement Mode Start Evet EndEvet 4 FromTraceEventtoMP End TraceEvent Measurement point End 6 FromMPStarttoMP End MeasurementpointStart Measurement point End 8 FromMPStarttoBreak MeasurementpointStart Endof program execution If you selected No 6 7 or 8 for the measurement mode number you need to specify a start address of measurement in the MP Start area of the Time Measurement Point Setting dialog box Or if you selected No 2 4 or 6 for the measurement mode number you need to specify an end address of measurement in the MP End area of the dialog box Note If End of program execution is chosen for the end of measurement point measurement is taken of time until execution of the broken instruction i
37. Break Mode 63 PD45 User s Manual 3 2 Openingthe S W Break Point Setting Dialog Box Click the SW button on the PD45 Window toolbar Press function key F 7 to open the software breakpoint setting dialog box sjsj s e s e sepe Click the SW button You can also open the S W Break Point Setting dialog box by selecting the following from the PD45 Window menu Debug A Break Point gt S W Break Point See Section 1 11 S W Break Point Setting Dialog Box in the Introduction for the structure of the S W Break Point Setting dialog box 3 3 Setting a Break Point To specify an address as a break point In the S W Break Point Setting dialog box specify an address or label in the Address field as follows 1 Click the Address button 2 Specify the address Address C Filename 3 Click the Add button Line SAW Break Point 4 Click the Close button 0003 5 sample inc 0008 30 prog samele ASM Del AIl Enable All Enable Disable ilt All Disable 64 Software Breaks To spedify a line No as a break point In the S W Break Point Setting dialog box specify a filename and a line No as follows 1 Click the Filename button 4 Click the Add button SAW Break Point 5 Click the Close button 5 sample inc 30 prog sample ASM N 2 Specify the filename 3 Specify
38. Coverage Window eeeese 41 D Datajfile ei tints 6 Disassemble file ee 7 Dump Window eee 30 E Environmental setup file 7 Error Messages insonini ase 126 EXIU EEE A E See ee se ETA M a 91 E NE E E A E E OE ET 120 oec 120 aor 120 F FONTS ZE sii oreste er nana Oron idea 13 H H W Break Point Setting dialog box 45 Hardware Break ees 4 97 Hardware break point 45 Help file cde 6 I Init Dialog BOX 12 90 Installation eem 11 Intel HEX format file 6 7 TEE Moe HEURE 120 L Eabel 1 ee battuti ut 5 123 Line Assemble eem 92 LO filer m arenei ania 7 34 Logging function 00 eee eet teeter 86 137 Index Loop Statement sess 120 M Macro variable 123 Main command sees 17 Memory Window nsss 28 Monitor version 94 Multi Windowing Function 4 0 Operator E tet nnn 125 P PD45 Window eene 17 PD45 set p ide 12 PD45 version sesei 94 Program Window 13 22 93 Program counter cenere 22 25 R Real Time Trace esses 4 72 Real time Trace E vent 98 Register Window sss 27 79 Register variable
39. High end Debugging 1 Hardware Breaks 2 97 1 1 To Break Program On Stack Overflow sse 97 PD45 User s Manual 1 2 To Break Program On Real time Trace E vent essen 98 1 3 To Break Program Using a Timer sese 98 2 Coverage measurement 101 2 1 Displaying Coverage Measurement Result in Percentage sssss 101 2 2 Referencing Coverage Measurement Results at Source Level 102 2 3 Referencing Coverage Measurement Results at Address L evel 103 2 4 Toinitialize the previous results of coverage measurements 103 Reference 1 Table of Script Commands 107 LA Input E ormat iuui c decet dieu edb redes een dfe eer deb eed echa entra a rid 107 12 Tables of Commands 5n Ier Rino e ben se 108 2 Writing Script Files 119 2 1 Structural Elements of a Script File essent 119 2 2 Writing Expressions esssseseseseesseeesee enne enne ennt nns nn nnne n stent tnter nennen en 122 3 Error Messages 126 IV Introduction PD45 Introduction 1 PD45 Introduction The PD45 is an emulator debugger for Windows which controls the PC 4504 Emulators for 4500 series microcomputer PD45 User s Manual 2 PD45 Features 2 1 Multi Windowing Function PD45 supports multiple overlapping windows enabling you to simultaneously view a wide range of data Each
40. 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 5 2010 Renesas Electronics Corporation Issued by Renesas Electronics Corporation http www renesas com Send any inquiries to http www renesas com inquiry 2 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 gr
41. You can also start the target program by selecting the following from the PD45 Window menu Debug gt Go The target program runs until it reaches a breakpoint Free running the target program Execute the Go G command from the Script Window Although the Go command basically executes a program with breaks included the target program can be executed in free running mode if breakpoints are omitted For details of using script commands see Section 9 1 Executing Script Commands in the Basic Operation part Input format F ree Run Format 1 Go Format 2 Gostarting address Functions When no starting address is specified runs the target program from the address currently indicated by the program counter format 1 e Runs thetarget program from the specified starting address format 2 Starting and Stopping Target Program E xecution To stop the target program Click the Stop button on the PD45 Window toolbar j sj 2 4 LI 2 r sw nw pm Click the Stop button You can also stop the target program by selecting the following from the PD45 Window menu Debug 2 Stop Note If when the target program stops the program counter is in an area with no source line data the Program Window automatically switches to disassemble display mode Tostart the target program from a specific address Select the following from the PD45 Window menu Debug gt Go gt Go Option The Go dialog box opens Enter the s
42. address display area and data display area You can move the cursor by clicking on either area or using the Up and keys 80 Checking and Setting Memory Contents Toregister a specific bit as a watch point Click the BitAdd button in the menu bar in the ASM Watch Window to open the BitAdd dialog box Input the bit symbol or the address and bit No to monitor 1 Click the BitAdd button to open the following dialog box I Add Bir Aaa Set Del Dein Hex Dec Bin z 2 Specify the bit symbol If none has been defined Specify the address and bit No in the nett fields BitSymbol Address 3 Click the OK button To change the value at a specified address Select the watch point to change in the ASM Watch Window then click the Set button on the toolbar of the ASM Watch Window 2 Click the Set button C Watch Window Add Biz Aaa Set Del Deran Hex Dec Bin Data x 0 in 1000 gg Hex JFE 1 8 Bim 0010 0111 1 Click the watch point to be changed The Set dialog box opens Enter the new value ee E Cancel 81 PD45 User s Manual To delete a watch point Select the watch point to be deleted in the ASM Watch Window then dick the Del button on the toolbar of the ASM Watch Window 2 Click the Del button ee jSz Rdx Data 000 zxyv000 4 Hex 0 008 zxy003 4 Bin 100
43. alled 1407 Can t get enough memory Insufficient memory Quit other applications or increase memory 1409 Can t execute that command when the target program is running 1410 Start address is larger than end address 1411 STOP execution Can t find source lines which include that address specified address 1u3 That command has not yet suppor OOO S nu Cantsearch moreonthestack OOOO OSS S 1018 Specified times of number isoverthan e5535 1428 The specified register cannot be changed due to CPU restriction 1431 Stack overflow or underflow has occurred 1432 The time measurement counter has overflowed 1433 The specified register cannot be read due to CPU restriction 1456 Can t find File filename 1460 The time measurement counter has overflowed 1462 Passcount value is out of range 1463 Can t execute that command when the target program is running 1464 Target MCU is reset state Reset the target system ues foro MCUIsHOLDsate s Target MCU isnot given dock 130 Error Messages Wo error messas MoteramfAcim Lus contina trece data whichisabletorder OOOO O OOOO m oycevalueisoutfrange SSS 1476 First data islargerthansecnddata 1477 First adress is arge than second address O OOO OOO No MCU s maximum address 1501 enumeran ST 1509 CantfindFilafiename There are no c
44. alog box starts with files with the viw attribute However you can enter a full filename including the attribute directly into the filename input area to open a view file with an attribute other than viw To dear the results of execution from the screen Click the Clear button on the menu in the Script Window to clear the contents of the command display Note that the contents of the View buffer are cleared at the same time as the command display Run Step pen Close Log n LogzOff View Clear Click the Clear button to clear the command display You can also select the following from the PD45 Window menu when the Script Window is active Option AIView Clear 87 PD45 User s Manual 93 Executing Script Commands in Batch M ode You can execute script commands in batches To do so use an editor to write the commands to be executed in a script file Script files takethe scr attribute Script files are opened from the Script Window Click the Open button on the Script Window toolbar When the file selection dialog box opens select the script file to be executed Run Step pen Close Log0n Log0ff View Clear Click the Open button to open a script file You can also select the following from the PD 45 Window menu when the Script Window is active Option gt Script gt Open The file list in the File Selection dialog box starts with files with the scr attribute How
45. ame no matter which window is active These are called basic menus and provide the items for the basic operation of PD45 and debugging Below welook at the functions of each item on the basic menus The functions of the items on the extended menus are described under the respective windows 18 Window function of PD45 1 1 3 1 File operation The File menu in PD45 contains the items required for file operation such as including files saving files and terminating PD45 Download Download target program Load Module Download machine language data and Shift F 1 debugging information Memory I mage Download only machine language data Symbol Download only debugging information 1 1 3 2 Editing The Edit menu in PD45 contains the items required for editing operation such as character strings copy paste and search Edit Copy character strings specified to clipboard Paste character strings of clipboard 1 1 3 3 Display The View menu in PD45 contains the items required for switching display of the tool bar and status bar View Switch display or non display of tool bar Poe Switch display or non display of status bar ERE IS 1 1 3 4 Setup The Environ menu in PD45 contains the items required for setting up the operating environment 19 PD45 User s Manual 1 1 3 5 Debugging Basic The Debug menu in PD45 contains the items for basic debugging such as starting and stopping and one s
46. an use in expressions e The priority of operators is indicated by the level level 1 being the highest and level 8 the lowest If two or more operators have the same level of priority they are evaluated in order from the left of the expression Priority level Monadic positive monadic negative Level 2 monadic logical NOT Dyadic multiply dyadic divide dyadic exclusive OR Dyadic comparison 125 PD45 User s Manual 3 Error Messages Thefollowing tables list the PD45 error messages Can t open more name window The maximum number of the specified window is already open Can t Create name window Cannot open the specified window There may not be sufficient memory Quit other applications or increase memory Can t open name window when the target Stop the target program then open the program is running window Valueis out of range The specified address exceeds the MCU s maximum address Can t change view mode The display starting address does not match the first line of the source file or the specified source file cannot be found Can t find source file filename Specified source file was not found Use the PATH command or the Environ gt Path menu items to specify the directory containing the source file Can t find search string name The specified search string was not found between the starting position and end Line number of Source File filename is over Because the source
47. ange the break mode to H W break The BM button toggles between S W break and H W break saj alaja sj js suis Click the BM button If the current break mode is H W break you will find that the break mode shown in the right part of the PD45 window s status bar is changed as follows BM SA The break mode can also be switched over using the following commands on the PD45 window menu Debug Break Mode 68 Hardware Breaks 4 2 Openingthe H W Break Point Setting Dialog Box Click the HW button on the PD45 Window toolbar Press function key Shift F 7 to open the hardware breakpoint setting dialog box Haj allaj s she simu Click the HW button You can also open the H W Break Point Setting dialog box by selecting the following from the PD45 Window menu Debug gt Break Point gt H W Break Point 4 3 Setting Address Breakpoints The PC4504 emulator allows you to set two address breakpoints Setting an Address Break Point To set an address break point click on any of buttons A1 to A2 in Address Event group in the H W Break Point Setting dialog box to open the Address Break Point Setting dialog box then set the address break point Address Event se AN jua After setting an address breakpoint click the OK button in the H W Break Point Setting dialog box to enable the hardware break you have set To break execution on fetching a command at the specified address The
48. anted 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 b
49. ave 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 434 NEC S AS C 7 D Im on lt D C M3T PD45 V 1 00 User s Manual Emulator Debugger for 4500 Series R Electroni enesas E Mem Rev 1 00 2003 10 www renesas co Active X Microsoft MS DOS Visual Basic Visual C Windows and Windows NT are either registered trademarks or trademarks of Microsoft Corporation in the United States and other countries IBM and AT are registered trademarks of International Business Machines Corporation Intel and Pentium are registered trademarks of Intel Corporation Adobe Acrobat and Acrobat Reader are trademarks of Adobe Systems Incorporated All other brand and product names are trademarks registered trademarks or service marks of their respective holders Keep safety first in your circuit designs Renesas Technology Corporation and Renesas Solutions Corporation put the maximum effort into making semiconductor products better and more reliable but there is always the possibility that trouble may occur with them Trouble with semiconductors may lead to personal injury fire or property damage Remember to give due consideration to safety when making your circuit designs with appropriat
50. bling after the command gt Assemble assembl e address On execution of the Assemble command the command input area of the Script Window changes to a mnemonic input field See Section 9 1 Executing Script Commands in the Basic Operation for details of how to use script commands Enter the mnemonic for line assembling The following shows the Script Window when waiting for a mnemonic to be input STOP pen Close Log0n Log0fft View Clear loerpe Log 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0001E0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0001F0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ADDRESS 0 1 2 3 4 5 6 7 8 9 A B C D E F ASCII 000200 00 ba f0000 ADDRESS LABEL PROGRAM n 0000 4 gt db 100 200 B map db 100 200 z 11 gt Enter command data Mnemonic input field To exit the line assemble mode Specify Enter in the mnemonic input area The Script Window changes back to the status in which it waits for a script command to be entered 92 Miscellaneous 11 2 Searching for Character Strings in Target Program You can search for character strings in the target program when the Program Window or Source Window is active Make sure the target Program or Source Window is active then select the following from the PD45 Windo
51. bug1 03F 0 O3FF 00 00 Measurement results in percentage Deleting a Measurement Address Range in Coverage Measurement Area Click on a line of a specified measurement address range in the Coverage Window that you want to be deleted Then click the Delarea button 2 Click the delarea button Refresh C1 ear Addarea Delarea 1 1 Click the delete area 2 2 Referencing Coverage Measurement Results at Source L evel Double dick on a line of measurement address range specified in the Coverage Window The Coverage Source Window will appear Refresh Clear Addarea Delarea 1 Double click The lines that have been executed by the target program are displayed in light blue and those not executed are displayed in gray 102 Coverage measurement Source org 0 0 lstart include sample inc Load INC File Executed lines light blue a nexecuted lines gray z 2 3 Referencing Coverage Measurement Results at Address L evel Use a script command CoVerage abbreviated CV for this purpose For details on how to use script commands refer to Section 9 1 Executing Script Commands in the Basic Operation Part of this manual Thefollowing shows reference examples where measurement results are referenced for accessed addresses in the address range of 000016 to O3F F 16 eToreference coverage measurement results one byte at a time in the ad
52. by PD45 and cannot be directly created or edited by the user stores information about the environmental setup of PD45 The filename is pd45 ini The environmental setup file is saved to the Windows directory the directory in which you have installed Windows 32 Output Files PD45 outputs the following files 3 2 1 Intel HE X format Files The Intel HEX format files store machine language data These files which are saved using PD45 s upload function take the attribute hex Files saved in the Intel HEX format can be downloaded by PD45 3 2 2 Disassemble Files Disassemble files store the results of disassembling program memory These files which are reference text files take the attribute txt Disassemble files cannot be reassembled or downloaded 32 3 LogFile The log file is a text file containing the results of executing the script commands This file which takes the attribute log contains the results from the logon point to the logoff point 32 4 View File The view file is a text file that contains the contents of the script window In PD45 the last 1000 lines of the results of executing the script commands are stored in the view buffer The view file which takes the attribute viw contains the contents of the view buffer PD45 User s Manual MEMO Setup 10 Setup 1 1 Installation See the Release Notes provided with the product for how to install PD45 1 2 Starting PD45 Follow theinstructio
53. can also press F 5 j s 9 2 m jm sw pw ev Click the Return button You can also return to a calling routine by selecting the following from the PD45 Window menu Debug gt Return To stop return execution Click the Stop button on the toolbar You can also stop return execution by selecting the following from the PD 45 Window menu Debug gt Stop 2 4 Program Execution to Specified Location Torun the target program to the specified position known as Come Execution first click the line at which you want the program to stop in the program display area of the Program Source Window to specify the cursor position Note however that Come Execution cannot be carried out if the cursor is positioned on a linein which no software breakpoint can be set comment lines and data definition lines etc _ BRK Source mui start a loop include sample inc Load INC File NOP BM subl NOP BM sub2 NOP NOP LZ zxy000 Cursor position set by clicking the mouse To start Come execution click the Come button on the PD45 Window toolbar You can also press F 2 EZEA amp 82 4 B 9 ssr sw Hw BM Click the Come button You can also start Come execution by selecting the following from the PD45 Window menu Debug gt Come 61 PD45 User s Manual Note In Come execution the breakpoints specified for software and hardware breaks are ignored To stop come execution
54. command is executed Y ou can open up to 10 Dump Windows You can use the Dump Windows to modify the contents of memory and alsoto fill and move specified blocks of memory 1 6 1 Structure of Dump Window The Dump Window has two display modes RAM and ROM The diagrams below show the dump Window s screen structures in the RAM display and the ROM display modes 1 6 1 1 Structure of Memory Window in RAM Display Mode 74 Dump Window RAM ROM Toolbar nnn Nn nnmn mn Nn SS T 7171 71 071 nn nn mn m c go p baa Du u Da z Ba z Da Nn a Eo Tn Ome au Daa Du s Da a Da z Da g Da z Du n7 g Ba a OR TT CTI TI TI TI TI n mn nmn nmn n oj nnmnnn Nn nnmn mn neS nnmnnn TNn TNn Nn TNn Nn mn Ne nnmmmmmmm mm gt TT 7T TI o Dims u Tir o as o ee ee nnmnnn Nnnn n TI nmn Sj nnmnnn TP Nn Nn TNn TI TI oye i ee nn n nmn T3 T2 n oe CBE TI T TI TI TI TNn TNn C2 TN o TT C2 TV TI TI TI TI TI TI TI TI 2 nnn Nn nmn mn TH DMUANNANNANNNN Of Address display area Data display area e Double click the address display area to change the display RAM starting address Doubleclick the memory display area to change the contents of memory 1 6 1 2 Structure of Memory Window in RAM Display Mode 74 Dump Window RAM ROM Address
55. cter constants Operators The following describes the respective elements 2 2 2 Constants You can use binary octal decimal or hexadecimals The prefix or suffix symbol attached to the numerical value indicates which radix is used Suffix o0 bB Examples OxAB24 31234 12340 9010010 AB24h 10010b You can only specify 96 when the predetermined radix is hexadecimal f you are inputting a radix that matches the predetermined radix you can omit the symbol that indicates the radix exduding binary Usethe RADIX command to set the predetermined value of a radix However in the cases shown below the radix is fixed regardless of what you specify in a RADI X command LineNo No of executions No of passes No of limits 122 Writing Script Files 2 2 3 Symbols and labels You can include symbols and labels defined in your target program or symbols and labels defined using the Assemble command You can include alphanumerics the underscore period and question mark in symbols and labels However do not start with a numeric Symbols and labels can consist of up to 255 characters Uppercase and lowercase letters are unique You cannot include the assembler ASM 45 pseudo instructions macro instructions operation code or reserved words ORG IF etc You cannot use strings that start with two periods for symbols or labels Note 1 Priority levels of labels an
56. cture of Program Window in Source Display Mode The source display mode is provided for debugging at the source level You can check the source files of the target program in source display mode File name display Toolbar Current program counter include sample inc Load INC File NOP BM subl NOP BM NOP NOP sub2 Sourceline Software breakpoint display setting area display area Address display area Program display area e The line No display area and address display area can be displayed or hidden by selecting or cancelling Option gt Layout gt Line Area and Option gt Layout gt Address Area Note that by default the address display area is hidden Double click the line No display area to change the display source file Double click the address display area to change the display starting address or the display starting line 22 Window function of PD45 1 2 1 2 Structure of Program Window in Disassemble Display Mode The disassemble display mode is provided for debugging at the instruction level You can check the results of disassembling the target program in disassemble display mode Toolbar ES Prog ow View SRC DIS Lab Address BRK Obj 0100 02 00 subl 0102 02 02 sub2 0 zxy000 00 xy00 0104 02 04 put mem 1 zxylll Address display Object code display area area Program display area Software breakpoint display setting area 99 p ay The
57. d symbols The conversion of values to labels or symbols and vice versa is subject to the following levels of priority Conversion of ROM address values 1 Labels 2 Symbols Conversion of RAM address values 1 ZXY symbols 2 Bitsymbols Conversion of data values 1 Symbols 2 Labels 2 2 4 Macro Variables Macro variables are defined by assign statements in the script file See Section 2 1 Structural Elements of a Script File in the Reference part for details Precede variables with for use as macro variables You can spedfy alphanumerics and or the underbar in the variable name following the percent sign 96 However do not start the names with a numeric You cannot use the names of registers as variable names Uppercase and lowercase letters are differentiated in variable names You can define a maximum of 32 macro variables Once defined a macro variable remains valid until you quit PD45 Macro variables are useful for specifying the number of iterations of the while statement 123 PD45 User s Manual 2 2 5 Register variables Register variables are used for using the values of registers in an expression Precede the name of the register with to use it as a register variable Use the following format register name You can use the following registers PC A B Z Y E D SP CY Uppercase and lowercase letters are not unique in register names Y ou can specify either 2 2 6 Memory
58. dick the Break button in the PD45 Window toolbar tle 2 4 m E sw Hw BM Click the Break button You can also set a breakpoint by selecting the following from the PD 45 Window menu Debug gt Break Point gt Break The mark on the lines set as software breakpoints changes from to B in the breakpoint display area of the window Y ou can cancel a software breakpoint by again dicking the line indicated by B then dicking the Break button 67 PD45 User s Manual 4 Hardware Breaks 1 Use hardware breaks to break target program execution when memory is accessed There are two types of hardware breaks an address break where a break occurs when execution of a specified address F etch is detected and a trigger break where a break occurs when the rising or falling edge of a signal input from an external trace cable is detected Address and trigger breaks can be used in combination The method of setting hardware break points differs according to the emulator you are using See section 1 12 1 Structure of H W Break Point Setting Dialog Box for settings other than those discussed below In addition to the above there are several other hardware breaks available a break for failure such as a stack overflow or a break based on a timer count Refer to Section 1 Hardware Break 2 in the High end Debugging Part of this manual 4 1 Enabling H W Breaks Click the BM button on the PD45 window s tool bar to ch
59. display area Command history display area Script file display area The Script Window has a view buffer that stores the results of executing the last 1000 lines The results of execution can therefore be stored in a file view file without specifying a log file When ascript file is opened the command history area changes to become the script file display area and displays the contents of the script file When script files are nested the contents of the last opened script file are displayed The script file display area shows the line currently being executed in inverse vide When a script fileis open you can invoke script commands from the command input area provided the script fileis not being executed 34 Window function of PD45 1 8 2 Script Window Toolbar button button Closes script file Clears view buffer button button Executes script file Opens log file Run Step Open Close LogOn LogzOff View Clear button Opens script file button Saves view buffer button button Step executes script file Closes log file 1 8 3 Extended Menus in the Script Window When the Script Window is active in the PD45 main display area the Option menu contains the following items Script file operations Open script file Run script file Stop execution of script file One step execution of script file Close script file View buffer operations Save view buffer file Clear view buffer Log file operations Op
60. dress range of 000016 to O3F F 16 gt CoVerage LOCAL 0000 03FF eToreference coverage measurement results four bytes at a time in the address range of 000016 to O3F F 16 gt CoVerage GLOBAL 0000 03FF 24 Toinitialize the previous results of coverage measurements Click the Clear button on the Coverage Window tool bar 1 Click the lU button Refresh Clear Addarea Delarea Coverage measurement results can also be initialized using a CoVerage command Enter the following to initialize the results of coverage measurements gt CoVerage CLEAR 103 PD45 User s Manual MEMO 104 Reference 105 106 Table of Script Commands 1 Table of Script Commands 1 1 Input Format e The format for entering PD45 script commands is as follows l Insert one or more spaces or tabs between the command and its parameter s 2 You can use uppercase and lowercase letters and numerics for the command Description of symbols used in command format Command format XXXX XXXX must be input XXXX XXXX is optional X1 X2 X3 Oneof X1 X2 or X3 must be input X1 X2 X3 Input can be omitted or you can input one of X1 X2 or X3 107 PD45 User s Manual 1 2 Tables of Commands In the following tables of commands commands shown with half tone screening can be executed at run time The abbreviated forms of commands are shown in parenthesis after the full command See the PD45 on line help for details of
61. e Time Measurement Point Setting dialog box is used to set a time measurement point 1 14 1 Structure of Time measurement Point Setting Dialog Box Measurement Point Measurement mode setting area Mode l From MP Start fo MPEnd Source Measurement count source setting area 0100 MP Start End address of measurement setting area Start address of measurement setting area e Following eight modes of time measurements are available to choose from e Following two types of time measurement count sources are available to choose from TIME Use the PC4504 s timer 16 MHz fixed to measure time CYCLE Use the target MCU cycles to measure ti me 48 Basic Operation 49 50 Loading and Displaying the Target Program 1 Loading and Displaying the Target Program 1 1 Downloading To download the target program select the following from the PD 45 Window F ile gt Download gt Load module The File Selection dialog box opens Select the target program from the File Selection dialog box The file to be downloaded is in the HEX files have the filename extension HEX You can also press Shift 1 to open the File Selection dialog box for downloading files 1 Find the directory BELEE 2 Double dick the file name INEN pa OOOO NN OERD a e Note If you download the HEX file but the Program and Sou
62. e Window to open the Cycle dialog box Input the number of cycles You can also open the Cycle dialog box from the PD45 Window menu Option gt View gt Cycle 72 Real Time Tracing To search for a specified address Double click the address area in the Trace Window to open the Address Search dialog box Input the address to search You can also open the Address Search dialog box from the menu in the PD45 Window Option gt View gt Address Search To check the status of the external signal Connect the external trace signal cable supplied with the PC4504 emulator The status of the external signal is displayed in the 0123 area of the Trace Window 5 2 To check executed Instructions Click the DIS button on the toolbar in the Trace Window to switch to disassemble display mode Click DIS to change to disassemble mode SRC wad Back Step Come Range 4 95 0000 Area Break File Cycle 0053 Address 0001 5 loop 0 0100 02 00 subl subl 0102 02 02 sub sub2 T M e gt lt gt c O 605 M2 OAH OO O0 014 WMH Use the Up and Down cursor keys the Page Up and Page Down keys or scroll using the vertical scroll bar to check the disassemble data outside the displayed area To change the reference position by specifying the trace cycles Double click the cycles area in the Trace Window to open the Cycle dialog box Input
63. e measures such as i placement of substitutive auxiliary circuits ii use of nonflammable material or iii prevention against any malfunction or mishap Notes regarding these materials These materials are intended as a reference to assist our customers in the selection of the Renesas Technology product best suited to the customer s application they do not convey any license under any intellectual property rights or any other rights belonging to Renesas Technology Corporation Renesas Solutions Corporation or a third party Renesas Technology Corporation and Renesas Solutions Corporation assume no responsibility for any damage or infringement of any third party s rights originating in the use of any product data diagrams charts programs algorithms or circuit application examples contained in these materials All information contained in these materials including product data diagrams charts programs and algorithms represents information on products at the time of publication of these materials and are subject to change by Renesas Technology Corporation and Renesas Solutions Corporation without notice due to product improvements or other reasons It is therefore recommended that customers contact Renesas Technology Corporation Renesas Solutions Corporation or an authorized Renesas Technology product distributor for the latest product information before purchasing a product listed herein The information described here may contai
64. e or false The following shows the format to be used if expression statement 1 else statement 2 endi f the expression is true other than 0 statement 1 is executed If false 0 statement 2 is executed You can omit the else statement If omitted and the expression is false execution jumps tothe line after the endi statement if statements can be nested up to 32 levels 2 1 4 Loop Statements while endw and Break Statement In loop statements execution of a group of statements is repeated while the expression is true Thefollowing shows the format to be used while expression statement endw e ifthe expression is true the group of statements is repeated If false the loop is exited and the statement following the endw statement is executed You can nest while statements up to 32 levels Use the break statement to forcibly exit a while loop If while statements are nested break exits from the innermost loop 120 Writing Script Files 2 1 5 Comment statements You can include comments in a script file Use the following format Notes character string Write the statement after a semicolon You can include only spaces and tabs in front of the semicolon Lines with comment statements are ignored when the script file is executed Y ou cannot indude comments on the same lines as script commands You can nest script files up to five levels You can nest if statement
65. e set using the same method as hardware breaks in the PC4504 In contrast to hardware breaks in which target program execution stops when the specified conditions are satisfied the locations at which the specified conditions are satisfied become the yardsticks for real time tracing the program does not stop Thetrace point is said to have been passed when the specified condition is satisfied Real time tracing is continuous and you can always check the results of the trace as Soon as the target program stops Setting trace points For details about the Setting trace points refer to page 112 Setting break points in the reference Function Part of this manual 115 PD45 User s Manual Setting the area for real time tracing Use format 6 Enter the following to check the results of the trace up to the set trace point TracePoint AREA BEFORE You can check the 4K cycles before the trace point Enter the following to check the results of the trace either side of the trace point TracePoint AREA ABOUT You can check the 2K cycles before plus the 2K cycles after the trace point Enter the following to check the results of the trace after the trace point TracePoint AREA AFTER You can check the 4K cycles after the trace point Enter the following to check the results up to when the target program stops TracePoint AREA BREAK You can check the 4K cycles up to when the target program stops This is the default setting when you start
66. each command To display on line help enter the following from the PD45 Window menu Help gt Index 1 2 1 Execution Commands Command format Pass Count Step execution at sourceleve y Step T Step number of steps Step execution at source level Stepl nstruction Steplnstruction number of steps Step execution at machine language level OverStep TM OverStep number of steps Over step execution at source level OverStepl nstruction OverStepl nstruction Over step execution at machine language level number of steps Return execution at source level Returni nstruction Returni nstruction Return execution at machine language level Reset Z RESET Reset the target program 1 2 2 File Operation Commands Command Command format Summary Load filename hex sym Download HEX SY M file Upload StartAddress E ndAddress Output contents of specified memory area to hex file Filename 1 2 3 Register Operation Commands Command Register X 1 Register RegisterN ame 1 Check value of specified register 2 Register RegisterN ame Value 2 Set value in specified register 108 Table of Script Commands 1 2 4 Memory Operation Commands Command Command format Summary Dump D Dump StartAddress E ndAddress Display contents of ROM memory DumpNibble DI DumpNibble StartAddress EndAddress Display contents of RAM memory Change contents of ROM memory at specified address Enter to stop Change contents
67. ecify cyde Address Search Search cyde by specifying address Source Change by specifying source file Mode Change display mode Select bus mode Disasm Select disassemble mode Source Select source mode Address Area Turn on off address area Trace Search trace results Forward Search forward in direction of execution Backward Search backward in reverse direction of execution Step Search one step Step search Come Search specified line Come search Layout Set layout Line Area Turn on off line No area 40 Window function of PD45 1 10 Coverage Window The Coverage Window is used to display the results of measurements performed by the coverage measurement function This window shows the coverage measurement result of a given address range in percentage 1 10 1 Structure of Script Window Tool bar 0000 O01F 0100 0121 03F 0 O3FF Label display area Measurement result display area Measurement range display area The coverage measurement result of a given address range is displayed in percentage When you double click on any desired line a Coverage Source Window opens that allows you to check each source line to see if they have been executed or not e The measurement result display area is changed to during target program execution If you want to update the display press the button on the tool bar 1 10 2 Coverage Window Toolbar button Update the coverage meas
68. ecimal Del button Deletes specified watch point Adds a watch point bit Displays watch point in binary button Displays watch point in hexadecimal Del All button Deletes all watch points 17 3 Extended Menus in the ASM Watch Window When the ASM Watch Window is activein the PD45 main display area the Option menu contains the following items Register delete watch point Register watch point Ctrl A Register bit level watch point Ctrl B Set new data to be written to selected watch Ctrl S point Delete selected watch point Ctrl D Delete all watch points Change display radix Display value at selected watch point in binary Display value at selected watch point in decimal Display value at selected watch point in hexadecimal Layout Set layout Address Area Turn on off address bit area Size Area Turn on off data size area 33 PD45 User s Manual 18 Script Window The Script Window displays the execution of text format script commands and the results of that execution Script commands can be executed using a script fileor interactively Y ou can also write script commands in the script file so that they are automatically executed The results of script command execution can also be stored in a previously specified log file 18 1 Structure of Script Window Toolbar Script file name display area Log file name display area E Script Window Enter Command Command input area Execution result
69. en log file start output to file Close log file stop output to file 35 PD45 User s Manual 1 9 Trace Window The Trace Window displays the results of the realtime trace function execution history of the PC4504 emulator The Trace Window supports the following three display modes which are selected using the buttons on the Trace Window toolbar Bus mode Allows you to check bus data for each cycle In bus mode the trace contents are displayed following the execution path The trace results can therefore be checked by scrolling using the vertical scrollbar Disassemble mode The executed instructions are displayed in disassembled format In disassemble mode the trace contents are displayed following the execution path The trace results can therefore be checked by scrolling using the vertical scrollbar Source mode The execution paths can be searched for at the source line level n source mode the contents of the executed source file are displayed as is in contrast to being displayed following the execution path The trace results can therefore be checked using the buttons on the toolbar The Trace Window displays the results of the trace immediately the realtime trace is completed Because the realtime trace is incomplete immediately after starting PD45 or immediately after running the target program the Trace Window remains blank until the trace is completed You can use trace points to specify when the trace s
70. ever you can enter a full filename including the attribute directly into the filename input area to open a script file with an attribute other than scr Youcan nest script files up to 5 levels When a script file is read in the command history display in the Script Window changes into the script file display To execute the contents of the script file as a batch dick Run on thetoolbar of the Script Window Batch execution starts and the script file is then closed after all the commands have been executed Run Step pen Close Log0n Loz0ff View Clear Click the Run button to execute all the commands in the script filein batch mode You can also select the following from the PD45 Window menu when the Script Window is active Option 2 Script 2 Run 88 Script Commands To stop execution of a script file Click the STOP button displayed in the Running script dialog box Execution of the script file stops before the next line Toindependently execute each command in a script file Click the Step button on the Script Window toolbar for step execution of the script A command is executed each time you dick the Step button Run Step pen Close Log n LogOff View Clear Click the Step button for step execution of the script file You can also select the following from the PD45 Window menu when the Script Window is active Option gt Script gt Step To dose a script file
71. f the trace point the cycle at which the realtime trace starts ends cycle 0 You can double click the cycles display area to change the No of the cycle to be displayed Address display area Displays the Address per instruction in hexadecimal format You can search the address being displayed by double clicking on the address display area 38 Window function of PD45 1 9 3 Screen Configuration in Source M ode Range of the results Name of source file Address corresponding to cycle area Trace area Current cycyles Toolbar Step CRa include sample ine Load INC File NOP BM sub NOP BM sub2 NOP NOP Line No display area Source file display area Reference cyde position display area Address display area Toolbar In source mode all buttons on the toolbar except the Come button are available The Come button is available when you dick on a line in which a Come search can be performed Line No display area Displays the line No in the source file The line No display area can be displayed or hidden by selecting or cancelling Option Layout Line Area Youcan changethe source file being displayed by double dicking on the line area Address display area Displays the Address per line in hexadecimal format The address display area can be displayed or hidden by selecting or cancelling Option gt Layout gt Address Area Note that by
72. files 2 FILE source filename 2 Display specified source file 1 2 13 Utility Commands 2 RADIX 2 8 10 16 2 Set radix for input of constants 2 ALIAS new name command name 2 Define command alias UNALIAS UNALIAS new name Delete specified alias UNALIASALL UNALIASALL Delete all aliases yymmdd day of week and time CD 1 CD 1 Checks the current directory 2 CD directory name 2 Sets the current directory 111 PD45 User s Manual 1 2 14 Supplementation explanation of Script Commands H ardwareBreak H B Setting and Checking Hardware Breaks Input format Format 1 HardwareBreak Format 2 HardwareBreak An address PassCount Format 3 HardwareBreakArea An StartAddress EndAddress PassCount Format 4 HardwareBreak T H L PassCount Format 5 HardwareBreak AND OR SEQ An T 3L An T L An T Format 6 HardwareBreak MODE BP SO TE TF NO TO TC DC L TIME CYCLE COUNT The following table shows the values that can be specified for An An Al A2 Function Hardware breaks allow you to stop target program execution detection of an instruction fetch You can set up to 2 address and one external trigger break To use hardware breaks use the BreakM ode command as shown below to enable the break Hardware can be abbreviated to H BreakM ode Hardware Setting Break Points Checking hardware break settings Use format 1 Enter the following to display the co
73. he status of the data bus Areg Show the content of the Accumulator e Skip Show the status of the instruction skip skipped instruction is indicated by 1 e Int Show the status of the interrupt interrupt is indicated by 1 e So Show the status of the stack overflow underflow stack flow is indicated by 1 37 PD45 User s Manual e 0123 Shows the status of the 4 bit external signal High level 1 Low level 0 1 9 2 Screen Configuration in Disassemble M ode Range of the results of realtime trace Address corresponding to cycle area Trace area Current cycyles Toolbar 0100 02 00 subl 0102 02 02 sub2 m fy Status display area Label display area Disassemble display area Cycles display area Object code display area Address display area Toolbar In disassemble mode only the display mode buttons lt BUS gt DIS and SRC are operative However if no debugging information has been downloaded the lt SRC gt button is also inoperative Status display area Displays the number of status per cycle e faskip occurs Sk is displayed to the left of Cycles display area ifa stack overflow or underflow occurs So is displayed to the left of Cycles display area e F aninterrupt occurs HNTERRUPT is displayed Cycles display area Displays the number of cycles per line The cycles are displayed in decimals either side o
74. ilename You can specify any filename and attribute If you specify an existing filename that file is overwritten 1 Specify the starting address 2 Specify the end address Memory Save Area 00000 E Refer Cancel 3 Specify the name of the file to be saved 4 Click the OK button 14 Continuing to Display a Selected Program Position The Program Window always displays the target program at the position of the program counter and you cannot therefore choose to always display the same position You can do so however in the Source Window To open the Source Window select the following from the PD45 Window menu Window Source Window 52 Loading and Displaying the Target Program 15 Changingthe Program Display Position You can display the source program in the Program Window and in the Source Window To change the display position of the Program or Source Window click on the View button in the toolbar of the Program or Source Window to open the Disp Area dialog box You can only change the display position in the active window View button iew SRC DIS Click the View button to open the Disp Area dialog box button gt Source Change the File F unction level Address button Change the PC Address Line No level button Change the program counter If no debugging information has been read in no changes can be made at the file level o
75. ister Window Stack Pointer Carry Flag D Register E Register Data Pointer Contents of RAM specified by data pointer Y Register X Register Z Register 1 4 2 Extended Menus in the Register Window The Register Window is not exist the Option menu 27 PD45 User s Manual 15 Memory Window The Memory Window displays the contents of contiguous memory in address symbol and data contents of memory formats The display is updated after each command is executed Data can be displayed in binary decimal and hexadecimal You can open up to 10 Memory Windows Y ou can usethe Memory Windows to modify the contents of memory and alsoto fill and move specified blocks of memory 15 1 Structure of Memory Window The Memory Window has two display modes RAM and ROM The diagrams below show the Memory Window s screen structures in the RAM display and the ROM display modes 1 5 1 1 Structure of Memory Window in RAM Display Mode z Mem T RAM ROM Bin Dec Hex 4 T oolbar Address Symbo h 00 Address display Data display area area Symbol display area e Double dick the address display area to change the display RAM starting address e Double click a symbol or the memory display area to change the contents of memory 1 5 1 2 Structure of Memory Window in ROM Display Mode RAM ROM Bin Dec Hex 4 Toobar 00 00
76. it 1 111 zxylll 8 Bin 10010 0111 i Expression display area Data display area Radix display area Address Bit No display area Data length display area The cursor position is indicated by a red mark in the address display area and data display area Click either area or use the up cursor and down cursor keys to move the cursor Double click the radix Rdx display area to switch the current radix for the data displayed in that area as follows gt hexadecimal gt decimal gt binary gt hexadecimal gt e Information about set watchpoints is stored in the Init file when you close the ASM Watch Window or exit PD45 When you re open the ASM Watch Window the previously set watch points are automatically restored n the case of the ASM Watch Window the addresses of any previously set watchpoints are recalculated when you download a target program and the memory referenced using the new addresses Thus there is no need to respecify the watchpoint addresses even when they change as a result of changes in the program When the addresses of inactive watchpoints indicated by not active gt are recalculated and the result is a valid address the watchpoints automatically become active again 32 Window function of PD45 1 7 2 ASM Watch Window Toolbar Add button Adds a watch point address Set button button Sets specified watch point Displays watch point in d
77. k Trace Full if you want the program to break on completion of a write to trace memory tems in the Break Mode group can be specified simultaneously 13 ToBreak Program Using a Timer A timer can be used to cause the program to break with respect to an elapse of time There are following three types of timer based break conditions 1 Time out TimeOut The program breaks when it does not reach a breakpoint within a specified time 2 Time count TimeCount The program breaks when a specified time has elapsed after it started executing 3 Delay count DelayCount The program breaks when a specified time has elapsed after it reached a breakpoint There are two types of count sources with which to measure a time a timer mode where the emulator s internal timer 10 us fixed is used to count and a cycle mode where the MCU cycles are used to count Choose one of these two modes depending on the specified content of a timer value Note that a count value can be specified in the range of 210 to 6553510 The count source times a count value is the timer s specified time cycles 98 Hardware Breaks 2 To break program when loop routine period exceeded a specified time Usethe timer s TimeOut function for this purpose This method is effective for checking whether a routine that loops at a certain interval has exceeded a specified time for some reason e g interrupt Use the H W Break Point Setting dialog box to make this
78. lled and the fill data Start Address 1 Specify the starting address of the area to be filled 2 Specify the ending address of the area to be filled 3 Specify the fill data End Address Data Cancel 4 Click the OK button To move the contents of a specified area to another area With the Memory Window or Dump Window active select the following from the PD45 Window menu Option 2 Debug 2 M ove When the Move dialog box opens enter the starting and ending addresses of the source area and the starting address of the destination area Start Address 4 1 Enter the starting address of the source area End Address 4 2 Enter the ending address of the source area Move Address f 3 Enter the starting address of the destination o e 9em T 4 Click the OK button 84 Script Commands 9 Script Commands 9 1 Executing Script Commands Script commands are executed from the Script Window To open the Script Window select the following from the PD 45 Window menu Window 3 Script Window Enter script commands in the Command input area in the Script window Click the Command input area to locate the cursor in that field then enter the script command After executing the command the results are output to the execution result display area zs Script Window lolx Open Log0n View Clear Script Log Execution resu
79. lt display area Let d w Command history display area Script file display area Enter Command Command input area Tore execute a previously executed command The history of command execution is displayed in the command history display area Double click the command you want to execute again To quit a script command that is executing Click the STOP button which is displayed only while the command is being executed 85 PD45 User s Manual 9 2 Logging the Results of E xecuting Script Commands Use the logging function to log the results of executing script commands Before executing the script command dick the LogOn button on the toolbar of the Script Window Clicking the LogOn button opens the File Selection dialog box Specify the name of the file to be saved The default file attribute if omitted is log Run Step pen Close LogOn Loz0ff View Clear Click LogOn to start logging You can also select the following from the PD45 Window menu when the Script Window is active Option gt Log gt On f after starting PD45 you open and dose a log file then re open it the new data is appended to the data already in that file However if you re open a log file that was created before starting PD45 the contents of that file will be overwritten e Thefile list in the File Selection dialog box starts with files with the log attribute However you can ente
80. n technical inaccuracies or typographical errors Renesas Technology Corporation and Renesas Solutions Corporation assume no responsibility for any damage liability or other loss rising from these inaccuracies or errors Please also pay attention to information published by Renesas Technology Corporation and Renesas Solutions Corporation by various means including the Renesas home page http www renesas com When using any or all of the information contained in these materials including product data diagrams charts programs and algorithms please be sure to evaluate all information as a total system before making a final decision on the applicability of the information and products Renesas Technology Corporation and Renesas Solutions Corporation assume no responsibility for any damage liability or other loss resulting from the information contained herein Renesas Technology semiconductors are not designed or manufactured for use in a device or system that is used under circumstances in which human life is potentially at stake Please contact Renesas Technology Corporation Renesas Solutions Corporation or an authorized Renesas Technology product distributor when considering the use of a product contained herein for any Specific purposes such as apparatus or systems for transportation vehicular medical aerospace nuclear or undersea repeater use The prior written approval of Renesas Technology Corporation and Renesas Solutions Cor
81. n that differ from the H W Break Point Setting dialog box Set Cancel Now Address Event Status Address Event Address Label Pass picis AT DUDU start 00001 Set All j A2 0102 sub 00015 r Trigger Event c Combination Type High Clow And C Or C Sequential Pass 00001 Ist AL CA2 CT 2nd This area differs from the H W Trace Range Break Point Setting dialog box r Timer NoU z Mode NotUse E a nt 2 65598 Source TIME 10us 00002 Before Break C Before Trace About Trace C After Trace 1 13 1 1 Setting the trace area The Trace Point Setting dialog box differs from the H W Break Point Setting dialog box in that the break condition setting area Break Mode in the latter is a trace range setting area Trace Range in theformer For thetracerange setting area you can specify a trace range with respect to a trace point Thetrace area to be stored in memory varies with the trace range specified here Befare Break Stores the 4K cycles 4095 to 0 cycles to the point at which the target program stops Stores the 4K cycles 4095 to 0 cycles to the point at which the trace point iS passed Stores the 2K cycles 2048 to 2047 cycles either side of the trace point Stores the 4K cycles 0 to 4095 cycles of trace data after the trace point 47 PD45 User s Manual 1 14 Time Measurement point Setting Dialog B ox Th
82. ns below to start PD45 Click the Windows start button then select program P RENESAS TOOL S PD 45 V x xx Release x gt PD 45 This operation starts PD45 the emulator debugger 11 PD45 User s Manual 13 PD45Setup When you start PD45 the Init dialog box is displayed allowing you to set up the operating environment 13 1 Init Dialog Box Screen Configuration Area for spedfying script fileto be run at start up L Refer a gt I F Serial Port COM1 M TEA PT E Area for setting up communications interface TAB 1 32 Area for setting default tab values C A Font FixedSys Font Area far setting size of default font lr Size 11 Iv Resume I AutoDownLoad Switches Auto Downloading ON OFF when restarting Iv Next Hide Switches Resume ON OFF Cancel OK Switches Init dialog box ON OFF when restarting 1 3 2 Environment Setup 1 Specifying the script file to be executed at startup Specify a script file if you want to execute script commands at startup These commands must have been saved as a script file Click the Refer button to open the file selection dialog box then use the mouse to select the script file to be executed at startup The selected script file is displayed after InitFile in the I nit dialog box 12 Setup 2 Setting of the communications interface Specify the communications interface for communication with the emulator
83. ns equipment test and measurement equipment audio and visual equipment home electronic appliances machine tools personal electronic equipment and industrial robots High Quality Transportation equipment automobiles trains ships etc traffic control systems anti disaster systems anti crime systems safety equipment and medical equipment not specifically designed for life support Specific Aircraft aerospace equipment submersible repeaters nuclear reactor control systems medical equipment or systems for life support e g artificial life support devices or systems surgical implantations or healthcare intervention e g excision etc and any other applications or purposes that pose a direct threat to human life You should use the Renesas Electronics products described in this document within the range specified by Renesas Electronics especially with respect to the maximum rating operating supply voltage range movement power voltage range heat radiation characteristics installation and other product characteristics Renesas Electronics shall have no liability for malfunctions or damages arising out of the use of Renesas Electronics products beyond such specified ranges Although Renesas Electronics endeavors to improve the quality and reliability of its products semiconductor products have specific characteristics such as the occurrence of failure at a certain rate and malfunctions under certain use conditions Fur
84. ntents of the hardware break setting H ardwareBreak Stopping program execution on execution of the instruction at the specified address Use format 2 Enter the following to stop execution of the target program on execution of the instruction at address 100h HardwareBreak A1 100 Enter the following to stop execution of the target program on 5th execution of the instruction at address 312h HardwareBreak A1 312 5 To stop the program when an instruction in a specified address range is executed Use formats 3 If you want program execution to be stopped when any instruction at addresses from 100h to 17F h is executed enter the command as follows HardwareBreakArea A1 100 17F 112 Table of Script Commands Use formats 3 If you want the program to be stopped when any instruction at addresses outside the range of 100h to 17F h is executed enter the command as follows HardwareBreakArea A1 17F 100 Use format 4 Enter the following to stop program execution when the trigger signal changes to HIGH HardwareBreak T H Using Multiple Hardware Break Points The PC4504 allows you to set up to two address break points and one trigger break point You can also combine these break point conditions to create more complex break points Use format 5 Enter the following to stop program execution when all conditions for break points A1 A2 and T are satisfied HardwareBreak AND A1 A2 T You can specify the break poin
85. o be Saved sss 75 6 Time Measurement 76 6 1 Checking Program Execution Time sssssssseseeseneneen nennen nennen 76 6 2 Measuring Execution Time of A Selected Address Range ssss 77 7 Checking and Setting Register Data 79 7 1 Checking the Contents of Registers sssssssssseeeeneee nennen 79 7 2 Setting the Contents of Registers sssssssssssseseeeeneen nennen nennen 79 8 Checking and Setting Memory Contents 80 8 1 Checking the Value at a Specified Address sssssssseee 80 8 2 To reference the contents of contiguous addresses ssssssssss 83 8 3 Setting Data at a Specified Address sssssssssseeeeeneen ens 83 9 Script Commands 85 9 1 Executing Script Commands sese eene nennen nnne nnne 85 9 2 Logging the Results of Executing Script Commands ess 86 9 3 Executing Script Commands in Batch Mode sse 88 10 Exiting PD45 91 10 t Exiting P D45 55 c doo aree hir in ent ene ne dee eu eed rt quede eda exeun 91 11 Miscellaneous 92 11 1 Line Assemble ue enira edes nat ume 92 11 2 Searching for Character Strings in Target Program ssseese 93 11 3 Changing Window Proportions esses eene nennen nnne nennen 93 11 4 Displaying the Version of PD45 sssssssssssseseseeeeneen enne nennen nennen 94
86. ode at that line No machine language has been generated at the address corresponding to the specified line 1510 Can t get enough memory 1513 Can tfind source lines which correspond to that address 1514 Can tfind symbol symbol 1515 Can tfind the scopes which include that address 2505 1507 2508 id a514 m ul H o Loading is canceled 1704 Theconnedion with the target isn t created ee 1705 __ Can t connect with the target aaa 1707 TimeOut ERROR A time out error occurred in communication with the target system 1712 Communication ERROR Connection to the target system was lost during communication with the target system 1713 Communication ERROR A communications error occurred while sending data to the target system 1714 Communication ERROR A communications error occurred while receiving data from the target system 131 PD45 User s Manual Wo error messas MotesamfAcim 2200 Cant execitenorecomeinstrudion OOOO o femnas dT S 2202 cant execute moe sepinsirucion OOOO A es 2204 Can t Can t find that address that address 2205 Can t find File filename is an error in the specified filename or a oe to read 2206 Can t Can t find trace data trace data 2402 Start Address value is out of range You specified an ending address that is less a the aden e address 2403 MValueisunder num is under num
87. of RAM memory at specified address Enter to stop Fill F Fill StartAddress E ndAddress SetValue Write specified data to specified ROM address range SetValue StartAddress2 destination address StartAddress2 destination address 1 2 5 Assemble Disassemble Commands Command Command format Assemble A Assemble Address Assemble line by line from specified address DisAssembl e L DisAssemble StartAddress E ndAddress Display result of disassembling specified area LBIT BitSymbd 1 Display bit symbol 2 BIT BitSymbol data 2 Set value of bit showed by specified bit EXPress EXP EXPress assembler expressi on Display value of specified assembler expression 1 2 6 Software Break Setting Commands SoftwareBreak SB 1 SoftwareBreak 1 Display currently set software break points 2 SoftwareBreak address 2 Set software break point at specified address SoftwareBreakClear SBC SoftwareB reakClear address Delete software break point at specified address SoftwareBreakClearAl SBCA SoftwareBreakClearAll Delete all software break points SoftwareBreakDisable SBD SoftwareBreakDisable address Disable software break point at specified address SoftwareBreakDisableAll SoftwareBreakDisableAll Disable all software break points SBDA SoftwareBreakE nable SBE SoftwareBreakE nable Address Enable software break point at specified address SoftwareBreakE nableAll SoftwareBreakE nableAll Enable all software break points SBEA
88. of the PD45 window Time measurement points are set from the Time Measurement Point Setting dialog box The default time measurement mode is 1 From Go to Break in which a duration of time from start of execution till end of execution is measured The measurement count source is TIME i e the PC4504 s internal timer 16 MHz fixed is used to measure a time The Time Measurement Point Setting dialog box is opened by choosing the following commands from the PD45 window menu Debug Measurement Point 6 1 Checking Program Execution Time The measured execution time of the target program is displayed on the status bar of the PD45 window The contents displayed here are updated when the target program has stopped 00 h 00 m 13 s 574 ms 662 us 750 ns BM S W MCU STOP 7 Display the target program s execution time TIME mode Toreference execution cyde Enter the following settings from the Time Measurement Point Setting dialog box Mode 1 From Go to Break zl Source MP Start D100 MP End Cancel 1 Change the measurement count source to CYCLE 2 Click the Set button When the target program is executed after making the above settings the status bar of the PD45 window changes as shown below S 000043E23H pre BM SAW MCU STOP 7 Display the target program s execution time CYCLE mode 76 Time M easurement 6 2 Measuring Execution Time of
89. on 1 5 Memory Window in the Window Functions for details of the Memory Window and Section 1 6 Dump Window in the Window Functions for details of the Dump Window To reference a ROM address Click the ROM button on the Memory or Dump Window tool bar RAM ROM So Click the ROM button To reference a RAM address Click the RAM button on the Memory or Dump Window tool bar RAM ROM hoc Click the RAM button 8 3 Setting Data at a Specified Address Data can be set a specified address from the Memory or Dump Window The type of memory to which data is set depends on the current display mode of the active window Data is set to RAM memory when the display mode is RAM or ROM memory when the display mode is ROM To change data at a specified address With the Memory Window or Dump Window active select the following from the PD45 Window menu Option gt Debug gt Set When the Set dialog box opens enter the address to be changed and the new data 1 Specify the address 2 Specify the new data 3 Click the OK button 83 PD45 User s Manual You can also double click the data display area in the Memory Window or Dump Window to open the Set dialog box Tofill a specified area with data With the Memory Window or Dump Window active select the following from the PD45 Window menu Option gt Debug gt 1F ill When the Fill dialog box opens enter the area to be fi
90. oop statements while endw A block of one or more statements is repeatedly executed according to the expression break statement Exits from the innermost loop Comment statements You can include comments in a script file The comment statements are ignored when the script commands are executed Specify only one statement on each line of the script file Y ou cannot specify more than one statement on a line or write statements that span two or more lines 2 1 1 Script Commands Y ou can use the same script commands that you enter in the Script Window Y ou can also call script files from within other script files nesting up to 5 levels 119 PD45 User s Manual 2 1 2 Assign Statements Assign statements define and initialize macro variables and assign values The following shows the format to be used macro variable expression You can use alphanumerics and the underscore _ in macro variable names However you cannot use a numeric to start a macro variable name You can specify any expression of which the value is an integer between 0 e and FFFFFFF Fie to be assigned in a macro variable If you specify a negative number it is processed as twos complement Youcan use macro variables within the expression Always precede macro variables with the 96 sign 2 1 3 Conditional Statements if endi else In a conditional statement different statements are executed according to whether the condition is tru
91. or the purposes of product devel opment by the user and cannot be used for any other purposes Note alsothat the information in this manual does not convey any guarantee or license for the use of software Contents Contents Introduction 1 1 PD45 Introduction 3 2 PD45 Features 4 2 1 Multi Windowing Function sssssssssessseeenenn enne nennen tenente nnne tnn 4 2 2 Break F fickl ons ot eed ores eee ERR eet teh o sab eee eee ERR re yea desc A esee aad 4 2 3 Real Time Trace Function sees nnn nensis inneren nnns 4 2 4 Coverage Measurement F undtion essen enne nnne nennen 5 2 5 Time Measurement Function sesesssseseseeeee eene enne nnn nennen nnns 5 2 6 Source Level Debugging Function esesssssssssseseeeneneneen nennen nennen 5 3 PD45 Input and Output Files 6 3 1 input Elles re tria mi ac Galea eb eni diede na 6 Aerei 7 1 Setup 11 1 1 Installation entere n en HERR Dee EX HER E e ERE e Ra 11 1 2 Startibig P DADS ieu ia sede tete catt edn he ete 11 1 3 PDAS SECU p cue dtd Leine Hr de ede ED RE ERES DECR ERR QURE ERE a EUR 12 Window function 15 1 Window function of PD45 17 Ll Th PD45 WIndOW net enn REPE Dan ne as 17 1 2 Program WIDOOW itl ete eed fbi ERR TRE n e dE 22 1 3 Source WindOW ice onm tee i er e en e ae rc E aTe 25 1 4 Register WiINdOW catina miana araa editing teed a aa e E a dae id raa aaia 27 1 5 Memory WInGQOW
92. ory Can t open temporary file The temporary file for downloading using the on demand method could be opened 127 PD45 User s Manual Mo error messas Jnotesandaaion lx pexieeepese Wem SCS noo jawWdsmu SSCS 1100 Address value is out of range Specified address exceeds MCU s maximum address Lor Description fAssenblyrenquageisiiewa 1102 Address valueforJUMP isu ofrange mos Operandvaiueisautofrange 1108 Description expression iiem nor operandvaiveisundefines lue pismbismewesm no maose lus memdesestmepresm O lus ivaidsymbol deni lus invalidreserved word istinoperand ius _ Reservedwordismissing lus Nospace after mnemonic areae 123 _ Operandvaiveisnetdefined La jpewdsseismtamypsae lus Operanatype is net appropriate 1131 Sizer format species is not appro nx Sizespecinedismssng 1133 Sting value sist in ewressin nx b5mesmsm 1135 mrsmapeddnd iss pmersmsim nsi Symbols multpledeined 155 _ invalidoperandexistininswucion ns wemimepesm Mo error Message ad Ton Ls iaidoperandeistininswucion SSCS ns loueteismissng O ns Right queteismissing nss Cant et enaush mencry 128 Error Messages Wo e
93. points Enables specified break point All Enable Disable Enables all break points Disables specified break point All Disable Disables all break points Area for setting software break points You can set up to 8 software break points in PD45 If you have set multiple software breakpoints program execution stops when any one software break address is encountered OR conditions You can continue to set software breakpoints until you click the lt Close gt button to close the S W BreakPoint setting dialog box You can clear enable or disable software breakpoints selected by clicking in the software breakpoint display area You can also enable and disable software breakpoints by double clicking on them 43 PD45 User s Manual 1112 Entries in List of Software Break Points SAW Break Point E 0003 5 sampleinc i Filename for break address Line No at break address Break address Indicates if break point is enabled disabled enabled e fthereis no source line etc for the address only the address is displayed 44 Window function of PD45 1 12 H W Break Point Setting Dialog Box The H W Break Point Setting dialog box allows you to set hardware break points 1 12 1 Structure of H W Break Point Setting Dialog Box In H W XBreak Point Setting Dialog Box you can set two address breakpoints with pass counts and one trigger break point In addition to the above breakpoints you
94. poration is necessary to reprint or reproduce in whole or in part these materials If these products or technologies are subject to the Japanese export control restrictions they must be exported under a license from the Japanese government and cannot be imported into a country other than the approved destination Any diversion or reexport contrary to the export control laws and regulations of Japan and or the country of destination is prohibited Please contact Renesas Technology Corporation or Renesas Solutions Corporation for further details on these materials or the products contained therein For inquiries about the contents of this document or product fill in the text file the installer generates in the following directory and email to your local distributor SUPPORT Product name SUPPORT TXT Renesas Tools Homepage __http Awww renesas com en tools In this User s Manual the emulator debugger M3T PD45 is represented as PD45 respectively Please replace them with the corresponding one when you read them Preface PD45is an emulator debugger for PC4504 system It controls PC4504 emulator from Windows on a PC and it helps debugging of application program and target system This user s manual describes the PD45 s features functions setting up and operational procedures Rights to the Program Theright to use the program is granted according to provisions under a software license agreement ThePD45 program can only be used f
95. r at the line No level Further if the Program or Source Window is in disassemble display mode no changes can be made at the line No level Changing the display position at the file level Click the Source button in the Disp Area dialog box to open the Source dialog box The Source button cannot be clicked if no debugging information has been read in The Source dialog box shows the file structure of the downloaded target program Click the name of the file to be changed T gr amp aS NER inc 1 Select the file name um Cancel 2 Click the OK button To open the Source dialog box select the following from the PD45 Window menu Option 2IView 2 Source You can also double click the line No display area of the Program Source Window to open the Source dialog box 53 PD45 User s Manual Changing the display position at the address level Click the Address button from the Disp Area dialog box Click the Address button to open the Disp Address dialog box This dialog box is configured differently depending on the window s display mode Disassemble display mode If the display mode is the Disassemble mode the Disp Address dialog box opens Specify the address you want to be displayed in the input area and dick the OK button Disp Address Cancel 2 Click the OK button 1 Specify the address Source display mode If the display mode is the Source mode the Add
96. r a full filename including the attribute directly into the filename input area to open a log file with an attribute other than log You can nest log files up to 8 levels To quit logging the results of executing script commands Click the LogOff button on the toolbar of the Script Window Run Step pen Close LogOn LogOff View Clear Click L ogOff to stop logging You can also select the following from the PD45 Window menu when the Script Window is active Option 2 Log 2 Off When log files are nested output to the current log file stops but output to the next higher level log file resumes 86 Script Commands To savethe results of executing script commands after executi on PD45 has a View Buffer that stores the results of executing the last 1000 lines of command results To savethe contents of the view buffer click View on thetoolbar of the Script Window Clicking View opens the File Selection dialog box Specify the name of the file to be saved The default file attribute if omitted is viw Run Step Open Close Log n LogzOff View Clear Click View to save the contents of the view buffer You can also select the following from the PD45 Window menu when the Script Window is active Option gt View gt Save When you specify an existing filename the contents of the view buffer are appended to the existing file The file list in the File Selection di
97. rce Window does not switch to Source Program mode the HEX file may not contain source line information Check the options that you specified when assembling To download only machine language data To download only machine language data select the following from the PD45 Window menu File gt Download gt M emory I mage TheFile Selection dialog box opens Select the HEX file then download the machine language data To download only symbol data To download only symbol data select the following from the PD45 Window menu File 5 Download Symbol Select SYM file from the file Selection dialog box then download the symbol data PD45 User s Manual 12 Uploading From the PD45 Window menu select File gt U pload to open the U pload dialog box Enter the upload area and the name of the file to be saved 1 Specify the starting address Memory Save Area QUT 00000 2 Specify the end address Save Filename 3 Specify the name of the file to be saved Refer Cancel 4 Click the OK button N ote The minimum unit of addresses output to a file is one page Therefore if the specified start address is 7E e and the end address is 10116 data in addresses ranging from 016 to 17E 16 is stored in the output file 13 Saving Results of Disassembly From the PD45 Window menu select F ile Save Disasm to open the Save Disasm dialog box Enter the area to be saved and the f
98. rd button To change the reference position by specifying the trace cycles Double click the cycles area in the Trace Window to open the Cycle dialog box Input the number of cycles You can also open the Cycle dialog box from the PD45 Window menu Option gt View gt Cycle To search for the cycle in which an operation code was fetched toa specified address Double click the address area in the Trace Window to open the Address Search dialog box Input the address to search You can also open the Address Search dialog box from the menu in the PD45 Window Option gt View gt Address Search Real Time Tracing To search for the cycle in which an operation code was fetched toa specific source line Click the mouse on a source line in the source file area in the Trace Window then click the Come button to start the search The search is performed in the direction currently specified as the execution path Forward for forward searches and Back for backward searches Click to search in the Forward direction l BUS DIS SRC Forward Bash Step Come Click to search in the Backward direction Click to search for a source line execution cyde 5 4 Changing theReal Time Trace Position to be Saved PD45 stores the results of real time traces of target programs By default the trace range is the 4K cycles to just before the target program stops Break However PD45 also allows you to specify the 4K cycles up to
99. ress dialog box opens After clicking the Address button specify the address you want to be displayed in the input area and click the OK button 1 Click the Address button Address C Line Cancel 3 Click the OK button 2 Specify the address To open the Disp Address dialog box select the following from the PD45 Window menu Option 2IView 2 Address You can also double dick the address display area of the Program Source Window to open the Disp Address Address dialog box 54 Loading and Displaying the Target Program Changing the display position at the line No level When the Program Source Window is in source display mode click the Address button from the Disp Area dialog box Click the Address button to open the Address dialog box Click the Line button in the Address dialog box to enter the new line No 1 Click the Line radio button 2 Specify the line No Cancel 3 Click the OK button To open the Address dialog box select the following from the PD 45 Window menu Option gt View gt Adadress You can also double click the address display area of the Program Source Window to open the Address dialog box Changing the position of the program counter Click the PC button in the Disp Area dialog box When you click the PC button the display position changes to the position of the program counter Change the position of the p
100. rogram counter select the following from the PD 45 Window Option gt View gt P rogram Counter 55 PD45 User s Manual 1 6 Checking Source Programs in Other Directories You can specify the search path for source files This specification is valid when the target program s source files do not exist in the current directory This function allows you to check these source files and set software breakpoints etc from the Program or Source Window To open the Path dialog box and set the search path select the following from the PD45 Window menu Environ gt Path To add a search path click the Add button in the Path dialog box The File Selection dialog box opens Use the mouse to select the name of the file to be checked Path x 1 Click the Add button Path C TEST PDB30 SAMPLE PROG Delete Delete All OK 3 Click the OK button Cancel 2 Specify the search path in the File Selection dialog box To delete a search path Open the Path dialog box then carry out the following 1 Click the search path to be deleted Ad Delete 2 Click the Delete button Delete All o 4 3 Click the OK button Cancel SAMPLE PROG TEMP Click Delete All to delete all search paths 56 Loading and Displaying the Target Program 12 Displaying the Results of Disassembling To display the results of disassembling click the DIS b
101. rror Message MoteramAcim ix emen S O Lm emwwmmeswag 1203 You can register the only command name for alias 1204 Can tuse the command now You cannot use the specified command while the pre program is running 1208 adiac set hard ware break 1210 The start address larger than the end address 1211 Can tregister that token for alias No ee 1212 The savefile name string1 is wrong Specified file cannot exist 1302 TheNumber of Macro constant is over the limit limit 1304 Prefix which gives radix of the constant is SS illegal 1305 Description finairectreferenceisillegst Can t find end of strings str MEE 17 Description fewression sities o Macro constant macro isn t defined MEN Symbol symbol isn t defined MEN 1310_ immedatevalueisilieg OS um pwdtyo 1313 Thevalueis over the maximum value of which can betreated by MCU 1314 Register name is using for macro variable name 129 PD45 User s Manual 1400 Address value is out of range Specified address exceeds the M CU s maximum address 1401 Target program is already stopped 1402 Thenumber of break point is over the limit limit 1403 Thebreakpointistdemedatthataddss ooo 1404 pata value is out of range te 1406 Can tread write because there are no Do not attempt to reference or write to an memory at that area address for which no memory is inst
102. s and while statements up to 32 levels If statements must be paired with endi statements and while statements with endw statements in each script file Expressions induded in script files are evaluated as unsigned types Therefore operation cannot be guaranteed if you use negative values for comparison in if or while statements You can specify up to 4096 characters per line An error occurs if a line exceeds this number of characters When a script file containing illegal commands is automatically executed when you select Option gt Script gt Run from the Script Window menu after opening a script file or click the Run button in the Script Window execution of the script file continues even after the error is detected except when the script line itself cannot be read If an error is detected and the script file continues to be executed operation after detection of the error cannot be guaranteed Reliability cannot therefore be placed on the results of execution after an error has been detected 121 PD45 User s Manual 2 2 Writing Expressions PD45 allows you to use expressions for specifying addresses data and number of passes etc The following shows example commands using expressions gt Dump TABLE1 gt Dump TABLE 12420 2 2 1 Elements of Expressions You can usethe following elements in expressions Constants Symbols and labels Macro variables Register variables Memory variables Line Nos Chara
103. s ended n all other cases measurement is taken of time until conditions are met for the end of measurement event Supplements When measuring the interrupt intervals of a program that uses a timer interrupt follow the measurement procedure described bel ow 1 Change the control mode assumed when the target program has stopped to STOP a clock stop mode 2 Change the time measurement mode to 1 From Goto Break 3 After resetting the target program specify the start address of the timer interrupt routine at a breakpoint and execute the target program with one pass count 77 PD45 User s Manual 4 After resetting the target program specify the start address of the timer interrupt routine at a breakpoint and execute the target program with two pass counts 5 Subtract the execution time measured in 3 from the execution time measured in 4 Theresult obtained in 5 is theinterrupt interval 78 Checking and Setting Register Data 7 Checking and Setting Register Data 7 1 Checking the Contents of Registers Open the Register Window to check the contents of the registers The Register Window which lists the internal registers of the CPU that are common to M CU S is opened from the PD45 Window menu by selecting the following Window gt Register Window See Section 1 4 Register Window in the Window Functions for details of the Register Window 7 2 Setting the Contents of Registers To set the contents
104. s executed step by step You can also start step execution by selecting the following from the PD45 Window menu Debug Step 2 Step To execute subroutines as single instructions in step mode Executing subroutines as single instructions in step mode is called as over step execution Click the Over button on the PD45 Window toolbar Or press F 4 4j sj 2 2 m 2 pst swjawjem Click the Over button You can also start over step execution by selecting the following from the PD45 Window menu Debug gt Over gt Over Note A subroutine that does not return from a subroutine to the current routine e g one that has fallen into an endless loop cannot be completed of Over step execution To suspend Over step execution in such a case press the system reset button of the PC4504 emulator Select the following from the PD45 Window menu Debug gt Step gt Step Option For over step execution select Debug gt Over gt Over Option Specify the time of steps in the displayed Step or Over dialog box To stop step execution Click the Stop button on the toolbar You can also stop step execution by selecting the following from the PD 45 Window menu Debug gt Stop This also applies to over step execution Starting and Stopping Target Program E xecution 2 3 Returning from Current to Calling Routine Click the Return button on the PD45 Window toolbar called as Return execution Y ou
105. splay from specified address or line No Program Counter Display from current program counter Mode Switch display mode Source mode Switch to source display mode Ctrl R Disasm mode Switch to disassemble display mode Ctrl R Layout Set layout Line Area Turn on off line No area Address Area Turn on off address area Code Area Turn on off object code area 24 Window function of PD45 1 3 Source Window The Source Window is provided for dedicated display of the program being checked The line at the program counter is highlighted in yellow In contrast to the Program Window which follows the program counter the Source Window is not updated until you specify Use the Source Window to check what is happening in specific subroutines Y ou can open up to 10 Source Windows Other functions arethe same as in the Program Window 13 1 Structure of Source Window The Source Window has two display modes source and disassemble The structure of the Source Window is described for each display mode below The Source Window has the same structure as the Program Window See Section 1 2 1 Structure of Program Window under Window Functions for details 1 3 1 1 Structure of Source Window in Source Display Mode The source display mode is provided for debugging at the source level You can check the source files of the target program in source display mode File name display Toolbar Software breakpoint display set
106. t up by pressing and holding the Ctrl key when starting PD45 6 Switches of Resume ON OFF You can specify whether when you restart PD45 the windows are restored to their status when you last quit the program Check the Resume box to do so 7 Selection of Auto downloading at startup Y ou can specify whether when you restart PD45 the program automatically fetches the last read target program Check the Auto Download box to do so 13 PD45 User s Manual MEMO 14 Window function 16 Window function of PD45 1 Window function of PD45 1 1 The PD45 Window The PD45 Window is the main window for PD45 This window displays the main commands on a toolbar Y ou can click on the buttons on this toolbar to run the target program in normal or one step mode The main display area accommodates windows such as the Target Program Window 11 4 PD45 Window Screen Configuration Menu for executing commands Toolbar with main command buttons Main display area 5 C USR MIN PDB45 prog Samplehex File Edit View Environ Debug Window Help t siele m ps View SRC DIS J i BRK Sou include sample inc Lead INC File NOP Sub windows BM subl NOP BM sub F sp NOP LZ z 000 Bp e E Regis dow x BE EF of aM 00 h 00 m 13 s 574 ms 662 us 750 ns BM S W MCU STOP 7 Displ ays help on how to use windows and men
107. tarting address To check if the target program is running The current execution status is displayed at the right end of the status bar in the PD45 Window MCU RUN Target program is running MCU STOP Target program is stopped To perform debugging associated with timer operation The control mode that is assumed when the target program has stopped must be changed to the clock stop mode STOP In the clock stop mode the dock is stopped when the target program stops running This allows you to perform debugging that is associated with timer operation Choose the following from the PD45 window menu Debug Go gt Go Mode gt Stop To perform debugging associated with clock operation The control mode that is assumed when the target program has stopped must be changed to the DI instruction insert mode DI In the DI instruction insert mode dock is supplied when the target program stops running This allows you to debug peripheral equipment that uses the internal dock of an LCD etc Choosethe following from the PD45 window menu Debug Go Go Mode Di PD45 User s Manual 2 2 Step E xecution Click the Step button on the PD45 Window toolbar Or press F3 Hie amp j 9 24 m 2 pst sw mw ev Click the Step button When the Program Window is in source program mode each line of the source program is executed step by step When the Program Window is in disassemble mode each instruction i
108. tarts and ends Trace points are set via the Trace Point setting dialog box or using the Trace Point script command If you do not specify any trace points this is the default status measurements end when execution of the target program breaks Trace information is then displayed for the 4095 cycles prior to the break 36 Window function of PD45 1 9 1 Screen Configuration in Bus Mode Range of the results of realtime trace Address corresponded to cycles Trace area Current cycyles Toolbar INERNI Uu ce E a I c Q2 O 09 OO CO OO CO CO CO CO OO CO 00 0 0 c acu oo Cydes display area Data bus information display area Label display area Toolbar In bus mode only the display mode buttons lt BUS gt DIS and SRC are operative However if no debugging information has been downloaded the SRC button is also inoperative Cycles display area Displays the number of cycles per line The cycles are displayed in decimals either side of the trace point the cycle at which the realtime trace starts ends cycle 0 You can double click the cycles display area to change the No of the cycle to be displayed Data bus information display area This area shows the bus information for each cycle From left to right the contents are as follows Address Show the status of the address bus e Data Show t
109. tep execution of the target program Start target program ie Run from current program counter Go Option Run from specified address Go Mode Switch over control mode when program has stopped Di Changed to DI instruction insert mode Changed to clock stop mode Step execution Step Execute one step Step Option Execute specified No of steps Over Over step execution Over Execute one over step Over Option Execute icis No of over steps Rum Exeter gunman suave F5 Break Point Set break point SMW Break Point Open S W Break Point Setting dialog box F 7 H W Break Point Open H W Break Point Setting dialog box Shift F 7 Break Set cancel software break at cursor Baa Remtmepeyam O o 8 sep pteeporam Break Mode Change wreak made TracePoint sewan Measurement Pant set measurement 1 1 3 6 Debugging Option The extended menus in PD45 contains the items for operating the various PD45 windows The items on the extended menus differ according to which window is active The functions of the items on the extended menus are described under the respective windows Option This menu contains the extended menus for the various PD45 windows 20 Window function of PD45 1 1 3 7 Window Operations The Window menu contains the items for manipulating the display functions of the windows displayed by PD45 Menu Menu options
110. the line No All Disable 3 4 Deleting a Break Point In the S W Break Point Setting dialog box deletethe break point as follows C Address Add Filename Refer line mm a 3 Click the Close button SAW Break Point 1 Click the break point to be deleted Del All 2 Click the Del button Enable All Enable Disable All Disable Click Del AII to delete all break points 0003 5 samole inc Del 0008 30 prog sample ASM You can also dick the breakpoint to be deleted then press the Delete key PD45 User s Manual 35 Temporarily Disabling Break Points In the S W Break Point Setting dialog box disable the break point as follows C Address e Filename line SW Break Point 5 0008 30 prog sample ASM Refer di Close Del aa Del All Enable All Enable Disable All Disable 3 Click the Close button 1 Click the break point to be disabled 2 Click the Disable button Click All Disable to disable all break points Y ou can also double click the breakpoint to be disabled An asterisk is displayed 3 6 Temporarily Enabling Break Points In the S W Break Point Setting dialog box enable the break point as follows Address Filename line SAW Break Point 0003 5 sample inc 000
111. ther Renesas Electronics products are not subject to radiation resistance design Please be sure to implement safety measures to guard them against the possibility of physical injury and injury or damage caused by fire in the event of the failure of a Renesas Electronics product such as safety design for hardware and software including but not limited to redundancy fire control and malfunction prevention appropriate treatment for aging degradation or any other appropriate measures Because the evaluation of microcomputer software alone is very difficult please evaluate the safety of the final products or system manufactured by you Please contact a Renesas Electronics sales office for details as to environmental matters such as the environmental compatibility of each Renesas Electronics product Please use Renesas Electronics products in compliance with all applicable laws and regulations that regulate the inclusion or use of controlled substances including without limitation the EU RoHS Directive Renesas Electronics assumes no liability for damages or losses occurring as a result of your noncompliance with applicable laws and regulations This document may not be reproduced or duplicated in any form in whole or in part without prior written consent of Renesas Electronics Please contact a Renesas Electronics sales office if you have any questions regarding the information contained in this document or Renesas Electronics products or if you h
112. ting area Source line display area Program display area Address display area 25 PD45 User s Manual 1 3 1 2 Structure of Source Window in Disassemble Display Mode The disassemble display mode is provided for debugging at the instruction level You can check the results of disassembling the target program in disassemble display mode Toolbar e RES 0 leleoe le e 0 0 01 0 0 0 de 100 0 5 1 0 0 4 0 0 0 0 0 0 0 gt Address display Object code display area area Program display area Software breakpoint display setting area 1 3 2 Source Window Toolbar The Source Window toolbar is the same as that in the Program Window See Section 1 2 2 Program Window Toolbar under Window Functions for details 1 3 3 Extended Menus in the Source Window When the Source Window is active in the PD45 main display area extended menus for the Source Window are allocated to the Option menus The extended menus of the Source Window are identical to those of the Program Window See Section 1 2 3 Extended menu in the Program Window under Window Functions for details 26 Window function of PD45 1 4 Register Window The Register Window shows the contents of the registers The display is updated after each command is executed Y ou can dick the buttons corresponding to registers in the Register Window to quickly change the values of the registers 14 1 Structure of Reg
113. ts in any order For example A2 Al T has the same effect as A1 T A2 To break program execution when any one of the break point conditions is satisfied Use format 5 Enter the following to stop program execution when any one of break points A1 A2 or T is satisfied HardwareBreak OR A1 A2 T You can specify the break points in any order To break program execution when the break point conditions are satisfied in the specified order Use format 5 Enter the following to stop program execution when the conditions for break point T are satisfied followed by those for break point A1 HardwareBreak SEQ T A1 When you use this format specify the break point conditions in the order in which they must be satisfied for program execution to be stopped If you specify Al T for example program execution stops if the conditions for A1 are satisfied before those for T 113 PD45 User s Manual Using a Special Event Break In addition to address and trigger breaks the PC4504 emulator allows you to use a break for failure e g stack overflow a trace event break establishment of a trace event or completion of a write to trace memory and a timer based timer break To break the program when a stack overflow occurs Use format 6 To stop the program when a stack overflow occurs enter the command as follows HardwareBreak MODE SO To break the program when a trace event occurs Use format 6 To stop the program
114. urement result button Set a range of addresses to be measured Refresh Cl ear Addarea Delarea button Delete a specified range of measurement addresses button Initialize the coverage measurement result 41 PD45 User s Manual 1 10 3 Extended Menus in the Coverage Window When the Coverage Window is active in the PD45 main display area the Option menu contains the following items Menu Menu options Function Shortcut kaye Reresh Update the coverage measurerent eut Ker maizetecweragememwemenreut Set a range of addresses to be measured o wu Delete a specified range of measurement addresses Layout Se layout Address Area Turn on off line Address area 42 Window function of PD45 1 11 S W Break Point Setting Dialog Box The S W Break Point Setting dialog box allows you to set software break points Software breaks stop the execution of instructions immediately after the specified break point You can also enable and disable each of those break points 1 11 1 Structure of S W Break Point Setting Dialog Box Field for specifying a break address if specifying an address Fields for specifying filename line No x1 if specifying filename line No S W Break Point Adds a break point Searches for filename Closes dialog box 0003 5 sample inc 000C 35 sample ASM sample ASM Deletes specified break point Del All Deletes all break
115. us Displ ays status of break mode Displays execution time of target program Displays status of execution of target program 17 PD45 User s Manual 1 1 2 PD45 Window Toolbar button Break button E xecutes target program Sets the position of the cursor in the window as the software breakpoint button One step execution of target rogram SW button button Sets a software breakpoint Runs the program up to the higher routine button Change a break mode LIE J m jmr sw mw gu Comd button Executes the target program from the value in the program counter to the position of the cursor in the Stop button Stops execution of the button target program Sets a hardware breakpoint window Reset button Over b tton Resets the target program Step over function subroutine call 1 1 3 PD45 Window Menu The menus in the PD45 Window can be classified as basic menus and extended menus Debugging menu Edit menu X Environment menu optional items File Edit View Environ Debug Option Window Help Filemenu View menu Debugging menu Window menu basic debugging Help menu Basic Menus and E xtended Menus The sub menu items of the optional menus in PD45 automatically change according to which window is active in the main display area of the PD45 window The optional menus are called extension menus In contrast the items on all menus other than the optional menus remain the s
116. ut 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 equipment communicatio
117. ution history of the target program for 4K cycles The trace point can be set using the Trace Point Setting dialog box Trace points can be set using the same conditions as for hardware breakpoints PD45 Features 2 4 Coverage Measurement Function A coverage measurement function refers to recording the addresses executed accessed by the target program CO coverage It allows you to check unexecuted addresses after program execution has stopped Using this coverage measurement function in a test process it is possible to check the test items that have been omitted 2 5 Time Measurement F unction A time measurement function refers to measuring the execution time of the target program It allows you to measure the execution time of a given processing routine 2 6 Source Level Debugging Function You can display source files and perform source level debugging such as setting break points in the source lines and performing step execution PD45 allows debugging at the assembly language level You can usethe Program Window and Source Window to view source files You can use the ASM Watch Window to view ZXY symbols and bit symbols in assembler source files You can use labels and symbols to specify the addresses of breakpoints PD45 User s Manual 3 PD45 Input and Output Files 3 1 Input Files PD 45 processes the following input files 3 1 1 Intel HE X format Files The Intel HE X format files store machine language data
118. utton on the Program or Source Window toolbar The display mode can only be changed in the active window SRC button Switches to source display mode View SRC DIS J DEut Switches to disassemble display mode You can also select the following from the PD45 Window menu Option gt M ode 2 Disasm M ode If when the target program stops the program counter is in an area with no source line data the Program Window automatically switches to disassemble display mode Torevert from disassemble display to source program display mode Click the SRC button on the Program or Source Window toolbar You can also switch to source program display mode by selecting the following from the PD45 Window menu Option gt M ode 2 Source M ode N ote If there is no source line data in the first line in the program display area of the Program or Source Window you cannot switch from disassemble display mode to source display mode the SRC buttons are invalid In this case use the vertical scrollbar or Up Down cursor keys to move the starting address of the program display area to a position where there is source line data 57 PD45 User s Manual 2 Starting and Stopping Target Program E xecution 21 Starting and Stopping Tostart the target program Click the Go button on the PD45 Window toolbar You can also press the F 1 key EAE 8 2 4 E jest sw mw BM Click the Go button
119. w Note however that the end point of time measurement is valid only when the specified mode of time measurement is 2 4 or 6 MeasurementPoint END 17F 117 PD45 User s Manual Setting measurement mode Use format 3 The default measurement mode is 1 From start of program execution till end of program execution Toset thetime measurement mode for 6 F rom measurement start point till measurement end point enter the command as follows MeasurementPoint MODE 6 Setting measurement count source Use format 4 The default measurement count source is TIME in which the PC4504 s internal timer 16 MHz fixed is used to measure a time eTo set the time measurement count source for CY CLE in which the target MCU cydes are used to measure a time enter the command as follows MeasurementPoint SOURCE CYCLE Checking measurement results Use format 5 eTo check the time measurement result enter the command as follows MeasurementPoint SHOW 118 Writing Script Files 2 Writing Script Files PD45 allows you to run script files in a Script Window The script file contains the controls necessary for automatically executing the script commands 2 1 Structural Elements of a Script File You can include the following in script files Script commands Assign statements Conditional statements if else endi Program execution branches to the statement s to be executed according to the result of the conditional expression L
120. w menu Edit Find The Find dialog box is displayed Enter the search string then click Find Next to start the search 3 Check hereto include wildcards in the search string Find What 1 Specify the search string Iv Match Case Wild Card rere 4 Click Down to search the program forwards Teen Up Lowi or U p to search backwards End Not sees Click Find Next to start the search 2 Check here if you want to differentiate between uppercase and lowercase letters 11 3 Changing Window Proportions You can change the proportions of the Program Window Source Window Memory Window and ASM Watch Window using the mouse as described below e Program Window and Source Window When in disassemble display mode you can changethe relative proportions of the object code display area lt Objcode gt and the two parts lt Label gt and lt Mnemonic gt of the Program display area Drag to resize _ BRK Objcode Label Mnemenic i E jm 004 start DI NEN 000 loop NOP Memory Window You can change the relative proportions of the label display area lt _ABEL gt and the memory content display area lt DATA gt Drag to resize 93 PD45 User s Manual ASM Watch Window You can change the relative proportion of the expression display area E xpr gt Drag to resize Addr Bit Exer z Rdx Data 000 zxyv000 7 4 Hex 0 010 zxy010 8 Bin 0011 1111 l

Download Pdf Manuals

image

Related Search

Related Contents

Emerson Aperture Capacity Manager Brochures and Data Sheets  Install the Drum-Toner Cartridge  Pacs  Renesas M32173T-PTC User's Manual  Bionaire BCH9212HangTag Owner's Manual  New Features in Logic Express 7.2  F980W English Manual  Octek - Panther-II 386SX Motherboard - User`s Manual  トイレ楽楽 コート  V7 M32S00-7E mice  

Copyright © All rights reserved.
Failed to retrieve file