background image

M30880T-EPB User’s Manual 

3. Usage (How to Use the Emulator Debugger) 

REJ10J0497-0100Z  Rev.1.00  January 16, 2005 

 

Page 63 of 100 

 
(4) Executing up to the cursor position (Come command) 
 
1. Specifying the Come command 

 
 
 
 
2. After the Come command has finished 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Setup procedure for executing COME
command

 

(1)  Click the line in the program display area at which you

want the program to execute. 

(2)  Click the Come button. 

Summary of Contents for Emulation Probe for M32C/88 Group M30880T-EPB

Page 1: ...REJ10J0497 0100Z M30880T EPB Rev 1 00 Jan 16 2005 User s Manual Emulation Probe for M32C 88 Group...

Page 2: ...l inaccuracies or typographical errors Renesas Technology Corp assumes no responsibility for any damage liability or other loss rising from these inaccuracies or errors Please also pay attention to in...

Page 3: ...page 13 If there is any question or doubt about this product contact your local distributor The related manuals for using this product are listed below You can download the latest manuals from the Re...

Page 4: ...in your program development and evaluation stages In mass producing your program you have finished developing be sure to make a judgment on your own risk that it can be put to practical use by perfor...

Page 5: ...onstantly making efforts to improve the design and performance of this emulator Therefore the specification or design of this emulator or its user s manual may be changed without prior notice About th...

Page 6: ...es an imminently dangerous situation that will cause death or heavy wound unless it is avoided However there are no instances of such danger for the product presented in this user s manual WARNING WAR...

Page 7: ...that a reliable ground connection is maintained If you smell a strange odor hear an unusual sound or see smoke coming from this product then disconnect power immediately by unplugging the AC power ca...

Page 8: ...ns of the emulator main unit and the target MCU connector pins Static electricity may damage the internal circuits Do not pull this product by the flexible cable for connecting to the emulator main un...

Page 9: ...cessary to Download Firmware 26 2 7 2 Downloading Firmware in Maintenance Mode 26 2 8 Self check 27 2 8 1 Self check Procedure 27 2 8 2 If an Error is Detected in the Self check 28 2 9 Connecting the...

Page 10: ...0NSD 85 4 4 4 External Dimensions of the M3T FLX 144NSD 85 4 5 Notes on Using This Product 86 Notes on Downloading Firmware 86 Note on Quitting the Emulator Debugger 86 Notes on Power Supply to the Us...

Page 11: ...al fill it in and FAX it to your local distributor or email the same contents to the following address Your registered information is used for only after sale services and not for any other purposes W...

Page 12: ...ther MCUs Host machine This means a personal computer used to control the emulator main unit and emulation probe Software break A software break is a function to break the program before the system ex...

Page 13: ...r reuse at a later time when sending your product for repair or other purposes Always use these packing box and cushion material when transporting this product If there is any question or doubt about...

Page 14: ...a configuration of the M30880T EPB system Figure 1 1 System configuration 1 Emulation probe M30880T EPB this product This emulation probe contains an evaluation MCU 2 Converter board M30800T PTC incl...

Page 15: ...ng status etc Table 1 3 lists the definition of each system status LED Table 1 3 Definitions of the system status LEDs Name Status Meaning ON Emulator system power supply is turned ON POWER OFF Emulat...

Page 16: ...ed to the target MCU POWER OFF Power is not supplied to the target MCU ON Target MCU internal clock is oscillating CLOCK OFF Target MCU internal clock is not oscillating ON Target MCU is being reset R...

Page 17: ...iables run time execution Register reference setting Disassemble display C level debugging etc Real time trace function 256K cycle bus information recordable Bus external trigger time stamp 5 trace mo...

Page 18: ...0800T PTC included M3T 100LCC DMS not included M3T DUMMY100S not included 3 M30800T PTC included M3T 100LCC DMS not included M3T DIRECT100S not included For 100 pin LCC socket M30800T PTC included IC6...

Page 19: ...cable USB interface cable or LAN interface cable Set the interface selection switch on the panel of the PC7501 to the using interface Connect the power supply for the emulator Connect a power supply...

Page 20: ...below http www renesas com eng mpumcu upgrades in_circuit_emulators pc7501 index html 2 Launching the installer Start the setup exe program 3 Entering the user information In the user information dial...

Page 21: ...lator PC7501 to a host machine you can choose your desired interface from LPT parallel interface USB interface and LAN interface Use the interface selection switch on the emulator PC7501 s rear panel...

Page 22: ...he PCA7501EPBA board side to the M3T FLX160 EPB Figure 2 3 Connecting the PC7501 and emulation probe CAUTION Cautions for Connecting the PC7501 When connecting the emulation probe be sure to hold the...

Page 23: ...er 4 Connect the AC power cable to the receptacle CAUTION Cautions for AC Adapter Use only the AC adapter included in PC7501 package The included AC adapter is for PC7501 Do not use it for other produ...

Page 24: ...the power again after shutting OFF the power wait for about 10 seconds IMPORTANT Notes on Power Supply The emulator s pin Vcc is connected to the user system in order to monitor user system voltage F...

Page 25: ...check the voltage of the user system Check power is supplied to all the power terminals When the user system is not connected this LED does not light Figure 2 4 LED display when the power turned on PC...

Page 26: ...side and connect the LPT parallel interface cable to the PC7501 and the host machine 2 Within 2 seconds of activating power to the emulator press the RESET switch on the PC7501 front panel to switch t...

Page 27: ...it selection switch SW5 All upper side ON OFF Flashing POW ER CLOCK RESET RUN WARNING POWER SAFE ERROR SYSTEM STATUS TARGET STATUS Maintenance mode started POWER CLOCK RESET RUN WARNING POWER SAFE ERR...

Page 28: ...check does not result normally ERROR 1 to ERROR 4 in Figure 2 6 check the following 1 Recheck the connection of the emulation probe and PC7501 2 Redownload the proper firmware IMPORTANT Note on the Se...

Page 29: ...DMS not included M3T FLX100 R not included M3T FLX100 T not included M30800T PTC included M3T 100LCC DMS not included M3T FLX100 R not included M3T FLX100 T not included M3T FLX 100NRB 100 pin QFP no...

Page 30: ...M30800T PTC to the 100 pin LCC socket 100 pin LCC socket M3T FLX160 EPB M30880T EPB CN2 side 1 No 1 pin 2 M30800T PTC User system Figure 2 8 Connecting to a 100 pin LCC socket CAUTION Notes on Connect...

Page 31: ...00T PTC to the M30880T EPB 4 Attach the M30800T PTC to the M3T 100LCC DMS M3T 100LCC DMS not included M3T FLX160 EPB M30880T EPB CN2 side 3 4 M30800T PTC 2 FLASH MCU etc On board evaluation M3T DUMMY1...

Page 32: ...3 Attach the M30800T PTC to the M30880T EPB 4 Attach the M30800T PTC to the M3T 100LCC DMS M3T 100LCC DMS not included M3T FLX160 EPB M30880T EPB CN2 side 3 4 M30800T PTC 2 1 100 pin 0 65 mm pitch 10...

Page 33: ...TC 2 1 100 pin 0 65 mm pitch 100P6S foot pattern No 1 pin User system M3T FLX 100NRB not included FLASH MCU etc On board evaluation These four items are available in one package YQPACK100RB NQPACK100R...

Page 34: ...h the M3T 100LCC QSD to the user system 2 Attach the M30800T PTC to the M30880T EPB 3 Attach the M30800T PTC to the M3T 100LCC QSD M3T 100LCC QSD not included M3T FLX160 EPB M30880T EPB CN2 side 2 3 M...

Page 35: ...LCC DMS M3T 100LCC DMS not included M3T FLX160 EPB M30880T EPB CN2 side 3 4 M30800T PTC 2 1 100 pin 0 5 mm pitch 100P6Q foot pattern No 1 pin User system M3T FLX 100NSD not included FLASH MCU etc On b...

Page 36: ...cluded with the YQPACK100SD to the YQPACK100SD 4 Attach the M3T F160 100NSD to the YQPACK100SD 5 Attach the M30880T EPB to the M3T F160 100NSD M3T FLX160 EPB M30880T EPB CN2 side 5 1 100 pin 0 5 mm pi...

Page 37: ...luded with the YQPACK144SD to the YQPACK144SD 4 Attach the M3T FLX 144NSD to the YQPACK144SD 5 Attach the M30880T EPB to the M3T FLX 144SD M3T FLX160 EPB M30880T EPB CN2 side 5 1 144 pin 0 5 mm pitch...

Page 38: ...n Probe Set the switches of the emulation probe according to the condition Figure 2 16 shows the positions of the switches of the M30880T EPBM M30880T EPBM REV B MADE IN JAPAN AVCC AVSS VSS XOUT NC XC...

Page 39: ...power supply of the emulator and connects pin AVSS to the GND in the emulator XCIN P87 VCONT Factory setting Connects pin P87 of the MCU to the user system XCIN P87 VCONT Connects pin P87 of the MCU...

Page 40: ...for analog input pins Set the analog input pins to ON With this setting set the direction registers of ports P153 to P157 to input Pins P150 to P152 can be used for I O port ISTxD0 ISCLK0 and ISRxD0 W...

Page 41: ...hen using the A D converter in multi port sweep mode be sure to set the all SW5 to ON When setting the register below to use multi port sweep mode you need to set the direction register of port P15 fo...

Page 42: ...illator of user system Yes IMPORTANT Notes on Changing the Clock Supply The clock supply can be set by the Init dialog box when starting up the emulator debugger or inputting CLK command on the script...

Page 43: ...REJ10J0497 0100Z Rev 1 00 January 16 2005 Page 43 of 100 2 Replacing an Oscillator Circuit Board Remove the four screws of both sides of this product and lift off the upper cover see Figure 2 17 Figu...

Page 44: ...curing the oscillator circuit board Lift off the oscillator circuit board Attach another oscillator circuit board to the connector Secure the new oscillator circuit board with the screw Figure 2 18 Re...

Page 45: ...shows the circuitry of the oscillator circuit bare board OSC 2 Use the number of oscillator circuits recommended by the oscillator manufacturer J1 4 GND J1 3 Oscillation output J1 2 GND J1 1 VCC Figur...

Page 46: ...specified by the emulator debugger and it is supplied as a main clock It does not depend on either the oscillator circuit board in the PC7501 or the oscillator circuit on the user system If you want t...

Page 47: ...MADE IN JAPAN AVCC AVSS VSS XOUT NC XCIN P87 NC P86 SW2 SW1 SW3 SW4 C 1 C 2 EXT INT VCONT JP1 VCC1 2 VCC1 2 C 4 C 3 O N 1 8 2 3 4 5 6 7 SW5 RENESAS C1 C2 VREF AVSS AVCC AVSS C1 Vref Avss bypass capaci...

Page 48: ...the communication interface LPT communication Specifying the MCU file Click the Refer button A file selection dialog box will be displayed so select the desired MCU file The MCU file is stored in the...

Page 49: ...AN communication click the radio button LAN of the MCU tab Specify the IP address of the emulator at the IP address area Specify the IP address by one byte of decimal number separating each four bytes...

Page 50: ...x marked by a check mark when selected In this case the address match interrupt is used by the emulator and cannot be used in the user program When not using the address match break function deselect...

Page 51: ...match breakpoint Software breakpoint setting in the internal ROM area Execution of COME in the internal ROM area Executing the self check Enable this function when you want the emulator to be self ch...

Page 52: ...that is output by the compiler you are using Specifying the method for storing debug information There are two methods for storing debug information on memory method where data is held in memory and a...

Page 53: ...m clock Generated Clock created in PC7501 The option you have specified here remains effective the next time you start up Selecting the event output trigger input cable Select input output of the even...

Page 54: ...section of the dialog box shown here If you do not want to automatically execute a script command delete the character string displayed in the Init File section of the dialog box What you specify here...

Page 55: ...tus tab 1 Specifying the processor mode IMPORTANT Notes on Selecting a Processor Mode An available processor mode is single chip mode only Therefore do not select any other processor mode When setting...

Page 56: ...on Selecting a Processor Mode The MCU status is shown in MCU Status of the EMEM dialog box Check that the level of pin CNVSS of the MCU status is L Referring to the MCU Status It shows the status of...

Page 57: ...tly though it can be displayed The below bank addresses cannot be set for the debug monitor 1 MCU internal resources ROM RAM and SFR areas 2 Interrupt vector area Setting the Bank Address of the Debug...

Page 58: ...lator Debugger REJ10J0497 0100Z Rev 1 00 January 16 2005 Page 58 of 100 2 Emulation Memory Allocation as Expansion Area Emulation Memory Allocation as Expansion Area Because the available processor mo...

Page 59: ...nternal flash ROM is listed in block units Any block which has had its check box selected is not cleared when downloading The memory content of this block remains intact unless overwritten by download...

Page 60: ...t always shows the content of the source file corresponding to the current position of the program counter It automatically opens when the emulator starts up The program counter position is identified...

Page 61: ...window screen after the user program has stopped RESET Resets the program GO Executes the program from the current PC position STEP Single steps the program stepping subroutines OVER Single steps the...

Page 62: ...The address match break causes the program to stop before executing the address at which a breakpoint is set Software breakpoint B A software breakpoint can be set or cleared by double clicking the br...

Page 63: ...ry 16 2005 Page 63 of 100 4 Executing up to the cursor position Come command 1 Specifying the Come command 2 After the Come command has finished Setup procedure for executing COME command 1 Click the...

Page 64: ...g box 2 Hardware Break Point Setting Window in initial state 3 Opening the break event setting dialog box H W breakpoint Setting Window in initial state Select the Enable H W Break check box and this...

Page 65: ...ype Click to select the event type you want to set FETCH Detects an instruction prefetch DATA ACCESS Detects a memory access BIT SYMBOL Detects a bit access INTERRUPT Detects an interrupt occurrence o...

Page 66: ...dress 2 Window for setting data Setting the address You can set eight conditions e g a specified address a specified address range etc Setting data You can set eight conditions e g a specified data a...

Page 67: ...Event setting for even address byte access MOV B R0L 516h R0L 03h Low order data effective Event setting for odd address byte access MOV B R0L 515h R0L 03h High order data effective Setting a break ev...

Page 68: ...AND The program breaks when all of the specified events occur AND Same Time The program breaks when the specified events occur at the same time OR The program breaks when one of the specified events o...

Page 69: ...er of execution paths Disassemble data access mixed mode The executed instruction and the content of the accessed data can be inspected together Contents are displayed in order of the execution paths...

Page 70: ...ead bytes WB Write bytes DRB Read bytes by DMA DWB Write bytes by DMA RW Read words WW Write words DRW Read words by DMA DWW Write words by DMA R W Shows the status of the data bus Displayed as R for...

Page 71: ...0 January 16 2005 Page 71 of 100 2 Suspending and resuming trace measurement 1 Suspending trace measurement 2 Resuming trace measurement Stop Click this toolbar button to suspend the trace measurement...

Page 72: ...trace point setup dialog box 2 Trace Point Setting Window in initial state Trace Point Setting Window in initial state Be sure to enable the trace point function in the Init dialog box before you set...

Page 73: ...ll 256K cycles of instruction execution after a trace began is recorded Setting the trace write condition You can specify a condition for the cycles to be written into the trace memory Total All cycle...

Page 74: ...s RAM Monitor Window Opening the RAM monitor window RAM monitor window This window shows changes of memory contents while the user program is executed This is accomplished by using the real time RAM m...

Page 75: ...a setting window 1 Opening RAM monitor area setting window 2 RAM monitor area setting window in initial state RAM Monitor Area Setting Window in initial state By default the monitor area is set to 000...

Page 76: ...bytes in size Specifying the start address You can set the start address of the RAM area to be monitored To add a RAM monitor area click the Add button The RAM Monitor Area Setting Window will be disp...

Page 77: ...cations Table 4 1 lists the specifications of target MCUs which can be debugged with this product Table 4 1 Specifications of target MCUs for the M30880T EPB Item Description Applicable MCU M32C 88 Gr...

Page 78: ...en pins XIN and XOUT oscillation does not occur because a converter board and other devices are used between the evaluation MCU and the user system It is same for a sub clock oscillator XCIN and XCOUT...

Page 79: ...luding when run time debugging is being performed the maskable interrupt request cannot be accepted because the emulator disables interrupts The interrupt request is accepted immediately after the use...

Page 80: ...se DMAC II transfer completion interrupts during program execution only Do not generate DMAC II transfer completion interrupts when you use any function but program execution Note on Final Evaluation...

Page 81: ...such as the emulator s control system are omitted Table 4 2 shows IC electric characteristics of this product for reference purposes Figure 4 1 Connection diagram 1 2 AVcc Vref AVss P85 NMI CNVss BYT...

Page 82: ...B CC CD 2 3 9 10 IC7 1 4 8 11 13 5 6 12 QA QB QC QD XA XB XC XD CA CB CC CD 2 3 9 10 1 4 8 11 13 5 6 12 QA 2 3 9 10 QB QC QD XA XB XC XD CA CB CC CD IC6 1 4 8 11 13 5 6 12 IC10 QA QB QC QD XA XB XC XD...

Page 83: ...Dimensions 4 4 1 External Dimensions of the Emulation Probe Figure 4 3 shows external dimensions of the M30880T EPB connected with the M30800T PTC and LCC socket PCA7501EPBA REV A MADE IN JAPAN 85 0 6...

Page 84: ...J10J0497 0100Z Rev 1 00 January 16 2005 Page 84 of 100 4 4 2 External Dimensions of the M30800T PTC Figure 4 4 shows external dimensions of the converter board M30800T PTC for a 100 pin QFP 100P6S Uni...

Page 85: ...5 shows external dimensions of the converter board M3T F160 100NSD for a 100 pin LQFP 100P6Q Unit mm Figure 4 5 External dimensions of the M3T F160 100NSD 4 4 4 External Dimensions of the M3T FLX 144...

Page 86: ...downloading the firmware If this happens the product will not start up properly If power is shut off unexpectedly redownload the firmware Except when a target status error occurs if the self check is...

Page 87: ...gram execution status When operating this product with a sub clock be sure to set the SW2 and SW3 to XCIN and NC respectively Notes on Using the CPU Clock at Less than 10 MHz To use the CPU clock at l...

Page 88: ...verse assemble area of the program source windows the content of this area is not displayed correctly though it can be displayed 2 Processor Mode Set a single chip mode for the target MCU To set singl...

Page 89: ...d out properly 1 Single stepping 2 Setting a software breakpoint 3 Setting a hardware breakpoint 4 Executing COME Note on Software Break A software break generates a break interruption by forcibly ins...

Page 90: ...the below procedure 1 Step execution of an instruction setting 1 PRC2 2 Setting a break point from an instruction setting 1 PRC2 to where the port P9 direction register or the function select register...

Page 91: ...on is halting For the switch SW5 refer to 2 10 1 Setting Switches of Emulation Probe page 38 When setting the register below to use multi port sweep mode you need to set the direction register of port...

Page 92: ...tion of the power supply cable See 2 5 Connecting the Power Supply for the Emulator page 23 2 Check that the power is properly supplied to the user system See Turning ON the Power page 24 Init dialog...

Page 93: ...ET does not light up Connected Check that power Vcc is properly supplied to the user system and that the user system is properly grounded Not connected 1 Check that both the main and sub clocks of the...

Page 94: ...ulled up 2 Check the reset pin of the user system has changed from L to H level Target MCU cannot be reset 1 Check pin NMI is held high 2 If the reset circuit of the user system has a watchdog timer d...

Page 95: ...5 3 Checkpoints of errors at debugger startup Error Checkpoint Target MCU is uncontrollable 1 Check that the NQPACK etc mounted on the user system is soldered properly 2 Check that the connector is i...

Page 96: ...n the following directory and email to your local distributor SUPPORT product name SUPPORT TXT For prompt response please specify the following information 1 Operating environment Operating voltage V...

Page 97: ...ne of the following causes we will repair it or replace it with new one with extra charge Misuse abuse or use under extraordinary conditions Unauthorized repair remodeling maintenance and so on Inadeq...

Page 98: ...r Request Sheet is written in as much detail as possible to facilitate repair Distributor After checking the contents of fault the distributor should please send the faulty product along with the Repa...

Page 99: ...ation Date Jan 16 2005 Rev 1 00 Published by Sales Strategic Planning Div Renesas Technology Corp Edited by Microcomputer Tool Development Department Renesas Solutions Corp 2005 Renesas Technology Cor...

Page 100: ...M30880T EPB User s Manual...

Reviews: