Home
M3T-PD308F V.3.00/M3T-PD30F V.2.00 User`s Manual
Contents
1. Other Setting J Hide path name in Program Source Windows Try to keep your display mode in Program Window MW Save commands history in Script Window Number of Commands 40 100 ho e Warn to update the target program e Display labels in Address combo bo x Number of labels 0 30000 20000 4 6 1 Display the Termination Confirmation Dialog The on completion confirmation dialog box can be disabled from being opened when the debugger is closed By default it is opened W Confirm whether closing this application or not To keep the dialog closed remove a check mark from the above check box in the Exit group 4 6 2 Debugger Forced Ending when Error Occurs You can set a parameter so that the debugger will not be forced to end when an communication error occurs The debugger is forced to end by default W Glose this application when an error occurs To do this remove a check mark from the above check box in the Exit group 32 4 Environmental Setting of Debugger 4 6 3 Target Continuance Execution when Debugger Ends When exiting from the debugger during execution of the target program you can select to continue execution or stop execution of the emulator The emulator is stopped by default W Stop your emulator when closing this aplication To continue execution remove a check mark from the above check box in the Exit group ATTENTION The target
2. 1 Windows Dialogs o Windows The window of this debugger is shown below When the window name is clicked the reference is displayed PDxx Window H W Break Point Setting Window Program Window Trace Point Setting Window Source Window Trace Window Register Window Coverage Window Memory Window Time Measurement Window RAM Monitor Window MR Window RAM Monitor Area Setting Window MR Trace Window ASM Watch Window MR Analyze Window C Watch Window MR Task Pause Window Call Stack Window Task Trace Window Script Window Task Analyze Window S W Break Point Setting Window GUI Input Window Protect Window GUI Output Window Address Interrupt Break Window 39 1 1 PDxx Window The PDxx Window is the main window for PDxx This window displays the main commands on a toolbar You 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 1 1 1 Configuration of PDxx Window o POSO Cuar min POS0 prog nc rand ne rand lt 30 File Edit View Environment Debue Option Basicwindows OptionalWindows Help Go A El Over Ea stop d Break a al SA Plg E Program Window rande E view B Sou By MIX Em Line BRE Source 00003 maint void J 00004 00005 long i Address LABEL 00006 unsigned char j k 000400 pool 00 lt SB DODO7 static char datal0xFF 000401 00008 000402 00009
3. als E Label Address Register Data Code o The display start address and memory contents can be changed by in place editing Different memory areas can be inspected at the same time by dividing the window into halves It is possible to keep track of the stack pointer position by default not tracked Coverage measurement results can be displayed Memory contents can be stored in a text file 1 5 2 Option Menu The Memory window provides the following menu when being active This menu is called Memory window option 51 Set data at specified address Fill specified memory block with data Move specified memory block to Saving Memory Contents in a Text File Specify display starting address Scroll Area Specify scroll range Register Starting address to value of the register xxxxx 1 Product dependence menu Followed Stack Pointer Keep tracking of the stack pointer position Set Start Up Symbol Startup label settings Refresh display Specify data length Display in 1 byte units Display in 2 byte units Display in 4 byte units Specify data radix Display in hexadecimal Display in decimal Display in binary Specify data code Display as ASCII characters Display as SJIS characters Display as JIS characters Set layout Switch display or non display of Label area Register Switch display or non display of Register area Column Changing the number of digits displayed Set Coverage measurement
4. sys dis dsp Csys_loc_cpu sys_ext_tsk 38 SYSCALL2 SYSCALL3 SYSCALL4 For details about which interrupt number is assigned to which system call refer to the MR30 Reference Manual Assemble Language Interface 1 19 2 Extended Menus The MR Trace window provides the following menu when being active This menu is called MR Trace window option Menu Menu Options Option Change font Mark S Move start marker into display screen area Mark E Move end marker into display screen area Indicator Move indicator marker into display screen area Adjust display by expanding range of start and end markers to full width of display area Increase scale factor of display Reduce scale factor of display After Set measurement range condition to After Break Set measurement range condition to Break Trace Stop Stop measuring Trace Restart Restart measuring Set various values Set various display colors Search for history of system calls issued Initialization of the display order These menus can be selected even by the short cut menu by a right click in the window 1 20 MR Analyze Window The MR Analyze window displays the result of the measurement data statistically analyzed within the range specified by the start marker and the end marker in the MR Trace window The MR Analyze window supports three display mode as below e CPU occupation state by interrupt task O Ready time by task e List of system call issuance histor
5. Close Reset HW Break Port Mare Dj Mase Down ml L EERE Oo The buttons corresponding to the option menus in the window are provided e You can only add the buttons which are enabled in each window You cannot add the buttons for other windows 4 7 1 1 Adding a button Click the buttons to be added in the Available Button list box at right of the Customize Tool Bar dialog Then click the Add button in the center of the dialog 4 7 1 2 Deleting a button Click the button to be deleted int Tool Bar Button list box at left of the Customize Tool Bar dialog Then click the Delete button in the center of the dialog 4 7 1 3 Changing the button display order Use the Up button or Down button at right of the dialog to change the display order Click the button for which the display order is to be changed in the Tool Bar Button list box at left of the Customize Tool Bar dialog Then click the Up or Down button to change the display position 4 7 1 4 Resetting the display buttons Click the Help button at right of the dialog The display buttons are reset to the default settings 35 5 Ending the Debugger To ending the debugger select Menu File gt Exit The Confirmation dialog opens When ending the PDxx click the OK button To keep the dialog closed refer to 4 6 1 Display the Termination Confirmation Dialog 36 Reference 37 38 1 Windows Dialogs
6. INTERNAL ERROR Fork error has happen Contact your nearest distributor 16003 INTERNAL ERROR The Baud rate is illegal Contact your nearest distributor 16004 The connection with the target isn t created SD 16006 INTERNAL ERROR The Time of time out is out Contact your nearest distributor of range 16007 Time Out ERROR Contact your nearest distributor 16008 INTERNAL ERROR Can t disconnect with the MA target 16009 INTERNAL ERROR Can t send given size data Contact your nearest distributor 16010 INTERNAL ERROR Parameter is illegal Contact your nearest distributor 16011 Illegal Host Name 16012 Communication ERROR The connection with the target is closed 16013 Communication ERROR Can t send data 16014 Communication ERROR Can t accept data 16015 Target is already used 16016 Specified communications interface doesn t support 16017 LAN I F can t be used on Windows3 1 16018 Parallel connection doesn t support on Windows NT 16019 Setting of the communications interface is illegal 16020 OverRun ERROR with serial communications 16200 adcressvatueiwoutofrange SSCS 16201 That baud rate has not yet supported SSS 16202 Bt numberisoutofrenge SiS sene O D i i T T 16204 Data value is out of range 16205 Monitor File filename is broken 16206 Can t find File filename 16207 Target system is not constructed properly 16208 I
7. LAN O LPT IS 1 3 1 1 USB Interface o The supported host computer OS is Windows Me 98 2000 XP USB communication cannot be used in any other OS o Compliant with USB Standard 1 1 Connections via USB hub are not supported e By connecting the host computer and the PC7501 emulator with USB cable it is possible to install the supported device drivers using a wizard The PDxx that supports USB connections must be installed before this installation can be performed See 1 3 3 1 USB communication with PC7501 for details eo The necessary cable is included with the PC7501 emulator 1 3 1 2 LAN Interface o The IP address etc must be set in the emulator before it can be connected in a LAN o The PC7501 emulator in a LAN can be connected to the PC7501s on another network connected to the LAN via a router See 1 3 3 2 LAN communication with PC7501 for details o The emulators PC7501 uses LAN cable 10BASE T only generally available on the market eo The host computer and the emulator can be connected directly See 2 1 2 3 Setting of the LAN Interface for details 1 3 1 3 LPT Interface o This communication uses the host computer s parallel printer interface The necessary cable is included with the PC 7501 emulator O Four communication modes are supported that include ECP EPP Byte and Nibble Communication modes that can be supported depend on the host computer s BIOS settings Communication modes may
8. The Task Analyze window displays the CPU occupation state The Task Analyze window functions together with the Task Trace window This window is available even when a target program using an OS other than our real time OS MRxx 1s downloaded The CPU occupation state display mode 1s used to display the CPU occupation time and ratio by task This mode shows the statistical result within the range specified by the start marker and end marker in the Task Trace window 1 23 1 Configuration of Task Analyze Window Fa Task Analyze Window Mark OO 0000164760 00 00 00 381 938 OO 000021 7 177 ID name Num Hax Run Time Win Run Time ave Run Time Total Run Time Ratios i 6 50 fH 10 1 min 4 morom 00 002 692 00 00 00 000 726 00200 00 001 2338 00 00400 050 563 23 20 mas 2 task002 4 OOOO 00008 849 00 00 00008 648 0000 0000S 849 OO 00 00015 S96 7 09 mu a task0037 El 00200 00 004 0141 00 00 00 004 043 00 00400 004 044 00 00 00 016 057 7 39 mm 4 _task004 El 00 00 00 008 879 00 00 00 003 878 00 0000 003 878 00 00 00 015 515 7 14 B taski06 5 00 00700 004 285 00 00 00 004 118 O0 00700 004 219 00 00 00 021 095 9 71 am 7 taskG07 4 G0 00700 004 320 007007 00 004 153 00 00 00 004 278 OO 00 O0 017 114 7 85 a taskini 4 oo 00700 004 313 007007 00 004 313 00 00 0000A 318 00 00 O00252 7 54 mm g taski09 4 00 007 00 004 173 007007005
9. 00 00 00 0000100 3 _taskb 2 00 00 00 000 124 00 00 00 000 014 00 0000 000 069 By clicking the maximum ready time minimum ready time display area of the desired line you can search the process history of the maximum ready time minimum ready time of the task corresponding to the clicked line The search result is pointed by the indicator which moves to the target position in the MR Trace window 1 20 3 Configuration of System Call History Display Mode The system call issuance history list mode is used to list the system calls issued The system call issuance history is listed within the range specified by the start marker and end marker in the MR Trace window The number indicates a numeric value counted from the top system call within the measurable range 83 fa MA Analyze Window E Run Ej Rea te Srst Ri Pick Up Mark 00 00 00 002 766 0000 00 004 684 00 00 00 007 923 Ho System Call Parameter Return Parameter TIME a 7 mai fla whmede H 3 walptn H 1 Fleid D 7 EOK fleptn H 1 OOOO 002002 782 8 mai_sem semid 0 1 TATE TICA mbxid D 1 EOK pk omss R1 H 1234 pk mse R2 00700 00 002 861 eee 3 rev msg 10 wup tsk tskid D PES 00 00 00 002 897 E OK 00 o0 og 002 Es 1 rsm_tsk sk id la EB ON OES lt E nen Ee set fle _setptn H 7 flgid D LE 0000 00 002 970 Wai te mfmode H 3 waiptn H 1 Fleid D 1 ate ft 2
10. Address The status of the address bus Data The status of the data bus BUS The width of the external data bus 8b for an 8 bit data bus and 16b for a 16 bit data bus BHE Indicates the status 0 or 1 of the BHE Byte High Enable signal If BHE 0 it means that the CPU is accessing an odd address BIU This shows the status between the BIU bus interface unit and memory and BIU and I O po Noaccess 3 3 3 5353 DMA NT Data access other than a CPU cause such as DMA INT Start of INTACK sequence Instruction code read due to CPU cause bytes DB data access due to CPU cause bytes I Instruction code read due to CPU cause words W data access due to CPU cause words R W Shows the status of the data bus R for r ead W for wr it e for no access RWT This signal shows the effective position in the bus cycle 0 when effective Address Data and BIU signals are valid when RWT is 0 CPU This shows the signal between CPU and BIU Representation 72 1 Windows Dialogs No accessing Opecode read bytes RB Operand read bytes Instruction queue buffer clear Opecode read words Operand read words Shows the number of bytes stored in the instruction queue buffer in the range 0 to 4 eo 76543210 Shows the status of the 8 bit external signal pins EXTINO to EXTIN7 of the external trace signal input cable High level 1 Low level 0 h m s ms u
11. LAR USB E IP Address f 01563160 Wareet Port 7500 Specify the IP address of the connected emulator in the IP address field Specify the IP address in bytes in decimal Delimit each 4 bytes with a period The port No 1s the ID No for the communication process of the server emulator on the LAN TCP IP Specify in hexadecimal Don t describe prefix which shows a cardinal number the port No set on the emulator lt lt LAN connection by couple 1 with emulator gt gt Emulators PC7501 can be connected by LAN TCP IP to a commercially available LAN card inserted in a PC by using a cross conversion cable for 1OBASE T also commercially available A HUB is not necessary in this case The cross conversion cable for 1OBASE T converts the male connector of the 10BASE T of a straight LAN cable that is included with the emulators to that of a cross LAN cable Connect a cross conversion cable to the male connector of the 1OBASE T of the straight LAN cable connected to the emulator then connect the male connector of the cross conversion cable to the LAN card The LAN communications can be set up the same way as normal one 2 1 3 Executing Self Check Specify this option to execute self check on the emulator when the debugger starts up Self Check 12 2 Setup Debugger Be sure to select the above check box only when you want to perform self check at startup Specify this option in the following cases O When the firmw
12. Other Ley None Menu List Current Kep Assign Download machine language data Download only machine language Download only debugging informal Append machine language data Reload target program Save specified memor image t on A An DEL Current Shortcut ey List Key Categow Menu J Chl l Main Menu Copy string to clipboard Ctrl F Main Menu Find tring Chrl L Program Window Open Line Assemble Dialog Chit Program Window Select display mode togale Cancel Help Please click the tab name about details Tab Shortcut Key O Register the menus to the shortcut keys o Setting the number of load module download histories o Specify the Displaying Tab Width Specify the Search Path of Source Files Specify the Saving Directory of Information File Tool Entry Secify the make file Specify the Editor Display the Termination Confirmation Dialog Debugger Forced Ending when Error Occurs Target Continuance Execution when Debugger Ends Display the Absolute Path of Source File Control the Display Mode Switching of Program Window Execution History of Script Command Number of Label Displays of Address Setting Area 25 You can also customize the buttons in the tool bar To customize the buttons see Customizing the Tool Bar 4 1Shortcut Key Tab The specified content becomes effective when the next being start key ssien Category key Bee Main Menu None LOAD Menu List Current Ke
13. The target file has not the specified format or it is broken 1555 Not found the debugging information 1556 Not found the debuging information 1557 The target file has wrong information So can t read the file 1560 Can t find the scope 1561 Can t find the appropriate symbols 1568 There is no more functions 1569 There is no more sections 1570 The name is invalid for registers 1571 The word string1 is one of the resereved words You can not specify it as symbol name 1572 The word string1 has been still defined You can not specify it as symbol name the line numbers 1574 1562 Can t find the appropriate functions 99 WI alone AS name e aaa been specified 1581 Internal Error an unexpected searching ol has been specified 1582 Internal Error not found the class where the download data is stored Lil i MS been specified cm has not been obtained string bj O the debugging information data base string1 1600 Can t add new watch point because it exceeds limit of watch point number Max number is num No Error Message Notes and Action 1800 There are no symbolinformaion OoOO o OoOo o O 18011 The expressionistoolong SSCS 1802 Cant savecwatchpoints OS y O 1803 Can t load c watch points O 1804 Load is terminated because the file extension is different 2000 Can t open Script File filename Script File is not ope
14. egal fle format no absolute format e egal file format AAA AAA 26428 Can t get enough memory 118 3 Error Messages 26430 There are no address at that line O 26431 Can t find the function which correspond to that source line 26432 Can t find the scopes which include that 26433 Can t find symbol 26434 Can t find the function which correspond to that source line 26436 INTERNAL ERROR ER_LOAD_ SYMSCOPE Contact your nearest distributor has happen 26437 File Name is illegal 26438 Display source codes 26600 Can t open file filename 26601 Can t create file filename 26602 Can t close file filename 26604 Out of disk space 26605 Illegal file format xxxxx gt xxxxx filename 30200 Comfirm the processor mode and the CNVss terminal level 30201 Comfirm the emulation memory allocation or the mapping 30400 MCU file is old format 30401 MCU file is illegal format 26601 z 30600 In connected emulation pod the target clock is external fixation No Error Message Notes and Action 30201 Comfirm the emulation memory allocation or the mapping 38000 The value of Bank is wrong 119 MEMO 120 Emulator Debugger for PC7501 System User s Manual Rev 1 00 May 1 2003 REJ10J0023 0100Z COPYRIGHT 2003 RENESAS TECHNOLOGY CORPORATION ALL RIGHTS RESERVED AND RENESAS SOLUTIONS CORPORATION ALL RIGHTS RESERVED M3
15. 11405 Data not found 1406 The star oye larger than e end ele 1407 Te Output por area set 1408 Ter s no data in ne Input le maofa O 11411 Can t open filename 11600 Can t execute this command 11601 Already set hard ware break 11602 Combination of bus width and access condition 11603 The start cycle larger than the end cycle 11604 HardwareBreak command cannot be used while state transition break window opens 11605 TracePoint command cannot be used while State Transition Trace Window Time Measurement Window MR Trace Analyze Window or Task Trace Analyze Window opens 11606 These trace data can t disassemble 11607 Cycle value is out of range 11800 The I O data not set 11802 Can t open temporary file 11803 Address value is out of range 11804 Can t delete temporary file 11805 Can t open Log File filename 11806 Address value is out of range 12000 Address Interrupt Break ls invalid AA 12001 Address value is out of range AN 12200 Size vawe is outorgo J OOOO 12201 Base Address vale soutofrenge dS 12202 The speciied areais aut orange O 12203 failed to save data 12204 failed to load data A 105 12205 he number of RAM monitor area cannot be changed 12400 Sampling period value is out of range 16000 INTERNAL ERROR Already connected with the Contact your nearest distributor target 16001
16. 26208 Macro constant macro isn t defined A 26209 Symbol symbol isn t defined 26212 The value is over the maximum value of which can be treated by MCU 26213 Register name is using for macro variable name MN No Error Message Notes and Action 26400 Address value is out of range 26401 Bit number is out of range 26402 File filename is broken 26404 Can t find sub routine information 26405 Illegal character in the strings 26406 INTERNAL ERROR ER_IN2_ ILLEGAL MODE Contact your nearest distributor has happen in xxxxx 26407 Can t find that line number 26408 Multiple definition of symbol label 26409 There are no code at that line 26410 Can t get enough memory 26411 Can t find scopes 26412 Can t find section information 26413 Can t find source lines which correspond to that address 26414 Can t find symbol symbol 26415 Can t find the scopes which include that address 26416 Loading is canceled 26417 INTERNAL ERROR The end of section Contact your nearest distributor information 26418 INTERNAL ERROR The end of section Contact your nearest distributor information 265419 Tne register name song 26420 Can t ind Source Ple flenamey SS SSCS 26421 Unable o read Load Module Fie enam SSS 26422 he PATHnameisincorest OOS 26423 Cannot open the save file filename 26424 Cant open SESROF Me 26425 Cant read ssr 26426
17. Category combo box in the Key Assign group The menus available for the category are displayed in the Menu List list box 2 Select the menu to be registered from the Menu List list box and click the Key exit box PDxx is now waiting for the entry of shortcut key 3 Press the shortcut key to be assigned The content of the shortcut key is displayed in the Key edit box 4 Click the ADD button below the Current Key Assign list box lt lt Deleting the shortcut key gt gt 1 Select the shortcut key to be deleted using one of the following methods O Select the shortcut key from the list in the Current Shortcut Key List group O Select the Menu List list box in the Key Assign group 2 Click the DEL button in the Current Shortcut Key List group lt lt Saving reading the shortcut key gt gt To use save read the assigned shortcut key information separately you need to specify the file Click the SAVE button and specify the file name 27 To read the shortcut key information click the LOAD button and specify the file name All of the registered shortcut key information 1s deleted ATTENTION O You cannot assign the same shortcut key to multiple menus If you register the assigned key the information on the previously assigned shortcut key is overwritten e The shortcut key is enabled only for the active window If two or more same windows are opened the shortcut key is not reflected to all of them Oo Ifthe same menu Change Fo
18. E 3 1 O 00 00 849 OFOOS6 020F Ko D 4 1 A 00 00 849 OFDOSS 32FF Ko 4 1 d 00 00 849 OFDOSS 32FF 5 3 1 O 00 00 849 00824 rand 0F0926 EFD E OO 2 1 g OO 007849 00523 0F0928 41CE E 4 1 A 00 00 849 O06 22 000S4D 3700 Wo 4 0 00 00 00 849 e ANASAE 270 Wo fi A d A nnn AN Ag gt es Label Display Bus Information Display Execution Time Display Cycle Display e By double clicking the cycle count display area you can change the start cycle to be displayed e By double clicking the Address line in the bus information display area you can search the execution address o You can change the display ratio between the label display area and the bus information 70 display area using the mouse 1 Windows Dialogs The lines in the bus information display area vary depending on the debugger that you are using 1 16 1 1 Display of bus information on PD308F From left to right the contents are as follows Address The status of the address bus Data The status of the data bus BUS The width of the external data bus 8b for an 8 bit data bus and 16b for a 16 bit data bus BHE Indicates the status 0 or 1 of the BHE Byte High Enable signal If BHE 0 it means that the CPU is accessing an odd address BIU This shows the status between the BIU bus interface unit and memory and BIU and I O Representation BIU status Nas S WAIT Executing wait instruction Read access words ML o
19. Enable Switch display or non display of Measurement result Base Change coverage base address Clear Initialize coverage measurement result Change font Change display color These menus can be selected even by the short cut menu by a right click in the window Product Dependence Menu Function Starting address to value of FB register Starting address to value of SB register Starting address to value of USP register Starting address to value of ISP register 1 6 RAM Monitor Window The RAM monitor window is a window in which changes of memory contents are displayed while running the target program The relevant memory contents are displayed in dump form in the RAM monitor area in varying sizes depending on the emulator used by using the realtime RAM monitor function The displayed contents are updated at given intervals by default every 100 ms while running the target program For the PC7501 up to 16 windows can be opened 52 1 Windows Dialogs yi RAM Monitor Window 0005 FO tt B BS um HDB _ _ 105me Label Regist 0 1 2 3 4 5 6 7 5 9 4 4B C 4D E F ASCII OO0SFO OO0400 _ S s_TR U0 OO OO OO OO 00 00 00 OO 00 000410 _ BRRtsk 01 000420 U6 OF 08 09 000430 000440 000460 000460 000470 000430 000430 000480 __TCB_tm 000480 0E 00 00 00 eo The RAM monitor area can be changed to any desired address range Refer to Setting the RAM monitor area for detai
20. SETIP In such a case connect to the emulator through another communication interface and re register the IP address from the Init dialog box that appears For details on how to set IP addresses from the Init dialog box see Setting of the LAN Interface 1 4 Starting the Debugger Click the Windows start button and then select menu Program P gt RENESAS TOOLS gt PDxxF V x xx Release x gt PDxxF 2 Setup Debugger 2 Setup Debugger The Init dialog box 1s provided for setting the items that need to be set when the debugger starts up The contents set from this dialog box are also effective the next time the debugger starts The data set in this dialog remains effective for the next start hit Xx MEL Debuegine Information Rezet Emulator Resume MEU Refer LPT LAN C USB IF Address i 015 653 160 arget Port 7500 I Self Check Resource J Enable the Address Match Interrupt Break Function F Debug the program using the Watchdog Timer Debug the program using the GPU Rewrite Mode suth AJA I Next Hide exist exist Debug Information Emulator exist exist Resume exist exist To keep the Init dialog closed next time the debugger is started check Next Hide at the bottom of the Init dialog You can open the Init dialog using either one of the following methods o After the debugger gets started select Menu Environment gt Init O Start PDxx while holding do
21. 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 Depending on the situation the debugger behaves as follows Ifthe Enable the Address Match Interrupt Break Function check box on the Inix dialog box is deselected Software breakpoints are always set No address interrupt breakpoints are set O Ifthe Enable the Address Match Interrupt Break Function check box on the Inix dialog box is selected Up to a valid range of address interrupt breakpoints are set preferentially over other breakpoints If the number of breakpoints set exceeds the valid range software breakpoints are set thereafter When any address interrupt breakpoint is set the display changes to the letter A When a software breakpoint is set the display changes to the letter B You can delete the break point by double clicking again in the BRK column If the breakpoint display field is blank in the Program Source Window data definition line comment 45 line null line you cannot set a breakpoint About the Software Breaks Oo You can set up to 64 software break points The areas for which software breakpoints can be set varies with each product About the Address Interupt Breaks o The number of address interrupt breakpoints that can be set varies with each product e The address interrupt break function can only be used when the Enable the Address Match Interrupt Br
22. a e A RS E J aran L A A A PSA E OA AS AO A E REA EL 1as A SS S ERA 1 50 A A AA E 3 task3 H ee as ie 4 _task4 a ni aie ES _task5 gt Unknown 4 4 4 4 l y Pa The content of each item is as follows For PD308F PD30F Indicates a software interrupt number 80 1 Windows Dialogs Indicates the interrupt vector table number ndicates a task ID number Indicates an interrupt routine name task name idle processing display idle and unknown name displayed unknown When moving the mouse to the information displayed in the window the pop up window as below is opened showing the detailed information Interrupt handling or task System call issue history Task state transition history execution history Tk E Following information is displayed in the status bar Time value at which start marker is positioned Time value at which end marker is positioned Time width of a range indicated by start and end markers Time value at which indicator is positioned Scale factor of display Time width of grid line interval Range of measurement trace result The grid lines are displayed using the start marker as the radix point The grid lines are displayed using the start marker as the radix point The scale is displayed using the time at which the start marker is positioned as 0 wi
23. from left to right Oo The rest is the same as in disassemble mode 1 16 3 Configuration of Disassemble Mode The disassemble mode of the trace window is the following configurations 13 Toolbar Current Cycle Execution Time of Current Cycle Trace Cycle Trace rea Address of Current Cycle Pet Trace Window Range 32511 DO000 File Cycle 00835 Address OFOU2C Time 0000 00 349 395 Cycle Address Obj code Label Minemon ic A m os ms us HOOFFH BHLFE 00 00 00 849 395 FOOS5H 00 00 00 849 396 00830 FO 6090F _rand FO926H 00 00 00 849 399 00824 7DE20641 ll_rand 41C6H 0000 00 849 403 00817 7DE26D4E H4E6DH 00 00 00 849 409 00813 73F01004 0410H RO 00700 00 849 412 00 00 00 849 416 00 00 00 849 418 0000 00 849 422 0000 00 849 426 0000 00 849 427 00 00 00 849 431 F3F21204 FEQ 9412H R2 FOS38H d mulU FOSSCH FOSCOS0F ECHO _idmulU R1 R3 THESP RI Bo RI BID ilz 312 R1 Re OO 00 849 437 28109 GHLSP R fi 22 LEN GO R a z i Address Display Label Display Disassemble Display l Cycle Display Object Code Display Execution Time Display O By double clicking the cycle count display area you can change the start cycle to be displayed O By double clicking the address display area you can search the execution address O You can change the display ratio between the object code display area and the label display area b
24. not always be used even when they are supported by BIOS 1 3 2 Download of Firmware It is necessary to down load the firmware which corresponds to connected Emulation Probe when the debugger is started to the emulator O You have changed your emulation probe O You have setup PDxx for the first time O You have upgraded emulator debugger PDxx Press the system reset switch within two seconds after powering up the PC7501 to establish the maintenance mode PDxx searches the version of the firmware downloaded to the emulator at start Also when the firmware downloaded to the emulator is of old version a mode which drives PDxx to download firmware is set When PDxx gets started while the emulator is set in the mode which drives PDxx to download firmware forcedly the following dialog is opened at start Click the OK button to download the firmware Warning We should download new firmmare ATTENTION o Before the firmware can be downloaded by the PC7501 in a LAN connection the IP address etc must first be registered in the PC7501 Setup method 1 3 3 Setting before emulator starts 1 3 3 1 USB communication with PC7501 Connection of USB devices is detected by Windows Plug amp Play function The device driver needed for the connected USB device is automatically installed For details see Installing USB Device Driver lt lt Install of USB device driver gt gt The USB devices connected are detected by Windows
25. of the used LPT port in the I O Address field Oo Start the BIOS setup program of the PC for checking the mode possible to use How to start and use the BIOS setup program depends on each PC so refer the manuals of the PC Communication Mode PP Standard Parallel Port Output Only Bidirectional Bi directional Byte The address displayed in the parallel port base address field is the I O address Specify the I O address set in the BIOS setup program in the I O Address field The following addresses are possible to be specified o 378h e 278h ATTENTION The C compiler made by IAR also uses this printer parallel port When using PDxx and the emulator PC7501 in the ECP mode on the LPT communication a problem that the data cannot be complied by the IAR C compiler will arise If this happens take one of the following countermeasures o Connect PDxx to the emulator PC7501 in any mode other than the ECP mode O Start compilation when PDxx has been terminated 2 1 2 3Setting of the LAN Interface LAN communication uses a LAN interface of the personal computer Before using LAN you must register the emulator IP address port number and subnet mask to the emulator itself Otherwise LAN is not available Then set LAN communication lt lt Setting the IP Address and Subnet Mask gt gt Start PDxx using other communication method After it gets started select Menu Environment gt Init to open the Init dialog Then click
26. specified address ScrollArea Specify scroll range Word Display in 2 byte units Lword Display in 4 byte units Display in hexadecimal Display in decimal PAS playA in binary SJIS Display as SJIS a Layout Switch display or non display of Label area Switch display or non display of Register area Set up the number of column displayed on one line Change font Set color of access attribute display These menus can be selected even by the short cut menu by a right click in the window 1 7 RAM Monitor Area Setting Window The RAM monitor area setup window is a window in which you can set the RAM monitor area of the realtime RAM monitor function by adding deleting or modifying This window is brought by choosing the menu Option gt RAM Monitor Area of the window in which you use the realtime RAM monitor function 54 1 Windows Dialogs ARAM Monitor rea setting Window Current Assigned Area Add Remove Remove All Wem 3 blocks 2048 bytes are available 1 block 256 bytes e The currently set RAM monitor areas are displayed in order of start addresses beginning with the smallest eo RAM monitor areas can be added or deleted o The start addresses or sizes of the RAM monitor areas set can be changed e The memory content of a selected RAM monitor area can be displayed in the RAM monitor window o Settings of RAM monitor areas can be saved to a file Also the s
27. specify the address in the emulation memory area 16269 The mistake is found in setting the emulation memory area 16270 The specified area has already been used in the debugging monitor bank address 16271 Too many emulation memory area specification S 16272 The bank from 0 to 3 cannot be specified A 16273 The mistake is found in the specification of the debugging monitor bank address 16274 The mistake is found in the specification of the debugging monitor work address 16275 Cannot specifiy to extend more than two banks A 16276 Please specify the address in the emulation memory area 108 3 Error Messages 16277 Too many ROM area specification 16277 ification 16278 Start address is larger than end address 16279 Too many DMA area specification 16282 When Word is specified for a size the odd number address cannot be specified Too many memory mapping specification 16 16284 The mistake is found in the specification of the memory mapping 6 16285 Please specify the address in the emulation memory area 286 The mistake is found in setting the emulation memory area 287 16 16 The specified area has already been used in the debugging monitor bank address 6 16288 Too many emulation memory area specification 16289 The bank from 0 to 3 cannot be specified 16290 The mistake is found in the specification of the debugging monitor bank address 16291
28. the Target button of MCU tab The Target dialog will be opened 11 Target E IP Address 01563160 Port ET SubNetMask 2552552520 Default Gateway JP Cancel Specify the emulator IP address in the IP Address field port number in the Port field and subnet mask in the SubNetMask field The emulator IP address must be registered in the network environment in advance When the PC7501 it is used the Default Gateway area becomes effective Please specify the IP address of the default gateway When the PC7501 it is used on the identical sub net mask of identical network it is possible to omit the IP address of the default gateway O Specify the IP address subnet mask and Default Gateway in decimal byte by byte by separating every 4 bytes with a period For details on the IP address and subnet mask consult with your network manager O A port number set in the Port field is used to identify the communication process of the server emulator in LAN TCP IP communications Specify the port number which has been set in the emulator in hexadecimal Do not add a prefix which shows a base Click the OK button in the Target dialog The Target dialog is then closed and the Init dialog appears again Click the OK button Then exit from PDxx lt lt Setting of the LAN Interface gt gt To set the LAN communication click the LAN radio button of the MCU tab in the Init dialog The setting looks like the figure below C LPT
29. they were set Saves the contents set in the window to a file Load Loade event information from a file in which it was saved Sends the contents set in the window to the emulator Closes the window 1 18 MR Window Use the MR Window to display the status of the realtime OS You can only use the MR Window when you have downloaded a program that uses the realtime OS if the downloaded program does not use the MR nothing is displayed in the MR Window when it is opened 78 1 Windows Dialogs 1 18 1 Configuration of MR Window You can open the MR window as many as the number of display modes 9 at maximum currently EM MA Window Current Run Task 101 i maini ID Staiddr rans Pri Status ue count timeout fle ptn fle mode F179CH i_main RUN OOOOH 1 _task2 2 ROY 0000H _task3 2 SUS D000H _taskd 1 WATCSLP OOO0H _task5 1 WATCSLP SUS OOOOH _task6 I OOOOH _task 1 WATCOLY SUS OOOOH _task8 1 WATCFLG OOOOH THF_ORW task 1 WATCFLG SUS OOOOH 1111H THF_ORN _task10 1 WAI _task11 1 WAI OOOOH HAT SEM SUS OOOOH Oe 240 OO eo Po L l By clicking the desired button the MR window display mode changes and the display data also changes By double clicking the desired task line you can display the context data of the task You can drag the cursor to change the width of the display area in each mode If the downloaded program does not use MR you cannot se
30. 0 00 000 007 00 00 007000 007 00 00 007 000 008 00 00 00 000 007 00 00 007000 008 00 00 007000 005 00 00 00 000 003 00 00 007000 006 00 00 00 000 003 00 00 00s 000 012 BS 159 CO CS AS A 00 00 00 000 000 00 00 005000 000 00 00 00 000 000 00 00 00 000 000 By clicking the maximum execution time minimum execution time display area of each line you can search interrupt to the clicked line or process history at the maximum minimum execution time of the task The search result is pointed by the indicator which moves to the target position in the MR Trace window 1 20 2 Configuration of Ready State Duration Display Mode The ready state time display mode by task is used to display the results generated from statistical process of the time required from execution ready to transition to execution by task The statistical result is displayed within the range specified by the start marker and end marker in the MR Trace window Fa MA Analyze Window El Run e aRes ee Syst ea Pick i y po o0 00 002 846 00 00 00 003 295 00 00 00 000 440 D nane Hum Max Hin Ay E taski E 00 00 00 000 065 Dll tasks 2 00 00 00 000 010 0000 00 000 009 00 00 00 000 010 3 Ctask3 11 00 0000 000 016 00 00 00000 016 00 00 00 000 016 A C taski 1 00 00 00 000 010 0000 00 000 010
31. 0 000 The interval time at which intervals the display is updated may be longer than the specified interval depending on the operating condition shown below Host machine performance load condition Communication interface Window size memory display range or the number of windows displayed The displayed access attributes are initialized by downloading the target program 1 6 1 Extended Menus The RAM Monitor window provides the following menu when being active This menu is called RAM Monitor window option 53 Menu Function RAM Monitor Area Sets RAM monitor area A window or dialog box in which you can change the RAM monitor area is displayed Sampling Period Sets display updating interval Sets an interval time at which intervals you want the display to be updated while running the target program Clear Clears access attribute The data in all RAM monitor areas are cleared as are the displayed access attributes Moves display position to the immediately preceding RAM area smaller address The display position is moved forward toward smaller addresses to the beginning of the RAM monitor area that immediately precedes the current display position Moves display position to the immediately following RAM area larger address The display position is moved backward toward larger addresses to the beginning of the RAM monitor area that immediately follows the current display position Address Displayfrom
32. 004 172 00 00700 004 172 00 00 O0 018 690 7 65 jam 5 task00B 4 OO ON 00008 918 OOOO OO 00S 746 00 00 00 003 790 00 00 00 015 162 E 38 mm By clicking the maximum execution time minimum execution time display area of each line you can search process history of the task for the clicked line at the maximum minimum execution time The search result is pointed by the indicator which moves to the target position in the Task Trace window 1 23 2 Extended Menus The Task Analyze window provides the following menu when being active This menu is called Task Analyze window option Menu Menu Options Option Change font Go to CPU occupancy status display mode These menus can be selected even by the short cut menu by a right click in the window 1 24 GUI Input Window The GUI Input window allows you for port input by creating a user target system key input panel button in the window and clicking the created button 38 1 Windows Dialogs 1 24 1 Configuration of GUI Input Window 33 GUI Input Window he Edit ore Cre HT Grid a Load Elsave 4 s Eii A i Input Panel H You can arrange the following parts on the input panel o Button A virtual port input or virtual interrupt PDxxSIM only for the latter can be executed at the time the button 1s pressed o Text Display the text string You can label name the created button You can also save the created in
33. 1 1 7 GUI Input Output Function This function simulates the user target system s key input panel buttons and output panel on a window Buttons can be used for the input panel and labels strings and LEDs can be used for the output panel 1 2 About the Emulator PC7501 The PC7501 is a full bus trace emulator suitable for M16C family s operating clock frequencies exceeding 20 MHz When combined with an emulation probe suitable for the target MCU it helps to configure an emulator system matched to each MCU used 1 2 1 Communication method The supported communication methods are as follows Emulator me PC7501 USB OO LAN O LPT Od Depending on communication methods it is necessary to set up some items before the PDxx can be started Please see Before starting the debugger 1 2 2 Function table The supported functions are as follows Function PC7501 PC4701U reference 1K bytes area 64 points HW Break 8 points 6 points Address Interrupt Break 4poimts e Real Time Trace 256K Cycles 32K Cycles CO Coverage 256K bytes x 32blocks area 256K bytes area Go to Stop 4 points interval Protect Break Access Protect Break Depends on the target MCU used 1 3 Before starting the debugger Before starting the debugger check the following contents 1 3 1 Communication method by emulator The supported communication methods vary with the type of emulator used Emulator PC7501 1 Starting the debugger
34. 4 Configuration of Disassemble Display Mode The disassemble display mode of the window is the following configurations FUT SZ Cs105604 1H 0458HLA1 Toolbar E Program Window E View Sour By MIX W Diz adress ERA Ubjeode Label P yi 70202 Main HOZ F55900 nit FUTSSH 00132 I DSOBFE HOH 2HLFB A D900 HOH RO ORO STS D110 HIH RO 6440 Fs H D90BFE HOH 2HLFE OFOWSE IE 7788FEFFO E RODFFH 2HLFB EA FDCA3C F0181H CEA 73B4FE HLFB 40 73E5FE E HLFB J Al my 720058045 0458HL 80 0458HL 81 J o 73B4FE HLFB 40 BER E A0 EN 0458H RO OFOISE IL En rie 7 Obiect Code Label Program Ereakpo int Address You can switch Display Hide for the address display area object code display area You can change the display start address by double clicking the address display area You can set reset the breakpoint by clicking or double clicking the breakpoint display area You can change the display ratio between the object code display area and the label display area and between the label display area and the program display area using the mouse You can display the coverage measurement result by specifying the option It is not displayed by default You can line assemble the clicked position 47 1 2 5 Extended Menus The Program window provides the following menu when being active This menu is called Program window option Menu Menu Opt
35. 51 51 global_ array 0x468 0 signed int 5 zlobal_array 0 0x468 0 lslened int lelobal_array 0 0 lelened int lelobal_ arrays 0 1 signed int Celobal_array 1079 2 signed int Celobal_array 0 3 I rg Il Il aT Fal Variables can be inspected by scope local file local or global The display is automatically updated at the same time the PC value changes Variable values can be changed The display radix can be changed for each variable individually Any variable can be registered to the Watch tab so that it will be displayed at all times The registered content is saved for each project separately If two or more of the C watch window are opened at the same time the registered The C watchpoints can be registered to separate destinations by adding Watch tabs Variables can be registered from another window or editor by a drag and drop operation The C watchpoints can be sorted by name or by address 57 O Variable names can be searched e Values can be inspected in real time during program execution by using the RAM monitor function ATTENTION You cannot change the values of the C watch points listed below Bit field variables Register variables C watch point which does not indicate an address invalid C watch point o If a C C language expression cannot be calculated correctly for example when a C C symbol has not been defined it is registered as invalid C watch point
36. A OFOWwe ll F55900 aS A EA OFO1s2 Iil D9OBFE AN A oroiga i 900 oroar ll o110 oronga T 6440 AA EA OFO1SB D90BFE OFOISE same Labe Address Source Line Object Code Breakpo int 46 sources hMnemon le ENTER imt 13 HOZH aes JSR N _Init F0189H i 0 MOV HOH 2HLFB while 1 f MO N CMF JEQ HOH RO HIH RO FOTS 7H for bea i HOH 2HLFB HOCIFFH 2HL FB MOW W CMP W Program 1 Windows Dialogs You can switch Display Hide for the line number display area address display area object code display area You can change the source file to be displayed by double clicking the line number display area You can change the display start address display start line by double clicking the address display area You can set reset the breakpoint by clicking or double clicking the breakpoint display area You can change the display ratio between the object code display area and the label display area and between the label display area and the program display area using the mouse You can open the displayed source file on the editor You must have registered the editor name You can display the coverage measurement result by specifying the option It is not displayed by default The MIX display result can be saved as a text file You can line assemble the clicked position You can scroll the display up down in units of source line 1 2
37. Command Name Short Name Pas Opens and executes a script file as 3 Wait Waits for an event to occur before command input Waitsforuserimput OOOO Halts for user input until the specified time has elapsed Outputs the screen display to a log file __ gt gt ______ Stops the output of the screen display toalogfile 2 1 12 Program Window Control Commands Command Name Short Name Func Checks function names and displays the contents of functions Up Displays the calling function Displays a called function S Displays a function call status S Sets and checks the search path o o Checksa filename and displays the contents of that file SIRS E RIS JS e O D 2 1 13 Map Commands Short Name Contents Map E Checks and sets mapping data 2 1 14 Clock Command Contents Clock CLK Checks and changes the clock ClockControl CLKC Checks and changes the XOUT P86 XCOUT pin 2 1 15 WatchDog Timer Commands Command Name Short Name Contents WatchDogTimer Sets and checks the usage condition of the watchdog timer 2 1 16 C Language Debugging Commands Command Name Short Name Contents Check value of specified C variable expression Set specified data in specified C variable expression 94 2 Table of Script Commands 2 1 17 Real time OS Command Short Name MR Displays status of realtime OS MRxx 2 1 18 Utility Commands Radix Sets and checks the rad
38. If settings are changed in the Init dialog box after starting the debugger the change is not reflected until the PDxx is restarted Note that Input from External Trigger is selected at startup The contents that were set the last time the debugger started have no effect 2 5Resume Tab The specified content becomes effective when the next being start Init File o Refer e Resume TF AutoDlomnLoad 2 5 1 Automatically Execute the Script Commands To automatically execute the script command at start of Debugger click the Refer button to specify 16 2 Setup Debugger the script file to be executed hit File OS Refer By clicking the Refer button the File Selection dialog is opened The specified script file is displayed in the Init File field To disable auto execution of the script command erase a character string displayed in the Init File field 2 5 2 Restore the Window Status To restore the window status window position window size after the previous debugger program is terminated check the Resume check box Resume is ON by default W Resume 2 5 3 Re download a Load Module To re download a load module target program check the AutoDownLoad check box Re download is OFF by default TF AutoDomnLoad 17 3 Setthe Target Information Setting information of the target for debugging is different according to the product 3 1 PD308F Set the target to be debugged i
39. It is displayed as lt not active gt If that C C language expression can be calculated correctly at the second time it becomes an effective C watch point e The display settings of the Local File Local and Global tabs are not saved The contents of the Watch tab and those of newly added tabs are saved o The RAM monitor obtains the data accessed through the bus Any change other than the access from the target program will not be reflected e The variables which are changed in real time are global variables and file local variables only eo Ifthe display data length of the RAM monitor area is not 1 byte the data s access attribute to the memory may varies in units of 1 byte In such a case that the access attribute is not unified within a set of data the data s access attribute cannot be displayed correctly In this case the background colors the access attribute color of the first byte of the data 1 9 2 Extended Menus The C Watch window provides the following menu when being active This menu is called C Watch window option Menu Options Registers a new C watchpoint A new watchpoint can be registered by specifying its name in a dialog box The result is reflected in all C watch windows Deletes a selected C watchpoint The watchpoint being selected by an active tab is deleted The result is reflected in all C watch windows Initialize Reevaluates a selected C watchpoint The currently selected watchpoint is reevaluate
40. N taddr 0000 Cancel Contents change with the setting of Event Type Following events can be set by specifying Event Type in this dialog box Oo When FETCH is selected Breaks for the instruction fetch 64 1 Windows Dialogs Address etting Range addr Address Address 1 _main Address 2 pooo TF Function ACCESS FETCH ADDRESS main CONDITION taddrs OFO149 o When DATA ACCESS is selected Breaks for the memory access Addreza Data setting Range Data data lt Data r Data 1 ooog Data 2 Janno Access rw W Mask FFFF ADDRESS data CONDITION addr 00042C 0000 lt data lt 0000 o When BIT SYMBOL is selected Breaks for the bit access Bit f Address jano Bit No 2 C Bit Symbol Condition Access Value ACCESS WRITE ADDRESS pool CONDITION taddr 000400 idata 0004 0004 Oo When INTERRUPT is selected Breaks for the interrupt occurrence or termination 65 Interrupt amp Occurence C Termination Oo When TRIGGER is selected Breaks for the status of signal input from external trace cable Trigger Detect Condition 1 14 2 Specify the Combinatorial Condition To specify a combinatorial condition specify the desired condition from the combinatorial condition specification area e When AND or OR is selected In the event specification area the event used and a pa
41. NTERNAL ERROR ER_IN2_ILLEGAL_MODE Contact your nearest distributor 106 3 Error Messages 16210 Counter of measurement time is overflow OOOO S 16211 The version of string1 and the firmware on the target are not same 16213 Can t execute that command when the target program is running 16214 Target MCU is reset state Please reset target systems 16215 Target MCU is unable to reset Please reset target systems 16216 Target MCU is HOLD state Please reset target systems 16217 Target MCU is not given clock Please reset target systems 16218 Target MCU is not given power Please reset target systems 16219 INTERNAL ERROR Break point number is Contact your nearest distributor 16220 Please download the fear orget O re2at cantdownicedtimware S 16222 Cant nd race deta which ateo rter e223 ovale vaueisoutofrange S SSS 16224 Target MCU is not under control Please reset target systems 16225 First data is larger than second data 116226 First address is arger than second address SS 16227 No event set onthe sete vanstonpan o 16228 Time out value soutofrange 16229 Process 1D value isoutofrange 16231 There was sent undefined data from Emulator Contact your nearest distributor 10233 The specifed data do nt exist 116234 Tne target progamisrunning 16235 The target programisnotrunning 16236 The measurement has already been stopping SSS 16237 The measurement
42. O re are eer ere mai een een ees 43 E O ere rye ET E er eee er ere 49 det IGS TER MENDO Wi A sie 50 Lo MENOR WINDOW ssspitamitide bardas 51 ORAM MONTTOR WINDOW sn ii aiii dins 52 1 7 RAM MONITOR AREA SETTING WINDOW oooocccccccnnnnnnnnoccnccnnononnncnnnnnonononananinos 54 LSASM WALCH MEN DO Wes sa oa 55 Bs VV CEA WINDOW iia 57 LAO CALE STACK WINDO Westin pi 59 EES ERTER A eee nore en eee anne ener nee ee eee amore ere rere 60 117 PRO PEC WINDOW exotic A oe eee ee 61 1 18 ADDRESS INTERRUPT BREAK WINDO W ooooccccccccccncnnnnnnnnnanoncnncnnnnnnnnnnncnnnnnos 62 1 14 H W BREAK POINT SETTING WINDOW 0 ee ccceeeeeeeeeceeeeeeeeceeeteteeeees 63 Lo TRACE POINT SETTING WINDOW a AA 68 LEE TRACE WINDOW an 70 LIA COV ERAGE WINDOW ai 76 LISME YINDO WS ito sites 78 TIME TRACEWINDOW ceceni ooo 80 120 MMR ANALYZE WINDOW 0 A Aaa 82 LZ2L MR TASK PAUSE WINDOW lt td aid a a 84 122 TASR TRACEWINDO Witt cada 86 1 23 PAO K ANALY Zl WINDOW a soe eres 88 1A GOLAN UOT WINDOW creet ea ocean emcee ee ee oes 88 P20 GUVOUTFU EWINDO Wi 89 1 26 S W BREAK POINT SETTING WINDOW oooocccccccccnnnnnnnnnnoconcnnnonnnnnnnnnnnonononnnnnnos 90 2 TABLE OF SCRIPT COMMANDS 92 21 TABLE OE SCRIPT COMMAND Sa 92 2 2 TABLE OF SCRIPT COMMANDS ALPHABETICAL ORDER nense 95 3 ERROR MESSAGES 98 11 Setup 1 Starting the debugger 1 Starting the debugger 1 1 Features The PD308F and PD30F have the following functions 1 1 1 Real Time RAM Monitor Function This function a
43. Plug amp Play function The installation wizard for USB device drivers starts after the device had been detected The following shows the procedure for installing the USB device drivers 1 Connect the host computer and the PC7501 emulator with USB cable 2 Set the PC7501 emulator s communication interface switch to the USB position Then turn on the power to the emulator 3 The dialog box shown below appears Found New Hardware USB Device Imetalling Go on following the wizard and a dialog box for specifying the setup information file inf file 1s displayed Specify the musbdrv inf file stored in a location below the directory where the PDxx is installed e g c mtool pdxx drivers ATTENTION o Before the USB device drivers can be installed the PDxx you use must already be installed Install the PDxx first e USB communication can be used only in Windows Me 98 2000 XP and cannot be used in any other OSs eo When using Windows 2000 XP a user who install the USB device driver need administrator rights o During installation a message may be output indicating that the device driver proper musbdrv sys cannot be found In this case specify the musbdrv sys which is stored in the same directory as is the musbdrv inf file 1 3 3 2 LAN communication with PC7501 Before the emulator can be connected in a LAN the IP address etc must first be registered in the emulator For the PC7501 emulator in default settin
44. T PD308F V 3 00 M3T PD30F V 2 00 User s Manual CENESAS Renesas Electronics Corporation 1753 Shimonumabe Nakahara ku Kawasaki shi Kanagawa 211 8668 Japan REJ10J0023 0100Z
45. The mistake is found in the specification of the debugging monitor work address 16292 Cannot specifiy to extend more than two banks 16293 Please specify the address in the emulation memory area 16295 Start address is larger than end address ne 16298 The mistake is found in the specification of the DMA area 16299 Too many 8 bits bus mode area specification A 16300 The mistake is found in the specification of the 8 bit bus mode area 16301 When Word is specified for a size the odd number address cannot be specified 16302 The S W breakpoint cannot be set in the SFR area and the RAM area 16303 The S W breakpoint cannot be set in the flash ROM area 16305 The H W breakpoint cannot be set in the SFR area and the RAM area 16306 The H W breakpoint cannot be set in the flash 16307 The H W breakpoint cannot be set 16307 16308 Too many memory mapping specification 16 309 The mistake is found in the specification of the memory mapping 109 16311 The target MCU is STANDBY STOP mode 16312 The target MCU is NO REFRESH STANDBY i mode 16313 The MCU is HOLD state 16314 Work Address value is out of range ON 16315 The received data is illegal The received data must be xxxxx But yyyyy is received 16317 The sent command cannot be executed in this H W environment 16318 The specified event is used in an another mode S 16319 The chip break O is used in
46. To our customers Old Company Name in Catalogs and Other Documents On April 1 2010 NEC Electronics Corporation merged with Renesas Technology Corporation and Renesas Electronics Corporation took over all the business of both companies Therefore although the old company name remains in this document it is a valid Renesas Electronics document We appreciate your understanding Renesas Electronics website http www renesas com April 1 2010 Renesas Electronics Corporation Issued by Renesas Electronics Corporation http www renesas com Send any inquiries to http www renesas com inquiry ENESAS 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 1s granted he
47. U pin It allows to check whether the MCU pin status matches the processor mode to be set MEU Status MME H HOLL H RO H CAVWee MC HE NC means that the value is indeterminate 3 2 1 3 Setting the Debug Option Debug Option Disable the Internal Flash ROM Click this check box if you do not want the program to be downloaded into the MCU s internal flash ROM You may need to select this option when the internal flash ROM cannot be rewritten such as when using the MCU at low voltage Initially this option is deselected 3 2 2 MAP Tab PD30F The specified content becomes effective when the next being start 23 3 2 2 1Emulation memory allocation Emulation Memory Allocation e Grea 1 Area 2 Area 3 Area d MO oon 000 agd 000 INTE RAAL INTE RAL INTE RAL INTE RAL gt This setting is effective only in the area Goo OS2 Gaol and GS Mot allocated area ls regarded az EXTERNAL The maps of SFR internal RAM and internal ROM are set automatically Set the memory area in 4 KB units into which you want the emulation memory to be mapped Four of such memory areas can be set The emulation memory 1s mapped into the areas marked Internal The unselected areas and the areas which have nothing specified are allocated to external areas Note that MAP settings are effective for only the areas CS3 CS2 CS1 and CS0 The SFR internal ROM and internal RAM are
48. am window s source display mode debug mode is configured as shown below Toolbar Current Program Counter FF Program Window samp c l ES Ed View E Sour B MIX W Dis Line Address BRE Source 0120 a la M ulal as E ee Cao Po Fy o pulmi 211 0000 o a 17 o L ra DATA SVE i 1 datal i J datal 2 datal 3 ce a w a l AL LL AL a a ee S Ti TI subi TT gt l l ok co coco Breakpoint Address Source Line Program You can switch Display Hide for the line number display area address display area You can change the source file to be displayed by double clicking the line number display area You can change the display start address display start line by double clicking the address display area You can set reset the breakpoint by clicking or double clicking the breakpoint display area Contents of breakpoint display area By staying the mouse cursor on a C language variable for a given period of time about 0 5 second the variable data is popped up You can drag the function name and then click the mouse right button to display the source file corresponding to the function You can drag the C language variable and then click the mouse right button to register the variable as the C watch point You can drag the assembler symbol and then click the mouse right butt
49. an another mode 16320 An uninitialized interrupt vector was detected MN 16321 This break function can t be set up in the ROM area or the memory area which doesn t exist 16322 This break function can t be set up in the odd number address 16323 This break function can t be set up in the middle of 32bit instruction 16324 A memory area which doesn t exist was manipulated Or A memory area was manipulated on the condition which wasn t forgiven address H xxxxx 16325 A specified reference section number is outside 16327 Tracing data can t be read from the file A 16328 The specified break condition does not correspond to the trace output mode 16329 This break function can t be set up in the LSB side parallel instruction 16330 Can t execute from the LSB side parallel instruction Specification area includes not only the internal flash ROM area but also other area 16351 A request to an unavailable RAM monitor or coverage area has been maid 16352 Not in the output mode is the event output terminal 16353 Address Interrupt Break is invalid 6354 Remove Address Interrupt Break Point s 16355 Remove Area num S W Break Point s Remove Address Interrupt Break Point s 16370 The S W breakpoint cannot be set 7 16371 The break point isn t defined at that address 16372 The number of break point is over the limit num 110 3 Error Messages 16373 Warning The s
50. arameter is wrong 17001 Can t find FTD file 17002 The FTD file is broken 17003 The number of External flash rom is over P 17004 INTERNAL ERROR The device number is illegal 17005 An Error was detected in work ram area activate commands 17006 An Error was detected in work ram area activate commands 17007 An Error was detected in external flash rom area 114 3 Error Messages Tactate commands Cid o Error Message Notes and Action 20000 Task with specified task No not found LL Context of specified task No not found 20002 Corrupted MR data No Error Message Notes and Action 20200 History of the system call issue that conforms to the search condition cannot be found No Error Message Notes and Action 20401 Task Pause function xxxxx was failed 20600 Can t use Task Trace Window without setting real time OS information 0800 The save file name filename is wrong CT 20801 Cant find symbol cca of MR 20802 mitaizaon routne of MRisnotexeouled SSS 20803 Can t find the task ofthe speciied tasknumber SSS 20804 Priority out of range 20805 Task iD out orange 20808 Flag ID out otrange SiS 20807 Semaphore 1D out ofrange 20808 Maibox 1D out range AAA AAA AAA AS A 20810 Cyclic handler ID out of range 20815 Address value is out of range 20816 File Name is illegal 20818 Can t get enough memory 26000 Addre
51. are cannot be downloaded O When although the firmware is successfully downloaded the debugger does not start Oo When the MCU goes wild or something is wrong with the trace results and you want to check whether the emulator is operating normally Select the check box to close the Init dialog box After connecting to the emulator and confirming the firmware the debugger will immediately start self check on the emulator Self check takes about 30 seconds to 1 minute If an error is found in this self check the debugger displays the content of the error and is finished When the self check terminated normally the dialog box shown below is displayed When you click OK the debugger starts up directly in that state self Check The self check succeeded This specification is effective only when the debugger starts up Self check refers to the function to check the emulator s internal circuit boards for memory condition etc Refer to the user s manual of your emulator for details about the self check function 2 1 4 Using unusing the address interrupt break function Specify whether or not to use the address interrupt break function J Enable the Address Match Interrupt Break Function e To use the address interrupt break function default Select the check box shown above In this case the address interrupt break function is used by the emulator and cannot be used in the user program e Not to use the address interrupt break f
52. as Electronics does not warrant that such information is error free Renesas Electronics assumes no liability whatsoever for any damages incurred by you resulting from errors in or omissions from the information included herein Renesas Electronics products are classified according to the following three quality grades Standard High Quality and Specific The recommended applications for each Renesas Electronics product depends on the product s quality grade as indicated below You must check the quality grade of each Renesas Electronics product before using it in a particular application You may not use any Renesas Electronics product for any application categorized as Specific without the prior written consent of Renesas Electronics Further you may not use any Renesas Electronics product for any application for which it is not intended without the prior written consent of Renesas Electronics Renesas Electronics shall not be in any way liable for any damages or losses incurred by you or third parties arising from the use of any Renesas Electronics product for an application categorized as Specific or for which the product is not intended where you have failed to obtain the prior written consent of Renesas Electronics The quality grade of each Renesas Electronics product is Standard unless otherwise expressly specified in a Renesas Electronics data sheets or data books etc Standard Computers office equip
53. as are automatically mapped 3 2 3 Flash Clear Tab PD30F The specified content becomes effective when the next being start Flash ROM Block EEE EEA DA0000 DE0000 OG0000 000000 DEOOD O OFOOOU OF e000 OF A000 OF COO DAFFFF OBFFFF OCF FFF ODF FFF DEFFFF OF7FFF OIFOFFF OF BFFF OF OFFF select All E Clear All fa The checked blocks are over written not erased on download 3 2 3 1 Setting to clear the MCU s internal flash ROM Specify whether or not to clear the contents of the MCU s internal flash ROM when downloading the target program or data The MCU s internal flash ROM is displayed block by block in the list view eo The blocks whose check marks are turned on do not have their flash contents cleared when downloading The memory contents in places not overwritten by downloading remain intact o The blocks whose check marks are turned off have their flash contents cleared when downloading Oo Pressing the Select All button keeps all blocks from being cleared when downloading O Pressing the Clear All button clears all blocks when downloading 24 4 Environmental Setting of Debugger 4 Environmental Setting of Debugger Specify debugger environment setting in the Customize dialog You can open this dialog by selecting menu Environment gt Customize The data set in this dialog remains effective for the next start Customize E shortcut Key Download Font Path ToolEnty
54. at error filename 11001 File filename not found 11002 Can t file filename open 4 l 1003 Failed to read write data to the file filename 11004 Failed to read write data to the archive filename 11005 Data value is out of range 11006 Function not found 11007 Bit Symbol not found 11008 Can not set trace points while program is running 11009 Specify BYTE access for ODD address No Error Message Notes and Action 11200 Already set hard ware break 1201 Combination of bus width and access condition 1202 Can t execute this command with PC4700L 1203 The start cycle larger than the end cycle 11204 HardwareBreak command cannot be used while H W Break Point Setting Window opens 11205 These trace data can t disassemble 11206 TracePoint command cannot be used while Trace Point Setting Window Time Measurement Window MR Trace Analyze Window or Task Trace Analyze Window opens 11207 Cycle value is out of range 11208 The bit number is out of the range 11209 Address Interrupt Break is invalid 11210 ADdressInterruptBreak command cannot be used while ADI Break Point Setting Window opens 11211 No base address is set 11212 The number of base addresses is over the limit num 11401 Can t delete temporary file 104 3 Error Messages 11402 Can t open 1 0 data file flename rg 11404 The Output file of the same already set A
55. atch tab is added by specifying its name The result is reflected in all C watch windows Remove Tab Deletes a displayed watch tab The currently active watch tab is deleted The result is reflected in all C watch windows Save Saves active watch tab content to a file The content of the active watch tab is saved to a file The contents of the Local File Local and Global tabs are not saved Load Loads saved content to an active watch tab The saved content is loaded from a file into the active watch tab The result is reflected in all C watch windows Change the display font Each window has its own font Color Change color Change the display colors All C watch window uses the common colors These menus can be selected even by the short cut menu by a right click in the window 1 10 Call Stack Window The Call Stack window displays the C language function call state of the target program 1 10 1 Configuration of Call Stack Window mA Gall Stack Window func 117 O USR MIN ed30 erog eexvorBb c i OFOTAC funci L10 0 USR MIN ed30 proge cexer8b c 0F0194 funci 25 D YUSRYMINYpda30Ypros cexpr a c i 0F0173 maint 112 0 USRYMIN pcd80 prog cexprBa c i 0F0145 166 DO USR MIN ed30 prog ncrt0 as0 0F0129 e The window displays the name of the called function and the function call position file name line number address sequentially from the current program counter position eo The top line
56. aved information of RAM monitor areas can be loaded e The default RAM monitor area is mapped into a 1 Kbyte area beginning with the start address of the internal RAM area eo The next time the debugger starts the previously set contents become effective when resume ON ATTENTION Oo The size and the number of RAM monitor areas that can be specified vary with each emulator used Refer to About the realtime RAM monitor function for details Oo Refer to Setting the RAM monitor area for details on how to add or delete RAM monitor areas or how to change the start address or size of RAM monitor areas 1 7 1 Command Button The buttons at the bottom of the RAM Monitor Area Setting window have the following meanings Button Name Content Add Shows the selected RAM Monitor Area in the RAM Monitor window 1 8 ASM Watch Window The ASM watch window is a window in which you can register specific addresses as watchpoints and inspect memory contents at those addresses 55 If a registered address resides within the RAM monitor area the memory content at that address 1s updated at given intervals by default every 100 ms during program execution The toolbar buttons may be used to perform the main functions 1 8 1 Overview of ASM Watch Window Toolbar El ASM Watch Window E oxi D oec Bain Expression Radix Data Address Bit No Data Length e The addresses to be registered are called the watchpoints One of t
57. aximum average execution time and measurement count at any measurement point The execution time of up to 4 measurement points can be measured simultaneously You can specify the event for the measurement condition in the same manner as when specifying events in the Trace Point Setting Window Event setting area Measurement result clear buttons Fa Time Measurement Window E FETCH addr 0F007 4 OFOOS FETGH addr OFOO5 feetmem FETCH taddr OFOS40 OO0000 FETCH addr 000000 start FETCH addr DF0978 Measurement Point MP1 Match Zone B1 MP2 Zone Specify Bl B3 Clear Result A MPS Single Cycle B MP4 Not U ALL MP1 MP2 MPs MP4 ot Use Measurement Result hl AY MPS 00h 00m 00s 000 ms QO0uUs 00h D m Os 000me Ulus Min 00h Om 00s 000 me Os g O0h 00m 00s O00m Ulduz Ave O0h 00m 00s 000 ms O00us t Crt U Ha MP4 xo 00h 00m 00s 000 ms O00ue Max 00h Om 00s 000 ma O00us 00h D m 00s ODO me OOOuUs Min 00h Om 00s 000 ma O00us e QO0h 00m 00s O00m O00ue Ave 00h m 00s 000 me O00us t D Crt D Measurement result display area Measurement condition setting area o The events listed below can be specified as measurement events If the contents of events are altered they are marked by an asterisk on the title bar The asterisks are not displayed after setting up the emulator PD308F PD30F Support Support Event Support Support Support Support Interrupt Support Support Externa
58. before executing an instruction at a specified address This function is realized by using the MCU s address interrupt interrupt When debugging the MCU s address interrupt interrupt function deselect the Enable the Address Match Interrupt Break Function check box on the MCU tab of the Init dialog box That way the address interrupt break function is disabled 1 1 3 Real Time Trace Function This function records a target program execution history Up to 256K cycles of execution history can be recorded This record allows inspecting the bus information executed instructions and source program execution path for each cycle 1 1 4 Time Measurement Function This function measures the minimum maximum and average execution time and the number of executions performed in a specified interval Measurements can be taken in up to four intervals at the same time 1 1 5 Coverage Function This function records the addresses executed accessed by the target program CO coverage This function helps to keep track of unexecuted addresses after the program has stopped running Use of this coverage measurement function in the test process makes 1t possible to keep track of the test items that have been omitted 1 1 6 Real Time OS Debugging Function This function debugs the realtime OS dependent parts of the target program that uses the realtime OS This function helps to show the status of the realtime OS and inspect a task execution history etc
59. ble disable These menus can be selected even by the short cut menu by a right click in the window 1 13 Address Interrupt Break Window The Address Interrupt Break Window allows you to set address interrupt break points This function stops the target program immediately before executing an instruction at a specified address This function is realized by using the MCU s address interrupt interrupt So that the address interrupt break function can only be used when the address match interrupt is not used in the user application Save Load Break Point Buttons Set Breakpoint rea Pile ES Help i Software Creak Window Filename nee Reter Line Close SY Break Point Del FEU Fe Del All FEO223 50 Global c a FE0294 L 4i Local c a Display Break Point Disable All Citable Wey Operation Buttons to Break Points e This window is available only when the address interrupt break function is used Use the MCU 62 1 Windows Dialogs tab in the Init dialog box to specify whether or not to use the address interrupt break function On this tab deselect the Enable the Address Match Interrupt Break Function check box o The number of address interrupt breakpoints that can be set varies with each product For details refer to Number of address interrupt breakpoints that can be set eo Breakpoints can be specified by Address or Filename Line No e If you have set multiple breakpoints program exe
60. compiler used and its object file format Compiler MoO yi A X Object Format IEEE 695 e Compiler Select the compiler used in your application By default this is the C Compiler of our company e Object Format Select the format of object files output by the compiler used 2 2 2 Specify the Storing of Debugging Information To save the debugging information two methods are available On Memory which saves the information in memory and On Demand which saves the information in the temporary file On Memory _ Allows high speed process because of use of memory Select the saving method On Memory is set by default Directory for Temporary Files CaWIN Dow TEMP Refer To select On Demand specify the temporary file saving directory in the Temp Dir field If you do not specify the directory the system creates a temporary file in the directory in which the downloaded load module file is saved 2 3Reset Tab The specified content becomes effective when the next being start 14 2 Setup Debugger 2 3 1 Target Reset after Down loading Specify whether you want to reset the target immediately after the target program 1s downloaded DoReset_______k Reset Default 2 4 Emulator Tab 2 4 1 Specify the Target Clock Change the setting by synchronizing with the clock used by the target microcomputer Internal is set by default Select Internal to set the internal clock and External to set the ext
61. cution stops when any one break address is encountered OR conditions Oo You can clear enable or disable breakpoints selected by clicking in the breakpoint display area You can also enable and disable breakpoints by double clicking on them e Click on the Save button to save the software break points in the file To reload software break point settings from the saved file click the Load button e If you load breakpoints from a file they are added to any existing break points 1 13 1 Command Button The buttons at the right of the Address Interrupt Windowhave the following meanings Button Name Content OOOO Help Display the help of this window Load Load setting information from a file in which 1t was saved Add Add address interrupt break Refer Open file selection dialog box Delete all break point Enable Enable break point Enable all break points Disable break point Disable all break point Shows software breakpoint positions in the Program Window 1 14 H W Break Point Setting Window The H W Breakpoint Setting window is used to set hardware breakpoints for the PC7501 emulators Selecting of effective events o te Current event list 0 x fyiH Break Point Setting Window le Enable HAN Break ass E ADDRE ACC CONDITION 000000 READ addr AS 000000 READ taddri 000000 44 D00000 READ taddr 000000 A5 000000 READ taddr 000000 AS 000000 READ faddi 000000 Combina
62. d Use this function in cases where variables although in the same name assume different types depending on scope or where when expanding more than 100 arrays you want to change a specified number of elements Change value of the selected C watch point Change radix of the selected C watch point Display the selected C watch ponit in hexadecimal Display the selected C watch point in Binary Default Default radix Display the selected C watch point in default radix Refresh Updates a variable value Variable values are updated a memory access occurs Hide type name Turns type name display on off Type names are shown on the screen or hidden The result affects all C watch windows Show char as string Selects whether to display char type as a string 58 1 Windows Dialogs The char type 1s displayed as a string or as a pointer to char type The result affects the entire PDxx Sorts C watchpoints Watchpoints are sorted The result affects all C watch windows Variables are sorted by name Sort by Address Sorts by address Variables are sorted by address RAM Monitor Sets RAM monitor function The debugger is set to use the RAM monitor function to update values during program execution The RAM monitor function is turned on or off Set or modify the RAM Monitor Area Change the sampling period for RAM monitor function Clear the access attribute for RAM Monitor function Add New Tab Adds a watch tab A new w
63. dow in which you can check execution non execution by source line o The coverage which can be measured is CO coverage o The coverage measurement area is an any any blocks 1 to 32 up to 8 Mbytes beginning with the 256 byte boundarya 1 17 1 Configuration of Coverage Window Toolbar E Coverage Window ii E Clear T Baze A Start Coverage FEO122 FE014A 7 FEO14C FEOIA exe_stub FEO1AB FEQIBC Func_Globa FEQ1BE FEQIE Func Local FEU TES FEU 10 mair FE0212 FE0222 Function Name Function Scope Coverage of Each Function e By double clicking any function line the corresponding function appears in the Source window Oo During coverage measurement appears in the coverage display area O You can change the display ratio between the function name display area and the function range display area using the mouse 1 17 2 Extended Menus The Coverage window provides the following menu when being active This menu is called Coverage window option Menu Menu Options Function Option Font Change font 76 1 Windows Dialogs Select source file Specify the source file to see the coverage Refresh Update display of coverage measurement result Clear Initialize coverage measurement result Input output coverage measurement result file Save coverage measurement result file Load coverage measurement result file 1 17 3 Time Measurement Window The Time Measurement window displays the minimum m
64. e example winnt system32 under the Windows directory in Windows NT 4 0 2000 XP For the keyboard shortcut thus created assign a file name xxxxx pif xxxxx denotes a name specified by the user and moves the file into the directory that contains makefile Open the property dialog box for PIF files and enter the make command to execute on the command line Make Properties Ei General Program Fort Memory Screen Misc a Crd line make exe F sample mak working C Awork Batch file Shortcut key None Rur Normal window Close on exit windows MT Change Icon 31 4 5 2 Specify the Editor You can start the Editor in a window which displays the source file Program window Coverage source window m Editar Path Areument Filename SF Number AL Click the Refer button in the Editor group The File Selection dialog is opened Specify the item file of the editor to be used Specify the editor parameter in the Argument field File names are stored in F and line numbers are stored in L To specify the editor options see the Editor Manual Help 4 6 Other Tab The specified content becomes effective when the next being start E Exit M Gonfirm whether closing this application or not e Glose this application when an error occurs W Stop your emulator when closing this application Execute two or more PDxx in same time
65. eak Function check box on the Init dialog box MCU tab is selected Even in this case however no address interrupt breakpoints can be set if one of the following conditions hold true Target program execution is running When operating in microprocessor mode the block that contains the address interrupt interrupt vector is mapped into an External or NoUse area 1 2 2 2 Hardware Breaks You can also set break points in the Program or Source Window To do so right click the break point setting display area for the line in which you want to set the break A display of changes to H Lines in which a software break point have been set are marked by a H in place of the in the break point setting display area BRK column You can delete the break point by right clicking again in the BRK column H changes to o Breakpoints here can be set only when the selected trace type is Fetch e The condition for the combinatorial condition of hardware breaks is set to OR the program breaks when one of break conditions is met e No hardware breakpoints can be set if the breakpoint display column of the program source window is blank 1 2 3 Configuration of MIX Display Mode The mix display mode of the window is the following configurations Toolbar E Program Window samp c Fa vien Ej Sour Fe MES V Dis Line Address BRK Obicode Label 57 oFoT20 7CF202 main es A A N
66. en Task Trace Window Task Analyze Window Open Task Analyze Window GUI Windows GUI Widows GUI Input Window Open GUI Input Window GUI Output Window Open GUI Output Window Custom Windows Custom Windows Option Entry Custom Window Custom Window Open the custom window PDxxF dose not support Display Help Display Help of Active Window Display version information 1 2 Program Window The Program window always displays the source file corresponding to the current program counter position This window is opened automatically at start The background of the program counter position is displayed in yellow This window allows you to execute the source program up to the cursor position set reset the software breakpoint and perform line assemble The Program window provides the three display modes as below O Source display mode Displays the source file of the target program Can also be used to edit the source file e Disassemble Mode Displays the disassemble result of the target program e MIX display mode Displays the source file of the target program and its disassemble result in a mixed style 1 2 1 Configuration of Source Display Mode The program window has the following two source display modes These display modes can be changed from menus on the program window eo Debug mode This mode is used to debug e g run or stop the target program 43 Edit mode This mode is used to edit the source file The progr
67. epInstruction SI Step execution of instructions Stop ____ __Stops program execution ee ee Time TraceData TD Realtime trace data display Displays disassembled realtime trace data Sets and checks a trace points 2 Table of Script Commands Cancels the alias defined fora command UnAliasAll le Cancels all aliases defined for commands Up Displays the calling function Displays the version No Wait Waits for an event to occur before command input WatchDogTimer Sets and checks the usage condition of the watchdog timer Wherey Displays a function call status Fg INTERNAL ERROR Unset err number Contact your nearest distributor 200 Can t open more xxxxx window The maximum number of the specified window is already open 202 3 Project file xxxxx is broken File not found xxxxx Path not found xxxxx 206 Not enough memory Can t execute bel anana CODE n A A CODE n 400 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 xxxxx Specified source file was not found Use the PATH command or the Environment gt Customize menu items to specify the directory containing the source file 402 Can t find search string xxxxx The specified search string was not found between the starting position and end 403 Line number o
68. ernal clock In addition to Internal and External the main clock can be chosen to be a clock which is internally generated in the emulator according to a specified clock frequency user defined clock To use a user defined clock select Generated and enter the clock frequency used in the Generated frequency input area 15 Select Generated Glock Main C Internal External Generated 30 MHz Sub Internal 7 External Enter the operating clock frequency used o The Generated frequency value can be entered in the range of 1 0 MHz to 99 9 MHz in 0 1 MHz increments o The Generated frequency value can only be set or changed when you start PD e Unless any value is set in the Generated frequency input area the option Generated cannot be selected The specified content becomes effective when the next being start Note The accuracy of the clock frequency is 5 We recommend that final evaluation be made after installing the resonator or oscillator module whose frequency is matched to the actually used Internal clock 2 4 2 Selecting event output trigger input cable Select the input output direction of cable for the PC7501 s event output trigger input Cable Select f Input from External Trigger Output Events e To enter external triggers from the cable select Input from External Trigger O To output events to the cable select Output Events The contents set here are reflected at only startup time
69. etween the label display area and the inverted assemble result display area and between the inverted assemble result display area and the execution time display area using the mouse 1 16 4 Configuration of Source Mode The source mode of the trace window is the following configurations 74 1 Windows Dialogs Toolbar Name of Source File Address of Current Cycle Trace Area Current Cycle Execution Time of Current Cycle Pet Trace Window A OL Ex Range 32511 00000 rea Break Filet C rand c 00047 Sddress OFOOS Tracce Cycle unsigned char j k static char datal 0xFF 1 whilel 1 de Fork iz 0 lt 0xFF i UFOUT UFOUTD DEDOSS 0E0040 UFUUAE UFOS DEDOS Y a y Q ddress Display a Fite Mil a ource File Uispla Line No Display Current Cycle Position Disp lay did O You can switch Display Hide for the line number display area address display area object code display area e By double clicking the line number display area you can change the source file to be displayed By double clicking the address display area you can search the execution address By clicking the source file display area and then clicking the Come button you can search the address at the clicked position Come search O In the reference cycle position display area the current cycle position is displayed as gt gt A display of indicates a line with the address information a line for which Come search ca
70. ext being start Debug Monitor Bank Address Fo Internal ROM rea FS0000 FFFFFF ts allocated Emulation Memory Allocation Bank Length Map rea 1 lo 256KB No Use rea 2 o 256KB No Use rea 3 jo 256KB No Use rea 4 lo 256KB No Use 3 1 2 1 Debug monitor s bank address settings This product allocates a 64 Kbyte contiguous address area as the emulator s work area for use by the debug monitor Specify any bank that the target system does not use The debug monitor uses a 64 Kbyte area from the start address of the specified bank Example If the specified bank is FO then the debug monitor uses a 64 Kbyte area beginning with address FOOOOOOh 19 Debug Monitor Bank Address Fo o The bank specified here cannot have its contents referenced or set The contents of this area when displayed in the Memory window or the Program Source window s disassemble display mode may not be correct The following bank addresses cannot be specified MCU internal resources e g SFR and RAM areas DRAM area and multiplexed area Interrupt vector area 3 1 2 2 Automatic emulation memory allocation for the internal ROM When single chip or memory extension mode is selected emulation memory is automatically allocated to the internal ROM area The automatically allocated internal ROM address range is displayed in this field Internal ROM Area FS0000 FFFFFF ts allocated 3 1 2 3 Emulati
71. f Source File xxxxx is over 2 Because the source file has more lines than can be displayed the file cannot be displayed in the Source Window Switch to disassemble display mode 600 The address value is outofrange 601 Can not open file xxxxx S l 602 Can t find file xxx 0 l 603 Can not save because the line number is over Can not save as the file xxxxx system error A XXXXX AAA used by another process The number of base addresses is over the limit AN 98 3 Error Messages Ooo dowe y O 800 Value is out of range 801 Can t find the register information file N 802 There s incorrect line in register information Contact your nearest distributor file 03 Not enough memory AAA Description of expression is illegal A No Error Message Notes and Action 1200 Address value is out range for scroll area 1201 The length of the set data is different from the length of the displayed data A 1202 The value is out of range The value which can A be specified is 1 to 2 1203 Can not open file string OOOO _1204 Internal Error Memory buffer is mul 5 Address value is out of range 1206 Start address is larger than end address E 1550 There is not enough memory to load the target program 1551 Can t open the target file 1552 Failed to read or to load the target file string1 1553 The loading has stopped as your request r 1554
72. f functions G Go Program execution with breakpoints GoBreakAt GBA Run target program with software break point Free run program execution GoProgramBreak GPB Run target program with software break point 95 Hardwarebreak Sets and checks a hardware break O A io OOO A Load Downloads the target program LoadMot LoadSymbol Loads source line ASM al aor aOR E Outputsthe screen display to a log file E Checks and sets mapping data Module MOD Displays modules names Move Moves memory blocks MR Display status of realtime OS MRx a Window open OverStep Jo Overstep execution of source tines Path Sets and checks the search path O Z o me use Waits for user pans Print a value of specified O variable expression Sets and checks protect breaks Quit Ci QuitsDebugger naam Sets and checks the BEES for numerical input Register JR Check and sets a register value Reload Re downloadsthetargetprogram Reset ResetsthetargetMCU Executes a source line return Scope Setsand checks the effective local symbol scope Script JOpensandexecutesascriptfile _____________ Checks segues EMO SS ee SetMemoryLword Checks and changes memory contents as 4 ee uai aa o ee ae Softwarefiveak __ 8B_ Sets and checks software breaks SottwareBreak Clear Clears software breaks SottwareBreak Enable Enables software breakpoints Status Checks the operating status ofthe MCU St
73. face switch is set correctly and after temporarily turning off the power turn it back on again Then click the Search button 5 Click the Next button and the dialog box shown below appears Set the IP address subnet mask port number and default gateway IP address When using the PC7501 on the same network s same subnet mask the default gateway IP address may be omitted Set IP Mask PortGatelWay is te X IP Address 92168110 subnet Mask 255 2552550 0 Port Number P00 Default Gateway 921681254 000 Cancel Use any 4 digit number to specify the port number Enter that number when starting the PDxx For details about the contents of the IP address subnet mask and default gateway to be specified contact your network administrator 6 Click the Set button on the dialog box The IP address etc that have been set are registered in the PC 7501 emulator When registered correctly the dialog box shown below appears setting was successful Please reboot the emulator After checking the contents of the dialog box click the OK button 7 Temporarily turn off the power to the PC7501 emulator and turn it back on again The registered IP address becomes effective after the emulator is powered up again ATTENTION e If multiple PC7501s in default settings are connected on the same network only the first PC 7501 detected is displayed eo The PC7501s which have had an IP address already set cannot be detected by
74. g of trace write condition Setting of combination condition Please refer to 1 14 H W Break Point Setting Window for the method of specifying the trace events and combination conditions 1 15 1 Specify the Trace Range For the emulator debugger PDxxF 256K cycles equivalent of data can be recorded _ Trace Area Break Before 256K iy a About 128K 1286 Save After 0 2566 Full Stores the 256K cycles 256K to 0 cycles to the point at which the target program stops Stores the 256K cycles 256K to 1 cycles to the point at which the trace point is passed Stores the 256K cycles 128K to 128K cycles either side of the trace point 68 1 Windows Dialogs Stores the 256K cycles 0 to 256K cycles of trace data after the trace point Stores the 256K cycles 256K to 0 cycles of trace data after the trace starts 1 15 2 Specify the Trace Write Condition Conditions for cycles to be written to trace memory 32K cycles accommodated can be specified Realtime trace Write Condition Cancel Total Writes all cycles Pickup Writes only the cycles where specified condition holds true Exclude Writes only the cycles where specified condition does not hold true Also following three write modes are supported JH Only cycles where specified event is established DE o Cycles from where specified event 1s established to where specified event is not established AAA Cyc
75. gs the utility setip exe included with the PDxx may be used to set the IP address etc in the emulator lt lt Setting of the LAN Interface using the SETIP EXE gt gt The utility SETIP included with the PDxx may be used to set the IP address etc in the PC7501 emulator while in default settings SETIP detects the PC7501s in default settings that are connected to the same network SETIP is stored in a location below the directory where the PDxx is installed e g c mtool pdxx utility The file name is setip exe To register the IP address in the PC7501 follow the procedure described below 1 Connect the PC 7501 emulator with LAN cable to the same network same subnet as the host computer is connected 1 Starting the debugger 2 Set the PC7501 emulator s communication interface switch to the LAN position Then turn on the power to the emulator 3 Start SETIP When SETIP has started up the dialog box shown below appears choose PC7501 click the OK button Setlp Ver 2 00 select your emulator C POdroiu C M32100T2 SDI E Cancel 4 Click the OK button and showing information on the PC7501 connected to the network This information consists of the MAC address followed by the PC7501 serial number pe A aaa E Setlp 42 00 O x ir To register the IP address click the Next button To cancel registration click the Close button If not displayed check whether the communication inter
76. has already been being executed 16238 The measurement no completed 16209 Tere is no race data oftne spected oya 16240 eres o wasesa CY 16241 The measurement counter ome overtowea 16242 POF state was released by compulsoy reset 16243 A numberof seting points exceeds tne ange 107 16245 Source line information is not loaded O 16246 The trigger mode is not a software output mode A 16247 The exception processing was detected while executing the step 16249 The writing error to EEPROM occurred A 16252 Unexecutable command code was specified S 16253 The processor mode and the target system are the disagreements xxxxx mode is used 16254 The specified bank isn t defined in the expansion memory 16255 The bank set up is duplicated 16256 The specified area includes the debugging monitor memory area 16257 The specified area includes the debugging monitor work area 16258 Flash ROM deletion error occurred Flash ROM deletion error occurred 16260 Specification area includes the internal flash ROM area 16261 When Word is specified for a size the odd number address cannot be specified 16262 Can not spesify the larger total bank size than the total emulation memory size 16263 The bank specified is defined as EXTERNAL 16264 The setting value is invalid in this processor mode 16267 All program break points in the spesified bank is 16268 Please
77. he following can be registered Address can be specified using a symbol Address Bit number Bit symbol eo The registered watchpoints are stored in an environment setup file when the ASM watch window is closed and are automatically registered in the debugger when the window is reopened O If symbols or bit symbols are specified for the watchpoints the watchpoint addresses are recalculated when downloading the target program eo The invalid watchpoints are marked by lt not active gt when displayed on the screen The order in which the watchpoints are listed can be changed by a drag and drop operation o The watchpoint symbols sizes and radixes can be changed by in place editing ATTENTION o The RAM monitor obtains the data accessed through the bus Any change other than the access from the target program will not be reflected eo If the display data length of the RAM monitor area is not 1 byte the data s access attribute to the memory may varies in units of 1 byte In such a case that the access attribute is not unified within a set of data the data s access attribute cannot be displayed correctly In this case the background colors the access attribute color of the first byte of the data 1 8 2 Extended Menus When the ASM watch window is active the following menus can be used Function Add watch point Add bit level watch point Remove selected watch point Remove all watch points Set new data to selected watch po
78. hen using the realtime OS 1 14 4 Command Button The buttons at the bottom of the H W Breakpoint Setting window have the following meanings Button Name Content Reset Discards the contents being displayed in the window and loads contents from the emulator in which they were set Saves the contents set in the window to a file Load Loads event information from a file in which it was saved Set Sends the contents set in the window to the emulator Closes the window 1 14 5 Extended Menus The H W Breakpoint Setting Window has popup menus that can be brought up by right clicking in the window Use input history for address If this menu is checked input history for address input is available in an event setting dialog box opened from the H W Breakpoint Setting Window if not the labels of program are listed for it 1 15 Trace Point Setting Window The Trace Point Setting window is used to set trace points Selecting the effective events Setting modification flag Current event list BS Trace Point Setting BUDRESS ACCESS CONDITION main FETCH addr 0F0149 fune tir FETCH addr 0F0142 data READ 000426 lt faddr lt 000436 OOO000 FETCH addr OOO000 OOO000 FETCH faddr OOO000 OOO000 FETCH faddr OOO000 omoination JAND sis ei Enable ea ree write Cond ition E 16K 16K Total etail ave Livad Close Setting of prosess IU Setting of trace area Settin
79. ick on the Save button to save the software break points in the file To reload software break point settings from the saved file click the Load button If you load software break points from a file they are added to any existing break points 1 26 2 Command Button The buttons at the right of the S W Break Point Setting window has the following meanings Button Name eae wae setting aora n som a file in wack it was saved Add add the break point Close the window Enable the break point All Enable Enable all break points Shows software breakpoint positions in the Program Window 91 2 Table of Script Commands The following script commands are prepared The commands with yellow color displaying can be executed at run time The command to which adheres behind is not supported according to the product 2 1 Table of Script Commands 2 1 1 Execution Commands Short Name Program execution with breakpoints Free run program execution Stops program execution Stop boo Status CheckstheoperatingstatusoftheMCU___________ Step S Halts for user input until the specified time has elapsed OverStep jo JOverstepexecutionofsourcelimes_ _______ Return RET Executes a source line return Reset ResetsthetargetMCU gt gt Time de Sets the run time display and checks the current setting Load IL Downloads the target program Downloads a Motorola S format file Loads source line ASM symbo
80. ies You can extract and display the history based on the specific condition The MR Analyze window functions together with the MR Trace window 82 1 Windows Dialogs This window is available only when a target program using our real time OS MRxx is downloaded 1 20 1 Configuration of CPU Occupancy Status Display Mode The CPU occupation state display mode is used to display the CPU occupation time and ratio by interrupt task The MR Trace window shows the statistical results within the range specified by the start marker and end marker FS MR Analyze h vindowy Ya Syst e Pick Up Mark 00 00 00 002 845 table ID mame Num 00 00 00 003 295 Max Run Time 00 00 00 000 449 Hin Run Time Ave Run Time Total Run Time OFFDS0 _ __SYSCALLO _ oo 00 007 000 038 oo 00 007000 010 00 00 00 000 022 00 00 00 000 296 DFFDS4 _SYSCALL1 oo 00 007000 000 00 00 00 000 000 00 00 00 000 000 oo 00 007000 000 OFFD38 00 00 005 000 032 00700 00 000 031 00700 00 000 031 00 00 00 000 095 SYSCALLZ Id 00 00 005000 000 00 00 005000 000 00 00 00 000 000 00 00 005000 000 00 00 00 000 004 00 00 00 000 002 00 00 00s 000 008 00 00 00 000 028 00 00 00 000 003 00 00007000 003 00 00007000 003 00 00 00 000 006 00 00 00 000 007 00 00 007000 007 00 0
81. in this display area About Task Pause Function The task pause function is to stop restart only the specific task while executing the target system When using the task pause function you can specify the specific task while executing all the other tasks and interrupts Also as debugging is available such as execution of Come effective debugging is provided without affection to peripheral devices controlled by tasks or interrupts The following lists terminology definitions used in this section O Pause Status Indicates a state of the specific task when stopping the task during execution of the target using the MR Task Pause window e Task Pause Pause Status Indicates a process to pause the specific task during execution of the target using the MR Task Pause window O Task Pause Go Status Indicates a process to reset Pause for the specific task during execution of the target using the MR Task Pause window O Task Pause Come Status Indicates a process to pause the specific task during execution of the target using the MR Task Pause window 1 21 2 Extended Menus The MR Task Pause window provides the following menu when being active This menu is called MR Task Pause window option Menu Menu Options 85 Font change Task pause function Task pause Go processing for target task Task pause Come processing for target task Task pause Pause processing for target task TAB setting for source file display of task source display a
82. int 56 1 Windows Dialogs Change display radix Display value in binary Display value in decimal Display value in hexadecimal Refresh Refresh display Layout Set layout Address Area Switch display or non display of address bit area Size Area Switch display or non display of data size area RAM Monitor Display RAM monitor RAM Monitor Area Set RAM monitor area Sampling period Set sampling period for RAM monitor Clear Clear the access attribute Load Load the watch points Color Set color of access attribute display These menus can be selected even by the short cut menu by a right click in the window 1 9 C Watch Window The C Watch Window displays C C expressions and their values results of calculations The C C expressions displayed in the C Watch Window are known as C watchpoints The displays of the results of calculating the C watchpoints are updated each time a command is executed When RAM monitor function is effective and the C watch points are within the RAM monitor area the displayed values are updated during execution of the target program 1 9 1 Configuration of C Watch Window ES C Watch Window a okl NX a watch Local File Local Global Name signed long long z_lLongLongTest unsigned long long e ulLongLoneTest signed int z index struct tag pS struct taz 5 ps 0x505 signed int ni 7 unsigned char cl GE B tistruct tag 5 next 030 signed int
83. ion or reexport contrary to the export control laws and regulations of Japan and or the country of destination is prohibited O 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 _hittp www renesas com en tools Contents Contents Setup 1 1 STARTING THE DEBUGGER 3 NAAA II 3 1 2 ABOUT THE EMULATOR PCT aii 4 1 3 BEFORE STARTING THE DEBUGGER 00000 di 4 LA STAR TING HED BB WG GB RR a een ees 8 2 SETUP DEBUGGER 9 AEN CURA heen ee nar ee A E ee EN 9 2 2 DEBUGGING INFORMATION TAB cc ccecececccccececccccscscscecsceceusass 14 Do RESET A o dd dg se alee cdi gars hea 14 A FN es soa oe ee o eones e oa 15 As WIL Gl D A AEE A A ANEA een eon A N ee 16 3 SET THE TARGET INFORMATION 18 A A A A A A 18 A eta es sala a Sis wea Sre osec a eee 22 4 ENVIRONMENTAL SETTING OF DEBUGGER 25 ALSO RICOTA A AA 26 AD ION TACO Vy A a o e ado a e ib 28 O O E bad a A A IS 29 AAPA A a sisi gare ees 29 AAO ON CGY AA scot ee eee es in eal ee en oils ee ns on ki 31 ARTA RA D a A E A ANAE E A A ee ee ee 32 4 7 CUSTOMIZING OF TOOLBAR o ais 34 5 ENDING THE DEBUGGER 36 Reference 1 WINDOWS DIALOGS 39 EPOX IN DO Weiss 40
84. ions Option Font Change font Set source file display tabs Change display color Change contents of display Source Display from specified source file or function Address Display from specified address or line No Program Counter Display from current program counter Switch display mode Source Mode Switch to source display mode Mix Mode Switch to MIX display mode Disasm Mode Switch to disassemble display mode Line Area Switch display or non display of line No area Address Area Switch display or non display of address area Code Area Switch display or non display of object code area Line Assemble Open Line Assemble dialog Saves MIX display result Layout Set layout Coverage Set Coverage measurement On Off Switch display or non display of Measurement result Base Change coverage base address Clear Initialize coverage measurement result Refresh Update display of coverage measurement result Edit Edit functions On Turns editing on or off Save Saves the edited contents by overwriting Save As Saves the edited contents with another name Save All Saves all of the edited contents by overwriting 1 2 6 Shortcut Menu The Program window provides the shortcut menu by clicking the mouse right button within the window This menu 1s called Program window right click menu The menu content varies depending on the clicked position eo When right clicking the line number display area or addres
85. 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 o When a script file is open you can invoke script commands from the command input area provided the script file is not being executed eo The Script Window can record the history of the executed commands to a file This function is not the same as the log function This function records not the result but only the executed 60 1 Windows Dialogs commands so the saved files can be used as the script files 1 11 2 Extended Menus The Script window provides the following menu when being active This menu is called Script window option Menu Menu Options Option Font Change font Script file operations Open script file Run script file One step execution of script file Close script file View buffer operations Save view buffer file Clear view buffer Log file operations Open log file start output to file Close log file stop output to file Record the executed commands Record the executed commands to a file Stop Recording the executed commands These menus can LE selected even by the short cut menu by a right click in the window 1 12 Protect Window The Protect window sets the protect break memory protec
86. ix for numerical input Specifies and checks command alias definitions Cancels the alias defined for a command UnAliasAll Cancels all aliases defined for commands Version VER Displays the version No Displays the date Displays messages Quits Debugger CD Window open Open Window o n Window open 2 2 Table of Script Commands alphabetical order Command Name Short Name Contents ADdressInterruptBreak ADIB Sets and checks the address interrupt break awe A Specifies and checks command alias definitions Line by line assembly Bit Checks and sets bit symbols BreakAt ko Sets a software breakpoint by specifying a line No BreakIn Sets a software breakpoint by specifying a function BreakMode BM Sets and checks hardware break mode Specifies and checks the current directory CD Checks and changes the clock ClockControl CLKC Checks and changes the XOUT P86 XCOUT pin Date Displays the date Down Displaysacalled function DumpByte DB Displays the contents of memory in 1 byte units DumpDword DD Displays the contents of memory in 4 byte units L DumpLword DL Displays the contents of memory in 4 byte units Echo Displays messages S Exit Exits the script file File Checksa filename and displays the contents of that file FillDword FD Fills a memory block with the specified data in 4 byte units Fune Checks function names and displays the contents o
87. l Shows hides grid line Saves GUI output file RAM Monitor Display RAM monitor Ram Monitor Area Set RAM monitor area Sampling Period Set sampling period for RAM monitor These menus can be selected even by the short cut menu by a right click in the window 1 26 S W Break Point Setting Window The S W Break Point Setting window allows you to set software break points Software breaks stop the execution of instructions immediately before the specified break point You can also enable and disable each of those break points 90 1 Windows Dialogs 1 26 1 Configuration of S W Break Point Setting Window Save Load Break Point Buttons Set Breakpoint rea software D reg k Windo Wn OF X Hel Filename A Reter Glose SY Break Point Del FEO1FE ET FEO223 C 50 Global c a FEG294 41 Local c inte Display Break Point Disable Al Citable Whey Operation Buttons to Break Points O You can set up to 64 software break points O If you have set multiple software breakpoints program execution stops when any one software break address is encountered OR conditions O You can continue to set software breakpoints until you click the Close button to close the S W Break Point Setting Window O 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 e Cl
88. l Trigger Support Support T ATTENTION e The Trace Point Setting Window and the Time Measure Windows use the same resource of the emulator If the event settings are modified in Time Measure Window settings of the Trace Point Setting Window are modified too 1 17 4 Time Measurement Condition For the time measurement conditions the following can be for each measurement interval Set Mesurement Point MP ae x Measurement Point Setting Mode 1 r ey Start El End Be Function E a next event 1s established event is not established ye Measures the execution time of functions The start address and the end address of the function are automatically registered for the start event and the end event respectively The measurement result includes the execution time of other functions that have been called from within the specified function Measures the execution time of functions The start address and the end address of the function are automatically registered for the start event and the end event respectively The measurement result does not include the execution time of other functions that have been called from within the specified function 1 17 5 Command Button The buttons at the right side of the Time Measurement window have the following meanings Reset Discards the contents being displayed in the window and loads contents from the emulator in which
89. l information Downloads IEEE 695 absolute format files Reload Re downloads the target program UploadHex Outputs data to an Intel HEX format file UploadMot Outputs data to a Motorola S format file 2 1 3 Register Operation Commands Command Name Short Name Contents Register R Checksand sets a register value 92 2 Table of Script Commands 2 1 4 Memory Operation Commands Short Name Dumpbyte DB Displays the contents of memory in 1 byte units DumpWord DW Displays the contents of memory in 2 byte units DumpLword DL Displays the contents of memory in 4 byte units Displays the contents of memory in 4 byte units SetMemoryByte MB Checks and changes memory contents in 1 byte units SetMemory Word Checks and changes memory contents in 2 byte units SetMemoryLword Checks and changes memory contents in 4 byte units SetMemoryDword MD Checks and changes memory contents in 4 byte units FillByte FB Fills a memory block with the specified data in 1 byte units Fills a memory block with the specified data in 2 byte units Fills a memory block with the specified data in 4 byte units Fills a memory block with the specified data in 4 byte units Move Moves memory blocks MoveWord MOVEW Moves memory blocks in 2 byte units 2 1 5 Assemble Disassemble Commands Command Name Short Name Contents Line by line assembly DisAssemble Disassembles memory contents line by line Displays m
90. lable only when a target program which uses our real time OS MRxx 1s downloaded For MR308 e The history of the high speed interrupt can not record and display e The recording and displaying the history of the OS independent interrupt processing has the limitation This function can detect the point of the OS independent interruption but not the end of it This window regard the end of the OS independent interruption as other point of interruption The other words when an OS independent interrupt occur the information of the interrupt and the tasks under the influence of the interrupt the task interrupted by the OS independent interrupt and so on is not correct The history of the OS independent interrupt is indicated in hatch style wide line For MR30 Oo For MR30 this window is available for V 2 00 or later version If a target program crated on MR30 V 1 00 is downloaded the MR Trace window will not function and not display any data 1 19 1 Configuration of MR Trace Window im MR Trace Window Elmo Em ito S Adjust A Exp A Red LP After M Break gh Sea Mark 00 00 00 002 681 00 00 00 003 1 67 00 00 00 000 486 Indicator 00 00 00 002 967 Scale 1125 356179 Grid 00 00 00 000 151 Area Break VEC table ID mame 0 1 2 3 32 OFFD80 SCALI 33 OFFD84 _SYSCALI 38 OFFD98 _SYSCALIL2 pue e a fie 9 0
91. le list when error occured Furthermore if the debugger fails to redownload a file from the download history you can choose whether or not to leave the history of that file By default the file is left If you want to delete the history select the check box shown above 4 3 Font Tab The specified content becomes effective when the next being start 4 3 1 Specify the font Specify the default font for the characters displayed by PDxx Font Fixedayz Size 11 Font Click the Font button The font selection dialog opens Enter the font and font size Note You can set the font independently in each window With the target window active select Option gt Font from the menu in the PDxx Window to open the font selection dialog 4 3 2 Specify the Displaying Tab Width In a window which displays the source files Program Window Coverage source window etc you can specify the display tab width r Tab TABO 32 E 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 tab width by window Select the PDxx window Menu Option gt TAB while the target window is active The TAB designation dialog is opened 4 4 Path Tab The specified content becomes effective when the next being start 29 File Search Path DELS RY MIN pd30 prog Add D USR MINFOTHERYpds0 prog Melete Delete All Director
92. lect all the menu which will select the display mode The MR window supports the displays listed below Ready queue status Timeout queue status Event flag status Mailbox status Cyclic handler status Alarm handler status Memory pool status If a target program created on MR30 V 1 00 is downloaded the MPL mode cannot be used on MR380 You cannot select the menu which changes the current mode to the MPL mode 1 18 2 Extended Menus The MR window provides the following menu when being active This menu is called MR window option Menu Menu Options Option Font Change font 19 Mode Switch display mode Task Display Task status Ready Queue Display Ready queue status Timeout Queue Display Timeout queue status Event Flag Display Event flag status Semaphore Display Semaphore status Mailbox Display Mailbox status Cyclic Handler Display Cycle handler status Alarm Handler Display Alarm handler status Memory Pool Display Memory pool status MR Context Display Context Layout Set Layout Status Bar Switch display or non display of status bar 1 19 MR Trace Window The MR Trace window measures the task execution history of a program using the real time OS and displays the result graphically In addition to the task execution history a history of various other operations each are traced and displayed including interrupt processing task state transition and system call issuance This window is avai
93. les from where start event 1s established to where end event is established 1 15 8 Command Button The buttons at the bottom of the Trace Point Setting window have the following meanings Reset Discards the contents being displayed in the window and loads contents from the emulator in which they were set Saves the contents set in the window to a file Load Loads event information from a file in which it was saved Sends the contents set in the window to the emulator Close Closes the window 1 15 4 Extended Menus The Trace Point Setting Window has popup menus that can be brought up by right clicking in the window v Use input history for address If this menu is checked input history for address input is available in an event setting dialog box opened from the Trace Point Setting Window if not the labels of program are listed for it 69 1 16 Trace Window The Trace window displays the measurement result of the real time trace The Trace window provides the three display modes as below e Bus Mode Allows you to reference the bus information by cycle The information is displayed in the order of execution path e Disassemble Data access Mixed Mode The executed instructions and the accessed data contents can be referenced together The contents are displayed in order of execution passes e Disassemble Mode Allows you to reference the executed command The commands are displayed in the order of execution
94. llows you to inspect changes of memory contents without impairing the realtime capability of target program execution The Emulator PC7501 System has 4 Kbytes of RAM monitor area which can be located in any contiguous address location or in 16 separate blocks comprised of 256 bytes each 1 1 2 Break Functions o Software Break This function causes the target program to stop immediately before executing the instruction at a specified address Up to 64 breakpoints can be set If multiple breakpoints are set the program breaks at one of the breakpoints that is reached Note o Hardware Break This function causes the target program to stop upon detecting a data read write to memory instruction execution or the rising falling edge of the input signal fed from an external trace cable The contents of events that can be set vary with each target MCU Specified hardware break events can be used in one of the following combinations Break when all specified break points are effected And Break when all specified break points are effected simultaneously And Same Time Break when any one of the specified break points is effected Or Break on transition in state to a break state State Transition o Protect Break This function causes the target program to stop upon detecting a data write to the ROM area or an access to an unused area read write or instruction execution e Address Interrupt Break This function stops the target program immediately
95. ls on how to change the RAM monitor area The default RAM monitor area 1s mapped into a 1 Kbyte area beginning with the start address of the internal RAM e The display content updating interval can be set for each window individually The actual updating interval at which the display contents are actually updated while running the target program is shown in the title field of the Address display area e The background colors of the data display and code display areas are predetermined by access attribute as shown below Access attribute Background color Read accessed address Green Write accessed address Red Non accessed address The background colors can be changed ATTENTION e The RAM monitor window shows the data that have been accessed through the bus Therefore changes are not reflected in the displayed data unless they have been accessed via the target program as in the case where memory is rewritten directly from an external I O Ifthe data in the RAM monitor area are displayed in lengths other than the byte it is possible that the data will have different memory access attributes in byte units If bytes in one data have a different access attribute as in this case those data are enclosed in parentheses when displayed in the window In that case the background color shows the access attribute of the first byte of the data DOTE DUDES UUD OU00 O0FL DODO OOU0 QUOD OOOO 000 0000 Moorea 0000 0000 DODO QOU0 QUOD OUS
96. ltiple defined 116 3 Error Messages 26041 Operand expression wnotcompleted OOOO 26042 Too many operand 26043 Too many operand data 26044 Undefined symbol exist 26045 Value is out orange 26040 Division by 29 zlem O o zeiss I 26050 is missing reference data is defined as global symbol 25053 valid operandexistininstucton SSS 26054 Quote 8 missing 26058 Right quote 8 missing 26056 Can t get enough memory 26057 Irati ep made SSC dS T 20059 Absolute addressingisnotaval OOOO 26060 Direct adaressing snora OOS 26061 val addressing mode dectaraion Included 26062 Syntax error in indexed addressing expression 20069 isms S E 26065 Operand value of direct addressing is out of range 26066 Operand value of absolute addressing is out of range 26067 Operand value of absolute long addressing is out of range 26068 Operand value of stack relative addressing is out of range 26069 Operand value is illegal 26070 The indirect addressing you expressed is illegal 26071 An odd number address can t be specified 26200 Line number is illegal 26201 Can t find right bracket 26202 The Number of Macro constant is over the limit num 26203 Immediate value is out of range 6204 Prefix which gives radix of the constant is illegal Description of indirect reference is illegal 117 26207 Description of expression is illegal U
97. ment communications equipment test and measurement equipment audio and visual equipment home electronic appliances machine tools personal electronic equipment and industrial robots High Quality Transportation equipment automobiles trains ships etc traffic control systems anti disaster systems anti crime systems safety equipment and medical equipment not specifically designed for life support Specific Aircraft aerospace equipment submersible repeaters nuclear reactor control systems medical equipment or systems for life support e g artificial life support devices or systems surgical implantations or healthcare intervention e g excision etc and any other applications or purposes that pose a direct threat to human life You should use the Renesas Electronics products described in this document within the range specified by Renesas Electronics especially with respect to the maximum rating operating supply voltage range movement power voltage range heat radiation characteristics installation and other product characteristics Renesas Electronics shall have no liability for malfunctions or damages arising out of the use of Renesas Electronics products beyond such specified ranges Although Renesas Electronics endeavors to improve the quality and reliability of 1ts products semiconductor products have specific characteristics such as the occurrence of failure at a certain rate and malfunctions under certai
98. mory at that area 6609 Can t execute that command when the target program is running 6610 Start address is larger than end address A 102 3 Error Messages 6613 Specified times of number is over than 65535 A 6614 INTERNAL ERROR The memory of the odd Contact your nearest distributor number byte cannot be dumped by the Word access 6617 Already set address interrupt break AN No Error Message Notes and Action 6801 Can t execute this command while some source windows are in editor mode 10000 Cannot find source file filename 10001 The number of lines of source file filename is over the limit num 10002 The address value is out of range 10004 Illegal file format 10005 Cannot read the file saved by simulator debugger 10006 Cannot read the file saved by emulator debugger 10007 Not enough memory for display all function i No Error Message Notes and Action 10202 Duplicate event set in xxxxx No Error Message Notes and Action 10400 Can t execute more come instruction 10401 Can t execute more step instruction 10402 Cycle value is out of range 10403 Can t find that address 10405 Can not read file filename 10406 The display mode is not able to change except the BUS mode Trace data is not enough or is abnormal No Error Message Notes and Action 103 No Error Message Notes and Action 11000 File form
99. n 2002 Can t open Log File filename 2003 Can t open more Log File 2005 File filename is already log on 2006 Can t open View File filename for new add 2007 Can t save command history 2200 Address valueisoutofrange LO 22011 Data value is outofrange S 2202 Start address is larger than end address 2203 Value is under mum Data value is out of range ee 2 ed i A Data is not set 2206 Sampling period value is out of range 2207 Please fill in the blanks and attach the contents 100 3 Error Messages 2400 legal endi filename Ine OoOo 2401 legal endiw filename Ine 2402 INTERNAL ERROR ER_BATEOF O 2403 Canitfind endi flename line SSS 2404 Line length is overflow filename line OO S 2405 Nest level is over ow filename line SSCS 2406 Canitfind Soript Fie filename LO Can t read Script File filename a 2408 Description s legal filename line OOS 2409 Can tfind end filename line 2410 The nest level exceeds the limit mum 2412 legal break fiename line LO 2603 You can register the only command name for alias 2604 Can t use the command now O A NO A 2605 Gantap more 2606 Cant down more 2607 Can t et break pointin this funton S 2608The start address larger han the end address 2609 Can t register that token for alias 2610 Can t register thattoken for alias C2611 Cantina Fie enam 2612 Data
100. n RB Read access bytes D Read access by DMA words RW Write access by DMA words R W Shows the status of the data bus R for r ead W for wr it e for no access RWT This signal shows the effective position in the bus cycle 0 when effective Address Data and BIU signals are valid when RWT is 0 CPU OPC OPR This shows the signal between CPU and BIU In the column CPU the data shows whether CPU accesses BIU or not In the Column OPC the data shows the byte size of read operat ion code In the Column OPR the data shows the byte size of read operand Representation CPU OPC OPR Operation code size Operand size 71 DMA accessing DMAT A ee ee DMA accessing terminal count Shows the number of bytes stored in the instruction queue buffer in the range 0 to 8 B T Shows the level of the external break trigger the EXTIN7 pin of the external trace signal input cable High level 1 Low level 0 Q T Shows the level of the external trace trigger the EXTIN6 pin of the external trace signal input cable High level 1 Low level 0 76543210 Shows the status of the 8 bit external signal pins EXTINO to EXTIN7 of the external trace signal input cable High level 1 Low level 0 h m s ms us Show the elapsed time from the target program beginning 1 16 1 2 Display of bus information on PD30F From left to right the contents are as follows
101. n be executed 1 16 5 Extended Menus The Trace window provides the following menu when being active This menu is called Trace window option Menu Menu Options Function Set tabs for source file display Change contents of display Specify cycle Address Search Search cycle by specifying address Source Change by specifying source file Change display mode Select bus mode Select disassemble data access mixed mode Disasm Select disassemble mode Source Select source mode 15 Layout Set layout Line Area Switch display or non display of line No area Address Area Switch display or non display of 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 Save Save real time trace data to file Load Load real time trace data to file Trace Stop Stop tracing Trace Restart Restart tracing These menus can be selected even by the short cut menu by a right click in the window 1 17 Coverage Window The Coverage window allows you to reference the coverage measurement result of the functions of the target program downloaded Two types of windows are provided the Coverage window in which you can check the start address end address of the functions and coverage measurement results and the Program window or Source win
102. n the Emem dialog which is opened after closing the Init dialog opened after PDxx gets started The data set in this dialog remains effective for the next start Erne tri Ea status Emulation Memory Flash Clear Processor Mode Single chip Mode z MCU Status CGNWzz Rr Air ft OK rr a FT Next Hide To keep the Emem dialog closed next time the debugger is started check Next Hide at the bottom of the Emem dialog You can open the Emem dialog using either one of the following methods After the debugger gets started select Menu Environment gt Emem 3 1 1 Status Tab PD308F The specified content becomes effective when the next being start MCU Status Chez BYTE PA he Ry AO 18 3 Set the Target Information 3 1 1 1 Select the Processor Mode Specify the processor mode for the target system Processor Mode single chip Mode Either the following can be specified Single chip Mode Memory Expansion 8 Bit Memory Expansion 16 Bit Microprocessor 8 Bit Microprocessor 16 Bit 3 1 1 2 Inspecting the MCU status Clicking this tab displays the status of each MCU pin It allows to check whether the MCU pin status matches the processor mode to be set MCU Status GHYS HME RL Atal lor yyy If the slider is at the middle position it means that the value is indeterminate 3 1 2 Emulation Memory Tab PD308F The specified content becomes effective when the n
103. n use conditions Further Renesas Electronics products are not subject to radiation resistance design Please be sure to implement safety measures to guard them against the possibility of physical injury and injury or damage caused by fire in the event of the failure of a Renesas Electronics product such as safety design for hardware and software including but not limited to redundancy fire control and malfunction prevention appropriate treatment for aging degradation or any other appropriate measures Because the evaluation of microcomputer software alone is very difficult please evaluate the safety of the final products or system manufactured by you Please contact a Renesas Electronics sales office for details as to environmental matters such as the environmental compatibility of each Renesas Electronics product Please use Renesas Electronics products in compliance with all applicable laws and regulations that regulate the inclusion or use of controlled substances including without limitation the EU RoHS Directive Renesas Electronics assumes no liability for damages or losses occurring as a result of your noncompliance with applicable laws and regulations This document may not be reproduced or duplicated in any form in whole or in part without prior written consent of Renesas Electronics Please contact a Renesas Electronics sales office 1f you have any questions regarding the information contained in this document or Renesas Electronics
104. nt etc exists between the windows the menu is enabled in all the windows having that menu 4 2 Download Tab The specified content becomes effective when the next being start Auto Download O Enable with confirmation Enable without confirmation File History Number of Files 01 16 E Remove the file name from the MRU file ligt when error occured 4 2 1 Automatically Down load of the Load Module When the downloaded load module is updated by re compile assemble the file can be auto downloaded The load module is updated at timing when it is operated by a command of execution group Go Step etc E Auto Download Appa Enable with contirmatiori Enable without confirmation f Disable Ss ee i a ee In the Auto Download group select any one of the following Disable is selected by default Enable with confirmation Asks for confirmation at auto download Enable without confirmation Does not ask for confirmation at auto download Disable Doesnotauto download the load module file 4 2 2 Setting the number of load module download histories You can set the number of load module download histories 4 is set by default Specify the number of histories in the File History Number field in the File History group You can specify the number from 1 to 16 28 4 Environmental Setting of Debugger File History Number of Files 01 16 Remove the file name from the MRU fi
105. o between the register name display area and the register value display area and between the register value display area and the radix point display area using the mouse 1 4 2 Extended Menus The Register window provides the following menu when being active This menu 1s called Register window option Menu Menu Options Option Bank0 Display registers of bank 0 Bank1 Display registers of bank 1 Layout Set layout Hide Radix Switch display or non display of radix Hide FLAGs Switch display or non display of flags display area Change font 1 4 3 Shortcut Menu Press the right button on the register display area in Register Window to display shortcut menu Menu Menu Options 50 1 Windows Dialogs Display in hexadecimal Display in decimal Display in binary Layout Set layout Hide Radix Switch display or non display of radix Hide FLAGs Switch display or non display of flags display area 1 5 Memory Window The Memory Window displays the contents of contiguous memory in address label and data contents of memory formats The display is updated after each command is executed Data can be displayed in binary decimal hexadecimal and ASCII You can open up to 30 Memory Windows You can use the Memory Windows to modify the contents of memory and also to fill and move specified blocks of memory 1 5 1 Configuration of Memory Window FL Memory Window _pool 000753 lt USP 1 ulm B DJH
106. odules names Sets and checks the effective local symbol scope Checks section information Checks and sets bit symbols Checks assembler symbols Label gt Checks assembler labels EXP Displays an assembler expression 2 1 6 Software Break Setting Commands Command Name Short Name Contents SoftwareBreak Sets and checks software breaks B Sottware Break Clear SBC Clears software breaks SoftwareBreakClearAll SBCA Clears all software breaks SottwareBreakDisable SBD Disables software breakpoints SBD S SotftwareBreakDisableAll SBDA Disables all software breaks Software Break Enable Enables software breakpoints SoftwareBreakEnableAll SBEA Enables all software breaks BreakAt Sets a software breakpoint by specifying a line No Breakin dk Sets a software breakpoint by specifying a function 2 1 7 Address Interrupt Break Setting Commands Contents ADdressInterruptBreak ADIB Sets and checks the address interrupt break 2 1 8 Hardware Break Setting Commands Contents HardwareBreak HB Sets and checks a hardware break Protect Sets and checks protect breaks BreakMode Sets and checks hardware break mode 93 2 1 9 Real time Trace Commands Short Name TracePoint TP Sets and checks a trace points Realtime trace data display Displays disassembled realtime trace data 2 1 10 Coverage Measurement Commands Short Name Contents Specifies and displays coverage measurement 2 1 11 Script Log File Commands
107. ogram Load Module Download machine language data and debugging information Memory Image Download only machine language data Symbol Download only debugging information Rom Data Additional download machine language data a ar target program Copy character strings specified to clipboard Paste character strings of clipboard Cut character strings specified to clipboard Cut character strings specified ils Undo of edit Find character strings Al Menu Options Switch display or non display of toolbar Status Bar Switch display or non display of status bar Tool Bar Child Switch display or non display of toolbar child window Setup Menu Menu Options Environment Init Environment setup open the Init dialog box Start Up Startup function settings Open Customize dialog box Start target program Run from current program counter Run from specified address Free run target program Come Run to cursor position Step Step execution Step Execute one step Step Option Execute specified No of steps Over step execution Execute one over step Over Option Execute specified No of over steps Execute until return from current subroutine Reset Reset target program Stop target program Break Point Set break point S W Break Point Open S W Break Point Setting Window H W Break Point Open H W Break Point Setting Window Address Interrupt Break Point Open Add
108. ommunication can be performed the computer must have a dedicated device driver installed in it For details on how to install USB device drivers see 1 3 3 1 USB communication with PC7501 For connection by USB communication click the USB radio button on the MCU tab si CLAN f USB Serial Mo li HMO ll Target The currently USB connected emulators are listed in the Serial No area Select the serial No of the emulator you want to connect 10 2 Setup Debugger 2 1 2 2 Setting of the LPT Interface LPT communication uses a parallel interface printer interface of the personal computer lt lt Setting of the LPT Interface gt gt To set the LPT communication click the LPT radio button of the MCU tab in the Init dialog The setting looks like the figure below f LPT C LAN C USB Type AUTO r Target YO Address 378h Specify the mode for data transfers in the Type field eo The LPT interface has four modes for data transfers Nibble Byte ECP and EPP Their modes are documented in the IEEE 1284 standard The mode possible to use depends on the PC with the PDxx O When selecting AUTO the PDxx detect the LPT interface at the start and select a mode possible to use which give better performance automatically In some PC the PDxx cannot detect the most suitable mode Check the mode which the LPT interface in the PC have and select it from Nibble Byte ECP or EPP if cannot O Specify the I O address
109. on memory allocation for an extended area When memory extension or microprocessor mode is selected emulation memory can be allocated to the extended area to be debugged in up to four areas Here allocate memory for the debug target area and specify its mapping information Emulation Memory Allocation Bank Length Map rea 1 c0 MB INTERNAL rea 2 02 256KB EXTERNAL rea d fo 256KB No Use rea 4 lo 256KB No Use Follow the procedure described below Bank Specify the bank address of the debug target area to be allocated in Set bank address hexadecimal If specified as CO C00000h is the start address of the debug target area Length Specify the size of the debug target area 256 bytes or 1 Mbytes Specify size of area If Length is specified to be 256 bytes banks 00 04 08 and up to FC every four banks are specified for Bank if Length is specified to be 1 Mbytes banks 00 10 20 and up to FO every 16 banks are specified for Bank Map Specify the mapping information Internal or External for the specified Specify area map area If no area is specified select No Use Oo Internal The area specified to be Internal is mapped into the internal area emulation memory External The area specified to be External is mapped into the external area external resources in the target system O Areas for which No Use is selected for Map and those not specified he
110. on to register the symbol as the ASM watch point You can open the displayed source file on the editor You must have registered the editor name The source file being displayed can be edited The source file can also be edited on an external editor The editor name must be registered You can display the coverage measurement result by specifying the option It is not displayed by default You can line assemble the clicked position The program window s source display mode edit mode is configured as shown below AA 1 Windows Dialogs EF Program Window samp c Ie F E E i i D while l 1 forf i 0 i lt DATASIZE i dataL i J dataL 1 datal 2 ol de a o The line number display address display and breakpoint display areas are not shown e The right click menu changes for exclusive use in edit mode o The status bar on the PDxx window shows the line and column numbers of the cursor position EDIT 7 5 P 1 2 2 Contents of breakpoint display area When a breakpoint is set the following marks are displayed in the breakpoint field of the progam window same for the source window Software Breaks OB Address Interrupt Breaks Hardware Breaks These Breaks can be set from the Program or Source Window Please refer to the following for the method of setting and clear 1 2 2 1 Software Breaks Address Interupt Breaks You can also set break points in the Program or Source Window
111. path Source Mode Allows you to reference the source program execution path Operate the buttons in the tool bar to reference the path The Trace window displays the measurement result when the real time measurement is completed If the real time measurement has not been completed the Trace window displays nothing By default 256 K cycles before the target program is stopped are recorded To change the trace measurement range to the desired event position set the required data in the Trace Point Setting window which enables more precise settings for trace events For details on the Trace Point Setting Window see 1 15 Trace Point Setting Window 1 16 1 Configuration of Bus Mode The bus mode of the trace window is the following configurations Toolbar Current Cycle Execution Time of Current Cycle Trace cycle Ton ies Address of Current Cycle Pet Trace Window BERL YoDz Sgu Eor Save Load Bie Fira Range 32511 D0000 File Cycle 00835 Address ORO Time 0000 00 540 395 Cycle Label Address Data BUS BIU RW RAT CPU ON B T T 76543710 h m s ms 2 ses disco este OFOUZC sbi 16b Ko 3 1 d 00 00 00 849 OFOOZ2E FFFA RoD 4 1 A OOOO 00 849 00833 OFUOSO 6400 Ro D 4 1 0 00 00 00 843 00832 000850 OOD RE D 3 1 g 00 00 849 008 3 000850 OOD i 3 1 d 00 00 849 008 30 OFDOS2 FDZS E 3 1 O 00 00 849 00829 OFO0S4 0926 RoD 4 1 A OO 002849 0FDOS4 0926
112. pecified range was regulated into string1 16374 Software breakpoint is already set 16375 The number of base addresses is over the limit num 16376 The block number is out of range 16377 The Generated mode cannot be specified Please set the frequency of the Emulator Generation Clock in the Init dialog box at the next startup 16381 The target system may not work correctly because the input level of string1 pin is L Check the pin level and the setting of the debugger Od 16382 The target system may not work correctly because the input level of string1 pin is H Check the pin level and the setting of the debugger 16383 The target system may not work correctly because the input level of string1 pin does not correspond to the setting Check the pin level and the setting of the debugger 16384 Check the processor mode and the string1 pin level 16385 Self Check Error Please turn off the emulator 1 string1 16400 INTERNAL ERROR Already connected with the Contact your nearest distributor target INTERNAL ERROR Fork error has happen 10402 Cant fing Host Name osman 16403 INTERNAL ERROR The Baud rate is illegal Contact your nearest distributor 16404 The connection withthe target ist ereated 110405 Can t connect wi he target 16406 INTERNAL ERROR The Time of time out is out Contact your nearest distributor of range 16408 INTERNAL ERROR Can t disconnect
113. products or if you have any other inquiries Note 1 Renesas Electronics as used in this document means Renesas Electronics Corporation and also includes its majority owned subsidiaries Note 2 Renesas Electronics product s means any product developed or manufactured by or for Renesas Electronics C 0 D DE lt Q 5 Cc Q M3 T PD308F V 3 00 M3 T PD30F V 2 00 User s Manual Emulator Debugger for PC7501 System Renesas Electronics com Rev 1 00 2003 05 WWW FENESAS 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 Keep safety first in your circuit designs O 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 appropriate 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 O These materials are intended as a reference to assist our customers in the selection of the Renesas Technology product best
114. program which is executed continuously cannot be re controlled next time the debugger gets started To start the debugger press the system reset switch on the emulator to reset the target program 4 6 4 Enabling multiple startup Multiple PDxx startup can be enabled By default multiple startup is disabled FP Execute two or more Plxx in same time To enable multiple startup check the above check box included in the Exit group 4 6 5 Display the Absolute Path of Source File If the file name is shown with a path on the title bar of the Program Source window you can choose to omit the path and show only the file name e Hide path name in Program Source Windows To hide the file path check the above check box in the Other Setting group 4 6 6 Control the Display Mode Switching of Program Window You can set switching of the display mode at stop of the target program to Suppress keep the current display mode in the Program window However the display mode may be switched depending on where the target program is stopped Try to keep your display mode in Program Window To control the display mode switching check the above check box in the Other Setting group 4 6 7 Execution History of Script Command You can save the execution history of the script command Ten sets of history data are saved by default e Save commands history in Script Window Number of Commands 0 100 E To change the history of scrip
115. ptn H 1 00 00 00 003 015 1 rsm tsk ERTaEnES EX 000000 003 051 16 siz sem semid D ae 0000 00 003 067 1 wai_sem semid D 1 E 0K OO 0000 00 100 E rem tsk earn E ORJ MAEAEA 19 snd msg pk msg RI JH 5678 pk mse R3 H 12 E OK 00 00 002003 149 20 rev msg mbxid D 1 E OK pkoms2tRi A 1234 pk mse R2 00 00 007003 183 Le Ill slp tsk By clicking the desired line you can search the system call issuance history to the clicked line The search result is pointed by the indicator which moves to the target position in the MR Trace window 1 20 4 Extended Menus The MR Analyze window provides the following menu when being active This menu is called MR Analyze window option Menu Menu Options Function Option Font Change font Go to CPU occupancy status display mode Go to ready state duration display mode Go to system call history display mode Pick Up System Call Go to mode where history of system call issued is listed after extracting information according to specified conditions These menus can be selected even by the short cut menu by a right click in the window 1 21 MR Task Pause Window The MR task pause window realizes the task pause function of the real time OS MR308 MR30 You can pause and restart the specified task from this window The window can be used only if the program containing the system and system programmer for the MR308 MR30 task pause f
116. put panel in a file and reload it 1 24 2 Extended Menus The GUI Input window provides the following menu when being active This menu is called GUI Input window option Menu Menu Options Function Edits or moves button Deletes button Copies button Paste Pastes button Create text label Display Grid Line Shows hides grid line Load Loads GUI input file Save Saves GUI input file These menus can be selected even by the short cut menu by a right click in the window 1 25 GUI Output Window The GUI Output window allows you to implement the user target system output panel in the window 1 25 1 Configuration of GUI Output Window FA GUI Output Windows You can arrange the following parts on the output panel e Label character string Displays erases a character string specified by the user when any value is written to the specified address bit eo LED Changes the display color of any area when any value is written to the specified address bit Substitution for LED ON o Text Display the text character You can label name the created button You can also save the created output panel in a file and reload it 1 25 2 Extended Menus The GUI Output window provides the following menu when being active This menu is called GUI Output window option Menu Menu Options Option Set Edits or moves parts Deletes parts Coples parts Pastes parts Creates label Creates LED Create text labe
117. r nearest distributor eel 16620 Please download the firmware to target 16621 Can t download firmware 16622 Download firmware is finished Please restart PD E Can t find trace data which is able to refer 4 Cycle value is out of range 10 61 6612 613 661 16625 Target MCU is not under control Please reset target systems 16626 First data is larger than second data 16627 First address is larger than second address 16628 First address is larger than second address PS 112 3 Error Messages 16629 No event set onthe state vansiionpath SSS 16630 Process 1D value soutofrange 16632 Check sum error of the received data occurred Contact your nearest distributor 16637 The measurement has already been being executed 16638 The measurement is not completed 16644 The program break is not set 16647 The exception processing was detected while executing the step 16649 The writing error to EEPROM occurred 16650 There was sent undefined data from simulator Contact your nearest distributor 16651 The received data is illegal Contact your nearest distributor The received data must be data But data is received 16652 INIT code is received Contact your nearest distributor 16653 Can t read write because there are no memory at that area 16654 Number of points exceeds the limit num 16655 Point already set 16656 Breakpoint of othe
118. r than our real time OS MRxx 1s downloaded 1 22 1 Configuration of Task Trace Window fe Task Trace Window F Mo Mmo M Mo lu After TH Break Mira W ita fo Adjust Exp Mark 00 00 00 000 141 00 00 00 861 101 00 00 00 860 960 Indicator 00 00 00 431 081 Scale 1 000000 Grid 00 00 00 172192 rea Break name 0 1 2 3 4 a O T E anar aen TE S O OO I anii aa Fe CO Indicates an interrupt routine name task name idle processing display idle and unknown name displayed unknown 86 1 Windows Dialogs When moving the mouse to the information displayed in the window the pop up window as below is opened showing the detailed information The following information is displayed in the status bar Oo Time value at the start marker position Time value at the end marker position Time interval between the start marker and the end marker Time value at the indicator position Display scale Time width at grid line interval Measurement trace range The grid lines are displayed using the start marker as the radix point The scale is displayed using the time at which the start marker is positioned as 0 with the left forward in time set to minus and the right backward in time set to plus The grid lines allow you to roughly understand the interrupt occurrence cycle and process time The in
119. r type already set 16657 No hardware breakpoint set at specified address 16660 Can t set more virtual output Specified vector No out of range 16662 Specified level of priority out of range Stack trace mode is not enabled 16664 The simulator engine execution error occurred 16665 Undefined instruction was executed 16666 Software break point can t be set up in the address 113 16667 Software break point can t be set up in the odd number address 16668 Software break point can t be set up in the middle of 32bit instruction 16669 Software break point can t be set up in the LSB side parallel instruction 16670 A memory territory which doesn t exist was manipulated Or A memory territory was manipulated on the condition which wasn t forgiven Can t find line num 16803 Symbol isn t defined line num token string 16804 Can t find line num Description of expression is illegal line num token string 16807 Nest level of the while statement is overflow line num 16809 There is no if statement corresponding to the else statement line num 16810 Unknown token line num token string 16811 Can t open the filename file 16812 The filename file is not a file made in the I O window 16813 The description of the memory variable is illegal line num 17000 INTERNAL ERROR External frash memory rewrite module p
120. re are mapped into external areas If compared to the case where areas are explicitly specified to be External the only difference is a download speed Downloading into these areas is slower than downloading into the areas specified to be External 20 3 Set the Target Information Oo The internal ROM area is automatically mapped into the emulation memory Therefore there 1s no need to set here eo Be careful that the debug areas will not overlap O Make sure the total size of the specified debug target areas does not exceed the emulation memory size of the emulation pod used The size of emulation memory that can be allocated varies with each emulation pod Consult the user s manual of your emulation pod The setting of the emulation memory area varies depending on the specified processor mode o Single chip Mode You do not need to specify the area to be assigned as the emulation memory The internal ROM area is automatically mapped into the emulation memory The address range of the automatically mapped area is displayed in the Internal ROM Area field O Memory Expansion Mode 8bit and 16bit If you have an area to be assigned as the emulation memory in addition to internal ROM area specify it specify it separately The internal ROM area is automatically mapped into the emulation memory The address range of the automatically mapped area is displayed in the Internal ROM Area field O Microprocessor Mode 8bit and 16bit Specify
121. rea Display color setting for task source display area Task source display area display contents change Source Display beginning from specified source file Address Display beginning from specified address or line number Program Counter Display beginning from PC position Task source display area display mode change Source Mode Change to source display mode Mix Mode Change to mixdispla ymode Disasm Mode Change to disassemble display mode Task source display area layout setting Line Area Line No display area show hide Address Area Address display area show hide Code Area Object code display area show hide Operation in the MR task window is as follows when the program display location is changed by PC position specification When the target task selected in the task pause display area is paused gt Its display position is changed to the context PC position of the task When the target task selected in the task pause display area is in a state other than pause gt The display position 1s not changed When the target task is selected from the task pause display area gt The display position is changed to the position from the current program counter in the same manner as the operation in the Source window 1 22 Task Trace Window The Task Trace window measures the task execution history of a program using the real time OS and display 1t graphically This window is available even when a target program using an OS othe
122. reby under any patents copyrights or other intellectual property rights of Renesas Electronics or others You should not alter modify copy or otherwise misappropriate any Renesas Electronics product whether in whole or in part Descriptions of circuits software and other related information in this document are provided only to illustrate the operation of semiconductor products and application examples You are fully responsible for the incorporation of these circuits software and information in the design of your equipment Renesas Electronics assumes no responsibility for any losses incurred by you or third parties arising from the use of these circuits software or information When exporting the products or technology described in this document you should comply with the applicable export control laws and regulations and follow the procedures required by such laws and regulations You should not use Renesas Electronics products or the technology described in this document for any purpose relating to military applications or use by the military including but not limited to the development of weapons of mass destruction Renesas Electronics products and technology may not be used for or incorporated into any products or systems whose manufacture use or sale 1s prohibited under any applicable domestic or foreign laws or regulations Renesas Electronics has used reasonable care in preparing the information included in this document but Renes
123. ress Interrupt Break Point Setting Window Break Set cancel software break at cursor Open Trace Point Setting Window Open Scope Setting dialog box Make Make target program Debugging Option Menu Menu Options Option The content of option menu depends on the active window The content of the menu changes automatically when an active window changes Please refer to the reference of each window for the content of the menu of each window Window Operations Basic Window Menu Menu Options Tie Tilewindows Arrange Icon Arrange icons Program Window Make Program Window active Open Source Window Register Window Open Register Window Memory Window Open Memory Window RAM Monitor Window Open RAM Monitor Window ASM Watch Window Open ASM Watch Window 42 1 Windows Dialogs C Watch Window Open C Watch Window Call Stack Window Open Call Stack Window Script Window Open Script Window Window Operations Optional Window Menu Options Protect Window Open Protect Window Windows H W Break Point Setting Window Open H W Break Point Setting Window Trace Point Setting Window Open Trace Point Setting Window Open Trace Window Time Measurement Window Open Time Measurement Window Realtime OS Windows Real time OS Windows MR Window Open MR Window MR Trace Window Open MR Trace Window MR Analyze Window Open MR Analyze Window MR Task Pause Window Open MR Task Pause Window Task Trace Window Op
124. s M iT H HOLD H RD H Chez AG BYTE WG Specify the processor mode for the target system MOU Setting ML Ms0626 Processor Mode Memory Expansion Mode External Data Bus Width 16 bit Memory Space Expansion Normal Mode e Internal Reserved rea Expansion PM1S O52 Area is fram 10000H PMO 22 3 Set the Target Information Either the following can be specified o Single chip Mode O Memory Expansion Mode O Microprocessor Mode Also you need to specify the following information according to the processor mode you ve selected O External Data Bus Width If you selected memory extension or microprocessor mode specify 16 bit or 8 bit for the external bus width Make sure the specified external bus width matches settings ofthe BYTE pin O Memory Space Expansion If you selected memory extension or microprocessor mode specify whether or not to use the memory space expansion facility Select 4MB Mode if you want to use the memory space expansion facility or Normal Mode if you do not e Internal Reserved Area Expansion Specify whether or not to extend the internal reserved area Click this check box if you want the internal reserved area expansion bit PM13 to be set to 1 while in use O CS2 Area is from 10000H Click this check box if you want the CS2 area select bit PM10 to be set to 1 while in use 3 2 1 2 Inspecting the MCU status Clicking this tab displays the status of each MC
125. s Show the elapsed time from the target program beginning 1 16 2 Configuration of Disassemble Data access Mixed Mode The disassemble data access mixed mode of the trace window is the following configurations Toolbar Address of Current Cycle Trace Cycle Trace Area Current Cycle xecution Time of Current Cycle PR Trace Window A ES Re 5 Batra MEZBUS Tl gE Mix W Dis Ej Source A er step aE Come La Save gt Load MM stop bal Range 02429 D0000 Ares Break File Cycle 00113 Address FFOB4E Time 00 00 00 000 617 Address Ubj code Access Data h m s ms us l D129 00700 00 000 617 BEBI 0009D4 0000 00 00 00 000 618 0009D2 09D6 0000 00 000 618 000902 OADE 00 00 00 000 619 133205 O 0532H 0009D4 0000 00 00 00 000 619 133405 MOY 0 0534H 0000 00 000 613 PUSH W ODOOH 000532 0000 00 00 00 000 620 000534 0000 0000 00 000 620 HO RO 00 00 00 000 620 JSR W Swrite_8 FA 0009D4 0000 0000 00 000 621 ENTER HOZH 0009D2 OOFF 00 00 00 000 622 0009D0 OBSF 00 00 0 000 622 AFOOOO 03 CF7BFF ECO write 8sez Address Display Label Display Accessed data Display Cycle Display Object Code Display Dis le Meal Execution Time Display The accessed memory contents are displayed in the accessed data display area The contents are displayed in order of address accessed data and type of access R for read W for write
126. s display area The shortcut menu same as the option menu appears O When right clicking the breakpoint display area The shortcut menu does not appear Hardware break can be set e When right clicking other area The following shortcut menu appears Debug Mode Menu Menu Options Function Right Click Jump to function Display the selected function Open Source Window Display the selected function by Source Window Set PC here Sets the PC at the cursor position Add C Watch Register the C watch point on selected variable Add C Watch Pointer Register the C watch point on selected pointer variable Add ASM Watch Register the ASM watch point on selected symbol BitAdd ASM Watch Register the ASM watch point on selected bit symbol 48 1 Windows Dialogs Open Editor Open the source file by the editor Line Assemble Open the Line Assemble dialog Saves MIX display result Edit Edit functions Turns editing on or off Edit mode Same Edit gt Copy menu Same Edit gt Paste menu Same Edit gt Cut menu Same Edit gt Delete menu Same Edit gt Undo menu Find character strings Edit functions Turns editing on or off Save Saves the edited contents by overwriting Save As Saves the edited contents with another name Save All Saves all of the edited contents by overwriting 1 3 Source Window The Source window continuously displays any position of the source file The Program window always displays the
127. shows a function at the current PC position The last line shows a function call source 59 e By double clicking the function name the call position line of the function is displayed in the Program window 1 10 2 Extended Menus The Call Stack window provides the following menu when being active This menu is called Call Stack window option Menu Menu Options Option Font Change font Jump Displays the specified function on Program Window _New window Displays the specified function on a new Source Window These menus can be selected even by the short cut menu by a right click in the window 1 11 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 file or interactively You 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 1 11 1 Configuration of Script Window Toolbar LA script Window le Save FlCtear Fec Lis PROGRAM Execution Result Area assemble _main Command History Area Enter Gommand Command Input Area eo 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 eo When a script file
128. source file corresponding to the current program counter position When the program counter points the displayed source file position its background is displayed in yellow Like the Program window the Source window allows you to execute the source program up to the cursor position set reset the software breakpoint and perform line assemble You can open up to 30 Source windows 1 3 1 Configuration of Source Window Eg Source Window sub c ES View Sour Ey MiL VW dis He Line Address BRK Source WU sub 00002 FOISD 1 Mods int j 00005 FOIAG j 00006 00783 I The Source Window configuration toolbar and option menu is the same as that in the Program Window Please refer to Program Window 49 1 4 Register Window The Register window displays the register data and flag data You can change a register flag value from the window 1 4 1 Configuration of Register Window The figure below shows a Register window of the debugger PD30F for M16C 60 20 series HM 0 Bank Register Window A la o Jfa register flag value is changed the value is displayed in red e Double clicking the register display line opens a dialog which allows you to change a register value o You can change a flag value by clicking the button corresponding to the flag o The right click menu allows you to change the display radix point and the register bank o You can change the display rati
129. ss count for that event can be specified To alter the pass count while the event to alter is being selected click the pass count value of that event e Enable He Break ADDRESS mi 1 0000 O 1 Az 0000 1 43 0000 O 1 s 0000 O 1 A5 0000 O 146 0000 e When AND Same Time is selected In the event specification area the event used can be specified No pass counts can be specified 66 1 Windows Dialogs W Enable He Break ADDRESS 1 0000 A 0000 1 43 0000 O 1 as 0000 O 1 45 0000 O 1 46 0000 e When State Transition is selected Click the Details button and the dialog box shown below appears Specification by a state transition diagram or sequential specification can be used If the content of any event is altered it is marked with an asterisk on the title bar Once conditions are set in the emulator asterisks are not displayed A time out time in each state can also be specified State Setting otate Transition 41 0000 FETCH 42 0000 FETCH As OOOO FETCH 44 0000 FETCH Time Dut Aaa aA AS 0000 FETCH e Hot Use Start 5 Statel O Stat 46 0000 FETCH ake ji x 10usec Mot Use Sequential Eso On sia gt a gt A E OK Cancel 1 14 3 Specify the Process ID By specifying a process ID it is possible to detect only event establishment under specific conditions PID Example Enable only the event that occurs in a specific task w
130. ss value is out of range 26001 Description of Assembly language is illegal LF 115 26002 Address value for JUMP is out of range O 26004 Description of expression is illegal A 26005 Addressing mode specified is not appropriate INTERNAL ERROR ALIGN is multiple Contact your nearest distributor specified in SECTION Operand value is undefined 6009 Invalid bit symbol exist Symbol value is not constant 6008 Bit symbol is in expression Invalid reserved word exist in operand 26017 INTERNAL ERROR JMP S operand label is Contact your nearest distributor not in the same section 26018 Reserved word is missing N EO T T INTERNAL ERROR No SECTION statement 26023 Operand value is not defined 2602 Operand seis ro E 26025 Operana ype isnot appropiata 26026 INTERNAL ERROR Section attribute is not Contact your nearest distributor defined 26027 INTERNAL ERROR Section has already Contact your nearest distributor determined as attribute 26028 INTERNAL ERROR Section name is missing Contact your nearest distributor 26029 INTERNAL ERROR Section type is not Contact your nearest distributor appropriate INTERNAL ERROR Section type is multiple Contact your nearest distributor specified 6031 Size or format specified is not appropriate 6032 Size specified is missing 6033 String value exist in expression Symbol is missing 26035 Symbol is mu
131. 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 O 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 O 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 contain 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 Solu
132. t function of the emulator PC7501 You can specify the memory access attribute in 256 byte units to the entire memory space 16 Mbytes 1 12 1 Configuration of Protect Window Break Mode Toolbar Pal ES Address Range Protect Break Attribute Fe Protect Window a eak Mlode 4 000000 000CFF 000000 FEFFFF FF0000 FFOCFF FFODOO FFFCFF FFFDOO FEFDFF FFFEOO FFFEFF FFFFOO FFFFFF RR TEO E Diode Mode eo The protect break function is disabled at start of the debugger o Three types of protect break attributes are provided as below Access Disable read write disabled display in red 61 Read Only write disabled display in yellow Write Only read disabled display in green o R W Enable read write enabled display in sky blue O You can use the following two methods to set protect break Specify from the target program session information Specify the memory attribute of the desired address range The specified range is adjusted to be aligned to the 256 byte boundary Example If the specified range is 0x456 through 0x567 it is adjusted to 0x400 through Ox5FF 1 12 2 Extended Menus The Protect window provides the following menu when being active This menu is called Protect window option Menu Menu Options Option Font Change font Set protect break attribute by the section information Set protect break attribute Switch break mode ena
133. t commands specify the number of history in the Number of Commands field 0 to 100 To clear history of script commands remove a check mark from the above check box in the Other Setting group 4 6 8 Source file update warning If any source file exists that has been updated after creating the target program an warning dialog box can be displayed when issuing the commands associated with target execution Warned by default W Warn to update the target program 33 If source file update warnings are unnecessary uncheck the above check box If the check box is checked the warning dialog box shown below appears The target program is not updated Please build it again IF you continue to debug program it may occur the difference between source file and debug information of object module file Do you continue this debugging Next Hide Choosing No in this warning dialog box cancels the target execution command that was going to be issued Build and download the target program Choosing Yes accepts the target execution command that was going to be issued so that the command is processed normally From the next time on until the next time downloading is processed no warnings will be displayed even when using target execution commands If the warning dialog box is closed by checking the Next Hide check box no source file update warnings are displayed from the next time on This is the same as when the Warn to upda
134. te the target program check box is unchecked 4 6 9 Label List Display in Address Setting Field It is possible to cease to display the label list in the address setting field of each dialog For the default up to 30 000 labels are displayed in the label list e Display labels in Address combo box Number of labels 0 30000 30000 To cease to display the label list remove the check mark from the above check box To change the number of label displays designate the number of labels in the Number of Labels field 0 30 000 4 7 Customizing of Toolbar The toolbar buttons on each window can be customized To customize any button right click on the window s toolbar The popup menu shown below appears Flat style v Text labels Labels on right side Customize Flat Style Flattens the button when checked Text Labels Shows text below the button when checked Labels on right side Shows text to the right of the button when checked Opens a toolbar customize dialog box For details about the toolbar customize dialog box see Assigning Buttons to the Toolbar 4 7 1 Assigning Buttons to the Toolbar To do this double click an area in which no button is placed in the tool bar in the window The Customize Tool Bar dialog opened 4 Environmental Setting of Debugger Customize Toolbar Available buttons Toolbar buttons separate Y load Module Add gt SW Break Point Help Memos Image e Remove Symbol
135. terval time width of the displayed grid lines appears in the Grid area of the status bar The time value in the Task Trace window means the execution elapsed time using the program execution start time as 0 in all the cases On the contrary the numeric value above the grid lines scale in the Task Trace window is a relative value using the start marker as 0 the grid interval is specified in the Value dialog It has nothing to do with the time value This is provided so that you can see the window easily 1 22 2 Extended Menus The Task Trace window provides the following menu when being active This menu is called Task Trace window option Menu Menu Options Function Change font Move start marker into display screen area Move end marker into display screen area Move indicator marker into display screen area Adjust display by expanding range of start and end markers to full width of display area Increase scale factor of display Reduce scale factor of display Set measurement range condition to After Set measurement range condition to Break Set various values Set various display colors Set target RTOS information These menus can be selected even by the short cut menu by a right click in the window 87 1 23 Task Analyze Window The Task Analyze window displays the result of the measurement data statistically analyzed within the range specified by the start marker and the end marker in the Task Trace window
136. tes all the menus except the option menus of each window When the category of the window name is selected the menu options available in that window become enabled When the category name Custom Window is selected the registered Custom windows become enabled PDxxF do not support this function o When the category name Script Command is selected the registered script commands become enabled Menu List list box Lists the menus enabled in the menu category selected in the Category combo box The listed menus are sorted in the alphabet order Key Edit box Specifies the shortcut key to be assigned to the menu selected in the Menu List list box Current Key Assign list box Displays the shortcut key to be assigned to the menu selected in the Menu List list box ADD button Enables the shortcut key specified in the Key Edit box DEL button Disables the shortcut key selected from the Current Key Assign list box Current Shortcut Key List group Lists the preset shortcut keys SAVE button Saves the shortcut key information displayed in the Current Shortcut Key List group in a file LOAD button Reads the shortcut key information from a file SCR button Registers a script to be assigned to the shortcut key CB button Registers the Custom window to be assigned to the shortcut key PDxxF do not support this function lt lt Registering the shortcut key gt gt 1 Select the category of the menu to be registered in the
137. th the left forward in time set to minus and the right backward in time set to plus The grid lines allow you to roughly understand the interrupt occurrence cycle and process time The interval time width of the displayed grid lines appears in the Grid area of the status bar The time value in the MR Trace window means the execution elapsed time using the program execution start time as O in all the cases On the contrary the numeric value above the grid lines scale in the MR Trace window is a relative value using the start marker as O the grid interval 1s specified in the Value dialog It has nothing to do with the time value This is provided so that you can see the window easily Note The software interrupt number is different according to product PD308F MR308 has interrupt numbers 48 to 63 for the INT instruction reserved for issuing a system call The interrupt routine names displayed for interrupt numbers 48 to 63 are shown below SYSCALLO _SYSCALL1 62 58 E _sys_ext_tsk SYSCALLA For details about which interrupt number is assigned to which system call refer to the MR308 Reference Manual Assemble Language Interface PD30F MR30 has interrupt numbers 32 to 47 for the INT instruction reserved for issuing a system call The interrupt routine names displayed for interrupt numbers 32 to 47 are shown below Interrupt Routine Name _SYSCALLO SYSCALL1 34 _sys_ret_int
138. the area to be assigned separately There is no area which is automatically assigned ATTENTION o The mapping setting data specified using the Map command is not reflected to the Emem dialog box O Set the emulation memory areas in the order of usage priority The emulation memory areas to be set by the Map command are numbered ignoring the unused Not Use areas Accordingly the emulation memory areas set in the Emem dialog box and the emulation memory area numbers set by the Map command will be mismatched 3 1 3 Flash Clear Tab PD308F The specified content becomes effective when the next being start Flash ROM Block FSDDDO FaFFFF FS0ODO FOFFFF select All FADOOO FAFFFF FB0000 FBFFFF _ Clear All FOOOO0 FOFFFF FDOOOD FDFFFF FEOOOO FEFFFF FFODOO FFVFFF FF8000 FFOFFF El OOOOUOOOOO The selected blocks are over written Snot erace on download 3 1 3 1Setting to clear the MCU s internal flash ROM Specify whether or not to clear the contents of the MCU s internal flash ROM when downloading the target program or data The MCU s internal flash ROM is displayed block by block in the list view e The blocks whose check marks are turned on do not have their flash contents cleared when downloading The memory contents in places not overwritten by downloading remain intact o The blocks whose check marks are turned off have their flash contents cleared when downloading Oo Pressing the Select All bu
139. tion PID AND Detail TF Enable Detail 7 1 1 1 1 1 Reset SAYE Load Setting of Process ID Setting of combination condition 63 eo The events listed below can be specified as break events If the contents of events are altered they are marked by an asterisk on the title bar The asterisks are not displayed after setting up the emulator PD308F PD30F Fetch Support Support Support Support Support Support Interrupt Support Support External Trigger Support Support e Events at up to eight points can be used These eight events can be combined in one of the following ways O Break when all of the valid events are established AND condition O Break when all of the valid events are established at the same time simultaneous AND condition O Break when one of the valid events is established OR condition O Break upon entering a break state during state transition State Transition condition o At the time the debugger starts up the hardware breaks have no effect 1 14 1 Specify the Break Event To set events double click to select the event you want to set from the event setting area of the H W Break Point Setting Window This opens the dialog box shown below Event name Specify the event type 41 Set Event Statue HEI l Event Type Range taddr Address Address 1 poog Address 2 jonas FP Function ACCESS FETCH ADDRESS 0000 CONDITIO
140. tions Corporation by various means including the Renesas home page http www renesas com e 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 O 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 e The prior written approval of Renesas Technology Corporation and Renesas Solutions Corporation is necessary to reprint or reproduce in whole or in part these materials O f 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 divers
141. ts Beter e Use the same directory as the absolute module file Other Settings Reter To change the directory in which the ASM C watch point information file is saved reset a check mark 30 4 Environmental Setting of Debugger from the Use the same directory as the absolute module file check box in the Directory Setting group Then the Watch Points field is enabled Click the Refer button on the right of the Watch Points field and specify the saving destination directory from the Directory Selection dialog To change to directory in which other information file is saved click the Refer button on the right of the Other Settings field and specify the saving destination directory from the Directory Selection dialog 4 5 Tool Entry Tab The specified content becomes effective when the next being start 4 5 1 Starting the make command First prepare a PIF file from which to start the make command To create a PIF file see Creating a PIF file Make Directory Reter PIF Filename Click the Refer button in the Make group The Directory Selection dialog is opened Specify the directory in which the Make file exists Name the PIF file to be registered in the PIF Filename field 4 5 1 1Create a PIF File l Create a keyboard shortcut for command com located in the Windows directory Command com is in the Windows directory in Windows95 98 It is in the system32 directory Th
142. tton keeps all blocks from being cleared when downloading O Pressing the Clear All button clears all blocks when downloading 21 3 2 PD30F Set the target to be debugged in the MCU Setting dialog which is opened after closing the Init dialog opened after PDxx gets started The data set in this dialog remains effective for the next start MCU Setting EO x MCU MAF Flash Clear MCU Setting MGU Status MCU Ms062P Mh H Processor Mode Aia SY cit atu aaa HOLD H ROM H External Data Bus Width 16 bit gt CAvez NG Memory Space Expansion Normal Mode z BYTE WG e Internal Reserved Area Expansion 4P M13 GS2 Area is from 10000H 4P hi0 Debug Option Disable the Internal Flash ROM suth AWD I Next Hide If you do not want the MCU Setting dialog box to be displayed the next time you start the debugger select the check box Next Hide at the bottom of the MCU Setting dialog box To open the MCU Setting dialog box choose MCU Setting from the Environment menu after starting the debugger 3 2 1 MCU Tab PD30F The specified content becomes effective when the next being start MEU setting Mic L 506 26 Processor Mode Single Chip Mode External Data Bus Width 16 bit z Memory Space Expansion Normal Mode e Internal Reserved Grea Expansion PM1S GS Area is from 10000H PMO Debue Option Disable the Internal Flash ROM 3 2 1 1 Select the Processor Mode MCU Statu
143. unction Deselect the check box shown above In this case the address interrupt break function can be used in the user program The contents set here are reflected at only startup time 2 1 5 Using unusing the watchdog timer only PD308F Specify whether or not to use the watchdog timer By default the watchdog timer is unused F Debue the program using the Watchdog Timer When debugging the target system that uses a watchdog timer select the check box shown above 2 1 6 Choosing to use or not to use CPU rewrite mode Specify whether or not you want to use CPU rewrite mode By default CPU rewrite mode is unused Debug the program using the GPU Rewrite Mode Select the above check box when you are debugging the target system that uses CPU rewrite mode This specification can only be set or changed when you start PD Supplementary explanation When debugging in CPU rewrite mode is enabled the following limitations apply O Address match breakpoints cannot be set PD308F 13 O No software breaks can be set in the internal ROM area PD308F PD30F Oo The command Come cannot be executed in the internal ROM area PD308F PD30F 2 2 Debugging Information Tab The specified content becomes effective when the next being download Compiler NESOWA Object Format IEEE 695 e On Demand Directory for Temporary Files CHWN Does TEMP 2 2 1 Specifying the compiler used and its object format Specify the
144. unction is downloaded The MR30 task pause function 1s supported with MR30 V 3 00 or later Previously installed target programs cannot be used with this window 84 1 Windows Dialogs 1 21 1 Configuration of MR Task Pause Window EF MA Task Pause Window demo c Ed View B Sou By MIX V Dis a Selected Task 3 i taskiga ID name Pause Line Address Pall Source 1 main 00158 Wwoid task003L El taskD02 00159 01021 H a taskita 00160 ER ercd A askima 00161 UINT fleptn A task005 Pause PC 0F1CBBH TVER pk_ver El taskite int i Tn skimi 8 task008 00165 OF ICD while i 4 Tm task009 00166 mM ercd clr_flet IDflaz_ 1 UINT 0x 10 task0107 00167 OF 140 for ki z0 1 lt 105 itty 1 HN skimi 00168 mAB eet_verlipk_ver 00183 E 00170 00171 0F1059 NE ercd wai_flel amp fleptn IDflaz_ 1 00172 0F1CEB mra MEE H 00174 00175 Wwoid task004 00176 OFIGEF l H mmm ER ercd 00178 T_ZYER pk_ver e The information ID number name context PC value during Pause on all the tasks defined in the configuration file when creating the target program is displayed in the task pause display area Select the target task for task pause from this display area o The specified program content is displayed in the task source display area When performing task pause Come specify the stop position using the cursor
145. vale 1 out of range O 2613 Cantina the specified direcoy 2614 Cant open thewindow SP 6000 INTERNAL ERROR ER_ENV_END Contact your nearest distributor 6200 SYMBOL file is illegal 6203 Can t get enough memory 6204 Cannot open temporary file 6402 Cantina symbol 6409 Description of expression legal 6404 Description s legal LO 101 6413 The operation does not be allowed to pointers 6414 The operation does not be allowed to the pointer 6415 Can t decrease by pointer 6416 Divided by O 6417 The operator is not supported 6418 Type information is broken 6419 Left value must be the pointer 6420 Left value must be a structure or an union A 422 Left value must be reference of a structure or an union 6 6427 The array variable is illegal 6428 The essential number of array is illegal 6429 The operand must be an address value 6430 Type casting for register variable is not be supported 6431 The type of type casting is illegal 6432 Type casting for that type is not be supported 6433 This expression can not be exchanged for some address value No Error Message Notes and Action 6603 The number of break point is over the 5 OOOO num 6604 The break point isn t defined at that address A 6606 INTERNAL ERROR ER_IN1_ ILLEGAL MODE Contact your nearest distributor has happen in xxxxx 6607 Can t read write because there are no me
146. while 1 000403 00010 fort i 05 i lt OFF gt i 000404 00011 j randO 000405 00012 datali i 000406 00013 rand 000407 00014 dataLj 000408 __memt 00 00015 00076 Address l Od 000340 20 FF 53 ai 000380101 00 00 OO OF OO 01 FF OO 000300 00 99 EE 00 OU 00 Es OO EQ 00 000300 00 A 00 OO 00 00 00 00 00 OO O00SED 00 00 00 EA 00 E rl 4 100 h OO m OO sec 154 meec 552 usec MEL STOP le eo The main commands such as execution stop of the target program and step execution are allocated to the tool bar The Option menu 1s dependent on the active window When the active window 1s changed the Option menu is automatically changed The status bar at the bottom of the PDxx window shows the following information Explanation display of menus and buttons Display the communication interface Execution time required from start to end of the target program execution Execution state of the target program during execution or execution stopped Display the Cause of the Program Stoppage 1 1 2 Tool Bar A basic operation is allocated to the toolbar 40 1 Windows Dialogs Button Button Name Jb Go Execute target Program io Execute the target program from the value in the program counter to the position of the cursor 1 1 3 Option In the PDxx window the following menus are prepared File Operation Download Download target pr
147. with the Contact your nearest distributor target INTERNAL ERROR Can t send given size data Contact your nearest distributor 16410 INTERNAL ERROR Parameter is illegal Contact your nearest distributor 16411 Illegal Host Name 16413 Communication ERROR Can t send data 16414 Communication ERROR 16412 Communication ERROR The connection with the target is closed 111 Can t send data Target is already used oo connection doesn t support on Windows Can t find Simulator Engine a Address value is out of range Address value is out of range That baud rate has not yet supported 16602 Bit number is out of range 16603 STOP execution 16605 Monitor File filename is broken 16606 Can t find File filename 16607 Target system is not constructed properly 16608 INTERNAL ERROR ER_IN2_ ILLEGAL MODE Contact your nearest distributor has happen in string1 16609 Mask value is out of range 7 6 Counter of measurement time is overflow The version of PD and the firmware on the target are not same od a OO ts Can t execute that command when the target MA program is running Target MCU is reset state A 5 Target MCU is unable to reset Please reset target systems oe ed Target MCU is HOLD state 66 Target MCU is not given clock Please reset target system 6618 ee MCU is not given power INTERNAL ERROR Break point number is Contact you
148. wn the Ctrl key 2 1 MCU Tab The specified content becomes effective when the next being start MCU m30830 mcu Refer e LPT LAN C USB IF Address i 015 63160 larget Ps Port 7500 I Self Check m Resource W Enable the Address Match Interrupt Break Function FF Debug the program using the Watchdog Timer Debug the program using the GPU Rewrite Mode 2 1 1 Specifying the MCU file MCL M30626 MCL Refer Click the Refer button The File Selection dialog is opened Specify the corresponding MCU file An MCU file is saved under the directory in which PDxx is installed For example c mtool pdxx mcufiles e An MCU file contains the information specific to the target MCU o The specified MCU file is displayed in the MCU area of the MCU tab 2 1 2 Setting of the Communication Interface The displayed data varies depending on the specified communication interface The figure below shows the data when LAN communication 1s selected LPT LAN C USB IP Address f 01563160 Wareet Port 7500 The available communication interface varies depending on the products The following shows the setting for each communication interface e USB Interface eo LPT Interface eo LAN Interface 2 1 2 1 Setting of the USB Interface USB communication uses the personal computer s USB interface It is compliant with USB 1 1 lt lt Setting of the USB Interface gt gt Before USB c
149. y Assen Download machine language data and CR Download only machine language date Download only debugging information Append machine language data B Reload target program Save specified memory Image to a E file Current Shortcut Rey List Glt Main Meru Glit Memory Window Display in Bytes unit Gltt4 Memory Window Display in 4Bytes unit Ctrl Main Menu 4 1 1 Register the menus to the shortcut keys You can register the menus to the shortcut keys You can also register execution of the script file and opening of the Custom window to the shortcut keys e Assignable shortcut keys are any one key or combination of Shift Ctrl Alt keys any one key Any one key covers the following Alphabet key Numeric key Function key Symbol key O etc O When the shortcut key information is changed the following dialog appears when exiting from the Customize dialog when clicking the OK button asking you whether you want to save the changed data or not pd30 ES AN Shortcut key setting le changed Save this setting When you save the changed data the data is automatically loaded at the next start of PDxx lt lt Specification of Shortcut Key Tab gt gt Key Assign Group Category combo box 26 4 Environmental Setting of Debugger Displays the menu category The enabled menus in the selected category are displayed in the Menu List list box e The category name Main Menu indica
150. y Setting Watch Points Beter W Use the same directory as the absolute module file Other settings Reter 4 4 1 Specify the Search Path of Source Files You can specify the directory position search path of the source file to be displayed in a window such as the Program Window This method is useful when the source file does not exist in the current directory or divided into multiple directories File Search Path DAS R MIN pd30 prog Add D USR4MIN O THE R pd30 prog Delete Delete All Dale Delete All To register the search path click the Add button in the File Search Path group The folder selection dialog is opened Specify the directory in which the source file exists To delete a certain search path click the target search path and click the Delete button To delete all the search paths click the Delete All button 4 4 2 Specify the Saving Directory of Information File You can specify the directory in which the ASM C watch point information file and other information file are saved Other files cover the following O Script command execution history file eo Break information file The default saving destination directory of the ASM C watch point information file is a directory in which the load module exists The default saving destination directory of other information file is a directory in which PDxx has been installed example c mtool pdxx Directory Setting Watch Poin
Download Pdf Manuals
Related Search
Related Contents
SIGID – Nível Usuário - MAPA Network Video Recorder 女の糧報通信企業 KULINARISK Microwave combi with forced air Manual de Instrução 「メイクスマートケア」カタログのダウンロード クレソンのおひたし ストレッチホース専用ジェットパワースプレー Exhibitor Manual 取扱説明書:PDF 約6.1MB Copyright © All rights reserved.
Failed to retrieve file