S1C33 Family In-Circuit Debugger S5U1C33001H1400 MANUAL
Evaluation board/kit and Development tool important notice 1. This evaluation board/kit or development tool is designed for use for engineering evaluation, demonstration, or development purposes only. Do not use it for other purpose. It is not intended to meet the requirement of design for finished product. 2. This evaluation board/kit or development tool is intended for use by an electronics engineer, and it is not the product for consumer. The user should use this goods properly and safely.
Table of Contents 1. GLOSSARY........................................................................................................................................ 1 2. OVERVIEW......................................................................................................................................... 2 2.1 Features...................................................................................................................................... 3 2.2 Operating environment ...............
7.2 Invoking ICD mode ................................................................................................................... 26 7.3 Debugger start-up ..................................................................................................................... 27 7.4 Connection test......................................................................................................................... 27 8. FLASH PROGRAMMER MODE .....................................................
10.3.4 Operation of the S5U1C33001H system ......................................................................... 38 10.3.5 Wiring between the S1C33xxx chip and target connector ............................................... 39 10.3.6 Reset request .................................................................................................................. 39 10.3.7 Notes on target system power supply.............................................................................. 39 10.3.
1. GLOSSARY 1. GLOSSARY S5U1C33001H1400 (ICD33V6.0) ICD mode Flash programmer mode This mode is used to debug the target system. Debugging requires both a PC and the debugger (gdb. exe included in the S5U1C33001C: C Compiler Package for S1C33 Family). This mode is used to write programs to the target system without a PC. Before writing a program to the target system, you must load the program to the S5U1C33001H1400 (ICD33V6.0) in ICD mode. Debugger, gdb.
2. OVERVIEW 2. OVERVIEW The S5U1C33001H1400 (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 S5U1C33001H1400. For details on the debugger (gdb.
2. OVERVIEW 2.1 Features • C33 cores supported C33 STD core C33 Mini core C33 PE core C33 ADV core • Interface with the host PC USB 1.1 • Maximum data download speed About 65KB/s (Approx.
2. OVERVIEW • Power supply for flash programmer Provided (fixed at 7.0 V) • Reset signal output to target system Provided • Supported system I/O voltage 3.3 V, 1.8 V, input voltage (1.0 to 5.0 V) from target system • Connector for target system connection 4-pin, 10-pin, 30-pin *2 • Connector for flash programmer power supply 4-pin *1 Frequency when I/O voltage = 3.3 V.
2. OVERVIEW Table 1 Model Function ICD models and differences S5U1C33001H S5U1C33000H Ver. 3.0 Ver. 4.0 Ver. 4.1 Ver. 6.0 C33 cores supported C33 STD core C33 Mini core C33 STD core C33 Mini core C33 PE core *5 C33 STD core C33 Mini core C33 PE core C33 ADV core C33 STD core C33 Mini core C33 PE core C33 ADV core Interface with the host PC Serial and parallel I/F USB 1.1 USB 1.1 USB 1.1 Data download speed (maximum rate: DCLK = 40 MHz) Serial I/F: Approx. 8KB/s Parallel I/F: Approx.
2. OVERVIEW *3 *4 *5 *6 Supports 32 kHz by firmware update. Available only when the S1C33 model that supports the user logic signal trace function is used. Supports by firmware update. The product does not include a 30-pin cable for connecting to target systems or a connector for this cable. Please contact us if you need a 30-pin cable.
3. COMPONENTS INCLUDED WITH PACKAGE 3. COMPONENTS INCLUDED WITH PACKAGE The following shows the components included with the package: (1) S5U1C33001H1400 (main unit) .................................................................................................................1 (2) USB cable (mini B).....................................................................................................................................1 (3) Target system interface cable (10-4 pin).............................
3. COMPONENTS INCLUDED WITH PACKAGE Fig. 2 8 Package components EPSON S1C33 Family In-Circuit Debugger S5U1C33001H1400 Manual (Rev. 0.
4. NAME AND FUNCTION OF EACH PART 4. NAME AND FUNCTION OF EACH PART The following shows an external view of the S5U1C33001H1400’s operating section and the name of each part. 4.1 Left-side panel Fig. 3 4.1.1 Left-side panel 10-pin connector for connecting to target systems This connector is used to connect to the target system using a 10-pin cable or 10-pin-4-pin cable. 4.1.
4. NAME AND FUNCTION OF EACH PART 4.1.4 Regarding the monitor pins • GND pin (black (left side in the above diagram)) To monitor the signals output from the above pins, connect the GND of a measuring instrument such as an oscilloscope to this pin. If the ground level between the S5U1C33001H and the target system is unstable (particularly when the 4-pin cable is used), this pin can be used to stabilize the ground level.
4. NAME AND FUNCTION OF EACH PART Fig. 4 Examples of TRG OUT output timing • EMUOUT pin (green) 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. • TRCFULL pin (blue (right side in the above diagram)) This is the trace full state output pin.
4. NAME AND FUNCTION OF EACH PART 4.2 Right-side panel Fig. 5 4.2.1 Right-side panel DIP switch Note: After operating the DIP switches, press the RESET/START switch to apply the settings.
4. NAME AND FUNCTION OF EACH PART • Selecting DSIO signal (SW4, SW5) Table 3-3 SW4 DIP SW4 and SW5 settings SW5 Setting OPEN OPEN 3.3 V (default) OPEN ON 1.8 V ON OPEN Target system input voltage (1.0 to 5.0 V) ON ON Target system input voltage (1.0 to 5.0 V) Target system operating voltage applied to Pin No. 4 of the connector for flash programmer power supply.
4. NAME AND FUNCTION OF EACH PART • Selecting trace (SW9) Table 3-7 DIP SW9 setting SW9 Setting OPEN Trace disabled ON Trace enabled • Option setting (SW10) Table 3-8 DIP SW10 setting SW10 Setting OPEN Unused ON Unused 4.2.2 RESET/START switch < In ICD mode > Pressing the RESET/START switch restarts the firmware and establishes an initial connection with the target S1C processor. If the target board is not connected, the firmware awaits the initial connection.
4. NAME AND FUNCTION OF EACH PART 4.3 Top panel Fig. 6 Top panel LED1 through LED4 The four LEDs on the top panel show the debugging or flash programming status of LED1 through LED4 on the front panel. The information provided by these LEDs in ICD mode and flash programmer mode differs. < In ICD mode > LED1 (CPU) This LED indicates the target CPU selected by the DIP SW1.
4. NAME AND FUNCTION OF EACH PART LED3 (EMU) If ICD mode is selected (DIP SW2 and SW3 set to OPEN), this LED emits a constant red light when the debugger issues a command to execute the target program, indicating that the target system is executing the target program. It also lights up when power for the target system is turned off or no target system is connected.
4. NAME AND FUNCTION OF EACH PART LED3 (WRITE) This LED indicates the flash memory write condition. (Purple) Flash memory write is selected (Purple, flashing) Flash memory is being written (Green) Flash memory write has been successfully completed (OK) (Red) Flash memory write error (ERR) LED3 (VERIFY) This LED indicates the flash memory verify condition.
5. CONNECTION 5. CONNECTION 5.1 Connecting the S5U1C33001H1400 and the host computer 5.1.1 Connecting the USB Cable The connectors at each end of the USB cable are type A (for the host computer) and Mini B type (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.
5. CONNECTION 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. S1C33 Family In-Circuit Debugger S5U1C33001H1400 Manual (Rev. 0.
5. CONNECTION 5.2 Connecting the target system Connect the target system, using the 10-pin or 4-pin cable provided with the S5U1C33001H or a 30-pin cable.(*1) Use the 10-pin-type/4-pin-type connector provided with the S5U1C33001H, a 30-pin connector[*1], or equivalent on the target system side. See the tables below for pin configurations for connectors on the target side. For each signal pin number of the S1C33xxx chip, refer to the “S1C33xxx Technical Manual” of the specific model.
5. CONNECTION 30-pin connector No. Pin name I/O Pin function No.
5. CONNECTION 5.3 Connector for flash programmer power supply This connector is used to output reset signals to the target system, to output voltage for flash programming, and to input target interface voltage. Debugging is possible without connecting these signals. If necessary, use the cable for flash programmer power supply provided with the S5U1C33001H to connect the target system. The pin assignment of the 4-pin connector (white) of the S5U1C33001H is shown in the table below.
5. CONNECTION 5.3.3 Flash programming voltage output (FLASH VCC OUT) Some target S1C processors have internal flash memory that can supply the voltage (7 V) necessary for flash programming from the S5U1C33001H. The maximum current that can be provided in this way is 200 mA. To use this output, set the DIP SW8 to ON and connect the power supply from the target system to the FLASH VCC OUT pin.
6. START-UP METHOD (POWER-ON SEQUENCE) 6. START-UP METHOD (POWER-ON SEQUENCE) To start up the S5U1C33001H system, follow the sequence described below: (1) Connect the S5U1C33001H to the host computer using the USB cable. The LED1, LED2, and LED3 operate as follows: LED1 (Green, ON) * In the case of C33 LED2 (Red, ON) LED3 (OFF) (2) Turn the target system on.
6. START-UP METHOD (POWER-ON SEQUENCE) communication between the S5U1C33001H and the target system may be disconnected after the second reset. Design the target system so that switch bounce does not occur and the system starts up only once. Furthermore, if the reset is applied with either the power or the oscillator in an unstable state (for example, if the reset is applied within the first few ms after the power is turned on), the S1C33xxx chip operation will also be unstable.
7. ICD MODE 7. ICD MODE ICD mode is used to debug the target system by connecting the debugger (dbg.exe) on the PC to the target system. Described below are the settings for launching the S5U1C33001H in ICD mode and corresponding procedures. 7.1 ICD mode setting To launch the S5U1C33001H in ICD mode, set the DIP switches as follows: SW2 = OPEN SW3 = OPEN 7.2 Invoking ICD mode After Connecting the target system to the host computer, start the S5U1C33001H as described below.
7. ICD MODE < When TARGET RST_OUT signal is connected > If the TARGET RST OUT signal is connected to reset the target system, the S5U1C33001H automatically generates signals according to the connection procedure. You need only to press the S5U1C33001H RESET/START switch to start the S5U1C33001H. (1) Press the S5U1C33001H RESET/START switch.
8. FLASH PROGRAMMER MODE 8. FLASH PROGRAMMER MODE Flash programmer mode lets the S5U1C33001H function as a flash programmer. Described below are preparations for starting up the S5U1C33001H in flash programmer mode and associated procedures. 8.1 Preparing for flash programming The S5U1C33001H can write data, such as a program downloaded to internal flash memory, directly to the flash memory of the target system.
8. FLASH PROGRAMMER MODE (6) Use the c33 fwld (or c33 fwdc) command to download the data to be written to the target system flash memory to the S5U1C33001H. At the same time, set the erase area in flash memory. Example: Erasing all sectors and downloading sample.saf to flash memory (when flash start address is 0x600000) (gdb) c33 fwld sample.saf 0 0 0x600000 (7) End the debugger. For an in depth discussion of the debugger (dbg.exe) and objcopy.
8. FLASH PROGRAMMER MODE (3) Connect the target system to the S5U1C33001H for flash programming. (4) Press the RESET/START switch. The S5U1C33001H executes the selected flash operation. The operation currently underway is indicated by the flashing LED.
9. FIRMWARE UPDATE PROCEDURE 9. FIRMWARE UPDATE PROCEDURE The S5U1C33001H has a firmware update function using the debugger (gdb.exe). The following show the procedure to update the S5U1C33001H firmware. Note: Before the firmware can be updated, the USB driver must be installed. (1) Connect the S5U1C33001H with the host computer using the USB cable. (2) Set the S5U1C33001H DIP switches as shown below and press the RESET/START switch. SW2 = OPEN SW3 = OPEN SW7 = ON (3) Invoke the debugger (gdb.
10. PRECAUTIONS 10. PRECAUTIONS 10.1 Restrictions on debugging The debugging using the S5U1C33001H is subject to the restrictions specified below. 10.1.1 Operation of the internal peripheral circuits The peripheral circuits of the S1C33xxx stop operating when the debugger (gdb.exe) on the host computer is ready to accept commands, that is, unless the target program is running. For this reason, the peripheral circuits do not operate in real time when the target program is executed in the single-step mode.
10. PRECAUTIONS (2) Break functions that suspend the target program after several instructions are executed from the instruction in which the cause of the break occurred Data break, area break, bus break For details on break functions, refer to the “Debugger” section in the “S5U1C33001C Manual (C Compiler Package for S1C33 Family)”. 10.1.5 Trace function Note that the trace function in the S5U1C33001H has the following restrictions.
10. PRECAUTIONS 10.1.7 Reserved areas in the internal peripheral circuits (C33 STD/Mini core) When reserved areas in the internal peripheral circuits are displayed using the S5U1C33001H’s data display function, note that, depending on the type of microcomputer, the last value read by the C33 core that is held in the bus latch circuit inside the chip may be displayed. 10.1.
10. PRECAUTIONS 10.1.11 Reset sequence The sequence from when the S5U1C33001H is powered on until the execution of the target program is executed is entirely different from that of the actual S1C33xxx chip. However, a sequence for the reset requests input from the target system while the target program is being executed is the same as that for the actual S1C33xxx chip. Regarding the reset sequence in the actual S1C33xxx chip, refer to the “S1C33xxx Technical Manual”. 10.1.
10. PRECAUTIONS 10.1.15 Models with cache memory embedded The debugging operations performed while program execution is suspended rewrite the contents of the cache memory. Furthermore, the software PC break function cannot be used when the cache is used under conditions other than that listed in the table below. Use the hardware break function in such cases.
10. PRECAUTIONS 10.2 Differences from the actual IC The S5U1C33001H is different from the actual IC in the way specified below. If this difference is not taken into consideration in an application, the program may not operate normally in the actual IC. 10.2.
10. PRECAUTIONS 10.3 Usage precautions 10.3.1 Connecting and disconnecting equipment Before attaching or removing the target system and cables, and setting the DIP switch and jumper, be sure to turn off the power to the host computer, S5U1C33001H, and target system. Failure to take this precaution may result in equipment malfunction. 10.3.2 Powering on/off After turning off the power to the S5U1C33001H, wait at least 10 seconds before turning the power on again.
10. PRECAUTIONS 10.3.5 Wiring between the S1C33xxx chip and target connector When wiring the S1C33xxx chip to the target connector for connecting the S5U1C33001H, insert a 33 Ω resistor in 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.
10. PRECAUTIONS 10.3.8 Notes on S5U1C33001H power supply When using the S5U1C33001H, install circuit breakers that automatically disconnect both conductors in the local power mains, and connect the S5U1C33001H power supply line to a power line protected in that manner. 10.3.9 Core Sync Simple Logic Analyzer Function This function allows tracing of up to 14 arbitrary signals in the same cycles as the core clock. The traced information can be displayed with the core status.
10. PRECAUTIONS 10.4 Implementation of the PC trace function The PC trace function is implemented by a method that allows the debugger (gdb.exe) to analyze the target program flow using the information delivered on the DST0, DST1, DST2 and DPCO signals output from the S1C33xxx chip, and the target program information loaded into the debugger. The debugger obtains the absolute addresses information required for analyzing the target program flow from the following status.
11. TROUBLESHOOTING 11. TROUBLESHOOTING The following shows the problems attributable to the hardware: Table 9 Troubleshooting Symptom Cause/remedy After power is supplied to the S5U1C33001H via USB, the LED2 (EMU) does not change to ICD mode (blue). (1) Does the LED2 (EMU) remain lit in yellow? → See the “Connecting the S5U1C33001H and the host computer” section in this manual. Install the USB driver.
12. SPECIFICATIONS 12. SPECIFICATIONS Table 10 Components Specifications Items S5U1C33001H USB cable Specifications Dimensions 114 mm (W) x 120 mm (L) x 33 mm (H) Input voltage 5 V DC Power consumption 2.5 W, max. Length 1.6 m Connectors S5U1C33001H side: Mini-B type Host PC side: Standard-A type Target system interface cable (4-pin) Length Approx. 15 cm Target system interface cable (10-pin) Length Approx. 15 cm Flash programmer power supply cable (4-pin) Length Approx.
International Sales Operations AMERICA ASIA 214 Devcon Drive, San Jose, CA 95112, USA Phone: +1-800-228-3964 7F, Jinbao Bldg., No.89 Jinbao St., Dongcheng District, Beijing 100005, CHINA Phone: +86-10-8522-1199 FAX: +86-10-8522-1125 EPSON ELECTRONICS AMERICA, INC. FAX: +1-408-922-0238 EPSON (CHINA) CO., LTD. SHANGHAI BRANCH EUROPE EPSON EUROPE ELECTRONICS GmbH Riesstrasse 15, 80992 Munich, GERMANY Phone: +49-89-14005-0 FAX: +49-89-14005-110 7F, Block B, Hi-Tech Bldg.
S5U1C33001H1400 MANUAL Document code: 411437800a First Issue: May, 2008 C Reviced: December, 2012 in JAPAN
Mouser Electronics Authorized Distributor Click to View Pricing, Inventory, Delivery & Lifecycle Information: Epson: S5U1C33001H1400