background image

S5U1C33001H 

(Ver. 4)

S1C33 Family In-Circuit Debugger

 OVERVIEW

The S5U1C33001H (In-Circuit Debugger for the S1C33 Family) is a hardware tool (emulator) that allows software to be
efficiently developed for the S1C33 Family of 32-bit Single-Chip Microcomputers. It provides a software development
environment by communicating with the S1C33xxx chip.
This manual primarily explains how to use the S5U1C33001H. For details on the debugger (gdb.exe) functions and com-
mands, refer to the "Debugger" section in the "S5U1C33001C Manual (C Compiler Package for S1C33 Family)".
The figure below shows an external view of the S5U1C33001H.

Figure 1  S5U1C33001H External View

Note: Do not open the case as it may cause a malfunction.

Precautions before using the S5U1C33001H

Please read the sections shown below before getting started with the S5U1C33001H. These sections, especially (2)
and (3), describe the answers to frequently asked questions.

(1) "Components Included with Package" section

Make sure all of the listed items are included with your package.

(2) "Connecting the S5U1C33001H and the Host Computer" section

Install the USB driver before the S5U1C33001H can be used.

(3) "Connecting the Target System" section

Please pay particular attention to the Notes.

Summary of Contents for S5U1C33001H

Page 1: ...Manual C Compiler Package for S1C33 Family The figure below shows an external view of the S5U1C33001H Figure 1 S5U1C33001H External View Note Do not open the case as it may cause a malfunction Precautions before using the S5U1C33001H Please read the sections shown below before getting started with the S5U1C33001H These sections especially 2 and 3 describe the answers to frequently asked questions ...

Page 2: ... 10 pins 30 pins 4 pins 10 pins 30 pins 6 pins 1 Indicates the specifications for 3 3 V I O The upper limit value may be lowered by environment noise temperature condition S1C33 model unevenness in quality etc Note In the model with the C33 STD or Mini core embedded the maximum CPU core clock frequency is 60 MHz but the maximum BCU bus clock frequency is 40 MHz When operating the CPU with a clock ...

Page 3: ... trace trigger 1 and trace trigger 2 is traced Up to 1M clock cycles can be traced The bus trace function allows selection of logical or physical addresses Bus break trigger trace function TRC IN pin input signal trace function User logic signal trace function 3 Measurement of the target program execution time The total time within an area can be measured in area trace mode 4 Flash memory writing ...

Page 4: ...e not included with the package These items must be prepared separately 16 S5U1C33001H Ver 4 Manual S1C33 Family In Circuit Debugger this PDF downloadable from the SEIKO EPSON HP 17 Debugger gdb exe for the S1C33 Family included in the S1C33 Family C Compiler Package 18 Debugger manual for the S1C33 Family included in the S1C33 Family C Compiler Package S5U1C33001H main unit AC cable USB cable Use...

Page 5: ... Rear panel Side panel Left Target system interface connectors Target system power supply connector AC input connector LEDs DIP switch Jumper Monitor pins RESET WRITE switch Power switch 1 2 3 4 5 6 7 8 1 2 3 4 5 6 7 8 EMU ERASE TRC FULL WRITE POWER OK BUSY ERROR UVCC VCC OUT R ESET W R ITE VC C SEL TR C FU LL EM U O U T TR G O U T TR C IN BR K IN G N D Figure 3 External View of Operating Section ...

Page 6: ...ore clock ratio while the program execution is halted Select an appropriate value so that the DCLK frequency will not exceed 40 MHz If DCLK exceeds 40 MHz the S5U1C33001H will not be able to communicate with the target system normally it may result in a target system failure While the program is being executed the DCLK is set to the same frequency with the core clock The upper limit frequency in t...

Page 7: ...te output pin This pin outputs a high level when the trace memory becomes full EMU OUT output pin This pin outputs a low level when the EMU ERASE LED is lit that is when the program is being executed and outputs the 5 V level when that LCD is off during a break This signal can be used as the protect signal for the S5U1C33xxxM emulation memory TRG OUT output pin The TRG OUT pin outputs the trace tr...

Page 8: ...ut pin This pin inputs an external trace signal The input signal can also be traced when the bus trace is performed BRK IN input pin If a low level signal is input to this pin when the target program is being executed the target program execution is suspended After a low level is input to the BRK IN terminal a break will occur after a few instructions have been executed Note Do not apply any volta...

Page 9: ... when the debugger executes a program execution command and indicates that the target program is being executed Furthermore it lights up if the target system power is off or the target system is not connected to the S5U1C33001H when the S5U1C33001H is turned on In this case this LED goes off by turning the target system on If the target system is not connected connect it to the S5U1C33001H after t...

Page 10: ... System Interface Connectors Side panel Left Target system interface connectors Target system power supply connector Figure 11 Target System Interface Connectors 10 pin target system interface connector The target system is connected using the 10 pin or 10 to 4 pin cable 30 pin target system interface connector The target system is connected using the 30 pin cable Note Use one connector only from ...

Page 11: ... Lines Connecting the USB Cable The connectors at each end of the USB cable are type A for the host computer and type B for the S5U1C33001H Turn on the S5U1C33001H power and connect the USB cable to the host computer The host computer will request that the USB driver be installed Use the procedure described in the next section to install the USB driver Note The USB driver is located in the directo...

Page 12: ...ow will be displayed 2 Install the USB driver by following the directions displayed by the wizard Specify C gnu33 utility drv_usb as the USB driver directory The device manager will be displayed as shown below when the USB driver has been installed correctly Note If the window above is not displayed correctly reinstall the USB driver ...

Page 13: ...al Power supply GND Debug status 1 signal Power supply GND Debug status 0 signal PC signal 10 pin connector 1 2 9 10 No 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Pin name GND DCLK GND DSIO GND DST2 GND DST1 GND DST0 GND DPCO GND DTS4 DTS3 I O I I O I I I I I I Pin function Power supply GND Clock for debugging Power supply GND Serial I O signal for debugging Power supply GND Debug status 2 signal Power s...

Page 14: ... a malfunction Furthermore do not use the 30 pin cable and 10 pin or 4 pin cable simultaneously Disable the trace function of the S5U1C33001H using DIP switch 4 in the following cases when using the 4 pin cable and connector when the signals DST0 DST1 DPCO necessary for tracing are not connected even if the 30 pin or 10 pin cable and connector is used when the trace function is not used due to som...

Page 15: ...01H and the target system is not functioning If the target system power is turned on after the S5U1C33001H is turned on After the S5U1C33001H power is turned on a forced break will be applied continuously to the target system After the target system is turned on the S1C33xxx chip is reset The S1C33xxx chip enters debug mode and starts communica tion with the S5U1C33001H If multiple power on reset ...

Page 16: ... is because this sequence reliably reproduces the conditions in the If the S5U1C33001H is turned on after the target system power is turned on item above If it is not possible to connect install a reset switch on the target system We recommend adding the reset switch at the system design stage RESET WRITE switch on the S5U1C33001H Besides turning power on and off the S5U1C33001H can be reset using...

Page 17: ...e target system if the input voltage of the TARGET_VCC pin goes to 0 V The TARGET_RESET signal changes according to the RESET WRITE switch operation When the RESET WRITE switch is off 3 3 V is output When the RESET WRITE switch is on 0 V is output When using the TARGET_RESET signal for resetting the target system a reset circuit as shown in the figure below is recommended S5U1C33001H TARGET_RESET ...

Page 18: ...tem debug function Therefore the target system must be connected to the S5U1C33001H although the target system is not actually used for the update 2 Connect the S5U1C33001H with the host computer using the USB cable 3 Invoke the debugger gdb exe To invoke at the command prompt start w gdb nw c33_no_ver To invoke from gwb33 Just click the GDB button with nothing selected 4 Enter the commands shown ...

Page 19: ...gger gdb exe starts up When the target system connection test is completed normally the following is displayed on the debugger screen Connecting with target done CPU type and debug unit address setting done Initializing done CPU type and debug unit address setting done CPU cold resetting done Target connection test done display when terminated normally ICD hardware version 30 omitted will appear i...

Page 20: ...ion STEP and NEXT refer to the Debugger section in the S5U1C33001C Manual C Compiler Package for S1C33 Family Break functions The S5U1C33001H and the debugger support multiple break functions The timing at which a break occurs is classified into the following two categories depending on the break function 1 Break functions that suspend the target program before the instruction in which the cause o...

Page 21: ... target program is suspended or being executed If the contents of area 2 are rewritten the S5U1C33001H will be unable to operate normally For details on the parameter file refer to the Debugger section in the S5U1C33001C Manual C Compiler Package for S1C33 Family Concurrent use of the S5U1C330M2S debug monitor The S5U1C330M2S cannot be used with the S5U1C33001H simultaneously for debugging the tar...

Page 22: ... the actual IC Register initialization When the actual IC is powered on the contents of all registers except the PC program counter and PSR processor status register are indeterminate and retain the immediately preceding values after a reset whereas in the S5U1C33001H all registers are initialized when the debugger on the host computer is invoked At this time the registers are initialized with the...

Page 23: ...series between the S1C33xxx chip DSIO pin and the connector This resistor must be placed as close to the S1C33xxx chip as possible If the reset line is not connected the system can be operated without this 33 Ω resistor However we recommend inserting this resistor to prevent malfunctions The other pins are connected directly The total length of the line must be under 5 cm Forcible breaks are appli...

Page 24: ...programmer enabled erase and write mode 5 Turn on the S5U1C33001H and target system and set the RESET WRITE switch to the ON position 6 The ERASE LED lights and the target system flash memory is erased The BUSY LED lights during the erase operation 7 The WRITE LED lights and data are written to the target system flash memory If the data being written is a small program this operation will complete...

Page 25: ...tion and operating procedures see the Debugger section in the S5U1C33001C Manual C Compiler Package for S1C33 Family Implementation of the Bus Trace Function The S1C33xxx bus trace function monitors the internal bus to obtain the bus address data bus master read write access size and access type instruction fetch cycle or data access cycle information when a read or write access is generated The s...

Page 26: ...r switch on the rear panel of the S5U1C33001H in the I position 2 Is the S5U1C33001H connected to the host computer correctly See the Connecting the S5U1C33001H and the Host Computer section in this manual and check to see if the target system is connected correctly 3 Was the debugger gdb exe restarted after resetting the S5U1C33001H while the debugger is running See Notes in the Start up Method P...

Page 27: ... V to 240 V AC 50 Hz 60 Hz 10 W max 2 m S5U1C33001H side Standard B type Host PC side Standard A type 1 8 m Bipolar with ground Approx 15 cm 30 pin L angle SL01 30L3 KEL 10 pin straight J3654 6002SC 3M 10 pin L angle J3654 5002SC 3M 4 pin straight HKP04M5S Honda 4 pin L angle HKP04M5LS Honda Approx 15 cm 6 pin L angle IL 6P S3FP2 JAE Remarks Rubber feet included Shielded cable OPERATING ENVIRONMEN...

Page 28: ...otherwise and there is no representation or warranty that anything made in accordance with this material will be free from any patent or copyright infringement of a third party This material or portions thereof may contain technology or the subject relating to strategic products under the control of the Foreign Exchange and Foreign Trade Law of Japan and may require an export license from the Mini...

Reviews: