Home
M3T-PD308SIM V.3.20/M3T-PD30SIM V.5.20 User`s Manual
Contents
1. As shown above a specified virtual interrupt can be generated when program execution has moved into address F 0000 By using this function you can specify that a virtual interrupt be generated when address F 0000 is executed first by the program and that no virtual interrupt be generated when the address is executed next as shown below Number of times the address Whether virtual interrupt is generated F 0000 is executed Virtual interrupt is generated Virtual interrupt is not generated Virtual interrupt is generated 3 Interval synchronized interrupts A virtual interrupt can be generated at specified intervals The following shows an example of a virtual interrupt which is synchronized to a specified interval time Example where virtual interrupt of software interrupt No 21 timer AQ is defined Virtual interrupt iz generated every DD me g 100 ANIS oI 400 out BL TOO oO g0 Execution time me As shown above virtual interrupts in this case timer AO interrupt can be generated in interval synchronized 1 19 2 Structure of Virtual Port Input Screen 1 19 2 1 Screen structure for cycle synchronized inputs If you ve set virtual port inputs that are synchronized to machine cycles they can be displayed in one of the three modes shown below The display modes can be changed from the Mode menu 1 Chart mode displayed in units of bits The virtual port input that has been set is displayed in chart mo
2. _ _ Number of Files 1 16 E Specify the number of histories in the File History Number field in the File History group Y ou can specify the number from 1 to 16 4 3 Font Tab The specified content becomes effective when the next being start 4 3 1 Specify the font Specify the default font for the characters displayed by PDxx Font Font Freddys Click the Font button The Font selection dialog opens Enter the font and font size Note You can set the font independently in each window With the target window active select Option gt F ont 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 Tab TABU 32 ls Specify the default tab values for the Program Window Source Window You can specify TAB values between 1 and 32 Note You can set the tab width by window Select the PDxx window Menu Option gt TAB while the target window is active The TAB designation dialog is opened 4 4 Path Tab The specified content becomes effective when the next being start 26 4 Environmental Setting of Debugger File Search Path D4 Us R MIN od 504 prog Add DELS REMINEOT HER pds0 prog a Delete Delete All Directory Setting Watch Points Beten e Use the sam
3. 15 MOU Mbc x mcu Time Count Resource MOU Clock i WH Dividing ratio i 2 1 1 Specifying the MCU file MOU Mi cx meu Click the Refer button This opens a file selection dialog box so specify the desired MCU filein this dialog box The MCU fileis stored in a location below the directory where the PDxxSIM is installed e g c mtool pdxxsim mcufiles e The MCU file contains the information specific to the target MCU e The MCU file you specify is displayed in the MCU area of the MCU tab If the corresponding MCU file is not included in the debugger you need to create a new MCU file For details on how to create see the following e Method of making MCU file PD308SIM gt 2 8 1 e Method of making MCU file PD30SIM gt 2 8 2 2 1 2 Specifying Clock Frequency In the Time Count Resource group s MCU Clock area specify the operating clock of the target MCU in MHz Then in the Dividing ratio area specify the divide by ratio of the target MCU When using the MCU with 10 MHz divided by 4 specify 10 for the operating clock and 4 for the divide by ratio Time Gount Resource MOU Clock i 0 MHz Dividing ratio a 2 2 Debug Information Tab Specifies storing of debugging information ahead The specified content becomes effective when the next being download 16 2 Setup Debugger On Memory f On Demand Temp Dir E TEMP 2 2 1 Specify the Storing of Debug Information
4. To change the trace measurement range to the desired event position set the required data in the Trace Point Setting Window For details on the Trace Point Setting Window see 1 15 Trace Point Setting Window 1 16 1 Configuration of Bus Mode The bus mode of the trace window is the following configurations Following figures are examples of displaying P D30 Too bar Current Cycle Execution Time of Current Cycle Trace cycle Tes Gree Address of Current Cycle Pet Trace Window ses aes uste icone WF Tra File Cycle 00835 Address OFODZG Time OO 00 00 849 395 Address Data BUS BIU RW RWT CPU ON B T G 7 76543210 ho m s ms OFODZC sbi 1 CH 0000 00 845 OFODE FFFA 0000 00 849 OFOOSO 6300 00 00 00 843 000850 QOD 00 00 849 000850 QOD 00 00 349 OFDOS2 FDZS 00 00 349 OFOUS4 03926 00 00 849 0FOOS4 09 26 OO 007849 OFO0S6 02DF OO 007848 OFOUSS 32FF OO 002849 OFOUSS 32FF 00 00 849 _rand 0F0926 E D 00 00 349 OFOS28 4705 00 00 00 849 000840 S700 0000 00 844 NONSAB 2A AA AA eA LS E Range 32511 0000 Cycle Label 0083 l l l l A O Ss 20 09 100100 O O A 3 2 a D ae o o l amn En a ee a 22 2 2 2 olaaa 2 aa a L_ i lol lo lo lo lo lo lo Lo OL OL l l l l Sa E Ss 2 Se 2 a eo Po Pt Po Pos no UA Aa A tl Ao Ad a A D O D D D D D D D D D
5. Address Area Turn on off address area Code Area Turn on off object code area Line Assemble Open Line Assemble dialog Saves MIX display result Coverage Set Coverage measurement On Off Turn on off Measurement result Base Change coverage RAM base address Clear Initialize coverage measurement result Refresh Update display of coverage measurement result Edit Edit functions On Turns editing on or off Save Saves the edited contents by overwriting Save As Saves the edited contents with another name Save All Saves all of the edited contents by overwriting 1 2 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 e When right clicking the line number display area or address display area The shortcut menu same as the option menu appears e When right clicking the breakpoint display area Theshortcut menu does not appear Hardware break can be set When right clicking other area The following shortcut menu appears Debug M ode Right Click Jump to function Display the selected function Open Source Window _ Display the selected function by Source Window 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 p
6. C language expression C symbols combined with expressions e If aC language expression cannot be calculated correctly for example when a 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 language expression can be calculated correctly at the second time it becomes an effective C watch point e You can change the display radix by C language expression Hex gt Dec gt Bin The address display of pointers is fixed to hexadecimal regardless of the display radix You cannot change the values of the C watch points listed below Floating point variables Bit field variables Register variables C watch point which does not indicate an address invalid C watch point e Theregistered C watch point information is saved in the C watch point information file when closing the C Watch window When reopening the file the information is automatically registered A C watch point information file is created for each object file that is loaded The file includes the object file name information e Theorder of arrangement can be altered using the Drag amp Drop function ATTENTION e TheRAM monitor obtains the data accessed through the bus Any change other than the access from the target program will not be reflected e If the display data length of the RAM monitor area is not 1 byte the data s access attribute to 5 the memory may varies in
7. F P M A e O a Db A A ee e a a a a a a a TE a D L Labe Display Eus nformat ior Diselay Execut ion Time Disp lay Cycle Display 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 e You can change the display ratio between the label display area and the bus information display area using the mouse 1 16 1 1 Display of bus information on PD308 From left to right the contents are as follows e Address The status of address bus Data The status of 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 Noaccess WAIT Executing wait instruction RBML Read access bytes ML on 71 QC Discontinuous F etch access queue buffer RWML Read access words ML on NT Interrupt acknowledge Read access bytes WB Write access bytes DRB Read access by DMA bytes DWB Write access by DMA bytes RW Read access words WW Write access words DRW Read access by DMA words DWW Write access by DMA words o R W Shows the status of the data bus R for r ead W for wr it e for no access o RWT This signal shows the effective position in the bus cycle 0 when effective Addre
8. 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 Allows high speed process because of use of memory Select the saving method On Memory is set by default f On Memory f On Demand Temp Dir ETE MP Toselect 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 Compiler Tab In this tab only PD30 SIM exists The specified content becomes effective when the next being start 2 3 1 Specify the Compiler The output format of the object module I E E E 695 format file partially varies depending on the compiler that you are using Therefore you must specify which compiler created the object module file f NO30 TAR EWwhti6c TASKING CM16 Change the designation according to the compiler that you are using NC30 is set by default 17 2 4 Cross Tool Tab In this tab only PD32RSIM exists The specified content becomes effective when the next being start 2 4 1 Specifying the cross tools used Theformat in which object module files are output partly differs with each cross tool used Therefore you need to specify the cross tool with which the object module file was created Cross Tool f GCHER TWS2R DCC Change
9. Contact your nearest distributor Not enough memory fe rr 04 Description of expression is illegal 1000 Address value is out range for scroll area A 1200 Address value is out range for scroll area 1201 The length of the set data is different from the A length of the displayed data 1600 Can t add new watch point because it exceeds limit of watch point number Max number is num 1601 Address vale 8 outof range OOOO 1602 Data value is outofrange OOO S O 1003 Bit value is outofrange OOOO 1604 Can t save watch points 2000 Can t open Script Fil 09d 2001 Sorpt File is mot open 2002 Can t open Log Fie OOS 2003 Can t open more Log File 2004 Cant open Log Ple 2005 File ooo is aveadylogon Can t open View File xxxxx for new add Y 2007 Can tsave command history 2200 Address value is out of range Y 2201 Data value outofrange 2202 Star adores larger than end address Fee03 Vvalueisunder SP 3 Error Messages 2204 Data value is out of range Fo 2205 Data is not set i 2400 Illegal endi xxxxx line 2401 Illegal endw xxxxx line 2402 INTERNAL ERROR ER_BAT EOF 2403 Can t find endi xxxxx line 2409 Can t find endw xxxxx line 2410 The nest level exceeds the limit num 2411 INTERNAL ERROR ER_BAT_NONE Contact your nearest distributor 2405 Nest level is overflow xxxxx line Ld A ine ine 2407 Can t read Script
10. However once a virtual interrupt is generated and registered in the simulator the priority of the virtual interrupt cannot be altered even when the priority levels specified with the interrupt priority level select bit is changed by the user program The Flag Register FLG s interrupt enable flag I flag and processor interrupt priority level IPL are referenced as in the actual chip I O Script Function This function allows you to write virtual port input and virtual interrupt settings to a file in script form Therefore it provides a more flexible way to define virtual port inputs and virtual interrupts than can be set from the I O Window Specifically this includes for example reading the divide by N ratios you ve set in the timer register and generating a timer interrupt periodically 1 2 2 4 4 Port input output GUI input function The GUI input function refers to simulating the user target system s simple key input panel on a window The key input panel is created from the GUI input window The input panel can have the following parts placed on it Buttons Virtual port input or virtual interrupt can be performed by pressing the button The following actions can be set for the button 12 1 Starting the Debugger Enter data to a specified memory address virtual port input Generate a specified virtual interrupt Generate a specified virtual interrupt and virtual port input at the same time T
11. Reset l the emulator in which they were set Saves the contents set in the window to a file Loads event information from a filein which it was saved Sends the contents set in the window to the emulator Closes the window 1 15 8 Extended Menus The Trace Point Setting Window has popup menus that can be brought up by right clicking in the window Use input history for address If this menu is checked input history for address input is available in an event setting dialog box opened from the Trace Point Setting Window if not the labels of program are listed for it 1 16 Trace Window The Trace window displays the measurement result of the real time trace function installed in the emulator PC4701M PC4701HS The Trace window provides the three display modes as below e Bus mode Allows you to reference the bus information by cycle The information is displayed in the order of execution path Disassemble Mode Allows you to reference the executed command The commands are displayed in the order of execution path e Source Mode Allows you to reference the source program execution path Operate the buttons in the tool bar to reference the path 70 1 Windows Dialogs The Trace window displays the measurement result when the real time measurement is completed If the real time measurement has not been completed the Trace window displays nothing By default 32 K cycles before the target program is stopped are recorded
12. a method is available that allows you to materialize data input to memory such as the SFR or interrupts such as timer interrupt in an artificial manner For details about this method see I O Script and Interrupts described later 1 2 1 4 2 VO Script e Virtual Port Input Function This function defines changes of the data that is input from external devices to a specified memory address U sing this function you can simulate data inputs to the ports defined in SFR The following shows timings at which data can be input to memory 1 When program execution has reached a specified number of cycles 2 When a specified memory location is accessed for read by a program 3 When a specified virtual interrupt is generated Virtual interrupts at the above timings can be defined from the 1 0 Window Use of the I O script function the function that allows users to define virtual port input or virtual interrupt makes it possible to specify more elaborate data input timing such as when the program performs fetch or writes to memory or when it executed an instruction a specified number of times e Virtual Port Output Function When a data write to some memory address by the program occurs this function records the written data value and the cycle at which the data was written The recorded data can be verified in graphic or numeric format from the I O Window The number of data entries that can be recorded by this function equals the number of d
13. ae _ A Coe e as Coe Ea E ES LE e gt 1 ian a o gt E l CSS E O a A SS co a ua a a gt QA A A E ES E EE l l el Ll el DE eS la A gt Bi an E AA Labe Address Data e You can select the display data from 1 byte 2 bytes 4 bytes PD38 SIM does not support a display in 4 bytes binary decimal hexadecimal ASCII SJ IS and IS The display data is set to the 1 byte hexadecimal format by default You can select the window open menu while holding down the Ctrl key to specify the display Start address e Double clicking the address display area opens a dialog which allows you to change the display Start address A dialog which allows you to change the memory data at the clicked address by double clicking 49 the label display area memory data display area e A memory cache is provided to speed up display By default cache is set to Disable e You can change the display ratio between the label display area and the memory data display area using the mouse e Can keep track of the stack pointer position Not tracked by default 1 5 2 Option Menu The Memory window provides the following menu when being active This menu is called Memory window option Menu Options Option Eont Change font View Change contents of display Scroll Area Specify scroll range Address Specify display starting address XXXXX
14. amp Rea Current Run Task 11 main ID Sta amp ddr mame Pri Status mup count timeout fle ptn 0OF179CH main 1 RUN OOOOH _task 2 RDY PONH _task3 2 SLs DOD R _taskd 1 WAICSLP 0000 _task5 1 WATCSLP SUS 0000 _task6 DOD H task _task8 _task9 _task10 _task11 l I WA TED SUS OOOOH HAT CFLG OOOOH THF_ORW WAT CFLG SUS OOOOH THF_ORW l OOOOH HAT SEM SUS OOOOH l 2 3 4 F b i 3 9 i l By dicking 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 menus which will select the display mode If a target program created on MR30 V 1 00 is downloaded the MPL mode cannot be used on MR30 Y ou cannot select the menu which changes the current mode tothe MPL mode 1 18 2 Extended Menus The MR window provides the following menu when being active This menu is called MR window 80 1 Windows Dialogs option Menu Options Option 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 M
15. posz T HOH 2HLFE E HOH RO HIH RO F0187H E HOH 2HLFB OFOISE HOQFFH 2H FB F0181H 2HLFB 7 40 HLFB Al ES 0458HC407 0458HL41 E 1H 0458HCA1 2HLFB 7 40 gt AO 0458H RO FMS RCL A 4 H ve Object Code Label Program Ereakpo int Address e You can switch Display Hide for the address display area object code display area e You can change the display start address by double clicking the address display area e 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 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 View 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 Mode Switch display mode 45 Source Mode Switch to source display mode Mix Mode Switch to MIX display mode Disasm Mode Switch to disassemble display mode Layout Set layout Line Area Turn on off line No area
16. 1 Product dependence menu Followed Stack Pointer Keep tracking of the stack pointer position Data Length Specify data length Byte Display in 1 byte units Word Display in 2 byte units Lword 2 Display in 4 byte units Radix Specify data radix Bin Display in binary Dec Display in decimal Hex Display in hexadecimal ASCII Display as ASCII characters SJIS Display as SJIS characters JIS Display as JIS characters Refresh Refresh display Set memory contents Set data at specified address Fill soecified memory block with data Move specified memory block to specified Address Use the cache of memory Does not exist in PD38 SIM In PD79 SIM PD77 SIM it is displayed as Dword 1 Product Dependence Menu Menu Options PD308 SIM JE Change display starting address to value of FB register PD30 SIM Change display starting address to value of SB register Change display starting address to value of USP register Change display starting address to value of ISP register PD79 SIM S Change display starting address to value of Stack Pointer Change display starting address to value of DPRO register Change display starting address to value of DPR1 register Change display starting address to value of DPR2 register Change display starting address to value of DPR3 register PD77 SIM ONE display starting address to value of Stack Pointer Den Change display starting address to value of DPR register PD38 SIM S Change display sta
17. 1 Display the Termination Confirmation Dialog Y ou can set a parameter so that the termination confirmation dialog will not be opened which is supposed to be opened when exiting from the debugger e Confirm whether closing this application or mot To keep the dialog closed remove a check mark from the above check box in the Exit group 4 6 2 Debugger Forced Ending when Error Occurs You can set a parameter so that the debugger will not be forced to end when a communication error occurs The debugger is forced to end by default e Close this application when an error occurs Todo this remove a check mark from the above check box in the Exit group 4 6 3 Target Continuance Execution when Debugger Ends not supported for the PDxxSIM 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 not supported for the PDxxSIM Multiple PDxx startup can be enabled By default multiple startup is disabled Execute two or more
18. File 0000 2408 Description is illegal oxxx line 7 mit num 2404 Line length is overflow xxxxx line 2412 Illegal break xxxxx line o 2600 Syntax error 2603 You can register the only command name for alias Notes and Action 2607 Can t set break point in this function 2608 The start address larger than the end address 2609 Can t register that token for alias 2610 Can t register that token for alias 2611 Can t find File xxxxx 2612 Data value is out of range 6000 INTERNAL ERROR ER_ENV_END Contact your nearest distributor Error Message Notes and Action 6200 SYMBOL file is illegal z O 6201 Loading is canceled 6202 Can t find SYMBOL fle 00007 6203 Can t get enough memory 6204 _ 6200 6201 _ 6202 6203 6204 Cannot open temporary file Error Message Notes and Action Can t find symbol Description is illegal O 640 640 6404 z oo E N 6406 Can t find symbol 6407 Can t find function 6408 Right hand side of the expression is illegal 6409 The Type of structure union are not same 6410 Can t assign 6411 Can t find type 6412 Not supported float double operation 6413 The operation does not be allowed to pointers 6414 The operation does not be allowed to the pointer 6415 Can t decrease by pointer 6416 Divided by 0 6417 The operator is not supported 6418 Type information i
19. INTERNAL ERROR Break point number is illegal 6620 Please download the firmware to target 6621 Can t download firmware 6622 Download firmware is finished 3 Error Messages Please restart PD 6623 6624 16625 Can t find trace data which is able to refer Cycle value is out of range Target MCU is not under control Please reset target systems 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 16647 First data is larger than second data First address is larger than second address No event set on the state transition path Time out value is out of range Process ID value is out of range Communication protocol error Argument error Check sum error of the received data occurred The specified data do not exist The target program Is running The target program is not running The measurement has already been stopping The measurement has already been being executed The measurement is not completed There is no trace data of the specified cycle There is no trace data The measurement counter of time overflowed POF state was released by compulsory reset A number of setting points exceeds the range The program break is not set Source line information is not loaded The trigger mode is not a software output mode The exception processing was detected while executing the step Function range error The writing er
20. POs in same time To enable multiple startup check the above check box included in the Exit group 30 4 Environmental Setting of Debugger 4 6 5 Display the Absolute Path of Source File When the file name is displayed with the absolute path in the title bar in the Program Source window you can hide the absolute path from the screen e Hide path name in Program Source Windows To hide the file path check the above check box in the Other Setting group 4 6 6 Control the Display Mode Switching of Program Window Y ou can set switching of the display mode at stop of the target program to Suppress keep the current display mode in the Program window However the display mode may be switched depending on where the target program is stopped Try to keep your display mode in Program Window To control the display mode switching check the above check box in the Other Setting group 4 6 7 Execution History of Script Command You can save the execution history of the script command Ten sets of history data are saved by default e Save commands history in Script Window Humber of Commands 4 100 fio To change the history of script commands specify the number of history in the Number of Commands field O 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 c
21. The Coverage window allows you to reference the coverage measurement result of the functions of the target program downloaded Twotypes 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 Coverage Source in which you can check execution non execution by source line Y ou cannot use these windows if you are using the emulator PC4701L e The coverage which can be measured is CO coverage e The coverage measurement area is an any 256 KB area starting from the 64 KB boundary For PD38 and simulator debugger PDxxSIM all the space is the target for coverage measurement e Thetop address of the coverage measurement area is called coverage base address By default the coverage base address Is set to Oh 1 17 1 Configuration of Coverage Window Toolbar Coverage Scope gt T H Cov La Cor E AAA Coverage Base Address 0L0000 OFFFFR Function Start ERA Coverage IL ae i Pale ES E Coverage Window main JF aly Init UFUTS89 FUTA sub OFOTSD 001744 Function Mame Function Scope Coverage Rate e By double clicking any function line the corresponding function appears in the Coverage Source window e During coverage measurement appears in the coverage display area 78 1 Windows Dialogs e You can change the display ratio between the function name display area and the functi
22. The GUI Output window provides the following menu when being active This menu is called GUI Output window option Menu Options Option Edits or moves parts Del Deletes parts Copy Copies parts Paste Pastes parts Make Label Creates label Make LED Creates LED Make Text Create text label Display Grid Line Shows hides grid line Load Loads GUI output file Save Saves GUI output file These menus can be selected even by the short cut menu by a right click in the window 1 22 Output Port Window The Output Port Window is used to display the data to be output to ports on a window or output the data toa file It also allows you to verify the data that is output to UARTs by the Printf function Window ASCII display Hexadecimal display ASCII output H exadecimal output Binary output Not including data output for the Printf function however 98 1 Windows Dialogs 1 22 1 Configuration of Outport Window Z Output Port Windor 28 This is test 29 ABCDEFGHI J 30 This is test 31 ABCDEFGHIJ 32 This is test 33 ABCDEFGHI J 34 This is test 35 ABCOEFGHI J e For the output port you can select any port or UARTO or UART1 which is the output destination for the Printf function For details about the Printf function output destination see the User s Manual of your Compiler NCxx e Thedata which are output to ports can be saved to a specified file log file before being presented t
23. be changed in the Tool Bar Button list box at left of the Customize Tool Bar dialog Then click the Up or Down button to change the display position 4 7 1 4 Resetting the display buttons Click the Help button at right of the dialog The display buttons are reset to the default settings 32 5 Ending the Debugger 5 Ending the Debugger To ending the debugger select Menu File gt Exit The Confirmation dialog opens When ending the PDxx click the OK button Other Tab of Customize Dialog To keep the dialog closed refer to 4 6 1 Display the Termination Confirmation Dialog 33 MEMO 34 Reference 36 1 Windows Dialogs 1 Windows Dialogs e Windows The window of this debugger is shown below Window Name PDxxSIM Window Program Window Source Window Register Window Memory Window Dump Window RAM Monitor Window ASM Watch Window C Watch Window Local Window File Local Window Global Window Call Stack Window 1 Script Window Trace Point Setting Window Trace Window Coverage Window MR Window 1 I O Window GUI Input Window GUI Output Window Outport Window 1 Not support PD38 SIM 37 e Dialogs The dialog of this debugger is shown below Dialog S W Break Point Setting Dialog Box H W Break Point Setting Dialog Box 1 1 PDxxSIM Window The PDxx Window is the main window for PDxx This window displays the main commands on a toolbar You can cli
24. external signal pins EXTINO to EXTIN7 of the external trace signal input cable High level 1 Low level 0 eo h m s ms us Show the elapsed time from the target program beginning 1 16 1 5 Display of bus information on PD38 From left to right the contents are as follows e Address The status of address bus 0 Data The status of data bus e Sync This signal is output when fetching an instruction op code When an op code is being fetched this signal indicates a logic 1 This Sync value is sometimes displayed as e 1 f In this case it denotes a dummy Sync meaning that the instruction on the line is not actually executed e Read This signal determines the direct ion of the data bus When data is to be read this signal Indicates a logic 0 eo Write This signal determines the direct ion of the data bus When data is to be written this signal Indicates a logic 0 e 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 e QT Shows the level of the external trace trigger the EXTIN6 pin of the external trace signal input cable High level 1 Low level 0 e 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 eo h m s ms us Show the elapsed time from the target program beginning 1 16 1 6 Display of bus information on PDxxS
25. in specified C variable expression Checks and changes memory contents in 1 byte units Checks and changes memory contents in 4 byte units Checks and changes memory contents in 4 byte units Checks and changes memory contents in 2 byte units Halts for user input until the specified time has elapsed Sets and checks software breaks Clears software breaks Clears software breaks Disables software breakpoints Disables all software breaks Enables software breakpoints Enables all software breaks Sets and checks stack utilization measurement Checks the operating status of the MCU Step execution of source line Step execution of instructions Stops program execution Checks assembler symbols Sets the run time display and checks the current setting Realtime trace data display Realtime trace data display Displays disassembled real time trace data Displays disassembled real time trace data Sets and checks a trace points Sets and checks a trace points Cancels the alias defined for a command Cancels all aliases defined for commands Displays the calling function Outputs data to an Intel HEX format file Outputs data to a Motorola S format file Displays the version No Waits for an event to occur before command input Waits for an event to occur before command input Waits for an event to occur before command input Displays a function call status 108 3 Error Messages AR Please click an error number O o0 INTERNAL
26. input data that has been set in graphic mode The peaks in this graph represent data values derived by equally dividing the height of the data displaying area by 255 maximum value of 1 byte data The short white lines appearing at the bottom of the input data display area indicate points at which data are input To reference data values move the mouse cursor into this area and the value and the cycle count of the data at which the cursor is positioned will be displayed in the cycle count display area e Cycle count display area displays cycle counts 3 Hexadecimal mode The virtual port input that has been set is displayed in hexadecimal mode Inu cycle Cycle Address 12 445 6 718 91011121314151617181920a S7 com AN display area it Ll Address display area Input data display area e Address display area displays the memory address to which a virtual port is input e Input data display area displays the virtual port input data that has been set by hexadecimal numbers To reference data values move the mouse cursor into this area and the value and the cycle count of the data at which the cursor is positioned will be displayed in the cycle count display area e Cycle count display area displays cycle counts 88 1 Windows Dialogs 1 19 2 2 Screen structure for read access synchronized inputs If you ve set virtual port inputs that are synchronized to machine cycles they can be displayed in one of the three mo
27. interrupt sequence is not considered when measuring the number of cycles When an interrupt occurs the executed cycle of an interrupt sequence is 0 e PD30SIM starts counting cycles immediately after a reset Cycles immediately after a reset are 0 The number of cycles needed to execute one machine instruction are added on for each Instruction executed See shown below N ote Because the number of cycles measured by the emulator does not take into account the bus width queue wait cycles etc it includes some error when compared with the number of cycles in the actual chip If four cycles are required for the ENTER instruction cycles are added at this point in time If two cycles are required for the MOV instruction cycles are added at this point in time ENTER instruction MOWY instructior OEE REEERE 0 1 5 3 E 5 7 E cycles In the above example no cycles are added while the ENTER or MOV instruction is being executed The cycles required for each instruction are added after instruction execution Note that the virtual port input output and virtual interrupt functions are processed after instruction execution is completed 1 2 1 1 2 Target program execution time measurement The target program execution time measurement is calculated from the number of cycles described above and the MCU clock and divide by ratio specified on the MCU tab of the Init dialog box N ote Because the simulator s execution time measuremen
28. language variable Hex gt Dec gt Bin 1 11 2 Extended Menus The File Local window provides the following menu when being active This menu is called File Local window option Change Fonts Watch Operations related to C function Cwatch Register selected C variable as C watch point Cwatch Pointer Register pointer of selected C variable as C watchpoint Set Set new value for selected C variable Cancel Cancel selection of C variable View Change contents of display Radix Change radix Layout Turn on off type name Sort Sort Display String Display the string Display character RAM Monitor Display RAM monitor 60 1 Windows Dialogs Enable Turn on off RAM monitor area RAM Monitor Area Set RAM monitor area Color Set color of access at tribute display Sampling period Set sampling period for RAM monitor Clear Clear These menus can be selected even by the short cut menu by a right click in the window 1 12 Global Window The Global Window lists C global variables and their values The display is updated after each 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 12 1 Configuration of Global Window Load Module File Toolbar Ee Global Window Po D Eaa rana ES Sel Cocca Wire Toe ep Cha Frog cexprl xl long answer dou
29. monitor bank address 6291 The mistake is found in the specification of the debugging monitor work address bh 6292 Cannot specifiy to extend more than two banks 16293 Please specify the address in the emulation memory area Too many ROM area specification 6295 Start address is larger than end address 6296 Too many DMA area specification 6298 The mistake is found in the specification of the DMA area h bh i Aaa O O O O N N O do gt 16304 The S W breakpoint cannot be set 16306 The H W breakpoint cannot be set in the flash ROM area 307 The H W breakpoint cannot be set 308 Too many memory mapping specification 16309 The mistake is found in the specification of the memory mapping 314 Work Address value is out of range The received data is illegal The received data must be x But y is received 16316 INIT code is received 16400 INTERNAL ERROR Already connected with the SS target 6401 INTERNAL ERROR Fork enorhashappen SS 16402 Cam na Host Name osman OO 16408 INTERNAL ERROR The Baud rates legal 6404 The connection wit the targtisntreaa 16405 cant connectwin meg OOO 16406 INTERNAL ERROR The Time of time out is out of range 16408 INTERNAL ERROR Can t disconnect with the sss 119 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 RA
30. 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 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 4 2 Download Tab The specified content becomes effective when the next being start Auto Download Enable with confirmation Enable Gwithout confirmation i Disable File History Humber of Files 1 16 ja 4 2 1 Automatically Down load of the Load Module When the downloaded load module is updated by re compile assemble the file can be auto downloaded The load module is updated at timing when it is operated by a command of execution group Go Step etc Auto Download C Enable with confirmation Enable without confirmation f Disable In the Auto Download group select any one of the following Disable is selected by default 25 Enable with confirmation Asks for confirmation at auto download Enable without confirmation Does not ask for confirmation at auto download Does not auto download the load module file 4 2 2 Setting the number of load module download histories Y ou can set the number of load module download histories 4 is set by default File History
31. of memor 52 1 Windows Dialogs Does not exist in PD38 SIM In PD79 SIM PD77 SIM it is displayed as Dword 1 6 3 Shortcut Menu The Dump window provides the shortcut menu by clicking the mouse right button in the window Menu Options Right Click Set Set data at specified address Fill Fill specified memory block with data Move Move specified memory block to specified Address Display in 1 byte units Display in 2 byte units Display in 4 byte units Specify data radix Display in binary Display in decimal Display in hexadecimal Display as ASCII characters Display as SJIS characters Display as JIS characters Refresh display Scroll Area Specify scroll range Font Changefont 1 7 RAM Monitor Window The RAM Monitor Window displays the contents of memory in the RAM monitor area in dump format Upto 10 RAM monitor windows can be opened The display is updated at constant intervals default 100ms during execute on of the target program Y ou can set any contiguous address area as the RAM monitor area 1 7 1 Configuration of RAM Monitor Window Retresh Rate Toolbar a RAM Monitor Windows _5B_ aja Db Hhex abeascn ggsus gp Js E Base Clear EC 01 00 071 00 00 Cs p De 00 OO 00 00 Address Data Read Green WritelRed ASCII Code e The default RAM monitor area is from Oh to 3FFh By clicking the Area button a dialog is opened which allows you to change the R
32. support in PD38 SIM Window Operations Optional Window Menu Menu Options Fama SSS Custom Windows Custom Windows Option Entry Custom Window Custom Window Open the custom window me 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 tothe cursor position set reset the software breakpoint and perform line assemble The Program window provides the three display modes as below e Source display mode Displays the source file of the target program Can also be used to edit the source file e Disassemble Mode 41 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 e 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 Mie E E Program Window Leampc E view Sour Ey MIK W Dis
33. that is input from external sources to a specified memory address Use of this function makes it possible to simulate data inputs to the ports defined in the SFR The defined input data can be referenced by displaying it in chart numeric hexadecimal or graphic mode There are following three types of virtual port inputs 1 Cyclesynchronized input The input data can be written to memory when program execution has reached a specified number of cycles The data size that can be input is one byte The diagram below shows an example of a virtual port input that is synchronized to machine cycles 82 1 Windows Dialogs Data 20 is input Data FF is input Data 1D is input in the 2 000th in the 5 000th in the 9 000th cycle cycle cycle E 1000 2000 3SO0 4000 BOO BO TB 10000 Number of cycles executed As shown above data can be input to memory address 3E 0 in any desired cycle as specified by the user 2 Read access synchronized input Data can be input when the program accesses a specified memory location for read The data size that can be input is one byte The diagram below shows an example of a virtual port input that is synchronized to memory accesses for read pragma ADDRESS port eH char porta read portii 1 char key key port Input from port 0 This function aims to assign the value of port O to variable key In such a case a value can be assigned to variable key by entering it to port O whe
34. the specification here according to the cross tool used CC32R is set by default 2 5 Resume Tab The operation when the debugger starts is specified The specified content becomes effective when the next being start hit File Refer W Resume AutoDownLoad 2 5 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 Init File Refer By clicking the Refer button the File Selection dialog is opened The specified script file is displayed in the Init File field To disable auto execution of the script command erase a character string displayed in the Init File field 2 5 2 Restore the Window Status Torestore the window status window position window size after the previous debugger program is 18 2 Setup Debugger terminated check the Resume check box Resume is ON by default WwW Resume 2 5 3 Re download a Load Module Toredownload a load module target program check the AutoDownL oad check box Re download is OFF by default AutoDownLoad 2 6 Trace Tab Specify whether or not to enable trace measurement and when you chose to enable specify the trace buffer size The contents you specified here are also effective the next time you start the debugger Trace Buffer Size 32 k Cycles 1 256 K Cycles To perform trace measurement check Us
35. to access this area an illegal memory access error occurs and execution of the command or program stops 1 2 2 4 1 0 1 2 2 4 1 SFR The actual chip s peripheral I Os other than the CPU core such as the timers DMAC and serial I O are not supported The SFR area 00000016 to 0003F F 16 to which the peripheral Os are connected is also handled as RAM by the simulator 10 1 Starting the Debugger However a method is available that allows you to materialize data input to memory such as the SFR or interrupts such as timer interrupt in an artificial manner For details about this method see I O Script and Interrupts described later 1 2 2 4 2 V O Script Virtual Port Input Function This function defines changes of the data that is input from external devices to a specified memory address Using this function you can simulate data inputs to the ports defined in SFR The following shows timings at which data can be input to memory 1 When program execution has reached a specified number of cycles 2 When a specified memory location is accessed for read by a program 3 When a specified virtual interrupt is generated Virtual interrupts at the above timings can be defined from the I O Window Use of the I O script function the function that allows users to define virtual port input or virtual Interrupt makes it possible to specify more elaborate data input timing such as when the program performs fetch or writes to
36. units of cycles The number of cycles is represented by the values listed in the microcomputer s software manual However this differs from the actual chip in the following points e The bus width queue and wait states are not considered when measuring the number of cycles The executed cycle of an interrupt sequence is not considered when measuring the number of cycles When an interrupt occurs the executed cycle of an interrupt sequence is 0 PD308SIM starts counting cycles immediately after a reset Cycles immediately after a reset are 0 The number of cycles needed to execute one machine instruction are added on for each Instruction executed See shown below Note Because the number of cycles measured by the emulator does not take into account the bus width queue wait cycles etc it includes some error when compared with the number of cycles in the actual chip If four cycles are required for the ENTER instruction cycles are added at this point in time If two cycles are required for the MW instruction cycles are added at this point in time ENTER instruction l MOWY instruction E E Eo i 1 o 3 4 F E 7 a o Execution cycles In the above example no cycles are added whilethe ENTER or MOV instruction is being executed The cycles required for each instruction are added after instruction execution Note that the virtual port input output and virtual interrupt functions are processed after instruction execution
37. 10 CMP W HTH RO OFOT39 644D JEQ FO187H a fort f 0 4 7s OFOISB DIOBFE MOV IN HOH 2HLFE OFORE I 778BFEFFC GMF OCIFFH 2HL FB Labe Address Ubject Code Program source Line Breakpoint e You can switch Display Hide for the line number display area address display area object code display area e You can change the source file to be displayed by double clicking the line number display area You can change the display start address display start line by double clicking the address display area You can set reset the breakpoint by clicking or double clicking the breakpoint display area You can change the display ratio between the object code display area and the label display area and between the label display area and the program display area using the mouse e You can open the displayed source file on the editor You must have registered the editor name You can display the coverage measurement result by specifying the option It is not displayed by default The MIX display result can be saved as a text file You can line assemble the clicked position You can scroll the display up down in units of source line 1 2 3 Configuration of Disassemble Display Mode The disassemble display mode of the window is the following configurations 44 1 Windows Dialogs Toolbar E Program Window Ed View Sour E MIX W Die Address BRA Ubjieode Label 02H _Init FOTS8SH
38. 26059 Absolute addressing is not avail Direct addressing is not avail 26061 26062 Invalid addressing mode declaration included Operand value of direct addressing is out of range Operand value of absolute addressing is out of range Operand value of absolute long addressing is out of range Operand value of stack relative addressing is out of range Operand value is illegal 26053 26054 26055 26056 26057 26059 26061 26062 An odd number address can t be specified Error Message Notes and Action Line number is illegal Can t find right bracket Z O The Number of Macro constant is over the limit num 26203 Immediate value is out of range Prefix which gives radix of the constant is illegal Description of indirect reference is illegal Can t find end of strings xxxxx Macro constant xxxxx isn t defined Symbol xxxxx isn t defined 26210 Immediate value is illegal Divide by O The value is over the maximum value of which can be treated by MCU Register name Is using for macro variable name NO NM DO NININI IN IN N NM PM DP O oO CO G Q O Q Oo Oo CE NO NO DO NININI IN IN N NM PM PD E E O OoOj jO jOo Ol O olojo ee hm O OINI DO oy MI gt oO 26400 Address value is out of range 125 RF 26401 26402 26403 26404 26405 26406 26407 26408 26409 26410 26411 26412 26413 26414 26415 26416 26417
39. 26418 26419 26420 26421 26422 26423 26424 26425 26426 26427 26428 26429 26430 26431 26432 26433 26434 26435 26436 Bit number is out of range File xxxxx is broken Can t find File xxxxx Can t find sub routine information Illegal character in the strings INTERNAL ERROR ER_IN2_ ILLEGAL MODE has happen in xxxxx Can t find that line number Multiple definition of symbol label There are no code at that line Can t get enough memory Can t find scopes Can t find section information Can t find source lines which correspond to that address Can t find symbol xxxxx Can t find the scopes which include that address Loading is canceled INTERNAL ERROR The end of section information INTERNAL ERROR The end of section information The register name is wrong Can t find Source File xxxxx Unable to read Load Module File xxxxx The PATH name is incorrect Cannot open the save file xxxxx Can t open SYSROF file Can t read SYSROF file Illegal file format no absolute format file Illegal file format Can t get enough memory Can t find file There are no address at that line Can t find the function which correspond to that source line Can t find the scopes which include that address Can t find symbol Can t find the function which correspond to that source line Loading is canceled INTERNAL ERROR ER_LOAD_SYMSCOPE has happen Contact your neares
40. 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 012 013 014 015 016 017 018 019 020 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 Communication ERROR The connection with the target is closed Communication ERROR Can t send data Communication ERROR Can t accept data Target is already used Specified communications interface doesn t support LAN I F can t be used on Windows3 1 Parallel connection doesn t support on Windows Setting of the communications interface is illegal OverRun ERROR with serial communications Address value is out of range That baud rate has not yet supported Bit number is out of range STOP execution Data value is out of range Monitor File xxxxx is broken Can t find File xxxxx Target system is not constructed properly INTERNAL ERROR ER_IN2_ ILLEGAL MODE Contact your nearest distributor has happen in xxxxx Mask value is out of range Counter of measurement time is overflow The version of string1 and the firmware on the target are not same Pass count value is out of range Can t execute that command when the target program is running Target MCU is reset state Please reset target systems Target MCU is unable to reset Please reset target systems Target MCU is HOLD state Please reset target systems Target MCU is not given c
41. AM monitor area e By double clicking the address display area a dialog is opened which allows you to change the 53 display start address If the specified address is outside the RAM monitor area the RAM monitor area is also changed e The update interval during execution of the target program is displayed in the update interval display field When the target is stopped a character string Address is displayed e The update interval may be delayed from the specified update interval depending on the operational factors listed below Host machine performance Window size memory display capacity Number of memories in which the values have been changed The background color of the data display area and ASCII code display area change as below depending on the access attribute Without any access the background color is white Address which ts accessed to read The background color turns green Address which is accessed to write The background color turns red You can change the display color by specifying an option The access attribute is cleared through the following action Click the Clear button Download the target program You can select the display data from 1 byte 2 bytes 4 bytes PD38 SIM does not support a display in 4 bytes decimal hexadecimal ASCII SJ S and J IS The display data is set to the 1 byte hexadecimal format by default ATTENTION e Thereal time RAM monitor function acq
42. BD4E HAEBLH O0 00 849 408 3F01004 0410H RO OO 00 849 412 0412H K2 OO 00 349 416 FOS3SSH OO 00 849 418 idmulU FOSSCH 00 00 349 422 idmulll RT Ra OO 00 849 426 THLSF R1 00 00 849 42 7 R2 Rl 00 00 849 431 R1 Re OO 00 849 437 706109 aHLSP RI 849 i pO E OA GA HA Address Display Label Display Disassemble Display Cycle Display Ob j ect Code Displaw Execut jon Time Display By double clicking the cycle count display area you can change the start cycle to be displayed By double clicking the address display area you can search the execution address e 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 76 1 Windows Dialogs between the inverted assemble result display area and the execution time display area using the mouse 1 16 3 Configuration of Source Mode The source mode of the trace window is the following configurations Following figures are examples of displaying P D30 oolbar Mame of Source File Address of Current Cycle Tracce Cycle Trace Area Current Cycle Execution Time of Current Cycle Pe Trace Window unsigned char j k static char datal0xFF Paes emer source File Display Line No Display Current Cycle Position Display e You can switch Display Hide for the line number display area address display area object code displ
43. ERROR Unset err number Contact your nearest distributor Can t open more xxxxx window The maximum number of the specified window is already open 201 Can t Create xxx window O 02 PDxxis already exist 203 Project file xxx is broken O 204 File not found xxx O 205 Path mot found xxx SSS S O 206 Not enough memory 207 Can texecute ss Kea sao CODE n AAA 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 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 not open file 00 l 602 Can t find file xxx 0 l XXXXX Can not save as the file xxxxx system error A XXXXX Can not edit this file xxxxx because it is being A __ used by another process Error Message Notes and Action Value is out of range E 801 Can t find the register information file There s incorrect line in register information file
44. IM e Address The status of the address bus Data The status of the data bus e Size Indicates the data access size Product Display format Size PD30SIM ate Sbit PD308SIM 16bit PD77SIM PD79SIM PD30SIM PD38SIM PD32RSIM DB Sbit DH 16bit DW 32bit O Type Indicates that data has been accessed Data access The Code data displayed by the PD30SIM PD308SIM PD77SIM and PD79SIM are fixed to 16 bits long with the rest of data omitted o R W Indicates the data access status R o Red If Type is Code the status is always R code read eo h m s ms us Show the elapsed time from the target program beginning The value enclosed in that follows indicates a total amount of instruction execution cycles reckoning from when the program started to run 1 16 2 Configuration of Disassemble Mode The disassemble mode of the trace window is the following configurations Following figures are examples of displaying P D30 Tool bar Current Cycle Execution Time of Current Cycle Trace Cycle Trace Area Address of Current Cycle Pet Trace Window Range 32511 00000 File Cycle 00885 Address OFOO2G Time 00 00 00 549 395 Cycle Address Obj code Label Memoria Hom s ome us HOOFFH BHLFB 00 0000 849 395 FOO55H 00 00 00 849 396 FDZBDS90F rand F0926H 00 00 00 849 399 DE20641 rand H41C06H 00 00 849 403 l l l IA A ara ToD to A AD a a DEZ
45. Line Source DA E lial Address BRK Pe e FOIE O e oO oO O ON o o o 1 co E co SPH R vm l a Ea fee 1 01 a lal co a S ELA Lt 1 J i lt DATALSIVE i datal i J datal 2 datal 3 J 00012 DUO TS 00014 00015 DOOIE D00 o o o ell oo oe a 1 lala o appe gt I subi O Td 4 4 2 E ws a a o a a o ae ee a o NO 3 gt Poot fh a a ao o aL aL 19 m a o l Co OO Oo gt EN 1 Breakpo int Address Source Line Program You can switch Display Hide for the line number display area address display area You can change the source file to be displayed by double clicking the line number display area You can change the display start address display start line by double clicking the address display area e You can set reset the breakpoint by clicking or double clicking the breakpoint display area By staying the mouse cursor on a C language variable for a given period of time about 0 5 second the variable data is popped up You can drag the function name and then click the mouse right button to display the source file corresponding to the function e You can drag the C language variable and then click the mouse right button to register the variable as the C watch point You can drag the assembler symbol and then clic
46. LoadHex Loadleee LoadMot LoadSymbol Logoff Logon Macro MacroPath Map Module Move MoveWord MR OverStep m TI OverSteplnstruaction Path Pause Print Protect U M HS Quit Radix Register Reload Reset Return ReturnInstruction Scope 2 Table of Script Commands Exits the script file EXP Displays an assembler expression E Checks a filename and displays the contents of that file Fills a memory block with the specified data in 1 byte units Fills a memory block with the specified data in 4 byte units FL Fills a memory block with the specified data in 4 byte units Fills a memory block with the specified data in 2 byte units Checks function names and displays the contents of functions G Program execution with breakpoints GBA GF GPB Run target program with software break point Free run program execution Run target program with software break point HB HB HB HBC HBCA Sets and checks a hardware break Sets and checks a hardware break Sets and checks a hardware break Clears software breaks Clears all software breaks Checks assembler labels Downloads the target program LH L LM LS Downloads an Intel HEX format file Downloads IEEE 695 absolute format files Downloads a Motorola S format file Loads source line ASM symbol information Stops the output of the screen display to a log file Outputs the screen display to a log file The reference and registration of the
47. M area Too many 8 bits bus mode area specification 6300 The mistake is found in the specification of the 8 bit bus mode area O OD When Word is specified for a size the odd number address cannot be specified 6302 The S W breakpoint cannot be set in the SFR area and the RAM area O mb O ee ma al F IC A 6412 Communication ERROR 6414 Communication ERROR 6416 Parallel connection doesn t support on Windows NT 6417 Can t find Simulator Engine 6600 Address value is out of range 6601 That baud rate has not yet supported 6602 Bit number is out of range 16603 STOP execution 16604 Data value is out of range 6605 Monitor File filename is broken 6606 Can t find File filename 6607 Target system is not constructed properly 16608 INTERNAL ERROR ER_IN2_ILLEGAL_ MODE has happen in string1 6609 Mask value is out of range 6610 Counter of measurement time is overflow 6611 The version of PD and the firmware on the target are not same 6612 Pass count value is out of range 6613 Can t execute that command when the target program is running 6614 Target MCU is reset state Please reset target systems 6615 Target MCU is unable to reset Please reset target systems 6616 Target MCU is HOLD state 6617 Target MCU is not given clock Please reset target system 6618 Target MCU is not given power 16619
48. Note that you cannot exit simxx while connected to pdxxsim 21 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 shortcut Key Download Font Path l Tool Entry Uther Kep IN one Menu List Current Kep Assign Download machine language datam Download only machine language Download only debugging informal Append machine language data Reload target program Save specified memory image t us ess ld Nes AT WELE Current Shortcut Rey List Key Category Menu ____ Chil l main Menu Copy string to clipboard Ctrl F Main Menu Find string Ctrl Program Window Open Line Assemble Dialog ChitA Program Window Select display mode toggle Cancel Help ShortcutKey Register the menus to the shortcut keys Setting the number of load module download histories Specify the default font for the characters displayed by PDxx Specify the Search Path of Source Files Specify the Saving Directory of Information File Setting the Make File Specify the Editor Other Setting the display of the Termination Confirmation Dialog Setting the debugger Forced Ending when Error Occurs Setting the target Continuance Execution when Debugger Ends Setting the display of the Absolute Path of Source File C
49. Output file of the same already set 11405 Data not found O 11406 The start cycle larger than the end oyle 3 Error Messages 11407 The Output port already set 11408 There is no data in the Input file 11409 Illegal file format 11411 Can t open filename 11412 Address value is out of range 11603 The start cycle larger than the end cycle 11604 HardwareBreak command cannot be used while state transition break window opens 11605 TracePoint command cannot be used while State Transition Trace Window Time Measurement Window MR Trace Analyze Window or Task Trace Analyze Window opens 11606 These trace data can t disassemble 11607 Cycle value is out of range 1802 Can open tempora He 1800 adress vale is outofrange LO 1804 Cam delete tempora He 1805 cant open Log Fl Mena A 11806 Can t open View File filename for new add 16000 INTERNAL ERROR Already connected with the Contact your nearest distributor target 16006 INTERNAL ERROR The Time of time out is out Contact your nearest distributor of range 16007 Time Out ERROR Contact your nearest distributor 16008 INTERNAL ERROR Can t disconnect with the MA target 16009 INTERNAL ERROR Can t send given size data Contact your nearest distributor 16010 INTERNAL ERROR Parameter is illegal Contact your nearest distributor 4 6 6 6 6 6 6 6 6
50. To our customers Old Company Name in Catalogs and Other Documents On April 1 2010 NEC Electronics Corporation merged with Renesas Technology Corporation and Renesas Electronics Corporation took over all the business of both companies Therefore although the old company name remains in this document it is a valid Renesas Electronics document We appreciate your understanding Renesas Electronics website http www renesas com April 1 2010 Renesas Electronics Corporation Issued by Renesas Electronics Corporation http www renesas com Send any inquiries to http www renesas com inquiry ENESAS 8 10 11 12 Notice All information included in this document is current as of the date this document is issued Such information however is subject to change without any prior notice Before purchasing or using any Renesas Electronics products listed herein please confirm the latest product information with a Renesas Electronics sales office Also please pay regular and careful attention to additional and different information to be disclosed by Renesas Electronics such as that disclosed through our website Renesas Electronics does not assume any liability for infringement of patents copyrights or other intellectual property rights of third parties by or arising from the use of Renesas Electronics products or technical information described in this document No license express implied or otherwise 1s granted he
51. UARTO Transmit Buffer Register address UART1 Transmit Buffer Register address Reset Vector address Undefined Instruction Interrupt Vector address Overflow Interruput Vector address BRK Instruction Interrupt Vector address Write each address in hexadecimal Do not add the prefix that represents the radix 2 8 2 1 Example 20 3 Simulator engine setup 3 Simulator engine setup 3 1 Simulator engine setup When Simulator engine simxx starts up it is registered in the system tray ih Right clicking on the running simxx and selecting Version from the menu bar will open up the Version Information dialog box Version Information a PO Sim 20 POSOUSIM simulator engine a litt E DSimSU Wersion 4 10 00 o LOPFPRAIGATIE 1997 1998 1999 2001 2003 RENESAS TECHNOLOGY CORPORATION AND RENESAS SOLUTIONS CORPORATION ALL RIGHTS RESERVED Application Information Interface CONNECT Option MW Auto exit MCU Status STOP e Auto Exit Switch Setting By checking the Auto exit check box simxx can be terminated at the same time the simulator debugger front end pdxxsim finishes e Communications Connection Status CONNECT is displayed when connected to pdxxsim CUT is displayed when there is no connection e Simulator MCU Status RUN STOP RUN ts displayed when the simulator MCU is running STOP when stopped e OK button Closes the Version Information dialog box e Exit button Exits simxx
52. UUIUISS Data Uxb0 ss OMA NOAA 0 OCIO A 1 1 i Address display area Input data display area e Address display area displays the memory address to which a virtual port is input e Input data display area displays the virtual port input data that has been set in graphic mode The peaks in this graph represent data values derived by equally dividing the height of the data displaying area by 255 maximum value of 1 byte data The short white lines appearing at the bottom of the input data display area indicate points at which data are input To reference data values move the mouse cursor into this area and the value and the cycle count of the data at which the cursor is positioned will be displayed in the cycle count display area e Cycle count display area displays cycle counts 3 Hexadecimal mode The virtual port input that has been set is displayed in hexadecimal mode Inu cycle Cycle Address 12 445 6 718 91011121314151617181920a S7 com AN display area it Ll Address display area Input data display area e Address display area displays the memory address to which a virtual port is input e Input data display area displays the virtual port input data that has been set by hexadecimal numbers To reference data values move the mouse cursor into this area and the value and the cycle count of the data at which the cursor is positioned will be displayed in the cycle count display area e Cycle count display a
53. a e Address display area displays the address to be monitored for virtual port output e Output data display area displays the data as virtual port output results in graphic mode in units of bytes The peaks in this graph represent data values derived by equally dividing the height of the data displaying area by 255 maximum value of 1 byte data The short white lines appearing at the bottom of the output data display area indicate points at which data are output To reference data values move the mouse cursor into this area and the value and the cycle count of the data at which the cursor is positioned will be displayed in the cycle count display area e Cycle count display area displays cycle counts 3 Hexadecimal mode Virtual port output results are displayed in hexadecimal mode Uutsut cycle Lucle Address ARRE it display area e Add disp la pi dio ee Output data display area e Address display area displays the address to be monitored for virtual port output e Output data display area displays the data as virtual port output results by hexadecimal numbers e Toreference data values move the mouse cursor into this area and the value and the cycle count of the data at which the cursor is positioned will be displayed in the cycle count display area e Cycle count display area displays cycle counts 93 1 19 4 Structure of Virtual Interrupt Screen 1 19 4 1 Screen structure for cycle synchronized inter
54. ailbox status Cyclic Handler Display Cycle handler status Alarm Handler Display Alarm handler status Memory Pool Display Memory pool status A AA Context Display Context Status Bar Switch display or non display of status bar 1 19 1 0 Window This window is used to set and display virtual port input outputs or virtual interrupts Virtual port inputs virtual interrupt settings and virtual port output results can be displayed for your reference in numeric or graphic mode 1 19 1 Configuration of I O Window This window is split into three sections each displaying the setup contents of virtual port inputs the output results of virtual port outputs and the setup contents of virtual interrupts 81 LO Script File y FA Mode od Scale color 3 Load Cycle o 3040 5080707 307 907 100 1001 120180140150 Inputs cycle a Address Bit 10 20 OOOSEC H o DOOSE0 oo03E0 5 o s M L d Output cyelle Cycle r Address Bit 3403 3640 3920 4200 4480 4760 5600 5830 6 00060 a a a aa a ar ee OO03EO 6 OO03EO 5 OOO3EO 4 OOO3EO H A O003E0 00030 1 BENERI 000380 HO MMS Interrupts cvele ele S S SA dec Pri 10000 10007 10002 10003 10004 10005 10006 1000710008 10005 1 A ree ee eres ee 1 19 1 1 Virtual Port Input Virtual Port Input refers to a function that defines changes in the data
55. ange The program break is not set Source line information is not loaded The trigger mode is not a software output mode The exception processing was detected while executing the step Function range error The writing error to EEPROM occurred Unexecutable command code was specified The processor mode and the target system are the disagreements xxxxx mode is used The specified bank isn t defined in the expansion memory The bank set up is duplicated The specified area includes the debugging monitor memory area The specified area includes the debugging monitor work area Flash ROM deletion error occurred Flash ROM deletion error occurred Flash ROM verify error occurred Contact your nearest distributor 117 4 4 4 4 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 270 276 277 278 279 281 282 283 284 285 286 287 288 289 Specification area includes the internal flash ROM area When Word is specified for a size the odd number address cannot be specified Can not spesify the larger total bank size than the total emulation memory size The bank specified is defined as EXTERNAL The setting value is invalid in t
56. as Electronics does not warrant that such information is error free Renesas Electronics assumes no liability whatsoever for any damages incurred by you resulting from errors in or omissions from the information included herein Renesas Electronics products are classified according to the following three quality grades Standard High Quality and Specific The recommended applications for each Renesas Electronics product depends on the product s quality grade as indicated below You must check the quality grade of each Renesas Electronics product before using it in a particular application You may not use any Renesas Electronics product for any application categorized as Specific without the prior written consent of Renesas Electronics Further you may not use any Renesas Electronics product for any application for which it is not intended without the prior written consent of Renesas Electronics Renesas Electronics shall not be in any way liable for any damages or losses incurred by you or third parties arising from the use of any Renesas Electronics product for an application categorized as Specific or for which the product is not intended where you have failed to obtain the prior written consent of Renesas Electronics The quality grade of each Renesas Electronics product is Standard unless otherwise expressly specified in a Renesas Electronics data sheets or data books etc Standard Computers office equip
57. ase a timer interrupt is generated It is assumed that timer interrupts are generated using a separately available virtual interrupt function For details refer to the virtual interrupt function described later in this manual To support processing of interrupt handlers like this PD30SIM provides a function that allows you to define the data to be input according to a number of times a virtual interrupt is generated a virtual input port synchronized to virtual interrupts By using this function you can perform an operation where data OxFF is input to memory address 3E1 when the virtual interrupt occurs first and data OxFE is input to said memory address when the virtual interrupt occurs next time Number of times a virtual interrupt is Data input to address 3E1 generated OXF F Second 1 19 1 2 Virtual Port Output Virtual Port Output is a function that when data is written to some memory address by the program allows the written data value to be recorded along with the cycle in which the data was written The recorded data can be displayed for your reference in chart numeric or graphic mode The maximum number of data that can be recorded by this function is 30 000 entries counted from the beginning of program execution For example if data is written to port O address 3E 0 by executing a program like the one shown below 84 1 Windows Dialogs pragma ADDRESS port 0H char porta out port ichar data i por
58. ata entries specified on the Init dialog box s I O script tab reckoning from the time at which the program started running When reexecuted the previous data is cleared e Theoutput port simulate function The output port simulate function provides an efficient means of simulation When data are written to some memory addresses by a program it allows you to record the written data values The recorded data can be displayed on a window or output to a file Also you can verify the data which are output to UARTs by the Printf function The number of data entries that can be recorded by this function equals the number of data entries specified on the Init dialog box s I O script tab reckoning from the time at which the program started running When reexecuted the previous data is cleared 1 2 1 4 3 Interrupts In the actual MCU peripheral I O including external interrupt signals are generating factors for interrupts However PD30SIM has nothing corresponding to peripheral I O PD30SIM provides another method in place of this which allows you to generate interrupts in a simulated manner virtual interrupt function Virtual interrupts can be generated at any time e g in a specified cycle or at an executed address e Virtual Interrupt Function This function defines interrupt generation Using this function you can generate timer interrupts and key input interrupts in a simulated manner without having to actually generate them 1 Startin
59. ate not supported for the PDxxSIM transition diagram or sequential specification can be used If the content of any event is altered it is marked with an asterisk on the title bar Once conditions are set in the emulator asterisks are not displayed A time out time in each state can also be specified not supported for the PDxxSI M For PDxx State Setting tate Transition Ed main FETCH B2 0400 WRITE B3 FOOO FETCH B4 0400 WRITE Time nt BE 0400 WRITE le Hot Use Start Statel Stat Be 0400 WRITE 35 fi x 10usec Mot Use Sequential ess LA Sef oo MEE Ser O ed OK Cancel For PDxxSIMI 68 1 Windows Dialogs state Setting Be Bl main FETCH Be fexit FETCH H B3 data WRITE ef Sequential B4_datab READ Start Bi gt Bei ooo lo Y BS funci FETIGH B 000000 FETCH Mot Use Pass Count 1 15 4 Specify the Process ID PD79 PD77 and PDxxSIM not support By specifying a process ID it is possible to detect only event establishment under specific conditions PID Example Enable only the event that occurs in a specific task when using the realtime OS 1 15 5 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 Descript
60. ay 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 e n 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 16 4 Extended Menus The Trace window provides the following menu when being active This menu is called Trace window option Menu Options Eont Changefont Set tabs for source file display a Change contents of display Cycle Specify cycle Address Search Search cycle by specifying address Source Change by specifying source file Mode Change display mode Bus Select bus mode 71 Disasm Select disassemble mode Source Select source mode Layout Set layout Line Area Turn on off line No area Address Area Turn on off address area Trace Search trace results Forward Search for ward in direction of execution Backward Search backward in reverse direction of execution Step Search one step Step search Come Search specified line Come search Restart tracing These menus can be selected even by the short cut menu by a right click in the window 1 17 Coverage Window
61. bc ASOT g S15 E Retresh Cache Address 000000 i 000070 poodi DOOD QUOD ooo Address Data ASCII Code e You can select the display data from 1 byte 2 bytes 4 bytes PD38 SIM does not support a display in 4 bytes decimal hexadecimal ASCII SJ IS and J IS The display data is set to the 1 byte hexadecimal format by default e You can select the window open menu while holding down the Ctrl key to specify the display start address e Double click the address display area to change the display starting address e Double click a label or the memory display area to change the contents of memory e A memory cache is provided to speed up display By default cache is set to Disable 1 6 2 Extended Menus The Dump window provides the following menu when being active This menu is called Dump window option Menu Options Change font View Change contents of display Scroll Area Specify scroll range Address Specify display starting address 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 radix Dec Display in decimal Hex Display in hexadecimal ASCII Display as ASCII characters SJIS Display as SJIS characters JIS Display as JIS characters Refresh Refresh display Set memory contents Set data at specified address Fill specified memory block with data Move specified memory block to specified Address Use the cache
62. ble gd 2 000000000000000E 000 float ef 0 000000 000 lone double eld 3 000000000000000E 000 char gsc signed int gsi 1 long esl 13 short int ess 7 unsigned char suc MM unsigned int gui 4 unsigned long sul 16 unsigned short int sus 10 ype Mame value e You can register the selected C language variable to the C Watch window as a C watch point e Theaddress display such as a pointer is fixed to hexadecimal regardless of the display radix e You can change the display radix for each C language variable Hex gt Dec gt Bin 1 12 2 Extended Menus The Global window provides the following menu when being active This menu is called Global window option 61 Option Font Change Font Watch Operations related to C function Cwatch Register selected C variable as C watch point Catch Pointer Register pointer of selected C variable as C watchpoint Set Set new value for selected C variable Cancel Cancel selection of C variable View Change contents of display Radix Change radix Layout Turn on off type name Sort Sort Display String Display the string Display character RAM Monitor Display RAM monitor Enable Turn on off RAM monitor area RAM Monitor Area Set RAM monitor area Color Set color of access at tribute display Sampling period Set sampling period for RAM monitor Clear Clear These menus can be selected even by the short cut menu by a r
63. bute is not defined INTERNAL ERROR Section has already determined as attribute INTERNAL ERROR Section name is missing INTERNAL ERROR Section type is not appropriate INTERNAL ERROR Section type is multiple specified Size or format specified is not appropriate Size specified is missing String value exist in expression Symbol is missing Symbol is multiple defined Symbol is missing Symbol is multiple defined Invalid operand exist in instruction Syntax error in expression Invalid operand exist in instruction Operand expression is not completed Too many operand Too many operand data Undefined symbol exist Value is out of range Division by zero INTERNAL ERROR VER is duplicated is missing Is missing is missing is missing Contact your nearest distributor Contact your nearest distributor Contact your nearest distributor Contact your nearest distributor Contact your nearest distributor Contact your nearest distributor Contact your nearest distributor Contact your nearest distributor Contact your nearest distributor Contact your nearest distributor 124 3 Error Messages INTERNAL ERROR Symbol defined by external reference data is defined as global symbol 26053 Invalid operand exist in instruction 26054 26055 26056 26057 Quote is missing Right quote is missing Can t get enough memory Invalid chip mode Is missing
64. c ES view SOU By A W dis da Line Address BRK Source WU subi d 00002 MF0T9D 1 00003 ee inj 00005 GFOIAO jH 00008 FOTAS The Source Window configuration toolbar and option menu is the same as that in the 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 SIM for M16C 60 20 series 47 B 0 Bank Register Window Ma ES UFO 1 FL JUUL Hex Kl 0010 Hex he OOO Hex FS noii Hex AU 0412 Hex Al JUUL Hex FE ioii Hex USP Els Hex SP AMF Hex DADO UFFDON If a register flag value is changed the value is displayed in red Double clicking the register display line opens a dialog which allows you to change a register value Y ou can change a flag value by clicking the button corresponding to the flag The right click menu allows you to change the display radix point and the register bank Only PD308 SIM and PD30 SI M support the register bank switching function e 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 bei
65. circuits ii use of nonflammable material or iii prevention against any malfunction or mishap Notes regarding these materials e 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 e Renesas Technology Corporation and Renesas Solutions Corporation assume no responsibility for any damage or infringement of any third party s rights originating in the use of any product data diagrams charts programs algorithms or circuit application examples contained in these materials e 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 Techn
66. ck on the buttons on this toolbar to run the target program in normal or one step mode The main display area accommodates windows such as the Target Program Window 1 1 1 Configuration of PDxxSIM Window IS Ma rand s30 File Edit View Environment Debug Option BasicWindows OptionalwWindows Help o 3 32 Quer at Stop a En k SANL A y E Program Window bande E View B Sou Ey MIX En Line BRK Source eal ae Poi maint void Ben Doe Hex abe ASCI das long i Address LABEL unsigned char j k 000400 _ pool 00 lt SB static char dataL0xFF 000407 000402 while 1 d 000403 fort i 0 i lt 0xFF i 000404 j rand 000405 a 000406 randi O00407 e datali 000408 _ memt 00 O O DD s om Como SS ia E E SS a A co amo Co a Ca a aa 2 8 Se SISSE ce E a a a T Address 1 ae 000340 20 FF qe ii 00088001 00 Di 00 01 OO 01 FF 0008000 FE 00 00 OO Es OO ED 00080000 00 00 00 00 00 00 00 00 00 MHE 00 mi h OO m OO sec 754 msec 552 usec MEU STOP ZA e Themain commands such as execution stop of the target program and step execution are located to the tool bar e The Option menu is dependent on the active window When the active window is changed the Option menu is automatically changed e Thestatus bar at the bottom of the PDxx window shows the following information Explanation display of menus and but
67. cript Commands LoadSymbol Loads source line ASM symbol information Downloads IEEE 695 absolute format files UploadHex Outputs data to an Intel HEX format file UploadMot Outputs data to a Motorola S format file 2 1 3 Register Operation Commands 2 1 4 Memory Operation Commands Commnad Name Short Name Contents DumpByte Displays the contents of memory DumpWord in 1 byte units Nr Displays the contents of memory in 2 byte units z r DB DumpLword Displays the contents of memory in 4 byte units DumpDword DD Displays the contents of memory in 4 byte units SetMemoryByte SetMemoryWord Mw ML MD FB FW FL FD Checks and changes memory contents in 1 byte units Ner MW Checks and changes memory contents in 2 byte units Nr SetMemoryLword Checks and changes memory contents in 4 byte units SetMemoryDword Checks and changes memory contents in 4 byte units FillByte FB Fills a memory block with the specified data in 1 byte units Nr FillWord FillLword FillDword Fills a memory block with the specified data in 4 byte units Move e o Moves memory blocks MOVEW Moves memory blocks in 2 byte units Fills a memory block with the specified data in 2 byte units Fills a memory block with the specified data in 4 byte units z 5x 2 1 5 Assemble Disassemble Commands Scope _____ Sets and checks the effective local symbol scope if Chek and sets it symbols ab
68. cured and an error will result if an attempt is made to access this part of memory If this occurs while a program is running the program will stop with an illegal memory access error Use the map function described later to map this part of memory 1 2 2 3 2 Memory Structure and Initial Values Immediately after Starting The memory is set up as follows immediately after starting PDB308SIM 00000016 QOO3FFie SFR area Filled with 0016 00040016 OI1FFFFie Filled with FF 16 02000016 FEFFFFie No memory immediately after starting FF 000016 FFFFFBie Filled with FF 16 FFFFF Cie FFFFFF16 reset vector Set to 0000F F 0016 1 2 2 3 3 The Map Function MAP Command The PD308SIM simulator divides the memory between 0000016 and FF FF Fie into sixteen equal parts so that the memory space can be mapped in 64K B blocks Note that the blocks with the lowest address 0000016 to OF FF Fie and with the highest address F 000016 to FF FFF ie are already mapped when the simulator starts Use the MAP command to map the simulator memory Memory mapped using this command is initialized with the value FF 16 immediately after being allocated When downloading a target program the memory is mapped automatically Note Memory space that has been mapped cannot be deleted 1 2 2 3 4 Accessing an Area Without Memory There is no actual memory in the 253 memory blocks between 02000016 and FEFFFF 16 unless memory IS secured If an attempt is made
69. custom programs MPATH Sets and checks the search path for custom programs Checks and sets mapping data MOD Displays modules names Moves memory blocks MOVEW Moves memory blocks in 2 byte units Displays status of realtime OS MRxx Overstep execution of source lines Overstep execution of instructions Sets and checks the search path Waits for user input Check value of specified C variable expression PT Sets and checks protect breaks Quits Debugger Sets and checks the radix for numerical input Checks and sets a register value Re downloads the target program Resets the target MCU RET Executes a source line return RETI Executes an instruction return Sets and checks the effective local symbol scope 107 Script Section Set SetMemoryByte SetMemoryDword SetMemoryLword SetMemoryWord Sleep SoftwareBreak SoftwareBreakClear SoftwareBreakClearAll SoftwareBreakDisable SoftwareBreakDisableAll SoftwareBreakEnable SoftwareBreakEnableAll StackMonitor Status Step StepInstruction Stop Symbol Time U WHS L TraceData U M HS TraceData S TraceList U M HS TraceList S TracePoint U MHS TracePoint S UnAlias UnAliasAll Up UploadHex UploadMot Version Wait U M HS Wait L Wait S Where MB D ML SB SBC SBCA SBD SBDA SBE SBEA SM SI TD TD TL TL TP TP UH UM VER ep 09 Z 02 Opens and executes a script file Checks section information Set specified data
70. d Set sampling period for RAM monitor Does not exist in PD38 SIM In PD79 SIM PD77 SIM it is displayed as Dword These menus can be selected even by the short cut menu by a right click in the window 1 8 ASM Watch Window The ASM Watch Window allows you to check the values at any specified address You can specify the point to watch as an address Symbol or global variable as an address and bit No or as a bit symbols The display is updated after each command is executed 1 8 1 Configuration of ASM Watch Window Toolbar A Ash Watch windo m EM Add ete Bit Ac F Set Delete P Dele PH Hex D bec Ben xpress on Radix Data But Task be cnt UDES452L UDES4B4C 2 Dbe_ mode Expression Radix Data AddressBit No Data Length e An address to be referenced is called watch point You can register one of the following as the watch point Address can be specified with symbol Address Bit number Bit symbol e By double clicking the radix point display area the radix display changes Hex gt Dec gt Bin e The registered watch point information is saved in the environment setting file when closing the ASM Watch window When re opening the file the information is automatically registered e When you specify a symbol bit symbol as the watch point the debugger re calculates the address expression when downloading the target program and displays the memory data using new address
71. d Action Address value is out of range Description of Assembly language is illegal NIN IN gt O Address value for JUMP is out of range NM DO 6004 Description of expression is illegal NO 6005 Addressing mode specified is not appropriate INTERNAL ERROR ALIGN is multiple Contact your nearest distributor specified in SECTION 6007 Operand value is undefined N O O O O NIN 6008 Bit symbol is in expression 6009 Invalid bit symbol exist 010 N O NM DO O mb mb h Symbol value is not constant Same items are multiple specified 26012 26013 26014 26015 26016 26017 26018 26019 26020 26021 26022 26023 26024 26025 26026 26027 26028 26029 26030 26031 26032 26033 26034 26035 26036 26037 26038 26039 26040 26041 26042 26043 26044 26045 26046 26047 26048 26049 26050 26051 Same kind items are multiple specified Characters exist in expression Format specified is not appropriate Invalid symbol definition Invalid reserved word exist in operand INTERNAL ERROR JMP S operand label is not in the same section Reserved word is missing No space after mnemonic or directive INTERNAL ERROR No FB statement INTERNAL ERROR No SB statement INTERNAL ERROR No SECTION statement Operand value is not defined Operand size is not appropriate Operand type is not appropriate INTERNAL ERROR Section attri
72. de in units of bits 86 1 Windows Dialogs Cycle count display area Irput cycle Cycle UCOOUOU04 Daca Unt Acdress 10 20 30 40150 60 7001 BU 30 100 QUUSED UNO SE D0DSE0 QUUSED USED 3 4 E e Bit number display area Address display area Input data display area e Address display area displays the memory address to which a virtual port is input Bit number display area displays bit numbers of memory to which a virtual port is input e Input data display area displays the virtual port input data that has been set in chart mode in units of bits This means that memory bits are in the state of logic 1 O eee means that memory bits are in the state of logic 0 The short white lines appearing at the bottom of the input data display area indicate points at which data are input To reference data values move the mouse cursor into this area and the value and the cycle count of the data at which the cursor is positioned will be displayed in the cycle count display area e Cycle count display area displays cycle counts 2 Graphic mode displayed in units of bytes 87 Cycle count display area Input cycle Cycle UOUUUIUISS Data Uxbl Address COMAMA 70780030100 OA Ee Address display area Input data display area e Address display area displays the memory address to which a virtual port is input e Input data display area displays the virtual port
73. des shown below The display modes can be changed from the Mode menu 1 Chart mode displayed in units of bits The virtual port input that has been set is displayed in chart mode in units of bits Cycle count display area Ireut cycle Cycle ULOOUU004 Data Oxi Acdress 5 10 SU 40 507160770 eu SO 100 DOOSE0 7 O003EO 18 0003E0 5 4 0008E0 3 D00SE0 2 Bit number display area Address display area Input data display area e Address display area displays the memory address to which a virtual port is input e Bit number display area displays bit numbers of memory to which a virtual port is input e Input data display area displays the virtual port input data that has been set in chart mode in units of bits This means that memory bits are in the state of logic 1 Ly This means that memory bits are in the state of logic 0 The short white lines appearing at the bottom of the input data display area indicate points at which data are input To reference data values move the mouse cursor into this area and the value and the cycle count of the data at which the cursor is positioned will be displayed in the cycle count display area e Cycle count display area displays cycle counts 2 Graphic mode displayed in units of bytes The virtual port input that has been set is displayed in graphic mode in units of bytes 89 Cycle count display area nput cuele B Cycle UUU
74. e Trace Function In the Trace Buffer Size area specify the size of the buffer in which to store the traced data in K cycle 2 7 VO Script Tab Specify the number of data to be recorded by the 1 0 Window or Output Port Window s port output function The contents you specified here are also effective the next time you start the debugger Output Data Num 30000 Data 1 1000000 Data In the Output Data Num area specify the number of output data to be recorded 2 8 Method of making MCU file 2 8 1 Method of making MCU file PD308SIM In the MCU file write the following contents in the order listed below For the filename specify the MCU name For the extension specify mcu 1 MCU type O or 1 19 i ee UARTO Transmit Receive Control Register 1 address UART1 Transmit Receive Control Register 1 address UARTO Transmit Buffer Register address UART1 Transmit Buffer Register address The MCU type only needs to be specified for the PD308SIM 0 Selects the M16C 8x M16C 7x I Selects the M 32C 8x Write each address in hexadecimal Do not add the prefix that represents the radix 2 8 1 1 Example 2 8 2 Method of making MCU file PD30SIM In the MCU file write the following contents in the order listed below For the file name specify the MCU name For the extension specify mcu Ot Ora ae UARTO Transmit Receive Control Register 1 address UART1 Transmit Receive Control Register 1 address
75. e absolute module file Other Settings Reter To change the directory in which the ASM C watch point information file is saved reset a check mark from the Use the same directory as the absolute module file check box in the Directory Setting group Then the Watch Points field is enabled Click the Refer button on the right of the Watch Points field and specify the saving destination directory from the Directory Selection dialog To change to directory in which other information file is saved click the Refer button on the right of the Other Settings field and specify the saving destination directory from the Directory Selection dialog 4 5 Tool Entry Tab The specified content becomes effective when the next being start 4 5 1 Execute the Make File Prepare a PIF file to start the Make file Wake 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 Creating a PIF file 1 Create a keyboard shortcut for command com located in the Windows directory Command com is in the Windows directory in Windows Me 98 95 It is in the system32 directory The example winnt system32 under the Windows directory in Windows 2000 NT 4 0 2 For the keyboard shortcut thus created assign a file name xxxxx pif xxxxx den
76. e directory as the absolute module file Other Settings Refer 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 D4 Us REMIN pds0Rproe Add D UsR MINFO THE R pdsl proe pelete E Delete All Toregister 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 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 e Script command execution history file e Break information file The default saving destination directory of the ASM C watch point information file is a directory in which the load module exists The default saving destination directory of other information file is a directory in which PDxxSIM has been installed example c mtool pdxxsim 27 Directory Setting Watch Points Beter e Use the same directory as th
77. e displayed in chart mode in units of bits 91 Output cycle Lucle DODODD4 iS Data Ux30 Address Bit 546204 3048404951506051 0528053905500561 Cycle count display area ddress Bit number Output data display area display display area area e Address display area displays the address to be monitored for virtual port output Bit number display area displays bit numbers of memory being monitored for virtual port output e Output data display area displays the data as virtual port output results in chart mode in units of bits This means that memory bits are in the state of logic 1 I ae means that memory bits are in the state of logic 0 The short white lines appearing at the bottom of the output data display area indicate points at which data are output To reference data values move the mouse cursor into this area and the value and the cycle count of the data at which the cursor is positioned will be displayed in the cycle count display area e Cycle count display area displays cycle counts 2 Graphic mode displayed in units of bytes Virtual port output results are displayed in graphic mode in units of bytes 92 1 Windows Dialogs Output cycle vel Address 144230460 TUEZ 310044106 OCOJEO Cycle count display area ey E EN eer eee I l i I l I I I l I I I I I tr I I I esas an A mat Ama RE ini minmin EEN Address display area Output data display are
78. e the changed data the data is automatically loaded at the next start of PDxx lt lt Specification of Shortcut Key Tab gt gt Key Assign Group 23 Category combo box Displays the menu category The enabled menus in the selected category are displayed in the Menu List list box 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 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 fr
79. el Checks assemblerlabels 2 1 6 Software Break Setting Commands SoftwareBreak Sets and checks software breaks SoftwareBreakClear Clears software breaks 103 SoftwareBreakClearAll SBCA Clears all software breaks SoftwareBreakDisable Disables software breakpoints SoftwareBreakDisableAll SBDA Disables all software breaks Brean Sets software breakpoint by speciying a me No Breakin __ Sets a sofware breakpoint by specifying a function 2 1 7 Hardware Break Setting Commands HardwareBreakClearAll HBCA Clears all software breaks S 2 1 8 Real time Trace Commands TracePoint U M HS Sets and checks a trace points TracePoint S Sets and checks a trace points 2 1 9 Coverage Measurement Commands Coverage U M HS S Specifies and displays coverage measurement 2 1 10 Stack Utilization Monitor Command StackMonitor S Sets and checks stack utilization measurement 2 1 11 Cycle Count Monitor Command Cycle S Sets and checks cycle counting 104 2 Table of Script Commands 2 1 12 Script Log File Commands it Opens and executes a script file Exits the script file Waits for an event to occur before command input Waits for an event to occur before command input ee E C L CO Wait S fe Waits for an event to occur before command input Pause se Waits for user input Sleep Foo ton Foo ton Eoo Halts for user input until the specified time has elapsed Outputs the screen display
80. eo 1 0 Script Function This function allows you to write virtual port input and virtual interrupt settings toa file in script form Therefore it provides a more flexible way to define virtual port inputs and virtual interrupts than can be set from the I O Window Specifically this includes for example reading the divide by N ratios you ve set in the timer register and generating a timer interrupt periodically 1 2 1 4 4 Port input output e GUI input function The GUI input function refers to simulating the user target system s simple key input panel on a window The key input panel is created from the GUI input window Theinput panel can have the following parts placed on it Buttons Virtual port input or virtual interrupt can be performed by pressing the button The following actions can be set for the button Enter data to a specified memory address virtual port input Generate a specified virtual interrupt Generate a specified virtual interrupt and virtual port input at the same time Text Display a text string e GUI output function The GUI output function refers to simulating the user target system s simple key output panel on a window The key output panel is created from the GUI output window The following parts can be arranged on this output panel Character string User specified character strings are displayed or erased when some value s written to a specified memory address or according to l
81. errupt Priority level display area displays the priority level of a virtual interrupt Virtual interrupt display area displays timings by an asterisk at which the virtual interrupt you ve set is generated When an asterisk is indicated it means that a virtual interrupt is generated When an asterisk is not indicated it means that a virtual interrupt is not generated Execution count display area displays execution counts or a number of times the program has executed a specified address 94 1 Windows Dialogs 1 19 4 3 Screen configuration for interval synchronized interrupts Toset a virtual interrupt which is synchronized to a specified interval time click the Timer button and use the Timer dialog box that appears The Timer dialog box has a display screen configuration similar to the one shown below Set Timer Dialog l Load Save Help Interval 100 E msec C usec Vector 23 Close Priority Temp Directory C WiN DOwWwS TEMP Refer Del All All Disable e In the virtual interrupt register area specify the virtual interrupt you want to set and the Interval time at which intervals you want to generate the interrupt e The virtual interrupt display area shows the registered virtual interrupts and the specified interrupt generation intervals e Theoperation buttons for virtual interrupts can be used to delete or disable enable each virtual Interrupt e The ope
82. es e A disabled watch point is displayed as lt not active gt ATTENTION TheRAM monitor obtains the data accessed through the bus Any change other than the access from the target program will not be reflected 55 e If the display data length of the RAM monitor area is not 1 byte the data s access attribute to the memory may varies in units of 1 byte In such a case that the access attribute is not unified within a set of data the data s access attribute cannot be displayed correctly In this case the background colors the access attribute color of the first byte of the data 1 8 2 Extended Menus The ASM Watch window provides the following menu when being active This menu is called ASM Watch window option Menu Options Option Watch Register delete watch point Add Register watch point Bitadd Register bit level watch point Set Set new data to be written to selected watch point Del Delete selected watch point Del All Delete all watch points Refresh Refresh display Change display radix Bi Display value at selected watch point in binary D Display value at selected watch point in decimal H Display value at selected watch point in hexadecimal Layout Set layout Address Area Turn on off address bit area Size Area Set color of access attribute display RAM Monitor Display RAM monitor RAM Monitor Area Set RAM monitor area Color Set color of access attribute display Sam
83. ese materials e l these products or technologies are subject to the Japanese export control restrictions they must be exported under a license from the Japanese government and cannot be imported into a country other than the approved destination Any diversion or reexport contrary to the export control laws and regulations of Japan and or the country of destination is prohibited Please contact Renesas Technology Corporation or Renesas Solutions Corporation for further details on these materials or the products contained therein For inquiries about the contents of this document or product fill in the text file the installer generates in the following directory and email to your local distributor SUPPORT Product name SUPPORT TXT Renesas Tools Homepage http www renesas com en tools In this User s Manual the simulator debuggers M3T PD308SIM M3T PD30SIM M3T PD79SIM M3T PD77SIM and M3T PD38SIM are represented as PD308SIM PD30SIM PD79SIM PD77SIM and PD38SIM respectively Please replace them with the corresponding one when you read them Preface The PDxxSIM PD308SIM PD30SIM PD79SIM PD77SIM PD38SIM PD32RSIM is a simulator debugger for Windows which simulates microcomputer and evaluates the target program This user s manual describes the PDxxSI M s features functions setting up and operational procedures Supported Debuggers and Its Versions The User s Manual is for the following
84. ext Display a text string e GUI output function The GUI output function refers to simulating the user target system s simple key output panel on a window The key output panel is created from the GUI output window The following parts can be arranged on this output panel Character string User specified character strings are displayed or erased when some value is written to a specified memory address or according to logic 1 or 0 in bits LED LEDs are lit when some value is written to a specified memory address or according to logic 1 or O In bits Text Display a text string 1 2 2 5 Cycle Count The CY cle CY Command Use of the CYcle command allows you to Know an approximate number of cycles and the execution time of the program you ve executed The number of cycles are represented using the values listed in the microcomputer s software manual The execution time refers to the target program s execution time calculated from the cumulative number of cycles of the CPU instructions executed and the MCU clock and divide by ratio specified on the I nit dialog box s MCU tab 1 2 2 6 Stack Utilization Monitor The StackM onitor SM Command Use the StackM onitor command to check the maximum and minimum addresses of the stack and to determine how much the program has used of what part of the stack The stack monitoring continues from the time that a Go or GoFree command is invoked until it is Interrupted the maximum a
85. from specified address Step Step execution Step Execute one step Step Option Execute specified No of steps Over Over step execution Over Execute one over step Over Option Execute specified No of over steps Execute until return from current subroutine Stop target program Break Point Set break point S W Break Point Open S W Break Point Setting dialog box H W Break Point Open H W Break Point Setting Window box Chip Break Point Open Chip Break Point Setting dialog box Break Set cancel software break at cursor Reference Deleting dialog box Open Trace Point Setting Window Open Scope Setting dialog box Does not exist in PD308 PD30 PD77 PD38 and PDxxSIM Debugging Option Opti 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 Menu Options Basic Cascade Cascade windows Windows 40 1 Windows Dialogs Memory Window Open Memory Window Dump Window Open Dump Window RAM Monitor Window Open RAM Monitor Window ASM Watch Window Open ASM Watch Window C Watch Windows Open C language level Watch Window C Watch Window Open C Watch Window Local Window Open Local Window File Local Window Open File Local Window Global Window Open Global Window Call Stack Window Open Call Stack Window Script Window Open Script Window Dose not
86. g 1 16 1 4 Display of bus information on PD77 From left to right the contents are as follows Address The status of address bus Data The status of data bus BUS The width of the external data bus 8b for an 8 bit data bus and 16b for a 16 bit data bus BHE This shows the status of BHE Byte High Enable signal 0 or 1 When this signal O low it means that odd address is being accessed R W Shows the status of the data bus R for read W for write for no access DMA Indicates 1 when 1 bus transfer in DMAtransfer has been performed otherwise it indicates 0 VDA Shows the status of VDA Valid Data Address signal 0 or 1 VPA Shows the status of VPA Valid Program Address signal 0 or 1 QC Shows the status of QCL Queue Buffer Clear signal When this signal Q it means that Queue Buffer is beeing cleared MX Shows the status of M m flag or X x flag signal Oor 1 STO Shows the status of M 37720 exclusive external signal STO 0 or 1 74 1 Windows Dialogs e ST1 Shows the status of M 37720 exclusive external signal ST1 0 or 1 e 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 e QT Shows the level of the external trace trigger the EXTIN6 pin of the external trace signal input cable High level 1 Low level 0 e 76543210 Shows the status of the 8 bit
87. g the Debugger The following shows timings at which virtual interrupts can be generated 1 When program execution has reached a specified number of cycles 2 When the program has executed a specified address 3 Every specified time interval Virtual interrupts at the above timings can be defined from the 1 0 Window Use of the I O script function the function that allows uses to define virtual port input or virtual interrupt makes it possible to write timer interrupt eo Differences between Virtual Interrupts and Interrupts in Actual Chip Virtual interrupts differ from interrupts in the actual chip in the following points 1 Special hardware interrupts cannot be generated as virtual interrupts Reset NMI DBC watchdog timer single step address match interrupts cannot be generated as virtual interrupts 2 If virtual interrupts of the same priority occur simultaneously If in the actual chip multiple interrupts of the same priority occur simultaneously they are resolved according to the priority levels set in hardware so that an interrupt of the highest priority is accepted For virtual interrupts however all interrupts belonging to one interrupt type e g peripheral O interrupt are handled as having the same priority Therefore if virtual interrupts of the same priority occur simultaneously the order in which they are accepted is indeterminate There are following two methods to set virtual interrupts 1 By using the I O Wi
88. ges Quit Quits Debugger CD E Specifies and checks the current directory 2 2 Table of Script Commands alphabetical order Command Name Alias Specifies and checks command alias definitions Assemble Line by line assembly Bit Checks and sets bit symbols BreakAt Sets a software breakpoint by specifying a line No Breakin Sets a software breakpoint by specifying a function BreakMode U M HS BM Sets and checks hardware break mode BreakMode L BM Sets and checks hardware break mode BreakMode S BM Sets and checks hardware break mode CD Specifies and checks the current directory Clock U M HS L CLK Checks and changes the clock Coverage U M HS S CV Specifies and displays coverage measurement Cycle S CY Sets and checks cycle counting Date Displays the date DelMacro Delete custom program DelMacroAll Delete all custom programs DisAssemble Disassembles memory contents line by line Down Displays a called function DumpByte Displays the contents of memory in 1 byte units DumpDword Displays the contents of memory in 4 byte units DumpLword L Displays the contents of memory in 4 byte units DumpWord W Displays the contents of memory in 2 byte units Echo Ss Displays messages Exit Express File FillByte FillDword FillLword FillWord Func Go GoBreakAt U M HS L GoFree GoProgramBreak U M H S L HardwareBreak U M HS HardwareBreak L HardwareBreak S HardwareBreakClear S HardwareBreakClearAll S Label Load
89. he string Display character These menus can be selected even by the short cut menu by a right click in the window 1 11 File Local Window The File Local Window lists local variables in the C file with their values The display is updated after each command is executed When RAM monitor function is effective and the C watch points are within the RAM monitor area the 59 displayed values are updated during execution of the target program 1 11 1 Configuration of File Local Window File name which contains PL Toolbar EE File Local Window dl ES Rda Aaa Ed Set Croco Wire Tee ey Cha SEllename cexprl c double sd 2 100000000000000E 000 float sf 1 100000E 000 long double sld 3 100 000000000000E 000 char ssc BB signed int ssi long ssl 14 short int sss 8 unsigned char suc 9 unsigned int sui 5 unsigned long sul 17 unsigned short int sus 11_ Type name Value e The window displays a file local variable of the function corresponding to the program counter position If the corresponding function is changed by step execution or other operation the local variable after changing the function is automatically displayed e You can register the selected C language variable to the C Watch window as a C watch point The address display such as a pointer is fixed to hexadecimal regardless of the display radix e You can change the display radix for each C
90. his processor mode RDY signal of MCU is Low HOLD signal of MCU is Low All program break points in the spesified bank is cleared Please specify the address in the emulation memory area The mistake is found in setting the emulation memory area The specified area has already been used in the debugging monitor bank address Too many emulation memory area specification The bank from 0 to 3 cannot be specified The mistake is found in the specification of the debugging monitor bank address The mistake is found in the specification of the debugging monitor work address 2Cannot specifiy to extend more than two banks Please specify the address in the emulation memory area Too many ROM area specification Start address is larger than end address Too many DMA area specification The mistake is found in the specification of the DMA area When Word is specified for a size the odd number address cannot be specified Too many memory mapping specification The mistake is found in the specification of the memory mapping Please specify the address in the emulation memory area The mistake is found in setting the emulation memory area The specified area has already been used in the debugging monitor bank address Too many emulation memory area specification The bank from 0 to 3 cannot be specified 118 3 Error Messages 16290 The mistake is found in the specification of the debugging
91. ify 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 101 2 Table of Script Commands The following script commands are prepared The parenthesized letter U M HS L or S in the command name denotes the corresponding emulator or simulator The script commands without parenthesized letters are useful for all PC4701 emulators and PDxxSIM U PC4701U M PC4701M HS PC4701HS L PC4701L S Simulater The commands with yellow color displaying can be executed at run time The command to which adheres behind is not supported according to the product 2 1 Table of Script Commands 2 1 1 Execution Commands Go G Program execution with eae GoProgramBreak Run target program with software break point U M HS L s o Tops program execution ars _____ Checks the operating status ofthe MCU Oversee Jo Overstep execution of source ines OverStepinstruaction Or Overstep execution of instructions Reset ResetsthetargetMCU SSCS Time UASD Sets the runtime display and checks the current setting 2 1 2 File Operation Commands Downloads the target program Downloads an Intel HEX format file LoadMot Downloads a Motorola S format file 102 2 Table of S
92. ight click in the window 1 13 Call Stack Window The Call Stack window displays the C language function call state of the target program PD38 SIM does not support this function 1 13 1 Configuration of Call Stack Window TA Call Stack Window funci 117 O USRY YMIN ed80 erog cexorBh c 2 OFOTAC funci 10 O USR MIN ed30 prog cexprf8b c i 0F0194 funcO 25 D USR MIN pd30 proe cexpr8a c 0F0173 maint 112 O USR MIN ed30 proe cexpr8a c i 0F0145 166 O USR MIN ecd30 prog ncrt0 as0 OFO129 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 e The top line shows a function at the current PC position The 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 13 2 Extended Menus The Call Stack window provides the following menu when being active This menu is called Call Stack window option Menu Options ont Chanae font ump Displays the specified function on Program Window New window Displays the specified function on a new Source Window 1 Windows Dialogs These menus can be selected even by the short cut menu by a right click in the window 1 14 Script Window The Script Window displays the execution of text format script commands and the re
93. ile made in the I O window bh mk OIO 00 O 16813 The description of the memory variable is illegal line num z Can t get enough memory 20200 History of the system call issue that conforms to the search condition cannot be found Notes and Action O O A e O O ee 3 Error Messages Z O E Error Message Notes and Action Can t use Task Pause function N O N O O 20401 Task Pause function xxxxx was failed Error Message Notes and Action 20600 Can t use Task Trace Window without setting real time OS information Ej O Error Message Notes and Action 20800 The save file name xxxxx is wrong 20801 Can t find symbol xxxxx of MR 20802 20803 Initialization routine of MR is not executed Can t find the task of the specified task number Priority out of range 20805 20806 20807 20808 20809 20810 20811 Task ID out of range Flag ID out of range Semaphore ID out of range Mailbox ID out of range Memory pool ID out of range Cyclic handler ID out of range Address out of range Cannot invoke system call System call not invoked System call not completed 20815 20816 Address value is out of range File Name is illegal Corrupted MR data Can t get enough memory 20800 20801 20802 20803 20805 20806 20807 20808 20809 20810 20811 20815 20816 O 6000 6001 6002 6003 Operand value is out of range Error Message Notes an
94. indow Y Cancel AA Cha A double ad 1 193802823038449E 173 float af 4 487320E 022 long double ald 1 19388027873038449E 1 3 char asc signed int asi 25593 long asl 1677222144 short int ass 25593 unsigned char auc unsigned int aui 39943 unsigned long aul 2617745152 unsigned short int aus 39943 Type Name Value The window displays a local variable of the function corresponding to the program counter position If the corresponding function is changed by step execution or other operation the local variable after changing the function is automatically displayed You can register the selected C language variable to the C Watch window as a C watch point The address display such as a pointer is fixed to hexadecimal regardless of the display radix You can change the display radix for each C language variable Hex gt Dec gt Bin 1 10 2 Extended Menus The Local window provides the following menu when being active This menu is called Local window option Menu Options Change font Watch Operations related to C function Cwatch Register selected C variable as C watch point Cwatch Pointer Register pointer of selected C variable as C watchpoint Set Set new value for selected C variable Cancel Cancel selection of C variable View Change contents of display Radix Change radix Layout Turn on off type name Sort Sort Display String Display t
95. inoniconicaniconos 105 3 ERROR MESSAGES 108 11 setup 1 Starting the Debugger 1 Starting the Debugger 1 1 Features of PDxxSIM The PD308SIM PD30SIM have the following functions 1 1 1 RAM Monitor Function This function allows changes of memory contents to be inspected without impairing the real time capability of the target program execution PDxxSIM contains a 1 Kbyte RAM monitor area which cannot be divided into smaller areas 1 1 2 Break Functions eo 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 eo Hardware Break This function stops the target program upon detecting data read writes to memory or instruction execution Up to 64 breakpoints can be set If multiple breakpoints are set the program execution breaks at one of the breakpoints reached 1 1 3 Trace Function This function records a target program execution history An execution history of any specified size can be recorded The access information in each cycle the executed instructions and source program execution passes can be inspected 1 1 4 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
96. interrupt of the highest priority is accepted For virtual interrupts however all interrupts belonging to one interrupt type e g peripheral I O interrupt are handled as having the same priority Therefore if virtual interrupts of the same priority occur simultaneously the order in which they are accepted is indeterminate There are following two methods to set virtual interrupts 1 By using the I O Window 2 By using the I O script function With either method the virtual interrupts are subject to the following limitations 1 Virtual interrupts set by using the I O Window Regarding interrupt control for virtual interrupts generated Each Interrupt Control Register s interrupt request bit is not set to 1 The priority levels set in each Interrupt Control Register s interrupt priority level select bit are not referenced The priority of virtual interrupts can be specified when setting virtual interrupts on the O Window The Flag Register FLG s interrupt enable flag I flag and processor interrupt priority level IPL are referenced as in the actual chip 2 Virtual interrupts set by using the I O script function Regarding interrupt control for virtual interrupts generated A statement can be written so that when an interrupt occurs each Interrupt Control Register s interrupt request bit is set to 1 The priority levels set in each Interrupt Control Register s interrupt priority level select bit can be referenced
97. ions below are written assuming 32K cycles Trace rea Break z A About E16K 163 After 0 326 Full e Break Stores the 32K cycles 32K to O cycles to the point at which the target program stops eo Before Stores the 32K cycles 32K to 1 cycles to the point at which the trace point is passed e About Stores the 16K cycles 16K to 16K cycles either side of the trace point o After Stores the 32K cycles 0 to 32K cycles of trace data after the trace point e Full Stores the 32K cycles 32K to O cycles of trace data after the trace starts 1 15 6 Specify the Trace Write Condition Conditions for cycles to be written to trace memory 32K cycles accommodated can be specified 69 Write Condition Total Detail EEE cea Gloze Writes all cycles Writes only the cycles where specified condition holds true Writes only the cycles where specified condition does not hold true Also follow A three write modes are supported JH only cycles where specified event is established n 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 is established 1 15 7 Command Button The buttons at the bottom of the Trace Point Setting window have the following meanings Button Name Content Discards the contents being displayed in the window and loads contents from
98. is completed 1 2 2 1 2 Target program execution time measurement The target program execution time measurement is calculated from the number of cycles described above and the MCU clock and divide by ratio specified on the MCU tab of the Init dialog box Note Because the simulator s execution time measurement is calculated using the number of cycles described above it includes some error when compared with the actual chip s execution time 1 2 2 1 3 WAIT BRK2 Executed as an NOP instruction Other instructions operate the same as those of the actual MCU 1 2 2 1 4 INT INTO UND BRK As with the actual MCU these instructions generate interrupts The INTO instruction only generates an interrupt when the O flag is 1 1 2 2 2 Resetting e The SFR area is nonexistent in PD308SIM so the initialization as in the actual chip is not performed e THecycle count is initialized to 0 Resetting is performed in the same way as the actual MCU A reset is also performed when PD308SIM starts The value OOOF 000016 is set in the reset vector FFFFCi6 to FFFFF16 immediately after starting The program counter is therefore set to F 000016 immediately after PD308SIM starts 1 2 2 3 Memory 1 2 2 3 1 Memory Space There is no processor mode If mapped for memory the whole 1MB of memory from 0000016 to FFFFF16 can be read from and written to as RAM Note however that in the initial state memory between 1000016 and EFFFF16 is not se
99. isplay Hide for the line number display area address display area 1 17 3 Extended Menus The Coverage window provides the following menu when being active This menu is called Coverage window option Menu MemuOption Function Update display of coverage measurement result File Input output coverage measurement result file Save Save coverage measurement result file Load Load coverage measurement result file 79 Layout Set Layout Address Area Turn address range display area on or off Does not exist in PD38 SIM and Simulator Debugger PDxxSI M The Coverage Source window provides the following menu when being active This menu is called Coverage Source window option Menu Option Change font TAB Set tabs for displaying source file Layout Set layout Line Area Turn line number display area on or off 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 18 MR Window Use the MR Window to display the status of the real time OS PD38 SIM does not support Y ou can only use the MR Window when you have downloaded a program that uses the real time OS if the downloaded program does not use the MR nothing is displayed in the MR Window when it is opened 1 18 1 Configuration of MR Window Y ou can open the MR window as many as the number of display modes 9 at maximum currently EN MA Window Matas
100. k the mouse right button to register the symbol as the ASM watch point 42 1 Windows Dialogs e You can open the displayed source file on the editor You must have registered the editor name The source file being displayed can be edited on the window Y ou can display the coverage measurement result by specifying the option It is not displayed by default e 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 Es view 5 Sou Ey MR WY Dis i lind Ap while 1 1 fork 0 3 i lt DATASIZE i 1 datali J datal 1 J datal 2 j Zl h e e Theline number display address display and breakpoint display areas are not shown e Theright click menu changes for exclusive use in edit mode e The status bar on the PDxxSIM window shows the line and column numbers of the cursor ON EDIT 7 53 F 1 2 2 Configuration of MIX Display Mode The mix display mode of the window is the following configurations 43 Toolbar FF Program Window za mo c Ea vien E Sour Fy Mit y Dis a Address BRE Obicode Label Source Mnemon ic A E A l OFMPE Py FCF202 main ENTER H02H A E int i EA Init OFOIZF F55900 JSR _ Init F0189H Eo ee e i ORO DIOBFE MOV N HOH 2HLFB AA EN while 1 001851 Daca MOVNO HOH RO DEIA AI 01
101. lay of bus information on PD79 From left to right the contents are as follows Address The status of address bus Data The status of data bus BHE 73 Indicates the status 0 or 1 of the BHE Byte High Enable signal If BHE 0 it means that the CPU is accessing an odd address BHE Indicates the status 0 or 1 of the BHE Byte High Enable signal If BHE 0 it means that the CPU is accessing an odd address BUS16 Indicates the bus width status The information displayed here is 16b for the 16 bit bus 8b for the 8 bit bus or for instruction execution DMAC Indicates that data is being handled by the DMA controller DMAC CH Indicates the DMA operation channel by numbers 0 to 7 When DMAC 0 it indicates BRN Indicates branch status When BRN 1 the information means the start address after branching CYNC Indicates execution address instruction code detection When SYNC 1 the information means instruction execution INTACK Indicates interrupt start status When INTACK 0 the information means the start address of the interrupt routine R W Indicates the MCU data status The information displayed here is R for a read W for a write or otherwise 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 beginnin
102. lock Please reset target systems Target MCU is not given power Please reset target systems INTERNAL ERROR Break point number is Contact your nearest distributor illegal Please download the firmware to target 3 Error Messages 4 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6252 6253 6254 6255 6256 6257 6258 6259 Can t download firmware Can t find trace data which is able to refer Cycle value is out of range Target MCU is not under control Please reset target systems First data is larger than second data First address is larger than second address No event set on the state transition path Time out value is out of range Process ID value is out of range Communication protocol error Argument error There was sent undefined data from PC4700 Check sum error of the received data occurred The specified data do not exist The target program is running The target program is not running The measurement has already been stopping The measurement has already been being executed The measurement is not completed There is no trace data of the specified cycle There is no trace data The measurement counter of time overflowed POF state was released by compulsory reset A number of setting points exceeds the r
103. memory or when it executed an instruction a specified number of times Virtual Port Output Function When a data write to some memory address by the program occurs this function records the written data value and the cycle at which the data was written The recorded data can be verified in graphic or numeric format from the I O Window The number of data entries that can be recorded by this function equals the number of data entries specified on the Init dialog box s I O script tab reckoning from the time at which the program started running When reexecuted the previous data is cleared The output port simulate function The output port simulate function provides an efficient means of simulation When data are written to some memory addresses by a program it allows you to record the written data values The recorded data can be displayed on a window or output toa file Also you can verify the data which are output to UARTs by the Printf function The number of data entries that can be recorded by this function equals the number of data entries specified on the Init dialog box s I O script tab reckoning from the time at which the program started running When reexecuted the previous data is cleared 1 2 2 4 3 Interrupts In the actual MCU peripheral I O including external interrupt signals are generating factors for interrupts However PD3085IM has nothing corresponding to peripheral I O PD308SIM provides another method in place of thi
104. ment communications equipment test and measurement equipment audio and visual equipment home electronic appliances machine tools personal electronic equipment and industrial robots High Quality Transportation equipment automobiles trains ships etc traffic control systems anti disaster systems anti crime systems safety equipment and medical equipment not specifically designed for life support Specific Aircraft aerospace equipment submersible repeaters nuclear reactor control systems medical equipment or systems for life support e g artificial life support devices or systems surgical implantations or healthcare intervention e g excision etc and any other applications or purposes that pose a direct threat to human life You should use the Renesas Electronics products described in this document within the range specified by Renesas Electronics especially with respect to the maximum rating operating supply voltage range movement power voltage range heat radiation characteristics installation and other product characteristics Renesas Electronics shall have no liability for malfunctions or damages arising out of the use of Renesas Electronics products beyond such specified ranges Although Renesas Electronics endeavors to improve the quality and reliability of 1ts products semiconductor products have specific characteristics such as the occurrence of failure at a certain rate and malfunctions under certai
105. n the program accesses port O address 3E 0 for read To support processing of functions like this PDxxSIM provides a function that allows you to define the data to be input according to a number of times the specified memory address is read a virtual input port synchronized to memory accesses for read By using this function you can perform an operation where data 0x10 is input to memory address 3E 0 when address 3E 0 is read first and data 0x20 is input to said memory address when the address is read next Number of times the address 3E 0 is read Data input to address 3E0 Second 3 Interrupt synchronized input Data can be input to a specified memory location when a virtual interrupt occurs The data size that can be input is one byte The diagram below shows an example of a virtual port input that is synchronized to interrupts Shown in the sample program below is the case where data is read from port 1 address 3E1 using an 83 Interrupt handler routine in this case a timer interrupt handler routine pragma ADDRESS portl delH char portl pragma INTERRUPT read port k Interrupt handler for polling port 1 read portt char key key porti Input from port 1 This interrupt handler routine aims to assign the value of port 1 to variable key when a virtual interrupt is generated In such a case a value can be assigned to variable key by entering it to port 1 when a virtual interrupt in this c
106. n use conditions Further Renesas Electronics products are not subject to radiation resistance design Please be sure to implement safety measures to guard them against the possibility of physical injury and injury or damage caused by fire in the event of the failure of a Renesas Electronics product such as safety design for hardware and software including but not limited to redundancy fire control and malfunction prevention appropriate treatment for aging degradation or any other appropriate measures Because the evaluation of microcomputer software alone is very difficult please evaluate the safety of the final products or system manufactured by you Please contact a Renesas Electronics sales office for details as to environmental matters such as the environmental compatibility of each Renesas Electronics product Please use Renesas Electronics products in compliance with all applicable laws and regulations that regulate the inclusion or use of controlled substances including without limitation the EU RoHS Directive Renesas Electronics assumes no liability for damages or losses occurring as a result of your noncompliance with applicable laws and regulations This document may not be reproduced or duplicated in any form in whole or in part without prior written consent of Renesas Electronics Please contact a Renesas Electronics sales office 1f you have any questions regarding the information contained in this document or Renesas Electronics
107. nd minimum values being recorded for the two stack pointers USP and ISP registers If while the program is running it causes a change in the value of a stack pointer monitoring of stack utilization of that stack stops at that point 13 1 3 Starting the Debugger Click the Windows start button and then select menu Program P gt RENESAS TOOLS gt PDxxSIM V x xx Release x gt PDxxSIM 14 2 Setup Debugger 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 xi Resume Trace 0 Script MEU Debug Information Compiler MOU M1bc6 mcu Fefer Potes ab M Time Count Resource MCU Clock E MH Dividing ratio 1 Cancel Help 7 NextHide Tap Name Compiler eit J fo CrossTo o o o o existo 1 0 Script To keep the I nit dialog closed next time the debugger is started check Next Hide at the bottom of the Init dialog You can open the I nit dialog using either one of the following methods o After the debugger gets started select Menu Environment gt Init e Start PDxx while holding down the Ctrl key 2 1 MCU Tab The contents you ve specified are also effective the next time you start the debugger
108. ndow 2 By using the I O script function With either method the virtual interrupts are subject to the following limitations 1 Virtual interrupts set by using the I O Window Regarding interrupt control for virtual interrupts generated Each Interrupt Control Register s interrupt request bit is not set to 1 e The priority levels set in each Interrupt Control Register s interrupt priority level select bit are not referenced The priority of virtual interrupts can be specified when setting virtual interrupts on the 1 0 Window e The Flag Register FLG s interrupt enable flag I flag and processor interrupt priority level IPL are referenced as in the actual chip 2 Virtual interrupts set by using the I O script function Regarding interrupt control for virtual interrupts generated A statement can be written so that when an interrupt occurs each Interrupt Control Register s interrupt request bit is set to 1 e The priority levels set in each Interrupt Control Register s interrupt priority level select bit can be referenced However once a virtual interrupt is generated and registered in the simulator the priority of the virtual interrupt cannot be altered even when the priority levels specified with the interrupt priority level select bit is changed by the user program e The Flag Register FLG s interrupt enable flag I flag and processor interrupt priority level IPL are referenced as in the actual chip
109. nen eC ST eae oe ee T eae Sere ay AAI O OO 27 Ao Tool POTES Dat E EEEE 29 AEG OEE E a a e a S 30 Ay TONS CONAN Ol Tobar a 33 5 ENDING THE DEBUGGER 34 REFERENCE 1 WINDOWS DIALOGS 37 A AAN E aceanan ecaeee ence euacnenceaiduer 38 1 2 POS WV OW std 41 o CS Y AN acta 47 LA Register W 1G Wisin dada dd 47 ES NA dat acetot beta tia dues ded feted Gage aatdentestea mic taieate oe 49 LO DUMP VV Vi CO Write is as tnd eases ia 51 LTANADME Mon tOr WII A a 53 LSSI A LCM WINO WA wedacenngnatneneonaet 55 ECW ALG VV A E 56 NS W skeen nace he areas aa ts eae aie alee aan 58 Edite Loca WN OW ye sateen SS s 59 A eZ OAL WINDOW aaa 61 Ll Cala rake WOW asada ii ls 62 he BACT WINDOW cin ae Oe Rea te an Mes aoa Bees 63 LIS lace Point Setting a 64 KLOTE CE W ce on aur perenne ec etees Per wee rane meena nn arse Wier Ne eevee em see Mee Sevan erence ten ae 70 TTC OV NY MANO A A A EE 78 LS MR MANO arse th a ce becca aca ce ena a yada Ate ata nd eres anand Dai 80 EIN AO a aa a ver hare Tee ae rena A ao Sree eee Tee 81 12006 UT Input Windi Westland dario 95 17 UG OU OG WV IMO OW anna o cion 96 E22 Oat put Fort WUO W inca A asi sie ee ele ees 97 1 23 S W Break Point Setting Dialog BO tad 98 1 24 H W Break Point Setting Dialog BOX occoocccncninccinccinoconoconoconoconacnnacnnacnnncnonoss 100 2 TABLE OF SCRIPT COMMANDS 101 Ze Table ol Orp COMMA Sui E a 101 2 2 Table of Script Commands alphabetical order occoonccnccnncninccinocon
110. ng active This menu is called Register window option Option Bank0 1 Display registers of bank O Bank1 1 Display registers of bank 1 Hide DPR1 3 2 Turn on off DPR 1 DPR 2 DPR 3 registers Layout Set layout Hide Radix Turn on off radix Hide FLAGs Turn on off flags display area Change font 1 Only PD308 SIM PD30 SIM 2 Only PD79 SIM 1 4 3 Shortcut Menu Press the right button on the register display area in Register Window to display shortcut menu Menu Options Function Right Click H Display in hexadecimal Display in decimal Display in binary Bank0 Display registers of bank O 48 1 Windows Dialogs Bank1 Display registers of bank 1 Layout Set layout Hide Radix Turn on off radix Hide FLAGs Turn on off flags display area Change font Only PD308 SIM PD30 SIM 1 5 Memory Window The Memory Window displays the contents of contiguous memory in address label and data contents of memory formats The display is updated after each command is executed Data can be displayed in binary decimal hexadecimal and ASCII You can open up to 30 Memory Windows You can use the Memory Windows to modify the contents of memory and also to fill and move specified blocks of memory 1 5 1 Configuration of Memory Window Toolbar EJ Memory Window 00c 4001 B enn Does HHEx abr scI Asis fy UE Eal Fetresh E Cache ddress LAB ra E c DOD4DE DOD4DE a
111. of combination condition e 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 64 1 Windows Dialogs Fetch X o oO x o o o Memory Access O o o O O o oO BitAces O o O O O o oO Interrupt x o XT x of x x Triger o o 0 0 O x x e 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 when all of the valid events are established at the same time simultaneous AND condition Trace when one of the valid events is established OR condition Trace upon entering a break state during state transition State Transition condition 1 15 2 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 Event name i Specify the event type Bl Set Event Status Event Type Address setting Ranee taddr Address Address 1 main Addre E j noooo Function F ACCESS FETCH DORESS main CONDITION taddr 0F0149 Cancel Contents change with the setting of Event Type Following events can be set b
112. ogic 1 or 0 in bits LED LEDs are lit when some value is written to a specified memory address or according to logic 1 or O in bits Text Display a text string 1 2 1 5 Cycle Count The CY cle CY Command Use of the CY de command allows you to know an approximate number of cycles and the execution time of the program you ve executed The number of cycles are represented using the values listed in the microcomputer s software manual The execution time refers to the target program s execution time calculated from the cumulative number of cycles of the CPU instructions executed and the MCU clock and divide by ratio specified on the I nit dialog box s MCU tab 1 2 1 6 Stack Utilization Monitor The StackMonitor SM Command Use the StackM onitor command to check the maximum and minimum addresses of the stack and to determine how much the program has used of what part of the stack The stack monitoring continues from the time that a Go or GoFree command is invoked until it is Interrupted the maximum and minimum values being recorded for the two stack pointers USP and ISP registers If while the program is running it causes a change in the value of a stack pointer monitoring of stack utilization of that stack stops at that point 1 Starting the Debugger 1 2 2 PD308SIM Simulation Specifications 1 2 2 1 Operation of Instructions 1 2 2 1 1 Regarding the number of instruction cycles Time management is exercised in
113. oint on selected symbol BitAdd ASM Watch Register the ASM watch point on selected bit symbol Open with HEW Open the source file with the HEW Open Editor Open the source file with the editor Line Assemble Open the Line Assemble dialog Saves MIX display result Edit Edit functions On Turns editing on or off Edit Mode Right Click Copy Copy character strings specified to clipboard 1 Windows Dialogs Paste Paste character strings of clipboard Cut Cut character strings specified to clipboard Delete Cut character strings specified Undo Undo of edit Find character strings Font Change font Tab Set source file display tabs Edit Edit functions On Turns editing on or off Save Saves the edited contents by overwriting Save As Saves the edited contents with another name Save All Saves all of the edited contents by overwriting 1 3 Source Window The Source window continuously displays any position of the source file The Program window always displays the source file corresponding tothe current program counter position When the program counter points the displayed source file position its background is displayed in yellow Like the Program window the Source window allows you to execute the source program up to the cursor position set reset the software breakpoint and perform line assemble Y ou can open up to 30 Source windows 1 3 1 Configuration of Source Window ETE Source Widow sub
114. ology 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 the information and products Renesas Technology Corporation and Renesas Solutions Corporation assume no responsibility for any damage liability or other loss resulting from the information contained herein Renesas Technology semiconductors are not designed or manufactured for use in a device or system that is used under circumstances in which human life is potentially at stake Please contact Renesas Technology Corporation Renesas Solutions Corporation or an authorized Renesas Technology product distributor when considering the use of a product contained herein for any specific purposes such as apparatus or systems for transportation vehicular medical aerospace nuclear or undersea repeater use e The prior written approval of Renesas Technology Corporation and Renesas Solutions Corporation is necessary to reprint or reproduce in whole or in part th
115. om 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 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 e Select the shortcut key from the list in the Current Shortcut Key List group 24 4 Environmental Setting of Debugger e Select the Menu List list box in the Key Assign group 2 Click the DEL button in the Current Shortcut Key List group lt lt Saving reading the shortcut key gt gt To use Save read the assigned shortcut key information separately you need to specify the file Click the SAVE button and specify the file name 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 e You cannot assign the same shortcut key to
116. on range display area using the mouse The Base button does not exist in PD38 SIM and Simulator Debugger PDxxSIM Note PDxxSIM When the target program is executed using a GO or STEP command the coverage display area of the coverage window changes to The display is not automatically updated If you want to update it press the Refresh button on the toolbar or select Option gt Refresh from the menu The display of the coverage source window is automatically updated when the program has stopped 1 17 2 Configuration of Coverage Source Window En Coverage Window samp c Address Source Init ed Sa A Sa ay JAA El ee o gt 2 2 25 Ea gt gt L l l gt FI o l datal 1 datal it datal 3 gt El gt ae Y A Beas a rd os Pr bree pes bone boise freon iaa Remon rene isa gt El o CA 7 A a O pelis a aed 4 AAA AA gt pa l l oo Il I sub ta a o a a a a a a a a Mt o a A o a Y o o a e a O o saa Y o a o Pe Puc SS Eli a alas eT AS a o o a ksi whl coe fo ell oo Or0187 Line Ho i Program e The background of the executed line is displayed in sky blue The background of the non executed line is displayed in gray The background of the line having no line number information comment line null line is displayed in white e You can switch D
117. ontrol the Display Mode Switching of Program Window Specify the number of execution history of script command 4 Environmental Setting of Debugger Y ou can also customize the buttons in the tool bar 4 1 ShortcutKey Tab The specified content becomes effective when the next being start Key Aszslen Category Key Be Main Meru None LOAD Menu List Current Key Aassien Download machine language data and E Download only machine language date Download only debugging information Append machine language data B Reload target program a specified memo image to a fil ee A ey A Ey Maa DEL Current Shortcut key List Hain Menu Memory Window Display in Bytes unit Memory Window Display in 4Bytes unit Main Meru 4 1 1 Register the menus to the shortcut keys You can register the menus tothe 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 e 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 AN Shortcut key setting le changed Save this setting When you sav
118. or debugger 10006 Cannot read the file saved by emulator debugger 10007 Not enough memory for display all function The display mode is not able to change except the BUS mode Trace data is not enough or is abnormal 10600 Can t open BUTTON file xxxxx 10601 BUTTON file is illegal Error Message Notes and Action 11000 File format error xxxxx 11001 File xxxxx not found 1002 Can t file xxxxx open 11003 Failed to read write data to the file s CODE ad 11004 Failed to read write data to the archive s CODE ad 11006 Function not found 11007 Bit Symbol not found 11008 Can not set trace points while program is running 11009 Specify BYTE access for ODD address 11200 Combination of bus width and access condition 11201 The start cycle larger than the end cycle 11202 HardwareBreak command cannot be used while H W Break Point Setting Window opens 11204 These trace data can t disassemble 11205 Can t execute this command with PC4700L 11206 Already set hard ware break 11207 Cycle value is out of range A 11203 TracePoint command cannot be used while Trace Point Setting Window Time Measurement Window MR Trace Analyze Window or Task Trace Analyze Window opens IA Y I A No 11400 Cant open temporary file 11401 Cant delete temporary file 11402 Cant open VO data file flename 11403 The VO data not set S o 11404 The
119. otes a name specified by the user and moves the file into the directory that contains makefile 3 Open the property dialog box for this file and input the same command in the command line of this dialog box that was input on the DOS window 4 Open the property dialog box for this file and input the same command in the command line of this dialog box that was input from the DOS window 28 4 Environmental Setting of Debugger make exe sample mak ee Pe Nomalvindw r m 4 5 2 Specify the Editor You can start the Editor in a window which displays the source file Program window Coverage source window Click the Refer button in the Editor group The File Selection dialog is opened Specify the tem 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 29 WM Glose this application when an error occurs e Stop vour emulator when closing this aplication Execute two or more PDOxx in same time Other setting ff Hide pathname in Program Source Windows Tre to keep your display mode in Program Window J Save commands history in Script Window Number of Commands Y 100 ho Je Warn to update the target program 4 6
120. othe Output Port Window e The Output Port Window has a buffer that contains 10 000 bytes of the latest execution result Even when you forgot to specify a log file the data which are output to ports can be saved toa file view file The output data is displayed on a window or output to a file when the target program has stopped 1 22 2 Extended Menus The Outport window provides the following menu when being active This menu is called Outport window option Option Set _ Setting output port Log file operations Open log file start output to file Close log file stop output to file View buffer operations Save view buffer file Clear view buffer These menus can be selected even by the short cut menu by a right click in the window 1 23 S W Break Point Setting Dialog Box The S W Break Point Setting dialog box allows you to set software break points Software breaks stop the execution of instructions immediately before the specified break point You can also enable and disable each of those break points 99 Load Break Point Buttons set Breakpoint Area Say Close Ultalog Box Buttor Address Filename SW Break Point OFODIF OFOS46 C 122 C usr min P Del All Enable Display Break Point All Enable Line Misatile All Disable Uperation Buttons to Break Points Y ou can set up to 64 software break points If you have set multiple software breakpoint s
121. pling period Set sampling period for RAM monitor Clear Set color of access at tribute display Save Load the watch points Save the watch points Load the watch points These menus can be selected even by the short cut menu by a right click in the window 1 9 C Watch Window The C Watch Window displays C expressions and their values results of calculations The 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 56 1 Windows Dialogs 1 9 1 Configuration of C Watch Window Toolbar Ale ES BE G Watch Mindo FW dd En dd Del A Dele Set usCancel Pacha double ed 2 000000000000000E 000 float ef 0 000000E 000 long double gld 3 00000000000 0000 000 char esc MY signed int gsi 1 long esl 13 short int ess 7 unsigned char gue MM unsigned ints gui 4 unsigned long gul 16 unsigned short int gus 10 long answer 0 Type Name Wa lue AC language expression to be referenced is called C watch point You can register one of the following as the C watch point Csymbol Variable name and function name defined by the C language source program
122. products e PD308SIM V 3 00 e PD30SIM V 5 00 Product specific information e Theoperation which does not describe the specific product name is considered to be common between the products PD308SIM PD30SIM Example PDxxSIM e For theinformation dependent on the product the corresponding product name is described Example PD308SIM Rights to the Program The right to use the program Is granted according to provisions under a software license agreement The program can only be used for the purpose of product development by the user and cannot be used for any other purpose Note also that the information in this manual does not convey any guarantee or license for the use of software MEMO Contents Contents 1 STARTING THE DEBUGGER 3 KEFAS o PUS ea a E eee seer Maret ene voter 3 Romlar Speciation Se aene ves TAEAE E E EEEE E 4 kontat ne the WIC DUS e Fierin didas 15 2 SETUP DEBUGGER 16 A E A O 16 22 Depus Information Da Da Ad 17 DiS OL el Pe tana CEP RS Cn nu A wut TOTTE 18 per NG Gs cCoyct Tool TAD an a aetna mse reer ame etre nce nt ee ean eestor coe rele rT ean eee eee eee 19 DEMO Pie A cis Aenean sane ceaen tine cis 19 2G Traco Data liar 20 pn O AA A A 20 2 9 Methodo making MOUSSE A a 21 3 SIMULATOR ENGINE SETUP 22 lima tor eno nee tU a SA A A ahs 22 4 ENVIRONMENTAL SETTING OF DEBUGGER 23 A ASS WOVUCUCICC Ys Taba tt lis EE Scola oadltwnt a Sauiesimaetn a N 24 AD MONG IO AG AD A PT 26 A A E E E E TE EE
123. products or if you have any other inquiries Note 1 Renesas Electronics as used in this document means Renesas Electronics Corporation and also includes its majority owned subsidiaries Note 2 Renesas Electronics product s means any product developed or manufactured by or for Renesas Electronics C 0 D ma lt Q 5 Cc Q M3T PD308SIM V 3 20 M3T PD30SIM V 5 20 User s Manual Simulator Debugger WWwWWwW renesas Co Rev 1 00 2003 12 e Microsoft MS DOS Windows and Windows NT are registered trademarks of Microsoft Corporation in the U S and other countries e IBM and AT are registered trademarks of International Business Machines Corporation e Intel and Pentium are registered trademarks of Intel Corporation e Adobe Acrobat and Acrobat Reader are trademarks of Adobe Systems Incorporated e All other brand and product names are trademarks registered trademarks or service marks of their respective holders Keep safety first in your circuit designs e 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
124. program execution stops when any one soft ware break address is encountered OR conditions Y ou can continue to set software breakpoints until you click the Close button to close the S W Break Point Setting Dialog Box You can clear enable or disable software breakpoints selected by clicking in the software breakpoint display area You can also enable and disable software breakpoints by double clicking on them 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 100 1 Windows Dialogs 1 24 H W Break Point Setting Dialog Box The H W Break Point Setting dialog box allows you to set hardware break points The hardware break point of 64 points can be set up Y ou can set one address breakpoints with pass counts H N Break Point HW Break Disable f Enable Address key_input Pass Count Access Type Write Length Byte Data Compare E Wot Specify bata mx e gt Hl Break Point Label Addr Cnt Size Data Type Emp QFUZDC UID ORK OK 001 BYTE 0000 e 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 F etch e You can also spec
125. ration buttons to save load virtual interrupts can be used to save the virtual interrupt Information to a file as well as load the saved virtual interrupt information from the file 1 19 5 Extended Menus If the I O Window is active among the windows brought up in the main display area of PDxxSIM the Option menu has the following menu items assigned to it Menu Menu Options Changesfont Sets virtualportinout virtual portoutout orvirtual interrupt Modify Sets virtualportinput virtual portoutput orvirtual interrupt 95 Delete Deletes setvirtualportinput virtualinterruptoruser createdl Oscriptfile Load Loads savedvirtualportinput virtualinterruptoruser createdl Oscriptfile Mode cale Color Timer These menus can be selected even by the short cut menu by a right click in the window 1 20 GUI Input Window The GUI Input window allows you for port input by creating a user target system key input panel button in the window and clicking the created button 1 20 1 Configuration of GUI Input Window ES GUI Input Window B Edit L Cre Gre Grid Load izae FFI Ad E Fi A Input Panel Y ou can arrange the following parts on the input panel e Button A virtual port input or virtual interrupt PDxxSIM only for the latter can be executed at the time the button is pressed eo Text Display the text string Y ou can label name the created button Y ou can al
126. rea displays cycle counts 90 1 Windows Dialogs 1 19 2 3 Screen structure for read access synchronized inputs When you ve set virtual port inputs that are synchronized to virtual interrupts a display screen configured as shown below will appear Input interrupt Number of times Po Address WVec ee ee Eee ae ae lites mterrupt i ii i i i T qn a ni e re ra occurrence count display area Input data display area Address Vector display number area display area e Address display area displays the memory address to which a virtual port is input Vector number display area displays the virtual interrupt vector number to be monitored e Input data display area displays the virtual port input data that has been set by hexadecimal numbers To reference data values move the mouse cursor into this area and the value and the virtual Interrupt occurrence count of the data at which the cursor is positioned will be displayed in the virtual interrupt occurrence count display area Virtual interrupt occurrence count display area It displays virtual interrupt occurrence counts e Virtual interrupt occurrence count display area displays virtual interrupt occurrence counts 1 19 3 Structure of Virtual Port Output Screen Virtual port output results can be displayed in one of the three modes shown below The display modes can be changed from the Mode menu 1 Chart mode displayed in units of bits Virtual port output results ar
127. reating 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 is not updated Please build it again Fou continue to debug program it may occur the difference between source file and debug information of object module file Do you continue this debugging Next Hide Choosing No in this warning dialog box cancels the target execution command that was going to be issued Build and download the target program Choosing Yes accepts the target execution command that was going to be issued so that the command is processed normally From the next time on until the next time downloading is processed no warnings will be displayed even when using target execution commands If the warning dialog box is closed by checking the Next Hide check box no source file update warnings are displayed from the next time on This is the same as when the Warn to update the target program check box is unchecked 31 4 7 Customizing of Toolbar The toolbar buttons on each window can be customized To customize any button right click on the window s tool bar The popup menu shown below appears Flat style v Text labels v Labels on right side C
128. reby under any patents copyrights or other intellectual property rights of Renesas Electronics or others You should not alter modify copy or otherwise misappropriate any Renesas Electronics product whether in whole or in part Descriptions of circuits software and other related information in this document are provided only to illustrate the operation of semiconductor products and application examples You are fully responsible for the incorporation of these circuits software and information in the design of your equipment Renesas Electronics assumes no responsibility for any losses incurred by you or third parties arising from the use of these circuits software or information When exporting the products or technology described in this document you should comply with the applicable export control laws and regulations and follow the procedures required by such laws and regulations You should not use Renesas Electronics products or the technology described in this document for any purpose relating to military applications or use by the military including but not limited to the development of weapons of mass destruction Renesas Electronics products and technology may not be used for or incorporated into any products or systems whose manufacture use or sale 1s prohibited under any applicable domestic or foreign laws or regulations Renesas Electronics has used reasonable care in preparing the information included in this document but Renes
129. rnal 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 Display format No change Data access other than a CPU cause such as DMA Start of INTACK sequence 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 Display format No change Operation code read bytes RB Operand read bytes Instruction queue buffer clear Operation code read words Operand read words 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 Shows the status of the 8 bit external signal pins EXTINO to EXTIN7 of the external trace signal input cable High level 1 Low level 0 h m s ms us Show the elapsed time from the target program beginning 1 16 1 3 Disp
130. rorto EEPROM occurred There was sent undefined data from simulator The received data is illegal The received data must be data But data is received 6648 6649 6650 6651 6653 6654 6655 6656 6657 Cant read wite because there are no memory at that area Number of points exceeds the limit num Point already set Breakpoint of other type already set No haroware breakpoint set at specified address 121 16667 Software break point cant be set up in the odd number address 16668 Software break point cant be set up in the middle of 32bit instruction 16669 Software break point cant be set up in the LSB side parallel instruction 16670 A memory temitory which doesnt exist was manipulated Or A memory territory was manipulated on the condition which wasnt forgiven 16671 Cantexecute from the LSB side parallel instruction LD Can t find line num 16601 Cant Y tne rum 16802 Cant find line mum OOO h 6805 Description of expression is illegal line num token string 16806 Nest level of the if statement is overflow line num 16807 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 10 Unknown token line num token string 811 Can t open the filename file 16812 The filename file is not a f
131. rting address to value of Stack Pointer Change display starting address to value of Stack Pointer 50 1 Windows Dialogs 1 5 3 Shortcut Menu The Memory window provides the shortcut menu by clicking the mouse right button in the window Menu Options Set data at specified address Fill specified memory block with data Move specified memory block to specified Address Display in 1 byte units Display in 2 byte units Display in 4 byte units Specify data radix Display in binary Display in decimal Display in hexadecimal Display as ASCII characters Display as SJIS characters Display as JIS characters Register Display the specified register XXXXX Product dependence menu F ollowed Stack Pointer Keep tracking of the stack pointer position Refresh display Scroll Area Specify scroll range Font Change font 1 6 Dump Window The Dump Window displays the contents of contiguous memory in dump format The display is updated after each command is executed You can open up to 30 Dump Windows You can use the Dump Windows to modify the contents of memory and also to fill and move specified blocks of memory 1 6 1 Configuration of Register Window The display is updated after each command is executed You can open up to 30 Dump Windows You can use the Dump Windows to modify the contents of memory and also to fill and move specified blocks of memory 51 Toolbar F Dump Window D DEG HEX a
132. running Use of this coverage measurement function in the test process makes it possible to keep track of the test items that have been omitted 1 1 5 Real Time OS Debugging Function This function debugs the real time OS dependent parts of the target program that uses the real time OS This function helps to show the status of the real time OS and inspect a task execution history etc 1 1 6 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 7 Customize Function This function adds the user exclusive functions custom commands or custom windows to the PDxxSIM To create these custom commands and custom windows use the CBxxSIM Customer Builder for PDxxSIM included with the PDxxSIM 1 2 Simulation Specifications The simulation specifications vary with the type of simulator use 1 2 1 PD30SIM Simulation Specifications 1 2 1 1 Operation of Instructions 1 2 1 1 1 Regarding the number of instruction cycles Time management is exercised in units of cycles The number of cycles is represented by the values listed in the microcomputer s software manual However this differs from the actual chip in the following points e Thebus width queue and wait states are not considered when measuring the number of cycles The executed cycle of an
133. rupts When you ve set virtual interrupts that are synchronized to machine cycles a display screen configured as shown below will appear ntberrupt evele Cycle vec Pri JO00OIOONONNONONCOODINIO OID ID ICIOIO IIe cycle count Vector Priority level numb er display area display area 0 090 50H PER ES display area Virtual mterrupt display area Vector number display area displays the vector number of a virtual interrupt Priority level display area displays the priority level of a virtual interrupt Virtual interrupt display area displays timing at which the virtual interrupt you ve set is generated This means that a virtual interrupt is generated AI eee means that a virtual interrupt is not generated Cycle count display area displays cycle counts 1 19 4 2 Screen structure for executed address synchronized interrupts When you ve set virtual interrupts that are synchronized to executed addresses a display screen configured as shown below will appear nterrupt address Humber of times Address vec Fri SIA y 1911 e on deplay area 2 4 0 Sta o as a o o a es I Executed Vector Priority level Virtual mterrupt display area address number display area display display area area Executed address display area displays the fetch address the address where the program is executed at which time a virtual interrupt is generated Vector number display area displays the vector number of a virtual int
134. s which allows you to generate interrupts in a simulated manner virtual interrupt function Virtual interrupts can be generated at any time e g in a specified cycle or at an executed address Virtual Interrupt Function This function defines interrupt generation Using this function you can generate timer interrupts and key input interrupts in a simulated manner without having to actually generate them The following shows timings at which virtual interrupts can be generated 1 When program execution has reached a specified number of cycles 2 When the program has executed a specified address 3 Every specified time interval Virtual interrupts at the above timings can be defined from the I O Window Furthermore this function can be used in combination with thel O script function a function that allows you to define virtual port inputs and virtual interrupts Differences between Virtual Interrupts and Interrupts in Actual Chip Virtual interrupts differ from interrupts in the actual chip in the following points 11 1 Special hardware interrupts cannot be generated as virtual interrupts Reset NMI DBC watchdog timer single step address match interrupts cannot be generated as virtual interrupts 2 If virtual interrupts of the same priority occur simultaneously If in the actual chip multiple interrupts of the same priority occur simultaneously they are resolved according to the priority levels set in hardware so that an
135. s broken 6419 Left value must be the pointer 6420 Left value must be a structure or an union 6421 Can t find member 6422 Left value must be reference of a structure or an union 6423 Left value is illegal 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 limit num 6604 The break point isn t defined at that address 6605 Data value is out of range 6606 Contact your nearest distributor has happen in xxxxx at that area program IS running 3 Error Messages 6800 The process is canceled 680 Can t execute this command while some source windows are in editor mode 10000 Cannot find source file xxxxx 10001 The number of lines of source file xxxxx is over the limit num 10002 The address value is out of range 10003 Cannot open file xxxxx 10004 Illegal file format 10005 Cannot read the file saved by simulat
136. sed as the script files 1 14 2 Extended Menus The Script window provides the following menu when being active This menu is called Script window option Menu Menu Options Change font Script Script file operations Open Open script file Run Run script file Step One step execution of script file Close Close script file 63 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 15 Trace Point Setting Window The Trace Point Setting window is used to set trace points This window cannot be used on the PC4701L emulator 1 15 1 Configuration of Trace Point Setting Window Selecting the effective events Setting modification flag Current event list BS Trace Point Setting ADDRESS ACCESS CONDITION main FETCH faddr 0F0149 func tin FETCH taddri OFO142 data READ O0042C lt faddr lt 000436 oooga FETCH faddr 000000 ooga FETCH faddr OO0000 oooga FETCH faddr 000000 ombination FIL aro Petan Enable Petank ce Area ul Hout 16K 16K SAVE Livad Close Setting of prosess IL Setting of trace area setting of trace write condition setting
137. so save the created input panel in a file and reload it 1 20 2 Extended Menus The GUI Input window provides the following menu when being active This menu is called GUI Input 96 1 Windows Dialogs window option Menu Options Option Del Deletes button Copy Copies button Paste Pastes button Make Button Creates button Make Text Creates text label Display Grid Line Shows hides grid line e GUI input file Save Saves GUI input file These menus can be selected even by the short cut menu by a right click in the window 1 21 GUI Output Window The GUI Output window allows you to implement the user target system output panel in the window 1 21 1 Configuration of GUI Output Window FA GUI Output Window Re Edit Gre E Cre FT Grid Load Save 35 You can arrangethe following parts on the output panel eo Label character string Displays erases a character string specified by the user when any value is written to the specified address bit o LED Changes the display color of any area when any value is written to the specified address bit Substitution for LED ON o Text The text labels Y ou can label name the created button Y ou can also save the created output panel in a file and reload it Y ou can set up to 200 address points to the created part If different addresses are set to the each parts you can arrange up to 200 parts 97 1 21 2 Extended Menus
138. ss Data and BIU signals are valid when RWT is 0 CPU OPC OPR This shows the signal between CPU and BIU In the column gCPU h the data shows whether CPU accesses BIU or not In the Column gOPC h the data shows the byte size of read operat ion code In the Column gOPR h the data shows the byte size of read operand CPU OPC OPR Operation codesize Operandsize ap po No accessing cpu o 1 Obye byte eu o y 2 f oe ye cPu j 0 Obyte 3byte lbyte Obyte Loe lbyte lbyte Copy a 2 abyte te CPU 1 3 lbye Byte cpu 2 oO 2byte Obyte _ ETE 2 E O _ EMM 2byte 3byte Obyte 3byte lbyte DMA accessing ES DMAT DMA accessing terminal count Shows the level of the external break trigger the EXTIN7 pin of the external trace signal input cable High level 1 Low level 0 e QT Shows the level of the external trace trigger the EXTIN6 pin of the external trace signal input cable High level 1 Low level 0 e 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 eo h m s ms us Show the elapsed time from the target program beginning 1 16 1 2 Display of bus information on PD30 From left to right the contents are as follows 72 1 Windows Dialogs Address The status of address bus Data The status of data bus BUS The width of the exte
139. sults 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 14 1 Configuration of Script Window Toolbar LA Script Window lel Save Flctear Fec Oi E Log ON xe Loe OFF OE ADDRESS gt LABEL PROGRAM 0F0149 main Execution Result Area assemble _main Command History Area Enter Gommand Command Input Area The Script Window has a view buffer that stores the results of executing the last 1000 lines The results of execution can therefore be stored in a file view file without specifying a log file When a script file is opened the command history area changes to become the script file display area and displays the contents of the script file When script files are nested the contents of the last opened script file are displayed The script file display area shows the line currently being executed in inverse vide When a script file is open you can invoke script commands from the command input area provided the script file is not being executed 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 u
140. t data Data is output to port 0 the data written to address 3E 0 is recorded along with the cycle count in which the data was written 1 19 1 3 Virtual Interrupt This function defines interrupt generation Using this function you can generate timer interrupts or key input interrupts in a simulated manner without having to actually generate them There are following three types of virtual interrupts 1 Cydesynchronized interrupt A specified virtual interrupt can be generated when program execution has reached a specified number of cycles The diagram below shows an example of a virtual interrupt that is synchronized to machine cycles Example where virtual interrupt of software interrupt No 21 timer AQ is defined Virtual interrupt Virtual interrupt Virtual mterrupt ig generated im is generated m the le generated in the 3 000th cycle 6 D00th cycle the 24 000th cycle A a S S S 1000 2000 S000 4000 FOOD 6000 TOOO s0O0 S000 10000 Number of cycles executed As shown above virtual interrupts in this case timer AO interrupt can be generated in any desired cycle 2 Executed address synchronized interrupt Virtual interrupts can be generated when the program has executed a specified address The diagram below shows an example of a virtual interrupt that is synchronized to executed addresses 85 funci i i i f Virtual interrupt is generated Processing when program execution has E moved into address FOOOQ
141. t distributor Contact your nearest distributor Contact your nearest distributor 126 3 Error Messages 26437 File Name is illegal zooan eee T 26002 Cant lose a oo SSSSCSC wdtCSC CO SCSC C C SCS SCS ee O Illegal file format xxxxx gt XXXXX XXXXx 30200 Comfirm the processor mode and the CNVss terminal level 30201 Comfirm the emulation memory allocation or the mapping 30600 In connected emulation pod the target clock is external fixation 38000 The value of Bank is wrong 127 MEMO M3T PD308SIM V 3 20 M3T PD30SIM V 5 20 User s Manual Rev 1 00 December 1 2003 REJ10J0370 0100Z COPYRIGHT 2003 RENESAS TECHNOLOGY CORPORATION AND RENESAS SOLUTIONS CORPORATION ALL RIGHTS RESERVED M3T PD308SIM V 3 20 M3T PD30SIM V 5 20 User s Manual ENESAS Renesas Electronics Corporation 1753 Shimonumabe Nakahara ku Kawasaki shi Kanagawa 211 8668 Japan REJ10J0370 0100Z
142. t is calculated using the number of cycles described above it includes some error when compared with the actual chip s execution time 1 Starting the Debugger 1 2 1 1 3 WAIT Executed as an NOP instruction Other instructions operate the same as those of the actual MCU 1 2 1 1 4 INT INTO UND BRK As with the actual MCU these instructions generate interrupts The INTO instruction only generates an interrupt when the O flag is 1 1 2 1 2 Resetting e The SFR area is nonexistent in PD30SIM so the initialization as in the actual chip is not performed e THecyde count is initialized to 0 Resetting is performed in the same way as the actual MCU A reset is also performed when PD30SIM starts The value OOOF 000016 is set in the reset vector immediately after starting The program counter is therefore set to FOOOOi6 immediately after PD30SIM starts 1 2 1 3 Memory 1 2 1 3 1 Memory Space There is no processor mode If mapped for memory the whole 1MB of memory from 000006 to FFFFF 16 can be read from and written to as RAM Note however that in the initial state memory between 1000016 and EFFFFie is not secured and an error will result if an attempt is made to access this part of memory If this occurs while a program is running the program will stop with an illegal memory access error Use the map function described later to map this part of memory 1 2 1 3 2 Memory Structure and Initial Values Immediately after Star
143. ting The memory is set up as follows immediately after starting PDB30SIM 0000016 QO3F F16 Filled with 0056 0040016 EFFFF Filled with FF 36 1000036 EFFFFie Nomemory immediately after starting F 000016 FFFFFi6 Filled with FF 16 Reset Vector Set to OOOF 000055 1 2 1 3 3 The Map Function MAP Command The PD30SIM simulator divides the memory between 0000016 and FFFFFie into sixteen equal parts so that the memory space can be mapped in 64KB blocks Note that the blocks with the lowest address 0000016 to OF FF Fie and with the highest address F 000016 to FF FF Fie are already mapped when the simulator starts Use the MAP command to map the simulator memory Memory mapped using this command is initialized with the value FF 16 immediately after being allocated When downloading a target program the memory is mapped automatically N ote Memory space that has been mapped cannot be deleted 1 2 1 3 4 Accessing an Area Without Memory There is no actual memory in the 14 memory blocks between 1000016 and EF FFF 16 unless memory is secured If an attempt is made to access this area an illegal memory access error occurs and execution of the command or program stops 1 2 1 4 I O 1 2 1 4 1 SFR The actual chip s peripheral I Os other than the CPU core such as the timers DMAC and serial I O are not supported The SFR area to which the peripheral I Os are connected is also handled as RAM by the simulator However
144. to a log file Stops the output of the screen display to a log file 2 1 13 Program Window Control Commands Checks function names and displays the contents of Oooo functions TN Displays the calling function Dow fe Displays a called function Where Displays a function call status Pah as Sets and checks the search path Checks a filename and displays the contents of that file 2 1 14 Map Commands Map U M HS L E Checks and sets mapping data Checks and sets mapping data 2 1 15 Clock Command Clock U M HSIL Checks and changes the clock 2 1 16 C Language Debugging Commands Command Name Short Name Contents Set Print ES Check value of specified C variable expression Set specified data in specified C variable expression 2 1 17 Real time OS Command MR E Displays status of realtime OS MRxx 105 2 1 18 Custom Command Window Commands Command Name Short Name Macro E The reference and registration of the custom programs DelMacro Sy Delete custom program DelMacroAll E Delete all custom programs MacroPath MPATH Sets and checks the search path for custom programs 2 1 19 Utility Commands Command Name Shor Name Radix Sets and checks the radix for numerical input Alias Specifies and checks command alias definitions UnAlias Cancels the alias defined for a command UnAliasAll Cancels all aliases defined for commands Version Displays the version No Date Displays the date Echo Displays messa
145. tons Execution time required from start to end of the target program execution Execution state of the target program during execution or execution stopped 38 1 Windows Dialogs 1 1 2 Tool Bar A basic operation is allocated to the toolbar Execute target Program Come Execute the target program from the value in the program counter to the position of the cursor One step execution of target program Step over function subroutine call Return Run the program up to the higher routine Stop Stop execution of the target program Reset Set H W breakpoint Set S W breakpoint Set H W breakpoint 1 1 3 Option In the PDxx window the following menus are prepared File Operation Menu Menu Options Fm S Download Download target program Load Module Download machine language data and debugging information Memory Image Download only machine language data Symbol Download only debugging information Rom Data Additional download machine language data Editing Cut character strings specified to clipboard Delete Cut character strings specified Undo Undo of edit 39 Find character strings Display View Switch display or non display of toolbar Status Bar Switch display or non display of status bar Tool Bar Child Switch display or non display of toolbar child window Setup Debugging Basic Start target program a Run from current program counter Go Option Run
146. uires the data of the bus access Therefore changes in the RAM SFR area without the access by the target program are not reflected f you are displaying data in the RAM monitor area in 2 byte or 4 byte units by selecting Word or Lword under Option gt View gt Data Length the memory access attribute may differ for each of the bytes If there are such mismatches in the access attributes within one data item the data item is displayed in parentheses as shown below Note that the memory display background color is set to the color for the access attribute of the 1st byte DOTE DLs D 0000 007 0000 OOOO 0000 0000 0000 0000 Moorea 0000 0000 0000 0000 0000 0050 0000 1 7 2 Extended Menus The RAM Monitor window provides the following menu when being active This menu is called RAM Monitor window option Menu Options Option Change font View Change contents of display Address Display from specified address 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 radix Dec Display in decimal Hex Display in hexadecimal ASCII Display as ASCII characters SJIS Display as SJIS characters 54 1 Windows Dialogs JIS Display as JIS characters Clear Clear access attribute Layout Set layout Ascii Turn on off ASCII strings RAM Monitor Area Set RAM monitor area Color Set color of access attribute display Sampling perio
147. units of 1 byte In such a case that the access attribute is not unified within a set of data the data s access attribute cannot be displayed correctly In this case the background colors the access attribute color of the first byte of the data 1 9 2 Extended Menus The C Watch window provides the following menu when being active This menu is called C Watch window option Menu Options Option Register delete C watch point A Register C watch point Add Pointer Register C watch point pointer Del Delete selected C watch point Set Set new value for selected C watch point Cancel Cancel selection of C watch point Del All Delete all C watch points View Change contents of display Radix Change radix Layout Turn on off type name Sort Sort Display String Display the string Display character RAM Monitor Display RAM monitor Enable Turn on off RAM monitor area RAM Monitor Area Set RAM monitor area Color Set color of access attribute display Sampling period Set sampling period for RAM monitor Clear Clear access attribute These menus can be selected even by the short cut menu by a right click in the window 1 10 Local Window The Local Window lists local variables in the C function with their values The display is updated after each command is executed 58 1 Windows Dialogs 1 10 1 Configuration of Local Window Toolbar dal ES Funct ton File name which contains PL ES Local W
148. ustomize Flat style Flattens the button when checked Text labels Shows text below the button when checked Labels on right side Shows text tothe right of the button when checked Customize Opens a toolbar customize dialog box 4 7 1 Assigning Buttons to the Toolbar To do this select the menu Customize or 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 separato a Load Madule Add gt sw Break Point Help Memo Image Benmore iHa Break Point fal Symbol lbs Close Reset Mase lip L EERE Mave bawn e The buttons corresponding to the option menus in the window are provided e You can only add the buttons which are enabled in each window You cannot add the buttons for other windows 4 7 1 1 Adding a button Click the buttons to be added in the Available Button list box at right of the Customize Tool Bar dialog Then click the Add button in the center of the dialog 4 7 1 2 Deleting a button Click the button to be deleted in Tool Bar Button list box at left of the Customize Tool Bar dialog Then click the Delete button in the center of the dialog 4 7 1 3 Changing the button display order Use the Up button or Down button at right of the dialog to change the display order Click the button for which the display order is to
149. y specifying Event Type in this dialog box e When FETCH is selected Traces for the instruction fetch PD308 and PD77 not support When using these products use memory access instead 65 addr Address e When DATA ACCESS is selected Traces for the memory access Datal lt data lt Data2 e When BIT SYMBOL is selected Traces for the bit access 66 1 Windows Dialogs e When INTERRUPT is selected Traces for the interrupt occurrence or termination e When TRIGGER is selected Traces for the status of signal input from external trace cable Helsisfafelifo 1 15 3 Specify the Combinatorial Condition To specify a combinatorial condition specify the desired condition from the combinatorial condition specification area e When AND or OR is selected In the event specification area the event used and a 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 67 Event Status Mil Bl _main 1 B2 index 1 B3 c 1 B4 _main J 1 65 000000 CL 1 Be 000000 When AND Same Time is selected In the event specification area the event used can be specified No pass counts can be specified When State Transition is selected Click the Details button and the dialog box shown below appears Specification by a st
Download Pdf Manuals
Related Search
Related Contents
Untitled OLAT 7.7 - Benutzerhandbuch Mars 2014 - Syndicat Interdépartemental des Orthophonistes de Manual de instalación de cajones Gebruikershandleiding aide à l`hébergement touristique 2013 Funkgerät IC Manual do utilizador DEH-3400UB DEH-2400UB www.rowenta.com Copyright © All rights reserved.
Failed to retrieve file