Home

M3T-PD308 V.5.00/M3T-PD30 V.8.00 User's Manual

image

Contents

1. Start Up Startup function settings Open Customize dialog box Debug Go Start target program Go Run from current program counter Go Option Run from specified address Free run target program Come Run to cursor position Step execution Execute one step 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 Resettargetprogram 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 Set cancel software break at cursor Open Trace Point Setting Window Open Scope Setting dialog box Make target program 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 Basic Cascade Cascade windows Windows Source Window Open Source Window ASM Watch Window Open ASM Watch Window C Watch Window Open C Watch Window Call Stack Window Open Call Stack Window 48 1 Windows Dialogs Script Window Open Script Window Window Operations Optional Window Menu Menu Options Function Protect Window Open Protect Window
2. H W Break Point Setting Window Open H W Break Point Setting Window Trace Point Setting Window Open Trace Point Setting Window Trace Window Open Trace Window Data Trace Window Open Data Trace Window Coverage Window Open Coverage 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 Open 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 Does not exist according to the product Help Menu Menu Options Function Display Help Display Help of Active Window About Display version information 1 1 4 Display the Cause of the Program Stoppage If the program is stoped by the emulator s debug function the cause of the stoppage is displayed in the SU STOP BREAK Program Z PDxx window s status bar The cause of the stoppage Forced Forced break from the front end Program Hardware break logical combination AND or AND same time condition was met Hardware break logical combination OR condition was met Ax The event number of which condition was met Event S
3. taski WAT CFLG SUS OOOOH THF_ORN OFIAZEH task10 OFIA46H _task11 OOOOH HAT SEM SUS OOOOH Oe oe OO e Po Z hi 1 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 select all the menu which will select the display mode The MR window supports the displays listed below Button Contents Task status Ready queue status Timeout queue status SEM MBX 85 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 16 2 Extended Menus The MR window provides the following menu when being active This menu is called MR window option Option Font Change font 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 poo
4. 0O 0O F W and Work Area O X O Memory Extention Mode X 0O 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 down the Ctrl key 2 1 MCU Tab The specified content becomes effective when the next being start If the contents are set newly again from the Init dialog box after startup new settings do not take effect unless you restart PDxx 10 2 Setup Debugger Following figures are examples of displaying PD30 MED MmMoa06710 mcu Refter Parallel Serial C LAN t LPT f USB serial Ho bd Tareet Self Check Resource MCU Glock 8 000000 mb 2 MI 2 1 1 Specifying the MCU file MOU Matz MeL Reter 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 eo The specified MCU file is displayed in the MCU area of the MCU tab If the corresponding MCU file is not contained in the debugger emulation pod you must create a new MCU file To do this see the following e Method of making MCU file PD30 2 1 2 Setting of the
5. Command Name Short Name Contents WatchDogTimer WDT Sets and checks the usage condition of the watchdog timer 2 1 15 C Language Debugging Commands Contents Print Check value of specified C variable expression et Set specified data in specified C variable expression YN 2 1 16 Real time OS Command Contents R Displays status of realtime OS MRxx lt 2 1 17 Custom Command Window Commands Command Name Short Name_ Contents Macro The reference and registration of the custom programs Delete custom program Delete all custom programs Sets and checks the search path for custom programs Short Name Radix Setsandcheckstheradixformumericalimput Specifies and checks command alias definitions Cancels the alias defined for a command Cancels all aliases defined for commands Displays the version No Date Displays the date Specifies and checks the current directory Window open 2 2 Table of Script Commands alphabetical order Command Name Short Name Contents Alias Specifies and checks command alias definitions Line by line assembly Bit Checks and sets bit symbols 103 BreakAt ll Sets a software breakpoint by specifying a line No Breakin ld Sets a software breakpoint by specifying a function BreakMode U M HS B Sets and checks hardware break mode M BM CD jp Specifies and checks the current directory Coverage U M HS CV Specifies and displays covera
6. Delete All Dalis Delete Al 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 34 4 Environmental Setting of Debugger 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 sim Directory Settings o Watch Points Jf Use the same directory as the absolute module file Other Settines To change the directory in which the ASM C watch point information file is saved reset a check mark 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 fro
7. M3T PD308 V 5 00 M3T PD30 V 8 00 Emulator Debugger for PC4701 System User s Manual Rev 1 00 ay 1 2003 Renesas lechnology REJ10J0024 0100Z www renesas com 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 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
8. RW DWW 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 CPU OPC OPR Operation code size Operand size DMA 1 Windows Dialogs DMA accessing AE A DMAT DMAaccessing terminalcount 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 12 1 2 Display of bus information on PD30 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 16
9. Read 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 e As the count resource for time measurement specify the MCU cycle operation clock of the target mcu instead of the emulator clock 16MHz in the init dialog If you specify the emulator clock the measurement result will be incorrect 1 15 1 Time Measurement Condition For the time measurement conditions the following can be specified for each measurement interval mara Set Mesurement Point MP1 oo a x Measurement Point Setting Mode 1 r E AAA Start El End Be Function E eo Measures the time in an interval from where the start event is established till where the end event is established EEE the next event is established the event is not established 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 measurem
10. 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 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 illegal 16220 Please download the firmware to target Ss 16222 Can t find trace data which is able to refer 16224 Target MCU is not under control Please reset target systems 116225 First data is larger than second data 16226 First address is larger than second egres 16227 No event seton he satetransiionpath o 16228 Time out value is out of range 16229 Process 1D vaveisoutotran OOOO 10233 The speciied data donotexist 16234 The target program is running 16236 The target program snotruming Sf 16236 The measurement has already been sopping SSS 16237 The measurement has already been being executed 16238 The measurement is not completed SSS 16239 There is no trace data of the specified cycle MN 16240 There is no trace data 16241 The measurement counter of time overflowed NA 115 16242 POF state was released by compulsory reset A 16243 A number of setting points exceeds the range Y 16245 S
11. 6 7 8 49 4 48 C D E F ASCII OO0SFU OO0400 Te TR U0 OO OO OO OO 00 U0 OO UO 00 W 000410 _ BRRtsk 01 000420 U6 UF 08 09 000430 000440 000480 000460 000470 000480 000490 000480 __TCB_tm 000480 11 0E 00 00 0 eo The RAM monitor area can be changed to any desired address range Refer to Setting the RAM monitor area for details 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 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 Oo Ifthe data in the RAM monitor area are displayed in lengths other than the byte it is possible that the
12. samp c Ed View E Sour B MIX Y Dis Line Address BRE Source 0126 o o TI TI o L L L e aa gt gt TI 1 a a WOO Init Init m DATA SVE i 1 dataLi 1 J datal 2 J datal 3 cc a aia l AL AL a a E Th q sub dal hala Solo l l l OO 00 00 A o aE E 29 601431 Breakpoint Address Source Line Program o You can switch Display Hide for the line number display area address display area eo You can change the source file to be displayed by double clicking the line number display area o You can change the display start address display start line by double clicking the address display 50 1 Windows Dialogs area o You can set reset the breakpoint by clicking or double clicking the breakpoint display area Contents of breakpoint display area eo 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 O You can drag the function name and then click the mouse right button to display the source file corresponding to the function e You can drag the C language variable and then click the mouse right button to register the variable as the C watch point O You can drag the assembler symbol and then click the mouse right button to registe
13. 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 2 PD30 3 2 1 Specify the Memory Mapping Please set the memory mapping as follows Area Mapping Note SER Etema memalRAM A A internal ROM External ROM Memory Expansion Mode Microprocessor Mode Please use the MAP command to change the memory mapping Note e The emulator temporarily uses the area from FFFCh to FFFFh as a stack Set this area as Oo Internal O If you want to set this area to External be sure to prepare read write unprotected memory for Oo the area e When using the memory space expansion function on the M16C 62 Series microcomputer set the O areas whose addresses are duplicated to External The duplicated area depends on memory Memory space expansion mode 1 4000h to 2FFFFh Memory space expansion mode 2 40000h to BFFFFh 28 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 xt Shortcut Key Download Font Path Tool Entry Other Kep None Menu List Curent Rey Assign Download
14. 1 0458 signed char 4 b0 bit bi 3 0458 unsigned char bh al 139 0458 THO biti b CEE a lt n Scalp 100 Gnd 500 us Mark 00 00 00 584 863 00 0000 58 808 00 00 00 000 255 E oars Ss O In the data reference area you can inspect memory values at the point of a cycle currently in interest or the values of registered C variables eo Inthe access history reference area you can see the history of accesses to registered addresses in chart form e In conjunction with the Trace Window you can inspect memory values at the point of a cycle you are watching in the Trace Window Conversely you can show the cycle in the Trace Window which you are watching in the Data Trace Window 1 13 2Extended Menus The Protect window provides the following menu when being active Menu Menu Options Option Font Change the display font Color Change the display color Analyze Trace Data Analyze the realtime trace data Set Cycle Specify the display cycle Sync with Trace Window Synchronize with Trace Window Add the watch data Y Remove the watch data Data Length Specify data length Byte Display in 1 byte units Word Display in 2 byte units Lword Display in 4 byte units Radix Specify data radix HEX Display in decimal DEC Display in hexadecimal Address Change the display address Hide Type Name Show Hide the type name 81 Zoom Change display scale Zoom In In
15. 10 MHz divided by 4 for example enter 10 on the left side and 4 on the right side of the text box If no values are set in the clock divide ratio specifying area 1t 1s assumed that the clock 1s not divided 1 e the same as you would specify the value 1 15 2 1 5 Using unusing the watchdog timer This specification exist for PD308 only Specify whether or not to use the watchdog timer By default the watchdog timer is unused Debug the program using the Watchdog Timer When debugging the target system that uses a watchdog timer select the check box shown above 2 2 Debugging Information Tab The specified content becomes effective when the next being download Compiler MITSUBISHI Nose yy bl Object Format TEE E 695 F ln Demand Directory for Temporary Files CHWN Deo TEMP Refer 2 2 1 Specifying the compiler used and its object format Specify the compiler used and its object file format Compiler MITSUBISHI HESDSWA Object Format TE EE 696 Y 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 h
16. Communication Interface The displayed data varies depending on the specified communication interface The figure below shows the data when special parallel communication is selected f Parallel Serial LAN i LPT C USB Host IE bM FEAT Target FO Address 100 The available communication interface varies depending on the products The following shows the setting for each communication interface e USB Interfece PC4701U LPT Interfece PC4701U M Proprietary parallel Interfece PC4701HS L Serial Interfece PC4701M HS L LAN Interfece PC4701U HS 2 1 2 1 Setting of the USB Interface PC4701U only USB communication uses the personal computer s USB interface USB communication can only be 11 used on the PC4701U emulator It is compliant with USB 1 1 lt lt Setting of the USB Interface gt gt Before USB communication can be performed the computer must have a dedicated device driver installed in 1t For details on how to install USB device drivers see Install of USB device driver For connection by USB communication click the USB radio button on the MCU tab Parallel Serial C LAN amp USB serial Mo bi WerEet The currently USB connected emulators are listed in the Serial No area Select the serial No of the emulator you want to connect 2 1 2 2 Setting of the LPT Interface LPT communication uses a parallel interface printer interface of the personal computer This communicatio
17. Coverage Window Ox oh o Cov Coverage Base Address UCOU00 OUFFFFF Function Start End Coverage OFUT SS air JFL JUN Init 00189 OFC Sc sub 0F019D Funct ion Name Function Scope Coverage of Each Function By double clicking any function line the corresponding function appears in the Source window During coverage measurement appears in the coverage display area You can change the display ratio between the function name display area and the function range display area using the mouse 82 1 Windows Dialogs 1 14 2 Extended Menus The Coverage window provides the following menu when being active This menu is called Coverage window option Menu Menu Options Option Font Change font Select source file Specify the source file to see the coverage Refresh Update display of coverage measurement result Initialize coverage measurement result Change coverage measurement area Input output coverage measurement result file Save coverage measurement result file Load coverage measurement result file Layout Set Layout Address Area Turn address range display area on or off These menus can be selected even by the short cut menu by a right click in the window 1 15 Time Measurement Window The Time Measurement window displays the minimum maximum average execution time and measurement count at any measurement point The execution time of up to 4 measurement points can be measured simultaneousl
18. Save specified memory Image to a E file Current Shortcut Rey List Glt Main Meru lt 2 Memory Window Display in Bytes unit lt 4 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 etc 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 x AN Shortcut key setting i 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 30 4 Environmental Setting of Debugger Key Assign Group Category combo box 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 indicates 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
19. address etc must be set in the emulator before it can be connected in a LAN To communicate with the emulator via a LAN on Windows Me 98 2000 XP Windows registry information must partly be modified See 1 3 3 4 LAN communication with emulators by Windows Me 98 2000 XP for details The PC4701U emulator in a LAN can be connected to the PC4701Us on another network connected to the LAN via a router See 1 3 3 2 LAN communication with PC4701U for details The emulators PC4701U and PC4701HS use different LAN cables Specifically the PC4701U uses LAN cable LOBASE T only generally available on the market whereas the PC4701HS uses the LAN cable 10BASE T 5 included with it The host computer and the emulator can be connected directly See 2 1 2 5 Setting of the LAN Interface for details 1 3 1 3 LPT Interface Supported only when using the PC4701U M emulator This communication uses the host computer s parallel printer interface The necessary cable is included with the PC4701U M emulator 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 not always be used even when they are supported by BIOS 1 3 1 4Proprietary Parallel Interface Supported only when using the PC4701HS L emulator The host computer must have a dedicated interface board the PCA4202G02 incorporated in 1t only th
20. 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 e 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 6 5 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 Reevaluates a selected C watchpoint The currently selected watchpoint is reevaluated Use this function in cases where variables although in the same name assume different types depending on scope or where when expandin
21. category name Custom Window is selected the registered Custom windows become enabled 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 lt lt Registering the shortcut key gt gt 1 Select the category of the menu to be registered in the 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
22. checks hardware break mode ets and checks hardware break mode 2 1 8 Real time Trace Commands Command Name Short Name Contents TracePoint U M HS TP Sets and checks a trace points TraceData U M HS TD Realtime trace data display TraceL1st U M HS TL Displays disassembled realtime trace data 2 1 9 Coverage Measurement Commands Contents Coverage U M HS Specifies and displays coverage measurement 2 1 10 Script Log File Commands Command Name Short Name Contents Script aa Opens and executes a script file Exit Exitsthescriptfile Wait U M HS Lo Waits for an event to occur before command input Wait L Waits for an event to occur before command input Pause Waits for user input Sleep del Halts for user input until the specified time has elapsed Logon Outputs the screen display to a log file Logott Ss Stops the output of the screen display to a log file 2 1 11 Program Window Control Commands Command Name___ Short Name Checks function names and displays the contents of functions Up pp Displays the calling function Displays a called function Displays a function call status Path Sets and checks the search path 2 1 12 Map Commands Command Name Short Name Contents Map Checksandsetsmapping data 102 2 Table of Script Commands 2 1 13 Clock Command hort Name Contents LK Checks and changes the clock Command Name Clock OQ 2 1 14 WatchDog Timer Commands
23. click the LAN radio button of the MCU tab in the Init dialog The setting looks like the figure below Parallel Serial e LAN LPT C USB IF Address fi 015 603 1752 erecta Port 4700 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 is 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 PC4701U HS can be connected by LAN TCP IP to a commercially available LAN card inserted in a PC by using a cross conversion cable for LOBASE 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 14 2 Setup Debugger 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 Gheck Be
24. 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 19 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 function 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 1 19 1 Configuration of MR Task Pause Window EF MA Task Pause Window demo c Ej Vier E Sou By MIX V Dis z Selected Task 3 i taskiga ID name Pause Line Address PAU Source 1 main 00158 Wwoid task003L El 00159 0F1021 ff a task003 00160 ER ercd 4 it taski 00161 UINT fleptn pin taskigi Pause PC 0F1CBBH 00162 T_ZYER pk ver Bt task0067 00163 int i Tn taski 00164 Bit taskig mies 0F102D w hile 1 i Gt task009 00166 MFAT ercd clr_flel ID_flag_1 CUINTIO 10 task ig 00167 0F1040 for Ci 0 i lt 10 i 1 11 _taskii1 0168 01048 zet_verlbpk_wer 00170 00171 01059 E ercd wai_flel amp fleptn ID_flaz_1 0172 0F1C6B l 00173 0F1C6D EE A Se 00163 i El I
25. 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 l STARTTING THE DEBUGGER 3 AO AS OFP side 3 1 2 ABOUT PC4701 EMULATOR 000 0 ccc c ccc ccccccccscccececececescscececececeseseececeeceesenes A 1 3 BEFORE STARTING THE DEBUGGER ooooococonononononcncononononononcononononononnononononos 4 LAS TAR TENE PEED BB WG CER iS es 9 2 SETUP DEBUGGER 10 ZERE OUREA D mena a e T T T E TT 10 2 2 DEBUGGING INFORMATION TAB cc cc ececcccccccccecececececeseeceuecenes 16 2I CEOCR TAB esse cisserse ie ciea eal e Lo do ars 2A PW AND WORK AREA TAB N a evs 17 2 5 MEMORY EXTENSION MODE TAB ini ie anevedaansseebaceustecseeideeeueteas 18 A A on Rae Rn ee hee Neen A een Mente A ene ee ee ome 20 ZA RESUME TAB a a dd 21 2 8 METHOD OF MAKING MCU FILE o oooococonononononcncononononononnonononononcnnonononononos 22 3 SET THE TARGET INFORMATION 24 SA E EAA Soe NE AAA OTS a ENEE A EA AAAA 24 aAA el B E 0 ESTE oN EESE IN IN EEIE EIA EST IE oA E ASEE Tee IA 28 4 ENVIRONMENTAL SETTING OF DEBUGGER 29 AL SEVER ECAP TCE A di 30 AMO E M AAA E E E AE AEE A T E AAI AE AS 32 A FFONT 2 AAA E A A E A 33 AOPA CEEA D A A IR a N 34 AS TOOL ENTRY TADA RE a a 35 AEL SAM A RE ce E RE A AN RT Oe eR a 36 AS CUSTOMIZING OF TOO EA ton aaneloatecaeeashednn cveasoaieeessee 39 5 ENDING THE DEBUGGER
26. information The following information is displayed in the status bar 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 interval 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 O 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 93 1 20 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 Option Font Change font Move start marker into display screen area Move end marker into di
27. int lelobal_arrayJ 0 2 isigned int iglobal array 0 3 l IL Il 4 Fad Fa 2 O O a 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 1t will be displayed at all times The registered content 1s 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 62 1 Windows Dialogs Oo Variables can be registered from another window or editor by a drag and drop operation eo The C watchpoints can be sorted by name or by address O Variable names can be searched eo Values can be inspected in real time during program execution by using the RAM monitor function ATTENTION O 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 Ifa 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 It is displayed as lt not active gt If that C C language expression can be calculated correctly at the second time it
28. last line shows a function call source e By double clicking the function name the call position line of the function is displayed in the Program window 1 7 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 8 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 8 1 Configuration of Script Window Toolbar LA Script Window Prin ID ten 1 Open REC el Save Rlctear Rec Bre cript Log gt assemble _main ADDRESS gt LABEL PROGRAM OFQ143 main d Execution Result Area assemble _main Lommand History rea Enter Command 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
29. name PO 4 26400 Address value 1 out orange 26401 Bitnumberisouotrange OOS File filename is broken as Can t find File filename SS 26404 Can t find sub routine information 26406 INTERNAL ERROR ER_IN2_ ILLEGAL MODE Contact your nearest distributor has happen in xxxxx 26405 a AA a 26409 There areno code atthatine 26410 Can t get enough memory Beart Cantfindscones OOOO 26412 Cantfind section information 26413 Can t find source lines which correspond to that address 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 26419 Te register name swo OOOO Can t find Source File filename A Unable to read Load Module File filename 00 26422 The PATH name is incorrect Cannot open the save file filename a 26424 Can t open SYSROF Me 26425 Cant read SYSROF Me SiS 26426 legal fle format no absolute format le OOO 26427 meote OOOO 126 3 Error Messages 26430 There are no address at that line A 26431 Can t find the function which correspond to that source line 26432 Can t find the scopes which include that address 26434 Can t find the function which correspond to that source line 26435 Loading is canceled 26436 INTERNAL E
30. sure to select the above check box only when you want to perform self check at startup Specify this option in the following cases When the firmware cannot be downloaded 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 Specifying Clock Frequency Specify the operation clock of the target MCU within the MCU Clock field in the Time Count Resource group in units of MHz Resource MOU Glock i 0 0 MHz 7 lal Specify the MCU clock and the clock divide ratio If you are using the MCU at
31. 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 diversion 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
32. the top address of the area to be used as the work area The emulator uses the MCU internal reservation area unused area as the debugging work area about 10 bytes Specify the work area so that 1t is accommodated in its MCU internal reservation area The default work area top address 1s 2C00h To debug a microcomputer ex 20K byte RAM version if the M16C 62 group whose work area is within the internal RAM area you must change the work area 2 5 Memory Extension Mode Tab This tab enabled only when the MCU tab in the Init dialog is used to specify the MCU file of the microcomputer M16C 62 group which supports the memory space expansion function In this tab only PD30 exists The specified data remains effective for the next start 18 2 Setup Debugger 2 5 1 Select the Memory Space Extension Mode Select the memory space extension mode fps sat Eat e a Mode Normal Ext C Ext PPP AAPP PP a When you use a normal mode Please click the Normal radio button When you use extension mode 1 Please click the Ext1 radio button When you use extension mode 2 Please click the Ext2 radio button The data of the eighth line of the selected MCU data which specifies whether or not memory extension mode is required is used to determine whether or not memory extension mode has to be selected If the eighth line contains a 1 The memory extension mode selection area is active If the line contains a 0 or nothing
33. 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 POSO prog nc rand ne rand lt 30 File Edit View Environment Debue Option Basicwindows OptionalWindowsz Help Go y Xx aiz Over En stop Break A al SA Plg E Program Window rande E view B Sou By MIX va Line BRE Source 00003 maint void J 00004 00005 long i Address LABEL 00006 unsigned char j k 000400 ecol 00 lt SB DODO7 static char datal0xFF 000407 00008 000402 00009 while 1 t 000403 00010 fork E O i lt OxFF i 000404 goon i rand 000405 00012 datali gt ii 000406 te S j randQ 000407 00014 k datali 000408 memt 00 00015 00076 EE Address 1 ae 000340 20 FF us ii 000380101 00 00 0 D0 01 00 01 FF OO O003c0 00 93 EE 00 00 00 Es 00 EQ 00 00030000 A7 00 00 00 00 OO 00 00 OO ODOSE0 00 00 00 00 ROOSTER 00 y z El 100 h OO m OO sec 154 meec 552 usec MELU STOP 2 eo The main commands such as execution stop of the target program and step execution are allocated to the tool bar The Option menu is dependent on the active window When the active window is changed the Option menu is automatically changed The status bar at the bottom of the PDxx window shows the following
34. which describe its radix 1 Specify the firmware file name referring to the following tables and don t add the end of m s h s Ls which describe the type of emulator MCU M16C 60 group M30600 M16C 61 group group M30600 M16C 62 group group M30620B M16C 20 group series M30620B There is a case that the emulation pod need the different firmware from the listed firmware when the emulation pod is re modeled 2 Specify whether the MCU supports the memory space extension function or not When the MCU supports the function EX M16C 62 group specify 1 the other case specify 0 22 2 Setup Debugger Only when 1 is specified the setting for memory space extension mode is available in Memory Extension Mode tab of INIT Dialog ATTENTION o The areas specified as the ROM in the MCU file are write protected from the program Even if the write command is executed to the area no value is written However you can use the Dump command to write values to memory This is enabled only when the Internal area is mapped by the MAP command eo Ifthe RAM is assigned to the same area you must change the setting of the MCU file 2 8 1 1 Example 23 3 Setthe Target Information Setting information of the target for debugging is different according to the product 3 1 PD308 In the Emem dialog box setting information on the user target The Emem dialog box opens after closing the Init dialog box E m
35. 00 00 001 923 No System Call Parameter Return Parameter TIME E PAE whmode H 3 watptncH 1 fleid D 7 EOK fleptn H 1 00 00 00 0027 782 8 wai sem semid D 1 E 0K 000000 002 823 g rev msg mbxi D 1 E0K pk mse RIJ H 1234 pk_mse R2 00 00 00 002 861 10 wup_tsk tskid D 2 E_0K OO 0000 007 837 11 slp_tsk E DK 00 00 00 002 925 1 rem_tek tskid D 2 E ae OO 00 002002 953 13 set fla Usetetn H i fleid 0 1 LE 0000 00 002 970 Mail whmede H 3 walptn H 1 Fleid D 1 ae t leptn H 1 Loo og Uo 008 0153 UB rem tsk EEHEHE EX aioe as 1B sig sem semid D 1 a 000000 003 067 17 wai sem semid D 1 E 0K 00 00 00 003 100 18 rem tsk tskid D 4 E_OBJ 000000 003 132 19 snd msg pk mse RIJEH 5678 pk mse R3 H 12 E OK 00 00 00 008 149 mbxid D 1 EOK pkinee RIJ H 1234 pk_mse R2 00 00700 003 189 20 rev mag 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 18 3 1 Extended Menus The MR Analyze window provides the following menu when being active This menu is called MR Analyze window option Option Font Change font 90 1 Windows Dialogs Go to CPU occupancy status display mode Go to ready state duration display mode System Call Go to system call history display mode Pick Up System Call Go to mode where
36. 00 032 00 00 00 000 031 00 00 00 000 031 00 0000 000 095 ro 38 OFFD3IB _ __SYSCALL2 dl 00 00 00 000 000 oo 00 00 000 000 00 00 00 000 000 00 0000 000 000 00 0000 000 004 00 0000 000 002 00 00 00 000 003 00 0000 000 028 00 00 00 000 003 00 00 00 000 0038 00 00 00 000 003 0000 007000 006 oo oo 00 000 007 oo oo 005000 007 oo oo 00 000 007 0000 00 000 007 oo oo 00 000 003 00 00 00 000 003 oo 00 00 000 003 00 00 00 000 003 00 00 005000 007 00 00 00 000 005 00 00 005000 006 00 00 00 000 012 SS 1 CO AS A ce 00 00 00 000 000 00 00 00 000 000 00 00 00 000 000 00 00 00 000 000 OR oS Ss O E a E e fe fe fe fe fe fe fe fe SS 100 OS EN Es PO E E SN 0 9 co E Dai 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 18 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 i
37. 0376 0FOO38 32FF R D 4 0 0000 8493 00325 0FOO38 32FF 3 0 0000 8493 _rand 0F0926 E 7D R 0 00 00 849 0F0928 4108 R 0 4 0 00 00 00 849 00322 000840 3700 Wo d 0 00700 00 849 Ia nM A mM AAASAF 22m AAAA A eA LS A 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 display area using the mouse 15 The lines in the bus information display area vary depending on the debugger that you are using For details see below 1 12 1 1Display of bus information on PD308 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 BIU This shows the status between the BIU bus interface unit and memory and BIU and I O poo O Nvares S Executing wait instruction Read access words ML on Interrupt acknowledge RB Read access bytes WB Write access bytes Read access by DMA bytes DWB Write access by DMA bytes W Read access words ww Write access words D Read access by DMA words
38. 050 568 3 mm 2 taski02 00 00700 008 849 00 00 00 003 848 00 00700 003 845 00 00 00 015 398 7 09 m a tasking A E E A A E mm i 4 taskin i 00 00700 008 879 00 00 O0 003 878 00 00 00 008 878 OO 00 O0 015 515 7 14 m 5 taski05 4 00 00700 003 913 00 00 00 003 746 00 00 00 003 790 007007 00 015 162 6 99 m 0 B taski06 5 00007 00 004 285 00 00 00 004 118 00700 00 004 219 00 00 00021095 9 71 mm 7 task007 4 GO 00700 004 320 O0 00700 004 153 00 00 00 004 278 OOOO O0 0I7 114 7 88 a _taski08 4 00 00700 004 313 00007 00 004 313 O0 00700 004 319 OO 00 00 017 252 7 54 m g taski09 Ao 00 00700 004 173 00007 00 004 172 OOT00700 004 172 OO 00 O0 0168 690 7 69 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 94 1 Windows Dialogs 1 21 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 Font 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 22 GUI Input Window The GUI Input win
39. 1 Windows Dialogs 1 17 1 Configuration of MR Trace Window BT MR Trace Window ES E3 FJ Mo Eo Tito S Adjust Q Exp A Red After M Break gh Sea Mira Mia Mark 00 00 00 002 681 00 00 00 003 167 00 00 00 000 486 hdicator 00 00 00 002 967 Scale 1125 356179 Grid 00 00 00 000 151 rea Break VEC table ID mame 0 1 a 3 32 OFFD80 _SYSCALLO 33 0FFD84 __SYSCALL1 38 OFFD98 __SYSCALL2 Idle 1 Ctaskl 2 task A E E EEE e PA e AAA PQ AA a a eae A 4 ee SS AAA AE 5 Ctask5 Q Unknown 4 rai EA AS y 4 AA The content of each item is as follows VEC indicates a software interrupt number table Indicates the interrupt vector table number Indicates a task ID number name 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 System call issue history Task state transition history task execution history 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 val
40. 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 Debug Monitor Bank Address Fo e 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 1s displayed in this field Internal ROM rea FSO00D FFFFFF ts allocated 3 1 2 3 Emulation 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 26 3 Set the Target Inf
41. 4 0 2000 XP and Parallel Interface It is necessary to set the I O address used for the device driver for a parallel communication Please refer to Setting before emulator starts before starting PDxx 2 1 2 4 Setting of the Serial Interface Serial communication uses a serial interface RS 232C of the personal computer This communication method is available for all the PC4701 emulator series lt lt Setting of the Serial Interface gt gt To set the Serial communication click the Serial radio button of the MCU tab in the Init dialog The setting looks like the figure below C Parallel Seriak CLAN C LPT C USB Port co hi E Baud Rate 38400 Specify the communications port in the Port field and the baud rate in the Baud Rate field 2 1 2 5 Setting of the LAN Interface LAN communication uses a LAN interface 10 Base T or 10 Base 5 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 This communication method is available when you are using the emulator PC4701U HS 13 LAN communication with emulators by Windows Me 98 2000 XP It is necessary for LAN communication with emulators by Windows Me 98 2000 XP to set the registry For details see Setting before emulator starts lt lt Setting the IP Address and Subnet Mask gt gt Start PDxx using other communication metho
42. 41 Reference 1 WINDOWS DIALOGS 45 Te Ae O as ies aaah lett ting tia oes E E se areata peaeaoawresee 46 E2 PROGRAM WINDOWesienistidaiap orleans 50 Ls DOURCE WINDOW nte eo da 55 LA REGISTER WINDOW etosan a le 55 LO RAM MONTEOR WMENDO Wisin E 58 LOASM WATCH WENDO Wo ita 60 L GALLOS CK WINDOW ti cnn pisada 64 MAR AD AA O 65 LT PROM BCA WEN DO Wa O E iba 66 LIO TRACE POINT SETTING WINDO Wenn 67 1 11 H W BREAK POINT SETTING WINDOW sitio dias 73 EIZTERACE WINDOW o ea dd a 74 LISDATA TRACE WINDOW An 80 TL COVERAGE WINDO Was 82 LAS TME MEASUREMENT WINDOW spatial in tits 83 A ae a et eee a et ac alte ty ce ie ec eed erste 85 de NER RAG BW ND OW acces wise a Aas ace Ro 86 be LS MR AINA YZ Bh WINDO Wisteria 89 LO MER TASK PAUSE WINDOW tii asa 91 20 TASK ERACE WINDOW ascites ares ee o 92 EZ TASK ANALYZE WIN DO Wes caret ae ae A 94 22 GOIINPUTWINDO Wii 95 L29 GUEQUTE CE WINDOW traes 96 1 24 S W BREAK POINT SETTING WINDOW dia 97 1 25 H W BREAK POINT SETTING DIALOG BOX PC47011 0 o 99 2 TABLE OF SCRIPT COMMANDS 100 2L TABLE OFESCRIPFCOMMAND Sucine ia teenie 100 2 2 TABLE OF SCRIPT COMMANDS ALPHABETICAL ORDER nnee 103 3 ERROR MESSAGES 106 11 Set Up 1 Startting the Debugger 1 Startting the Debugger 1 1 Features of PDxx The PD308 and PD30 have the following functions 1 1 1 Real Time RAM Monitor Function This function allows changes of memory contents to be inspected without impairing the realtime capability of th
43. 6044 Undemed symbol exist 26045 Value is outorange dS 26040 Division by 29 20048 is missing IS missing 26050 Ts missing zos rsm oo reference data is defined as global symbol 25053 valid operandexistininstucion SSS 26054 Que 8 missing 26055 Right quote is missing 26050 Cant et enough memory E 20059 Absolute addressingisnotaval OOOO 25060 Direct adaressing snora OOS Invalid addressing mode declaration included 25062 Syntax er in indexed adgressing expression 20063 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 26070 The indirect addressing you expressed is illegal E 26071 An odd number address can t be specified NA No Error Message Notes and Action 26202 The Number of Macro constant is over the limit num 26204 Prefix which gives radix of the constant is illegal res 125 26205 Deseripion ofindrectreference 1 Megal SSS 25200 Cant in end ofstings 99999 25207 Description expression 8 legal 26208 Macro constant macro isn t defined 25209 Symbol symbo st med SSS 26210 immediate vale 8 legal zeloma 0 26212 The value is over the maximum value of which can be treated by MCU 26213 Register name is using for macro variable
44. A 00174 00175 void task0040 00176 0FICEF E OTF 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 eo The specified program content is displayed in the task source display area When performing task pause Come specify the stop position using the cursor 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 91 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 o 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 eo Task Pause
45. ALLs 4to4a8a For details about which interrupt number is assigned to which system call refer to the MR308 Reference Manual Assemble Language Interface PD30 MR30 has interrupt numbers 32 to 47 for the INT instruction reserved for issuing a system call The a routine names space for antena pt numbers 32 to 47 are shown below INIA SYSCALLO 33 SYSCALLI1 _sys_ret_int eee _sys_ E _tsk s rca sa SYSCALLS SYSCALLA ll ltoar For details about which interrupt number is assigned to which system call refer to the MR30 Reference Manual Assemble Language Interface 1 17 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 Font 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 38 1 Windows Dialogs Trace Stop Stop measuring Trace Restart Restart measuring Set various values Set various display colors Search for history of system calls issued Init Order Initialization of the display order These menus
46. Come Status Indicates a process to pause the specific task during execution of the target using the MR Task Pause window 1 19 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 Option Font 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 area 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 O 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 O When the target ta
47. 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 Customize Toolbar Available buttons Toolbar buttons Close Separator Reset SAs Break Point Help vy Lose Module Add gt Bh ero Image 4 REMEE al Symbol aaia Haw Break Point Moe L EERE Move Down eo 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 39 4 7 2 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 3 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 4 Changing the button display order Use the Up button or Down button at right of the dialog to change the dis
48. E HOH 2HLFB A D900 HOH RO Ena LEAN D110 HIH RO 6440 FOTS 7H D90BFE HOH 2HLFB OFOWSE IC 7788FEFFO i RODFFH 2HLFE FDCA3C FOT81H gt 73B4FE HLFB 40 gt 73B5FE HLFB 4 CEA 720058045 0458HL 40 0458HL 81 J 08705804 HIH 0458HE 41 J gt 73B4FE HLFB 40 AC ES 0458H RO LOFOI5E IL nr ROL AO aie 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 e You can display the coverage measurement result by specifying the option It is not displayed by default Oo You can line assemble the clicked position 1 2 4 Extended Menus The Program window provides the following menu when being active This menu is called Program window option Menu Options 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 displ
49. G02 because of conflict with other devices please follow the procedure of the setting described below Execute setPca4202 exe included with PDxx The dialog box shown below will appear 1 Startting the Debugger setPl A4202 VO Address 1100 Cancel 2 Find the VO address that is set on the PCA4202G02 parallel board and input it in hexadecimal into the I O Address input field Click OK button 3 Restart Windows NT 4 0 2000 XP ATTENTION Make sure setPca4202 exe is executed by one who is authorized as an Administrator No one but the user who has the authority of an Administrator can install the device driver 1 3 3 4 LAN communication with emulators by Windows Me 98 2000 XP Please exexute registry setting program Sack exe before starting PDxx It is necessary for LAN communication with emulators by Windows Me 98 2000 XP to set the following registry Windows Me 98 HKEY LOCAL MACHINE System CurrentControlSet O REG_5Z Services Y VxD MSTCP SackOpts Windows 2000 XP HKEY_ LOCAL MACHINEYSYSTEMYCurrentControlSetY O REG_DWORD ServicesYTcpipYParametersYSackOpts You can clear the registry with executing the program UnSack exe The above programs are installed in the directory where PDxx is installed ex c mtool PDxx utility ATTENTION Make sure Sack exe and UnSack exe is executed by one who is authorized as an Administrator Windows 2000 XP No one but the user who has the authority of an Admin
50. Oo latisti i 4 OFO1SB DSOBFE MOV ROH 2HEFB OFOISE CHP 00FFH 2HLFB Lake Address Object Code Program Source Line Breakpoint o You can switch Display Hide for the line number display area address display area object code display area eo You can change the source file to be displayed by double clicking the line number display area o You can change the display start address display start line by double clicking the address display area Oo You can set reset the breakpoint by clicking or double clicking the breakpoint display area o 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 e You can open the displayed source file on the editor You must have registered the editor name e You can display the coverage measurement result by specifying the option It is not displayed by default e The MIX display result can be saved as a text file You can line assemble the clicked position Oo You can scroll the display up down in units of source line 1 2 3 Configuration of Disassemble Display Mode The disassemble display mode of the window is the following configurations 52 1 Windows Dialogs Toolbar E Program Window ES View Sour By MIX J W Diz adress ERA Ubjecode Label P 7CF202 _main HOH gt F55900 _Init FOUTSSH 0F0132 DSOBF
51. RROR ER_LOAD SYMSCOPE _ Contact your nearest distributor has happen 26437 File Name is illegal 26600 Can t open file filename 26601 Can t create file filename 26602 Can t close file filename 26603 File seek error in xxxxx 26604 Out of disk space 26605 Illegal file format xxxxx gt xxxxx filename 26606 Out of heap space 26607 Not yet implemented xxxxx 30200 Comfirm the processor mode and the CNVss terminal level 30201 Comfirm the emulation memory allocation or the mapping No Error Message Notes and Action 30400 MCU file is old format 30401 MCU file is illegal format 30600 In connected emulation pod the target clock is external fixation 30201 Comfirm the emulation memory allocation or the mapping 127 128 Emulator Debugger for PC4701 System User s Manual Rev 1 00 May 1 2003 REJ10J0024 0100Z COPYRIGHT 2003 RENESAS TECHNOLOGY CORPORATION ALL RIGHTS RESERVED AND RENESAS SOLUTIONS CORPORATION ALL RIGHTS RESERVED ENESAS Renesas Technology Corp 2 6 2 Ote machi Chiyoda ku Tokyo 100 0004 Japan
52. Search cycle by specifying address Source Change by specifying source file Mode Change display mode Bus Select bus mode Mix Select disassemble data access mixed mode Disasm Select disassemble mode Source Select source mode 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 Search specified line Come search Save real time trace data to file 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 13 Data Trace Window The Data Trace Window is used to analyze the results of real time trace measurements and graphically show data access information It operates in conjunction with Trace Window 1 13 1 Configuration of Data Trace Window 1 Windows Dialogs fel DataTraceWindow ezan Mole Bozo Azo Est Alen Min In ota Aone a E En A he ee oo JOA A 1 iaae zage miyat LE mya union taz U J b 45 0458 struct tas Bit b07 bit unsigned char 1 b0 b1t b60 1 0x458 unsigned char 1 b0 bit b1 1 0458 unsigned char 1 b0 bit b2 0 0458 Data unsigned char 1 b0 bit b3
53. 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 e When using Windows 2000 XP a user who install the USB device driver need administrator rights e 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 PC4701U Before the emulator can be connected in a LAN the IP address etc must first be registered in the emulator For the PC4701U emulator in default settings the utility setip exe included with the PDxx may be used to set the IP address etc in the emulator For details see Setting of the LAN Interface using the SETIP EXE 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 PC4701U emulator while in default settings SETIP detects the PC4701Us 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 PC4701U follow the procedure described below 1 Connect the PC4701U emulator with LAN cable to the same networ
54. alog Box PC4701L The H W Break Point Setting dialog box allows you to set hardware break points If you are using the PC4701L emulator you can set one address breakp H W Break Point a oe HAN Break iad Save Pibe O Dei head 2 select Type Wate Campare i Address M Not Specify C Bit Symbol __ Length Byte Mask Mata Addre Foon Eit Ha M Not Use Bit Symbool l Mask O0FF Pass Count i o E Access Type Fetch y Stars Cancel Help As address break point access types you can specify writing data to the address break point Write reading data from the address break point Read reading or writing data R W and fetching instructions Fetch PD308 do not support the instruction fetch e You can also specify that execution breaks if the data read from or written to the address break point has a specific value Moreover you can specify valid and invalid bits for the specific value eo Hardware breakpoints can be saved to a file by clicking Save To read hardware breakpoint settings from the saved file click Load 99 2 Table of Script Commands The following script commands are prepared The character in parentheses of the command name U M HS L indicates the emulator which corresponds The command without parentheses can be used with all PC4701 emulators U PC4701U M PC4701M HS PC4701HS L PC4701L The commands with yellow color displayi
55. am 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 ES tout sere ee oF Sed ce Number of Commands 4 100 fio To change the history of script 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 e Warn to update the target program 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 ie not updated Please build it again IF you continue to debug program it may occur the difference between source tle and debug information of object module file Do you co
56. an event to ocur before command input Wheret Er Displays a function call status 105 o0 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 Can t Create xxxxx window PDxx is already exist 203 Project file xxxxx is broken 204 File not found xxxxx Path not found xxxxx APA AAA A A C Not enough memory PEA 207 Can t execute Ss Failed to read write data to the archive xxxxx i CODE n n Failed to read write data to the file xxxxx 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 Can t find search string xxxxx between the starting position and end 403 Line number of 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 out of range 601 Can notopenfile xxxxx 00 l Can t find file xxxxx A 603 Can not save because the line number is over 604 Can not save as the file xxxxx system er
57. 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 Solutions 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
58. ard 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 Display from specified address Specify scroll range Display in 1 byte units Word Display in 2 byte units Dec 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 6 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 If a registered address resides within the RAM monitor area the memory content at that address is updated at given intervals by default every 100 ms during program execution The toolbar buttons may be used to perform the main functions 60 1 Windows Dialogs 1 6 1 Overview of ASM Watch Window Toolbar AS D DEC B BIN _ Dbe_mode Byte Expression Radix Data Address Bit No Data Length o The addresses to be registered are called the watchpoints One of the following can be registered e Address can be specified using a symbol e Address Bit number e Bit symbol e The registered watchpoints are stored in an environment setup file when the ASM wat
59. ay area using the mouse 1 12 4 Configuration of Source Mode The source mode of the trace window is the following configurations Following figures are examples of displaying PD30 oolbar Name of Source File Address of Current Cycle Tracce Cycle epee as Current Cycle Execution Time of Current Cycle Fai Trace Ye mada unsigned char j k static char dataLOxFF while 1 forl i O i lt OFF 1 j randQ dataLi i ji randi datali Address Display Line No Display Current Cycle Position Display PU Fie Depa 19 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 e By double clicking the address display area you can search the execution address e 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 can be executed 1 12 5 Extended Menus The Trace window provides the following menu when being active This menu is called Trace window option Option Font Change font View Change contents of display Cycle Specify cycle Address Search
60. ay mode Switch to source display mode Switch to MIX display mode Switch to disassemble display mode Source Mode Mix Mode Disasm Mode 53 Layout Set layout 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 Save Mix Saves MIX display result 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 functions Turns editing on or off 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 5 Shortcut Menu The Program window provides the shortcut menu by clicking the mouse right button within the window This menu is called Program window right click menu The menu content varies depending on the clicked position When right clicking the line number display area or address display area The shortcut menu same as the option menu appears When right clicking the breakpoint display area The shortcut menu does not appear Hardware break can be set When right clicking other area The following shortcut menu appears Debug Mode Right Click Jump to functi
61. b The specified content becomes effective when the next being start 2 7 1 Automatically Execute the Script Commands To automatically execute the script command at start of Debugger click the Refer button to specify the script file to be executed 21 Init File OO 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 7 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 e Resume 2 7 3 Re download a Load Module To re download a load module target program check the AutoDownLoad check box Re download 1s OFF by default PT AutoDownLoad 2 8 Method of making MCU file 2 8 1 PD30 The following content is sequentially described in the MCU file Specify the MCU name to the file name and specify mcu to the file extension 1 Start address of SFR area End address of SFR area Start address of internal RAM area End address of internal RAM area Start address of ROM area End address of ROM area File name of the Firmware 1 MCU type whether memory space extension mode has to be specified or not 2 A AS Specify the addresses in hex format and don t add any prefix
62. b for a 16 bit data bus BIU This shows the status between the BIU bus interface unit and memory and BIU and I O Display format Status poo 63 Nochange DMA Data access other than a CPU cause such as DMA Start of INTACK sequence DB Instruction data access due to CPU cause bytes R W Shows the status of the data bus R for read W for write 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 Shows the status between CPU and BIU bus interface unit Po foca CB Operation code read bytes RB gt gt _ Operand read bytes _________ QN Shows the number of bytes stored in the instruction queue buffer in the range 1 to 4 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 T 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 o h m s ms us Show the elapsed time from the target program beginning 1 12 2 Configuration of Disassemble Data access Mixed Mode The disassemble data access mixed mode of the trace window is the fo
63. can be selected even by the short cut menu by a right click in the window 1 18 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 specific condition Ready time by task List of system call issuance histories You can extract and display the history based on the CPU occupation state by interrupt task The MR Analyze window functions together with the MR Trace window This window is avallable only when a target program using the RENESAS real time OS MRxx 1s downloaded 1 18 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 3 MR Analyze Window Run Ej Rea Ya Syst Mark 00 00 00 002 845 VEC table ID mame 00 00 00 003 295 Hax Run Time 00 00 00 000 449 Hin Run Time Ave Run Time Total Run Time Ratio 10 33 0FFD84 _ __SYSCALL1 oo 00 00 00 000 038 00 00 00 000 000 oo oo 00 000 010 00 00 00000 000 0000 00 000 022 00 00 00 000 296 00 00 00 000 000 00 00 00 000 000 65 89 00 00 00 0
64. ch 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 o The invalid watchpoints are marked by lt not active gt when displayed on the screen o 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 e 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 6 2 Extended Menus When the ASM watch window is active the following menus can be used Menu Function Add watch point Add bit level watch point Remove selected watch point Remove all watch points Set new data to selected watch point Change display radix Display value in binary 61 Display value in decimal Display value in hexadecimal Refresh Refresh display Layout Set layout Address Area Switch di
65. crease the display scale Zoom Out Decrease the display sacle Zoom Specify the display scale Change the display area to fit the markers Change marker position Start Marker Move the start marker in the display area End Marker Move the end marker in the display area Indicator Move the indicator in the display area Change Grid Interval Change the grid interval Change Row Setting Change the display setting of the specified row Save the watch data to the file Load the watch data from the file These menus can be selected even by the short cut menu by a right click in the window 1 14 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 Window in which you can check execution non execution by source line You cannot use these windows if you are using the emulator PC4701L e 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 e The top address of the coverage measurement area is called coverage base address By default the coverage base address is set to Oh 1 14 1 Configuration of Coverage Window Toolbar Coverage Scope F
66. d After it gets started select Menu Environment gt Init to open the Init dialog Then click the Target button of MCU tab The Target dialog will be opened Target x IP Address 01563152 Port h EE SubNetMask 255 255 2520 Default Gateway P j 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 PC4701U it is used the Default Gateway area becomes effective Please specify the IP address of the default gateway When the PC4701U 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 e 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
67. 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 OUS0 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 5 1 Extended Menus The RAM Monitor window provides the following menu when being active This menu is called RAM Monitor window option 59 Menu Function RAM Monitor Area Sets RAM monitor area A window or dialog box in which you can change the RAM monitor area 1s 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 Clears access attribute The data in all RAM monitor areas are cleared as are the displayed access attributes Up Moves display position to the immediately preceding RAM area smaller address The display position is moved forward tow
68. dow allows you for port input by creating a user target system key input panel button in the window and clicking the created button 1 22 1Configuration of GUI Input Window fee AUT Input window b Edit L Cre Cre Grid Load Elsave AE 4 5 FF Input Panel 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 is pressed o Text Display the text string You can label name the created button You can also save the created input panel in a file and reload it 95 1 22 2 Extended Menus The GUI Input window provides the following menu when being active This menu is called GUI Input window option Meon tt Options Option Edits or moves button Deletes button Creates button Loads GUI input file Saves GUI input file These menus can be selected even by the short cut menu by a right click in the window 1 23 GUI Output Window The GUI Output window allows you to implement the user target system output panel in the window 1 23 1 Configuration of GUI Output Window FA SUI i Jutput Wigor k Edit El Gre MH ore Herida Load 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
69. e Editor in a wndow which displays the source file Program window Coverage source window Click the Refer button in the Editor group The File Selection dialog 1s 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 36 4 Environmental Setting of Debugger Exit hi Confirm whether closing this application or hot e Glose this application when an error occurs W Stop your emulator when closing this application Execute two or more POsx in same time Other Setting j Hide path name in Frogram Source Windows Try to keep your display mode in Program Window jf Save commands history in Script Window Number of Commands 1 100 fo W Warn to update the target program e Display labels in Address combo box Number of labels 0 30000 poon 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 e Gonfirm 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
70. e ISA bus is supported The necessary cable is included with the PC4701HS L emulator When using this communication on Windows NT 4 0 2000 XP a device driver must separately be set See 1 3 3 3 Proprietary parallel communication with emulators by Windows NT 4 0 2000 XP for details 1 3 1 5 Serial Interface Supported only when using the PC4701M HS L emulator Oo This communication uses the host computer s serial interface The necessary cable is included with the PC4701HS L emulator 1 3 2 Download of Firmware It is necessary to down load the firmware which corresponds to connected Emulation Pod when the debugger is started to the emulator Oo You have changed your emulation pod O You have setup PDxx for the first time e You have upgraded emulator debugger PDxx Press the system reset switch within two seconds after powering up the PC4701 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 firmware Y Cancel ATTENTION It is only the PC4701U that the firmware can be downloaded in a LAN connectio
71. e filename A 11403 The I O data not set 11404 me Output Me ofthe same aready set 11405 Datanottound o 11406 The start oyote larger tranne endo 11407 The Output por already set 11408 Tere 1 no data in th pute O OO 11409 Illegal file format 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 Can t open temporary file 11805 Can t open Log File filename 11806 Address value is out of range No Error Message Notes and Action 12000 Address Interrupt Break is invalid Lt 12200 Size value is out of range CE 12201 Base Address value is out of range 113 12205 he number of RAM monitor area cannot be changed 12400 Sampling period value is out of range A 16000 INTERNAL ERROR Already connected with the Contact your nearest distributor target 16001 INTERNAL ERROR Fork error has happen Contact your nearest distributor 16002 Can t find Host Name 00000 MN INTERNAL ERROR The Baud rate is illegal 16004 The camacion wih te gta TT C
72. e 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 32 K cycles before the target program 1s stopped are recorded For the PDxxSIM as many cycles as specified on the Init dialog box s Trace tab 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 Referencing the Trace Point Setting Window 1 12 1 Configuration of Bus Mode The bus mode of the trace window 1s the following configurations Following figures are examples of displaying PD30 Trace cycle Toolbar Current Cycle Execution Time of Current Cycle Trace Area Address of Current Cycle Fat Tr ACE Wi 1 d Dy Range 32511 00000 Cycle WEB 7 Dis de E File Cycle 00835 Address OFOO2C Time 00 00 00 849 295 Address Data BUS BRIU Ho m si ms Labe 00830 AL A RAN RNT CPU ON B T H T 76043210 CH 0000 00 349 0 3 0 OFOO E FFFA 0 4 0 00 00 00 849 00833 0F0030 6900 R D 4 0 00700 00 849 000850 00D R D 3 0 00 00 849 000850 00D 3 0 00 00 849 0F0032 FD23 R D 3 0 0000 8493 0FOO34 0926 R D 4 0 0000 8493 00378 0FOO34 0926 3 0 0000 8493 00327 OFO036 020F R 4 0 0000 8493 0
73. e target program execution The PC4701 emulator system contains a 1 Kbyte RAM monitor area which cannot be divided into smaller areas 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 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 1s 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 1 1 3 Real Time Trace Function This function records a target program execution history Up to 32K cycles of execution history can be recorded This record allows inspecting the bus information executed instructions and source
74. ectly because the input level of string1 pin is H Check the pin level and the setting of the debugger 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 Check the processor mode and the string1 pin level Self Check Error Please turn off the emulator 1 string1 16400 INTERNAL ERROR Already connected with the Contact your nearest distributor target 16401 INTERNAL ERROR Fork error has happen Can t find Host Name hostname 16403 INTERNAL ERROR The Baud rate is illegal 16404 The conection wih be etisitonels henslowi O 16406 INTERNAL ERROR The Time of time out is out Contact your nearest distributor of range 16408 INTERNAL ERROR Can t disconnect with the Contact your nearest distributor 16409 INTERNAL ERROR Can t send given size data Contact your nearest distributor 16410 INTERNAL ERROR Parameter is illegal Contact your nearest distributor 16412 Communication ERROR The connection with the target is closed 119 16413 Communication ERROR Can t send data 16414 Communication ERROR Can t send data 16415 Target is already used 16416 Parallel connection doesn t support on Windows NT No Error Message Notes and Action 16600 Address value is out of range Address value is out of range 16601 That baud rate has not yet sup
75. em x status Emulation Memory Processor Mode MOU status CA Wee BYTE BY aT Poly Ae Cancel Help 7 Next Hide To keep the Emem dialog box closed next time the debugger is started check Next Hide at the bottom of the Emem dialog box You can open the Emem dialog box using either one of the following methods After the debugger gets started select Menu Environment gt Emem 3 1 1 Status Tab PD308 The specified content becomes effective when the next being start 24 3 Set the Target Information pes 3 1 1 1 Select the Processor Mode Specify the processor mode for the target system Either the following can be specified e Single chip Mode Single chip Mode O Memory Expansion Memory Expansion Mode O Microprocessor Microprocessor Mode 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 a HOLD If the slider is at the middle position 1t means that the value 1s indeterminate 3 1 2 Emulation Memory Tab PD308 The specified content becomes effective when the next being start 25 Debug Monitor Bank Address Fo Internal ROM Area FSUO0U FFFFFF is allocated Emulation Memory Allocation Bank Length ap rea 1 lo 256KB Mo Use rea E lo 256KB No Use rea y 0 256KB No Use rea 4 o 256KB No Uze 3 1
76. emory blocks in 2 byte units Displays status of realtime OS MRxx OpenWindow Window open OverStep O oo o Overstep execution of source lines OverStepInstruaction OI Overstep execution of instructions 104 2 Table of Script Commands Path Setsandchecks the search path Pause Waits for user input Print Check value of specified C variable expression Protect U M HS Sets and checks protect breaks que Quits Debugger Had t Botsandchccks the radix for numerical input Register Checks and sets a register value PP ee Reset Cid ResetsthetagetMCU ReturnInstruction Executes an instruction return Scope Setsandchecks the effective local symbol scope Script JOpensandexecutesasecriptfile _________ SEC Checks section information Set Set specified data in specified C KEE ED SetMemoryWord Checks and Ene ES eNO contents dE 2 ee units ee ee SoftwareBreak SB Sets and checks software breaks SBC Clears software breaks SottwareBreakClearAll Clears software breaks SottwareBreakEnableAll SBEA Enables all software breaks Status CheckstheoperatingstatusoftheMCU_______ TA program execution Sau a O Time Setstherun time display and checks the current setting _ Realtime trace data display dete EIS QUIS ane disassembled nee ion trace data ee SUMMA NP UTERO TOTANA MI A A A A Up Displays the calling function e A UES for an event to occur before command pa pul pig Waits fr
77. en all of the valid events are established at the same time simultaneous AND condition Trace when one of the valid events 1s established OR condition Trace upon entering a break state during state transition State Transition condition 1 10 1 Specify the Trace Event To set events double click to select the event you want to set from the event setting area of the Trace Point Setting Window This opens the dialog box shown below 68 1 Windows Dialogs Event name Specify the event type IB Set Event Status Contents change with the setting of Event Type Following events can be set by specifying Event Type in this dialog box O When FETCH is selected Traces for the instruction fetch PD308 not support When using these products use memory access instead addr Address o When DATA ACCESS is selected Traces for the memory access 69 Datal lt data lt Data o When BIT SYMBOL is selected Traces for the bit access Oo When INTERRUPT is selected Traces for the interrupt occurrence or termination PD308 not support Oo When TRIGGER is selected Traces for the status of signal input from external trace cable 70 1 Windows Dialogs Trigger Detect Condition 1 10 2 Specify the Combinatorial Condition To specify a combinatorial condition specify the desired condition from the combinatorial condition specificat
78. ent result does not include the execution time of other functions that have been called from within the specified function 84 1 Windows Dialogs 1 15 2 Command Button The buttons at the bottom of the Time Measurement 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 Sends the contents set in the window to the emulator Close Closes the window 1 16 MR Window Use the MR Window to display the status of the realtime OS PD38 SIM does not support 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 1 16 1 Configuration of MR Window You can open the MR window as many as the number of display modes 9 at maximum currently EMMA Window a Tas Current Run Task O i maini ID Stasddr mame Pri Status up count timeout fle ptn OF1F9CH main 1 RUN OOOOH 0F1972H t task ROY OOOOH OFI982H _task3 SLs OOOOH OFI992H taskd HAT CSLP OOOOH 1 _task5 WAT CSLP SUS OOOOH OFISBEH _task6 l OOOOH 1908H task WAT OLY SUS OOOOH OFISF2H _taske HAT CFLG OOOOH 1111H TWF_ORM 1 I l 1 I AIOH
79. 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 96 1 Windows Dialogs You can label name the created button You can also save the created output panel in a file and reload it You can set up to 200 address points to the created part If different addresses are set to the individual parts you can arrange up to 200 parts PDxxSIM s limitation 1 23 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 label 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 24 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 97 1 24 1 Configuration of S W Break Point Setting Window Save Load Break Point Buttons Set Breakpoint rea software e ll k Windo Wri OF x He
80. equential from xx Hardware break State Transition condition was met from xx previous state start statel state2 Event Sequential Timeout Hardware break State Transition Time Out condition was met Event Access Error Protect break 49 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 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 o Debug mode This mode is used to debug e g run or stop the target program e Edit mode This mode is used to edit the source file The program window s source display mode debug mode is configured as shown below Toolbar Current Program Counter Bie ES E Program Window
81. ernal ROM area is automatically mapped into the emulation memory Therefore there 1s no need to set here Be careful that the debug areas will not overlap 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 eo Single chip Mode You do not need to specify the area to be assigned as the emulation memory The internal ROM area 1s automatically mapped into the emulation memory The address range of the automatically mapped area 1s 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 1t specify 1t 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 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 27 box O Set the emulation memory areas in the order of usage priority The emulation memory areas to be
82. espond to the trace output mode 16329 This break function can t be set up in the LSB side parallel instruction 16325 A specified reference section number is outside the range Can t execute from the LSB side parallel instruction 16347 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 16354 Remove Address Interrupt Break Point s 16355 Remove Area num S W Break Point s Remove Address Interrupt Break Point s 16371 The break point isn t defined at that address 16323 This break function can t be set up in the middle of 32bit instruction 118 3 Error Messages 16372 The number of break point is over the limit num 16373 Warning The specified range was regulated into string1 16374 Software breakpoint is already set A 16375 The number of base addresses is over the limit 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 16382 The target system may not work corr
83. f memory in 1 byte units DumpWord Displays the contents of memory in 2 byte units W DumpLword DL Displays the contents of memory in 4 byte units DumpDword DD Displays the contents of memory in 4 byte units W D SetMemory Word M Checks and changes memory contents in 2 byte units Fills a memory block with the specified data in 1 byte units FillWord FW Fills a memory block with the specified data in 2 byte units MoveWord Move Movesmemoryblocks MoveWord MOVEW Moves memory blocks in 2 byte units 2 1 5 Assemble Disassemble Commands Assemble A Line by line assembly Sets and checks the effective local symbol scope Checks section information EXP Displays an assembler expression 2 1 6 Software Break Setting Commands Short Name Contents SB Sets and checks software breaks Software Break Clear SBC Clears software breaks SottwareBreakDisableAll SBDA Disables all software breaks SottwareBreak Enable SBE Enables software breakpoints SottwareBreakEnableAll SBEA Enables all software breaks Sets a software breakpoint by specifying a line No BreakAt booo BreakIn do Sets a software breakpoint by specifying a function 101 2 1 7 Hardware Break Setting Commands Command Name___ Short Name Hardwarebreak U M HS HB Sets and checks a hardware break HardwareBreak L ets and checks a hardware break Protect U M HS ets and checks protect breaks BreakMode U M HS ets and
84. g 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 Updates a variable value Variable values are updated a memory access occurs Hide type name Turns type name display on off 63 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 The char type is displayed as a string or as a pointer to char type The result affects the entire PDxx Sort Sorts C watchpoints Watchpoints are sorted The result affects all C watch windows Sort by Name Sorts by name 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 Remove Tab Deletes a displayed watch tab The currently active watch tab is deleted The result is reflected in all C watch windows Local File Local and Global tabs are not saved Change the d
85. gal file format 10801 Address value is out of range 10802 Data value is out of range 11000 File format error filename 11001 File filename not found 1002 Can t file filename open 11003 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 1008 Can not set trace points while program is ds running 11009 Specify BYTE access for ODD address 11200 Already set hard ware break 11201 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 112 3 Error Messages moce 11401 Cant delete temporaryfie Can t open I O data fil
86. ge measurement Date Displaysthedate DelMacro Deletecustom program DelMacroAll Delete all custom programs DisAssemble DA Disassembles memory contents line by line Down Displays a called function DumpByte DB Displays the contents of memory in 1 byte units DumpDword DD Displays the contents of memory in 4 byte units DumpLword DL Displays the contents of memory in 4 byte units DumpWord DW Displays the contents of memory in 2 byte units Echo EA Displays messages Exit xt the script file Express EXP Displays an assembler expression AN Checks a filename and displays the contents of that file units Fills a memory block with the specified data in 4 byte units FL FilLword Fills a memory block with the specified data in 4 byte units Fills a memory block with the specified data in 2 byte units ee ee functions GoBreakAt GBA Run target program with software break point HB Sets and checks a hardware break HardwareBreak L HB Sets and checks a hardware break Label Checks assembler labels O Z O Z O O Loadleee LI Downloads IEEE 695 absolute format files Logoff Stops the output of the screen display to a log file Logon Outputs the screen display to a log file Macro Thereferenceand registration of the custom programs Map b Checks and sets mapping data Module MOD Displays modules names Moves memory blocks MoveWord MOVEW Moves m
87. ge measurement function Coverage window Coverage command Memory protect function Protect window Protect command Hardware event H W break event Real time trace event Time measurement event MCU switches the bank to be accessed based on the value in the bank selection register A signal which can distinguish which bank accesses the bus information is not output Therefore the above function may work as expected By specifying Simultaneous And AND logic same time for the hardware event and the bank selection register both of which are detected as the combined condition in the State Transient Break Trace window the hardware event for the bank duplicated area can be detected e If you use the Memory Reference Change command for the bank duplicated area before MCU is switched from the normal mode to the memory space expansion mode 2 by the target program the function may not work as expected eo The memory map shows the following data after PD30 gets started Start Address End Address Map Attention 00000 003FF External 00400 3FFFF Internal The internal RAM area cannot be changed 40000 BFFFF External Cannot be changed C0000 FFFFF 2 6 Reset Tab The specified content becomes effective when the next being start 2 Setup Debugger 2 6 1 Target Reset after Down loading Specify whether you want to reset the target immediately after the target program 1s downloaded Do Reset___ Reset Default 2 7 Resume Ta
88. gh memory 6204 Cannot open temporary file No Error Message Notes and Action 109 6403 Description of expression is illegal 6404 Description is illegal 6405 Can t find scope 6406 6407 Can t find function Can t find symbol pointer 6417 The operator is not supported 6419 Left value must be the pointer 6418 Type information is broken 6421 Can t find member 6422 Left value must be reference of a structure or an union 6424 The operand must be a value 6425 The operand is able to be opposite sign 6426 Can t get address value 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 6601 Address value is out of range 6602 Target program is already stopped 6603 The number of break point is over the A num uni 6412 Not supported float double operation 6420 Left value must be a structure or an union 6423 Left value is illegal 6604 The break point isn t defined at that address 6605 Data value is out of range 6606 INTERNAL ERROR ER_IN1_ ILLEGAL MODE Contact your nearest distributor has happen in xxxxx Can t read write because there are no mem
89. heracersexstinowresson 26014 Fomet pede isnot appropiate 26016 meisme 26016 Invalid reserved word exist in operand INTERNAL ERROR JMP S operand label is not in the same section 26018 Reserved wordismissng TSS 26019 No space afer mnemonicordresive SSCS 26022 INTERNAL ERROR No SECTION statement Contact your nearest distributor 26023 Operand value smotane 26024 Operand size s no appropriate 26025 Operand type is not appropriate SSS 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 26030 INTERNAL ERROR Section type is multiple Contact your nearest distributor specified 26031 Size or format specifedisnotapproprate SSS 26032 Size speciiedismissng S 26033 String value exstin expression SY SSCS 26034 Symbol is missing 26035 Symbol multiple dened SS ee AS AAA 26037 Symbol is multiple defined 26038 Invalid operand exist in instruction 26039 Syntax error in expression 124 3 Error Messages 26040 invalid operand exit in metan 26041 Operand expression snotcomplsted O OOOO 26042 Too many operand ST 26043 Too many operand data 2
90. hich 1t was saved Sends the contents set in the window to the emulator simulator engine Close Closes the window 1 10 7 Extended Menus The Trace Point Setting Window has popup menus that can be brought up by right clicking in the 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 window 1 11 H W Break Point Setting Window The H W Breakpoint Setting window is used to set hardware breakpoints for the PC4701U M HS emulators This window cannot be used on the PC4701L emulator 13 Selecting of effective events tias aia Pie Current event list MHW Break Point Setting Window A al ES M Enable HAN Break MOORE ACE GONDITION OO0000 oo0000 READ faddr 000000 44 000000 READ addr OO0000 45 000000 READ addr 000000 OO0000 faddr OOOO00 Setting of Process ID Setting of combination condition On starting up the debugger the hardware break function is disabled To enable it check the Enable H W Break at the top left of the H W Break Point Setting Window Please refer to 1 16 Trace Point Setting Window for the method of specifying the H W break events and combination conditions 1 11 1 Differences with the Trace Point Setting Window 1 11 1 1 Event name The events of H W Break Poin
91. iew Fie fiename fornewadd 2007 Can t save commandhistory D 2200 Address value is out orange OO 2201 Data value s outofrenge OOOO 2202 Startadress is larger han endaddress lt OOO 2208 Value is under mam 2204 Data values out range OOOO 2205 Data 18 motset OOOO 108 3 Error Messages 2206 Sampling period value is out of range A 2207 Please fill in the blanks and attach the contents to the technical support sheet O E PON 2409 Canitfind endi eramen 2404 Line length is overtow enamine SSCS 2406 Nest ievel is overfow filename Ine 2406 Cantina Script Fie lena Can t read Script File filename 4 2408 Description is ilegal lename line SSS 2409 Cantina endw filename Ine S 2410 The nest level exceeds the imit num SSS 2412 llegal break fienameline 2603 You can register the only command name for alias AAA E A 2604 Can t use the command mom 2605 Canitup more 2606 Cant dom more 2607 Can t et break pointin tris turcton 2608 The start address larger than the end adaress 2609 Can t register that token for llas 2610 Can t register that token forais 2611 Can t find Fie iename O 2612 Data value is outofrange DOO 2614 Cant open the window 6000 INTERNAL ERROR ER_ENV_END Contact your nearest distributor No Error Message Notes and Action 6200 SYMBOL file is illegal 6201 Loading is canceled E 6203 Can t get enou
92. igh speed process because of use of memory On Demand Minimizes use of memory Select the saving method On Memory is set by default 16 2 Setup Debugger M Ce WTS DOW TEMP 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 3 Clock Tab The specified content becomes effective when the next being start 2 3 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 external clock 2 4 F W and Work Area Tab In this tab only PD30 exists The specified content becomes effective when the next being start 17 Ey i Default C Select Ry Meme MS0600 Work rea Work Area Start Address ean 2 4 1 Select the Firmware File F uy f Default Select Pyne Hame 30600 Usually click the Default radio button in the F W group Click the Select radio button when you have to download firmware different from the one described in the MCU file The F W Name list box is enabled only when you click the Select radio button 2 4 2 Specify the Work Area Work Area Work Area Start Address c00 In the Work Area Start Address field in the Work Area group specify
93. 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 46 1 Windows Dialogs Button Button Name Go Execute target Program Go 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 Menu Menu Options Function Download Download target program Load Module Download machine language data and debugging information Memory Image Download only machine language data Download only debugging information Additional download machine language data Save Disasm Save disassembly result Download File List the file name of target program downloaded Editin Menu Menu Options Function Edi Cut character strings specified to clipboard Delete Cut character strings specified Undo of edit Find character strings Displa Menu Menu Options 4T Switch display or non display of toolbar 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 Environment setup open the Init dialog box
94. ion area e When AND or OR is selected In the event specification area the event used and a pass 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 Event Status PASS EVENT 1 BI O 1 2 1 B3 O 1 84 O 1 65 O 1 86 e When AND Same Time is selected In the event specification area the event used can be specified No pass counts can be specified Event Status PASS EVENT AH 181 O 1 2 A 1 e3 ce O 1 65 O 1 86 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 1s 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 11 State Setting State Transition Bi main FETGH B2 0400 WRITE Bs FOOO FETCH B4 0400 WRITE Time Ont aa BB D400 WRITE Wot Use Start Statel Stat B 0400 WRITES 5 fi x Tlusec Not Use Sequential cree OSL stan La gt A E OK Cancel 1 10 3 Specify the Process ID By specifying a process ID it is possible to detect only event establishment under specific conditions PID e Enable Detail Example Enable only the event that occurs i
95. isplay font Each window has its own font Clear the access attribute for RAM Monitor function Saves active watch tab content to a file L 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 color Change the display colors All C watch window uses the common colors Add New Tab Adds a watch tab A new watch tab is added by specifying its name The result is reflected in all C watch windows ave The content of the active watch tab is saved to a file The contents of the oad ont Change font Color These menus can be selected even by the short cut menu by a right click in the window 1 7 Call Stack Window The Call Stack window displays the C language function call state of the target program 1 7 1 Configuration of Call Stack Window fel Gall Stack Window funci 117 O USRYMIN edSO0 erog cexor8b c 2 OFOTAC funci 10 0 USR YMIN ed80 prog cexpr8b c i 060794 func 25 0 USRY MIN pd30 prog cexer8a c i 0F0173 maint 12 O USRY YMIN ed30 prog cexprBa c 2 0F0145 166 O USR YM N ecd30 prog nertQ a30 0F0129 64 1 Windows Dialogs 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 o The top line shows a function at the current PC position The
96. istrator can install the device driver Note Windows Me 98 2000 XP TCP supports Selective Acknowledgments SACK as documented in RFC 2018 SACK gives higher performance in the network which have high bandwidth and long round trip delays like satellite channels SACK support is enabled by default in Windows Me 98 2000 XP It is necessary for LAN communication with emulators by Windows Me 98 2000 XP to disable SACK support Setting the above registry can disable SACK support Note that when you use the network which have high bandwidth and long round trip delays like satellite channels the performance with SACK support disabled is lower than with enabled 1 4 Starting the Debugger Click the Windows start button then select menu Program P gt RENESAS TOOLS gt PDxx V x xx Release x gt PDxx 2 Setup Debugger The Init dialog box is 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 Tritt ble mory Extension Mode Reset lock Resume MEL Debugging Information FAN and Work rea MEHO 130610 meu i Paralel Serial CLAN i LPT i USB Host IE b FEAT Jareet FO Address Resource MCU Glock 8 000000 MHz i OK Arar EI Iba m Next Hide aera A O O Reset O Clock 0O 0O Resume
97. k same subnet as the host computer 1s connected 2 Set the PC4701U emulator s communication interface switch on the rear panel 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 showing information on the PC4701U connected to the network This information consists of the MAC address followed by the PC4701U serial number Z Setlp 41 03 Eo x 08 00 70 25 86 05 0H M006 To register the IP address click the Next button To cancel registration click the Close button If not displayed check whether the communication interface switch is set correctly and after temporarily turning off the power turn 1t back on again Then click the Search button 4 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 PC4701U on the same network s same subnet mask the default gateway IP address may be omitted Set IP Mask Port GateWay OS IP Address MR OOO oubnet Mask 22 2 Port Mumber A Default Gate Way f921681 254 0 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 Click the Set button on the dialog box The IP address etc that have been set are regi
98. k from 0 to 3 cannot be specified iL 7 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 MN 116 3 Error Messages 16276 Please specify the address in the emulation memory area 16278 Start address is larger than end address 16279 Too many DMA area specification 16281 The mistake is found in the specification of the DMA area 16282 When Word is specified for a size the odd number address cannot be specified 16283 Too many memory mapping specification NN 16284 The mistake is found in the specification of the memory mapping 16285 Please specify the address in the emulation memory area 16286 The mistake is found in setting the emulation memory area 16287 The specified area has already been used in the oon ape monitor bank address 16288 Too many emulation memory area specification A 16289 The bank from 0 to 3 cannot be specified A 16290 The mistake is found in the specification of the debugging monitor bank address 16291 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 A 16298 The mistake is found i
99. l Filename ln Reter Glose Sw Break Point Del FEO1FE ET FEO223 50 Global c eal FEG294 41 Local c ne Display Break Point Disable Al Citable Whey Operation Buttons to Break Points Oo You can set up to 64 software break points e If you have set multiple software breakpoints program execution stops when any one software break address 1s encountered OR conditions Oo You can continue to set software breakpoints until you click the Close button to close the S W Break Point Setting Window eo 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 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 If you load software break points from a file they are added to any existing break points 1 24 2 Command Button The buttons at the right of the S W Break Point Setting window has the following meanings Help Display the help of this window Load Load setting information from a file in which it was saved Save the contents set in the window to a file Close the window Del Delete the break point SSS All Enable Enable all break points 1 Windows Dialogs Shows software breakpoint positions in the Program Window 1 25 H W Break Point Setting Di
100. l status MR Context Display Context Layout Set Layout Status Bar Switch display or non display of status bar 1 17 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 available only when a target program which uses the RENESAS real time OS MRxx is downloaded 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 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 36
101. limit num 16659 Can t set more I O script file 16660 Can t set more virtual output 121 16666 Software break point can t be set up in the address 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 Software break point can t be set up in the LSB side parallel instruction No Error Message 16800 Can t find line num 16801 Can t find F line num 16802 Can t find line num 16803 Symbol isn t defined line num token string 16804 Can t find line num 16805 Description of expression is illegal line num token string Nest level of the while statement is overflow line num 16808 Too many the break statement line num 16809 There is no if statement corresponding to the else statement line num 16810 Unknown token line num token string AN 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 mess O rewrite module parameter is wrong 17001 Cantina FTO TSS 17002 The FTD Me 18 broken 17003 The number of External flash rom is over 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 A 122 3 Error Mes
102. llowing configurations Following figures are examples of displaying PD30 Toolbar Address of Current Cycle Trace Cycle Trace Area xecution Time of Current Cycle Current Cycle Pet Tr Ace MIA ido Wi Ba rac WEBUS gE Mix W Dis WF ctep come La Save ca Load Ml Stop lunes Range 02429 D0000 Ares Break File Cycle 00113 Address FFOB4E Time 00 00 00 000 617 Address Ubj code oes Ue A a 10129 i 000 00 000 SES 000904 0000 00 00 DD 0009D2 OADE 20000 000902 09D6 00700 HO 0032H 0009D4 0000 20000 MOV W O U534H 20000 PUSH W HOUQOH 000532 0000 0000 000534 0000 0000 HO RO 00 00 00 000 620 JSR farite FA 000904 0000 00 00 00 000 621 ENTER HUZH 0009D2 OOFF 00700 00 000 622 000900 0B5F 00 00 90 000 622 133205 133405 AFDDDD 03 CF 7BFF ECO write 8sez Address Display Label Display Accessed data Display Cycle Display Object Code Display Misal iiaa Execution Time Display o 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 from left to right o The rest is the same as in disassemble mode 1 12 3 Configuration of Disassemble Mode The disassemble mode of the trace window is the following configurations Following figures are examples of displaying PD30 78 1 Windows Dial
103. m 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 m 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 1 Create a PIF File l Ze 3 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 The 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 35 Make Properties Med make exe sample mak ew Pe Nomalvindw r m 4 5 2 Specify the Editor You can start th
104. machine language data a Download only machine language Download only debugging informal Append machine language data Reload target program Save specified memory image t Cave AAA resa alk of ADDO DEL Curent Shortcut Rev List Chil l Main Menu Copy string to clipboard Ctrl F Main Menu Find string Chrl L Program Window Open Line Assemble Dialog Chit A Progra Window Select display mode toggle coca Please click the tab name about details Shortcut Key Register the menus to the shortcut keys Setting the number of load module download histories Specify the Displaying Tab Width Specify the Saving Directory of Information File Secify the make file Specify the Editor Other Display the Termination Confirmation Dialog Debugger Forced Ending when Error Occurs Target Continuance Execution when Debugger Ends Display the Absolute Path of Source File 29 Control the Display Mode Switching of Program Window Execution History of Script Command Number of Label Displays of Address Setting Area You can also customize the buttons in the tool bar 4 1 Shortcut Key Tab The specified content becomes effective when the next being start key ssien Category Key Ene Main Menu None LOAD Menu List Current Key Assen Download machine language data and CR Download only machine language date Download only debugging information CE Append machine language data B Reload target program
105. n Before the firmware can be downloaded by the PC4701U in a LAN connection the IP address etc must first be registered in the PC4701U Setup method If the emulator being used is the PC4701HS use other communication methods dedicated parallel or serial to download the firmware 1 3 3Setting before emulator starts 1 3 3 1 USB communication with PC4701U 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 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 PC4701U emulator with USB cable 2 Set the PC4701U emulator s communication interface switch on the rear panel to the USB 1 Startting the Debugger position Then turn on the power to the emulator 3 The dialog box shown below appears Found New Hardware USB Device lnstalling Go on following the wizard and a dialog box for specifying the setup information file inf file is 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
106. n a specific task when using the realtime OS 1 10 4 Specify the Trace Range For the emulator debugger PDxx 32K cycles equivalent of data can be recorded For the simulator debugger PDxxSIM as many cycles as specified on the Init dialog box s Trace tab can be recorded Descriptions below are written assuming 32K cycles Trace Area HAC About 16K 16K After 0 32K Full 1 10 5 Specify the Trace Write Condition Conditions for cycles to be written to trace memory 32K cycles accommodated can be specified 12 1 Windows Dialogs 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 LL pp Only cycles where specified event is established Cycles from where specified event is established to where specified event is not established Cycles from where start event is established to where end event A is established 1 10 6 Command Button The buttons at the bottom of the Trace Point Setting window have the following meanings Button Name Content Reset Discards the contents being displayed in the window and loads contents from the emulator simulator engine in which they were set Saves the contents set in the window to a file Load Loads event information from a file in w
107. n method is available when the emulator PC4701U M is used 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 _ on Parallel Serial C LAN i LPT C USB Type LO Address Specify the mode for data transfers in the Type field e 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 e 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 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 Display of BIOS Setup SPP Standard Parallel Port Output Only Nibble Bidirectional Bi directional ECP Extended Capabilities Port EPP Enhanced Parallel Port 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 Addres
108. n the specification of the DMA area 16299 Too many 8 bits bus mode area specification 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 ROM area 16308 Too many memory mapping specification iF Iry 16309 The mistake is found in the specification of the memory mapping 16310 The target MCU is SLEEP mode 16311 The target MCU is STANDBY STOP mode 16312 The target MCU is NO REFRESH STANDBY 16313 The MCU is HOLD state 16314 Work Address value is out of range 16315 The received data is illegal The received data must be xxxxx But yyyyy is received 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 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 16326 Tracing data file can t be open 16327 Tracing data can t be read from the file 16328 The specified break condition does not corr
109. naly Code Specify data code ASCII Display as ASCII characters SJIS Display as SJIS characters JIS Display as JIS characters Layout Set layout Label Switch display or non display of Label area Register Switch display or non display of Register area Column Changing the number of digits displayed Coverage Enable Base Clear Set Coverage measurement Switch display or non display of Measurement result Change coverage base address 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 Product 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 5 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 PC4701 up to 10 windows can be opened 58 1 Windows Dialogs yi RAM Monitor Window OO03FO ti BBG um HDB 105me Label Regist 0 1 2 3 4 5
110. ng 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 e i Program execution with breakpoints Free run program execution GoProgramBreak GPB Run target program with software break point GoBreakAt GBA Run target program with software break point Stops program execution Stop Stopsprogramexecution O Status __ _ Cheeks the operating status of the MCT _______ Step Halts for user mipit until the specified time has elapsed NR IS OverStep Jo Overstepexecutionofsourcelines ____ _______ Executes a source line return ReturnInstruction RETI Executes an instruction return Reset Resets the target MCU Time de Sets the run time display and checks the current setting 2 1 2 File Operation Commands Command Name Short Name es Downloads the target program Downloads an Intel HEX format file Downloads a Motorola S format file LoadSymbol LS Loads source line ASM symbol information Downloads IEEE 695 absolute format files Reload Re downloads the target program 100 2 Table of Script Commands 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 Checks and sets a register value 2 1 4 Memory Operation Commands Command Name Short Name DumpByte DB_ Displays the contents o
111. nloaded load module is updated by re compile assemble the file can be auto downloaded The load module is updated at timing when 1t is operated by a command of execution group Go Step etc 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 32 4 Environmental Setting of Debugger 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 File History Number of Files 1 16 ja Remove the file name fram the MRU file 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 m Font Font FixedSys Size 11 Font AS Click the Font button The font selection dial
112. ntinue this debugging Nest 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 38 4 Environmental Setting of Debugger 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 update 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 Jf Display labels in Address combo box Number of labels 0 300010 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 tyle v Text labels v Labels on right side
113. o 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 ETE Source Widow subc ES view Sour En MDs W dis Bs Line Address BRK Source WU sub 00002 0F019D i gojis LE I 00005 MFDTAD j 00006 FOTAS O O O The Source Window configuration toolbar and option menu is the same as that in the Program Window Please refer to Program Window 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 PD30 for M16C 60 20 series 55 BO Bank Register Window Pal ES Value Radix PC UFO Hex RO DDL Hex R 0010 Hex R2 PUUL Hex R3 O00 Hex AO 0412 Hex A PUUL Hex FE DUL Hex USP ES Hex SP OAS Hex SE 0400 Hex INTE OPFODO Hex IPL UTO 0 J OD EN a PJ e pma 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 Only PD308 F SIM and PD30 SIM support the regi
114. oce T a E 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 A 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 3 16014 Communication ERROR Can t accept data ee 16015 Target is already used 16016 Specified communications interface doesn t support a 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 16200 Address value is out of range 16201 That baud rate has not yet supported Bit number is out of range 16203 STOP execution 16204 Data value is out of range 16205 Monitor File filename is broken 16206 Can t find File filename 114 3 Error Messages 16207 Target system is not constructed properly 1 6208 INTERNAL ERROR ER_IN2_ ILLEGAL MODE Contact your nearest distributor has happen in xxxxx 16210 Counter of measurement time is overflow 16211 The version of string1 and the firmware on the target are not same
115. og 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 AA e ee i _ 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 33 4 4 Path Tab The specified content becomes effective when the next being start File Search Path CUS R MIN odS0 proe 7 E Add CFS AREMINECOT AE R pdoDk prog Delete Delete All Directory Setting Watch Points Beter e 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 D USREMINEpds0 proe me em D USR MIN YOTHE R pdal prog E Welete
116. ogs Toolbar Current Cycle Execution Time of Current Cycle Trace Cycle Trace rea Address of Current Cycle Pet Trace Window Range 32911 00000 File Cycle 00835 ml OFOU2C Time oo a0 00 6 49 595 Cycle Address Ubi code Label Hremontc mE HOOFFH GHLFE 00 00 00 849 395 FOOSS5H 00 00 00 849 396 l l l l l CS A Cs A 9 OS 00 Pn a a A SS S ST FU 6090F _rand FUSY6H 00700 00 649 399 DE2C641 _rand 41C6H OO 00 849 403 DE 6D4E HAEBDAH 00 00 849 409 00815 SFOT004 0410H RO OO O0 849 412 0s D 1321204 0412H R2 OO 00 849 416 008 06 FEO FOS38H OO 00 849 418 0010 FOSCOSOF idmull FOSBEA 00 00 849 422 ECHI i dmull R1 RS OO 00 849 426 758107 7HESPJ R1 00 00 349 427 7121 R2 R 00 00 849 43 312 R1 R DQ 00 549 437 D0780 28109 GHLSP R i CAMARA LENA pO E bd aj Pl Address Display Label Display Disassemble Display Cycle Display Ob ect Code Lisp lay Execut Lan Ti me 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 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 between the label display area and the inverted assemble result display area and between the inverted assemble result display area and the execution time displ
117. on 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 Open Editor Open the source file by the editor Line Assemble Open the Line Assemble dialog Saves MIX display result Edit Edit functions On Turns editing on or off Menu Menu Options Function Edit mode Same Edit gt Copy menu Paste Same Edit gt Paste menu Cut Same Edit gt Cut menu Delete Same Edit gt Delete menu Undo Same Edit gt Undo menu Find character strings 1 Windows Dialogs Change font Set source file display tabs Edit functions Turns editing on or off 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 source file corresponding to the current program counter position When the program counter points the displayed source file position 1ts background is displayed in yellow Like the Program window the Source window allows you t
118. ons 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 1573 There is no information for the source files and the line numbers 107 1575 The word string1 contains some illegal characters You can not specify it as symbol name 1580 Internal Error unexpected symbol type dd been specified Internal Error an unexpected searching a has been specified a download data is stored holaa been specified 1584 Internal Error The information for downloading has not been obtained string 1585 Internal Error Failed to regist the information to MO the debugging information data base string1 1600 Can t add new watch point because it exceeds limit of watch point number Max number is n u m 1601 Address value is out orange 1602 Data value s outofrange OOOO 1608 Bit valueis out orange 1604 Can t save wah points 1800 There are no symbol informato 1801 The expression 190 ong 1802 Can t save cwatch pois J 1803 Can toad o watoh points 1804 Load is terminated because the file extension is different 2000 Can t open Script Fie Mena 2001 Soript Fl ls mot open Gantopen Lo Fie floname ooo 2003 Can t open more Log Ple 2004 Can t open Log Ple 2005 Fe filename is ready log an 2006 Can t open V
119. ormation Emulation Memory Allocations Bank Leneth Map rea 1 feo ME INTERNAL rea 2 02 256KB EXTERNAL rea y fo 256KB No Use Grea 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 Map 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 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 Areas for which No Use is selected for Map and those not specified here 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 The int
120. ory A at that area 6609 Can t execute that command when the target VA program is running 6610 Start address is larger than end address 110 3 Error Messages 6611 STOP execution 6612 Can t search more on the stack 6613 Specified times of number is over than 65535 number byte cannot be dumped by the Word access 6800 The process is canceled 6801 Can t execute this command while some source windows are in editor mode No Error Message 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 10003 Cannot open file filename 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 10200 Operation code code not found 10201 File filename not found 10202 Duplicate event set in xxxxx 10203 File format error filename 10400 Can t execute more come instruction 10401 Can t execute more step instruction 10402 Cycle value is out of range 0403 Can t find that address 0404 Can not open file filename 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 111 No Error Message Notes and Action 10800 Ille
121. ource line information is not loaded 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 MN 16252 Unexecutable command code was specified a 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 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 16259 Flash ROM verify 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 16265 RDY signal of MCU is Low 16267 All program break points in the spesified bank is cleared 16268 Please 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 16272 The ban
122. play 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 5 Resetting the display buttons Click the Help button at right of the dialog The display buttons are reset to the default settings 40 5 Ending the Debugger 5 Ending the Debugger To ending the debugger select Menu File gt Exit The Confirmation dialog opens oe 7 Do you really want to exit canst _ When ending the PDxx click the OK button To keep the dialog closed refer to Other Tab of Customize Dialog Al MEMO 42 Reference 43 44 1 Windows Dialogs 1 Windows Dialogs eo Windows The window of this debugger is shown below When the window name is clicked the reference is displayed PC4701U M HS PC4701L Program Window Support RAM Monitor Window Support ASM Watch Window Script Window Support Time Measurement Window Support Support MR Task Pause Window e Dialogs The dialog of this debugger 1s shown below When the dialog name is clicked the reference is displayed D Emulator talog Name PC4701U M HS PC4701L H W Break Point Setting Dialog Box L Support 45 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
123. ported 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 16610 Counter of measurement time is overflow 16611 The version of PD and the firmware on the target are not same OO A Pass count value is out of range A Can t execute that command when the target A program is running 16614 Target MCU is reset state Please reset target systems 16615 Target MCU is unable to reset Please reset target systems l 16616 Target MCU is HOLD state ON IN 16617 Target MCU is not given clock Please reset target system 16618 Target MCU is not given power 16619 INTERNAL ERROR Break point number is Contact your nearest distributor illegal 16620 Please download the firmware to target 16621 Can t download firmware 16622 Download firmware is finished Please restart PD 16623 Can t find trace data which is able to refer ee 16624 Cycle value is out of range 16625 Target MCU is not under control Please reset target systems 16626 First data is larger than second data 120 3 Error Messages 6627 First address is larger than second address HA 10628 First address ls la
124. 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 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 1 8 Customize Function This function adds the user exclusive functions custom commands or custom windows to the PDxx To create these custom commands and custom windows use the CBxx Customer Builder for PDxx included with the PDxx 1 2 About PC4701 Emulator The PC4701 emulator system is a generic term used for the 8 16 bit MCU emulator
125. r the symbol as the ASM watch point e You can open the displayed source file on the editor You must have registered the editor name e 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 e You can display the coverage measurement result by specifying the option It is not displayed by default PD32R PD32RM does not support this Oo You can line assemble the clicked position The program window s source display mode edit mode is configured as shown below EF Program Window sa mp c Initt i 0 while l A tor 0 i lt DATA SIZES 1 71 dataL i J dataL 1 J datal i ol Ki z 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 53 Ab 1 2 2 Configuration of MIX Display Mode The mix display mode of the window is the following configurations 51 Toolbar E Program Window samp c Fa vien E Sour Fe MES V Dis l OFOIZC E 7CF202 main ENTER 02H a SA int i Ss Init OFOIZE F55900 JSR W Init FO189H Y HE 0 00182 DSOBFE MOV 0H 2HEFB as whileC 1 f 00185 D900 MOV 0H RO OFOIS7 0110 CMP HTH RO OFOIBS 6440 JEQ F0187H
126. reak mode enable disable These menus can be selected even by the short cut menu by a right click in the window 1 10 Trace Point Setting Window The Trace Point Setting window is used to set trace points This window cannot be used on the PC4701L emulator 67 Selecting the effective events Setting modification flag Current event list BS Trace Point Setting BUDRESS ACCESS CONDITION main FETCH addr 0F0149 func tir FETCH addr 0F0142 data READ 000426 lt taddr lt 000436 OOOO00 FETCH taddr3 OOO000 OOO000 FETCH taddr3 OOO000 OOO000 FETCH taddr3 OOO000 ormbination AND e Detail etail P Enable ea ce rea pl te Gond tion ez 16K 16K Total etal ave Load Close Setting of prosess IL Setting of trace area Setting of trace write condition Setting of combination condition eo The events listed below can be specified as trace 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 simulator engine Event ear PD30 rah ooo PE t ___ Alanla Access BitAccess 0 O Interrupt o A Trigger _ 0 _ _ O Can be substituted by memory access Access type Read O Events at up to six points can be used These six events can be combined in one of the following ways Trace when all of the valid events are established AND condition Trace wh
127. rger han second address SSS 10629 No event set on the sate ansiton path 16630 Process ID value is out of range 1 6634 The target program is running 16635 The target program is not running 16636 The measurement has already been stopping 6637 The measurement has already been being executed AAA O AAA AAA 10638 The measurementisnotcomplsied 10639 There is no trace data ofthe specified cycle oo o y O 10640 There 1 no traoe data SSS 10641 The measurement oounte o lime overfowed 16642 POF state was released by compulsory reset 10643 A numberof seting points exoeeds Ih range 10644 The program breakisnotset SSS 10645 Source line information no loaded 10640 Source Ie information isnotioaded S AA 16647 The exception processing was detected while executing the step 16648 Function range error 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 16655 Point already set 16656 Breakpoint of other type already set 16657 No hardware breakpoint set at specified address 16654 Number of points exceeds the
128. rom the normal mode to the memory space expansion model by the target program the function may not work as expected eo The memory map shows the following data after PD30 gets started Start Address End Address Map Attention 00000 003FF ETE fe E 00400 O3FFF Internal The internal RAM area cannot be changed 04000 2FFFF External Cannot be changed 30000 PEPEE Internal Extension Mode 2 eo The memory reference commands are added which reference the internal ROM in the bank duplicated area in the dump format see the table below A memory reference command with the bank specification is added The memory reference the change to the bank repetition area must use the following commands Command name Abbreviation Description with bank designation DumpByte with bank designation DumpWord2 DW2 DumpWord with bank designation DumpLword2 DumpLword with bank designation SetMemoryByte2 MB2 SetMemoryByte with bank designation etMemoryWord2 SetMemoryWord with bank designation etMemoryLword2 SetMemoryLword with bank designation FillByte2 FB2 FillByte with bank designation FillWord2 FillWord with bank designation FillLword2 FillLword with bank designation FL2 Move2 2 Move with bank designation MoveWord2 MoveW2 MoveWord with bank designation e The following emulator functions are implemented by analyzing the bus information address bus data bus RAM monitor function RAM Monitor window C Watch window Covera
129. ror XXXXX Can not edit this file xxxxx because it is being ns 106 3 Error Messages __ used by another process So The number of base addresses is over the limit ee num No Error Message Notes and Action Value is out of range Be Can t find the register information file A There s incorrect line in register information Contact your nearest distributor file Not enough memory BO Description of expression is illegal pS 1200 Address value is out range for scroll area See le rm length of the displayed data The value is out of range The value which can A be specified is 1 to 2 AAA Can not open file string1 2 204 Internal Error Memory buffer is null 1205 Address value is out of range AAA 1206 Start address is larger than end address AS 1550 There is not enough memory to load the target program 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 1554 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 1 Can t find the scope 1561 Can t find the appropriate symbols 1566 Can t find the search paths 1567 There is no more symbols 1568 There is no more functions 1569 There is no more secti
130. s It can be used in combination with the emulation pod for the PC4701 to debug application programs for each MCU 1 2 1 Function table The supported functions vary with the type of emulator used Emulator PC4701U M HS PC4701L 1K bytes area Function S W Break H W Break 6 points 1 point Real Time Trace 32K Cycles E TAO CO Coverage 256K bytes area Go to Stop 4 points interval GO to Stop Protect Break Access Protect 1 3 Before starting the Debugger Before you can start the Debugger the following tasks must be completed 1 Startting the Debugger 1 3 1 Communication method by emulator The supported communication methods vary with the type of emulator used Emulator me PC4701U PC4701M PC4701HS PC4701L USB O X X X 1 3 1 1 USB Interface Supported only when using the PC4701U emulator The supported host computer OS is Windows Me 98 2000 XP USB communication cannot be used in any other OS Compliant with USB Standard 1 1 Connections via USB hub are not supported By connecting the host computer and the PC4701U 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 PC4701U for details The necessary cable is included with the PC4701U emulator 1 3 1 2 LAN Interface Supported only when using the PC4701U HS emulator The IP
131. s displayed within the range specified by the start marker and end marker in the MR Trace window 89 FS MR Analyze Window E Fun EF Rea hy Syst e Pick Mark OO 0000002845 OO 0000003295 O0 00 00 000449 1D nane Hum Max Min Ave E tasli 9 00 po 00 000 27A 00 00 00 000 01s 0000 00 000 065 C taskaj 2 OO 00 00 000 010 00 00 00 000 00 OOOO 00 000 010 er 1 000000 000 076 000000 000 076 0000 00 000 076 A task4 1 00 00 00 000 010 0000 00 000 010 0000 00 000 010 0 _task5 Z 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 18 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 Fa MR Analyze Window El Run E Rea Pa syst aj Pick Up Wark 00 00 00 002 766 0000 00 004 699 00
132. s field The following addresses are possible to be specified eo 378h eo 278h ATTENTION The C compiler made by IAR also uses this printer parallel port 12 2 Setup Debugger When using PDxx and the emulator PC4701U M 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 e Connect PDxx to the emulator PC4701U M in any mode other than the ECP mode Oo Start compilation when PDxx has been terminated 2 1 2 3 Setting of the Parallel Interface Special parallel communication uses a special parallel interface board PCA4202G02 option which is inserted in the extension slot ISA bus of the personal computer This communication method is available when the emulator PC4701HS or PC4701L is used lt lt Setting of the Parallel Interface gt gt To set the parallel communication click the Parallel radio button of the MCU tab in the Init dialog The setting looks like the figure below Parallel C Serial CLAN LPT USE Host IBM PC AT LO Address 100 Specify the I O address in the I O Address field which is the I O address set on the parallel interface board in hexadecimal Don t describe prefix which shows a cardinal number eo Please specify the value of the hexadecimal number for the I O address Don t describe prefix which shows a cardinal number ATTENTION Combination of Windows NT
133. s the protect break memory protect function of the emulator PC4701U M HS This window cannot be used on the emulator PC4701L The protect break area is a 256 KB continuous area starting from the 64 KB boundary Its start address is called protect base address Immediately after starting the emulator the protect base address is set to Oh 66 1 Windows Dialogs 1 9 1 Configuration of Protect Window Break Mode Protect Base Address Toolbar n AS ee Protect window gt O x 9 Base attr QD Mode Protect Base Address OOOO Break Mode OM 3 iite 000000 UDUESA IDOEBB USFFFF Address Range Protect Break Attribute 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 Read Only write disabled display in yellow R W Enable read write enabled display in sky blue Oo 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 1 9 2 Extended Menus The Protect window provides the following menu when being active This menu is called Protect window option Menu Options Change font Section Set protect break attribute by the section information Base Address Set base address Attribute Set protect break attribute Mode Switch b
134. sages MN commands 17007 An Error was detected in external flash rom area activate commands No Error Message Notes and Action 20000 Task with specified task No not found Ta 20001 Context of specified task No not found 20200 History of the system call issue that conforms to the search condition cannot be found 20401 Task Pause function xxxxx was failed 20600 Can t use Task Trace Window without setting real time OS information 20800 The save file name filename is wrong 20801 Can t find symbol xxxxx of MR Initialization routine of MR is not executed 20803 Can t find the task of the specified task number 20804 Priority out of range 20805 Task ID out of range 20806 Flag ID out of range 20807 Semaphore ID out of range 20809 Memory pool ID out of range 20810 Cyclic handler ID out of range 20815 Address value is out of range 26000 Address value is out of range 123 26001 Description of Assembly language is illegal O 26002 Address value for JUMP is out of range OU 26004 Description of expression is illegal 26005 Addressing mode specified is not appropriate A INTERNAL ERROR ALIGN is multiple specified in SECTION 20007 Operandvaue sunfire 26008 Bitsymbal isin expression 26008 mermisi 26010 Symbol value is not constant 26011 Some toms ae mulpe speafed 26012 Same kind tes ee mie specified 26013 C
135. 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 31 Click the SAVE button and specify the file name To read the shortcut key information click the LOAD button and specify the file name All of the registered shortcut key information is 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 Font 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 4 2 1 Automatically Down load of the Load Module When the dow
136. sk selected in the task pause display area is in a state other than pause gt The display position is not changed O 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 20 Task Trace Window The Task Trace window measures the task execution history of a program using the real time OS and display 1t graphically 92 1 Windows Dialogs This window is available even when a target program using an OS other than the MITSUBISHI real time OS MRxx is downloaded 1 20 1 Configuration of Task Trace Window fe Task Trace Window Elmo Mo T Mo A adjust Y Exp UP After Th Break Mira PTa 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 172 192 Area Break ID name 0 1 E 3 4 a 1 DAHBE 2 task 3 Ctask3 4 Ctask4 5 Ctaskb 6 Ctask6 A Geeky 8 tas iz 9 task9 10 Ctask10 ix 4 The content of each item is as follows Items Contents Indicates a task ID number D 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
137. so that the debugger will not be forced to end when an communication error occurs The debugger is forced to end by default M Glose this application when an error occurs To do this remove a check mark from the above check box in the Exit group 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 e 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 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 37 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 Progr
138. splay 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 6 3 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 6 4 Configuration of C Watch Window ES C Watch Window a He _ Of x HA y Ez Watch Local File Local lobal Name value JE signed long long 2 lLongLongTest unsigned long long g_ulLongLongTest 0 signed int g_index letruct tag 5 ps 0x505 struct tag amp J eps 0x505 signed int ni 7 unsigned char cl BE E tistruct tag next 0D signed int 5 51 zlobal_ array 0x468 10 slened int 5 telobal_array 0 0x468 10 signed int lzlobal_ array 0 10 signed int lglobal_ array 0 1 signed
139. splay 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 Trace Stop Stop measuring Trace Restart Restart measuring 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 1 21 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 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 the MITSUBISHI real time OS MRxx is downloaded The CPU occupation state display mode is 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 21 1 Configuration of Task Analyze Window TS Task Analyze Window Mark 0000 00 164760 00 00 00 381 938 OO 0000217177 m mame Nom Hax Run Time r Min Run Time Ave Bun Time Total Run Time Ratios i 100 ate nain sl 00700700 002 692 00 00 00 000 726 00 00700 001 2331 00 00700
140. ster bank switching function Oo You can change the display ratio 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 Option Menu Options Function 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 Font Change font 1 4 3 Shortcut Menu Press the right button on the register display area in Register Window to display shortcut menu Hex Display in hexadecimal Dec Display in decimal Bin Display in binary 56 1 Windows Dialogs 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 4 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 conten
141. stered in the PC4701U emulator When registered correctly the dialog box shown below appears Setlp a XI Setting waz successful Please reboot the emulator After checking the contents of the dialog box click the OK button Temporarily turn off the power to the PC4701U emulator and turn it back on again The registered IP address becomes effective after the emulator is powered up again ATTENTION If multiple PC4701Us in default settings are connected on the same network only the first PC4701U detected is displayed The PC4701Us which have had an IP address already set cannot be detected by SETIP In sucha 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 3 3 3 Proprietary parallel communication with emulators by Windows NT 4 0 2000 XP If you are using PDxx in a combination of Windows NT 4 0 2000 XP the parallel I F you need to specify the start address of I O addresses 7 bytes to the device driver for PCA4202G02 The I O address for PCA4202G02 is set to 100h initially You can set this setting with setPca4202 exe included with PDxx The above programs are installed in the directory where PDxx is installed ex c mtool PDxx utility At the first time of using PDxx or when you want to change the I O address for PCA4202
142. t Setting Window are from A1 to A6 but the events of Trace Point Setting Window are from B1 to B6 1 11 1 2 Event enable check box The real time trace function is always enabled Therefore Trace Point Setting Window does not have the enable check box H W break function is enabled only when the enable check box is checked E H W Break Point Setting Window ES Trace Point Setting Window e Enable He Break Event Status A Cal 1 Al _main FETGH 0FD 1 Bl _main FETCH 1 11 1 3 Other differences The H W Break Point Setting Window does not have Trace range setting area The H W Break Point Setting Window does not have Write condition setting area 1 12Trace Window The Trace window displays the measurement result of the real time trace The Trace window provides the three display modes as below T4 1 Windows Dialogs Bus mode Allows you to reference the bus information by cycle The information is displayed in the order of execution path 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 Disassemble Mode Allows you to reference the executed command The commands are displayed in the order of execution 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 th
143. the memory extension mode selection area is inactive ATTENTION The functions may be restricted depending on the type of memory space expansion mode Extension Mode 1 When the memory space expansion area 1s displayed in the dis assemble mode in the Program window or the Source window the displayed data may be different from what you would expect through the operation accompanying redrawing of the window such as up down scroll during execution of the target program The following emulator functions are implemented by analyzing the bus information address bus data bus RAM monitor function RAM Monitor window C Watch window Coverage measurement function Coverage window Coverage command Memory protect function Protect window Protect command MCU accesses the program bank if Fetch command is specified for the bank duplicated area and the data bank if Read Write is specified for the bank duplicated area In above cases a signal which can distinguish which bank accesses the bus information is not output Therefore the above function may not work as expected The memory reference commands are added which reference the internal ROM in the bank duplicated area in the dump format see the table below You cannot use the DA command during execution of the target program DumpByte2 DB2 DumpByte with bank designation 19 e If you use the Memory Reference Change command for the bank duplicated area before MCU is switched f
144. ts of memory and also to fill and move specified blocks of memory 1 4 5 Configuration of Memory Window EN Memory Window pool 000753 lt USP Po ujm B D H abe dad El Adaress Lab i asistar U 1 te Fo 4 3 TOY ASLI LE Label Address Register Data Code 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 4 60ption Menu The Memory window provides the following menu when being active This menu is called Memory window option Menu Menu Options 57 Option Scroll Area Register xxxxx 1 Followed Stack Pointer 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 Specify scroll range Starting address to value of the register Product dependence menu Keep tracking of the stack pointer position Startup label settings Refresh display Data Length Specify data length Byte Display in 1 byte units Word Display in 2 byte units Lword Display in 4 byte units Radix Specify data radix Hex Display in hexadecimal Dec Display in decimal Bin Display in bi
145. ue 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 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 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 87 Note The software interrupt number is different according to product PD308 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 Interrupt et Interrupt Routine Name C eo eee Oo eo sysdisdsp E Sys_ nee _tsk A scan gt 56 SYSC
146. without specifying a log file o When a script file is opened the command history area changes to become the script file display 65 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 commands so the saved files can be used as the script files 1 8 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 be selected even by the short cut menu by a right click in the window 1 9 Protect Window The Protect window set
147. y You can specify the event for the measurement condition in the same manner as when specifying events in the Trace Point Setting Window The Time Measurement window cannot be used on the emulator PC4701L Event setting area Measurement result clear buttons Fa Time Measurement Window FETCH taddr 0F007 4 Bz OFODS FETCH addr OFOO5 Ba deetmem FETCH addr OFOS40 OOO000 FETCH taddr 000000 start FETCH addr DF0ATS Measurement Point MP1 Match Zone B1 MP2 Zone Specify Bl B3 MP3 Single Cycle B LJ MP4 Not Use Clear Result ALL MP1 MP2 MPs MP4 Measurement Result hl FY MP2 00h 00m O0s 000 me O00ue 00h D m Os OOO me Mus Min 00h Om 00s 000 ms O00us e 00h O rmm 00s O00ms Mus Ave O0h O0rm 00s 000 ms O00us t 1 Crt U ite MP4 DO Om 00 O00me O00us Max O0h Om 00s 000 me O00us 00h D m Os OOO me uz Min 00h Om 00s 000 me O00us e O0h 00m DO O00me O00us Ave O0h Om 00s 000 me O00us t D Crt D Measurement result display area Measurement condition setting area 33 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 PD308 PD30 Fetch i X O Memory Access 0 O Bit Acces 0 O Interrupt X _ O External Trigger 0O 0O Can be substituted by memory access Access type

Download Pdf Manuals

image

Related Search

Related Contents

Fiche constructeur    取 扱 説 明 書    「正しいフィッシング対策について」高木浩光氏(産業技術総合研究所)  Bibliographie - Cours de DIP de l`UE - Marion HO-DAC  高性能「電気式」集じん器  LEDD-60013ML-LD9  Referenzhandbuch für schnelle Hilfe Guida di riferimento  

Copyright © All rights reserved.
Failed to retrieve file