background image

MANUAL

S5U1C33001H1400

S1C33 Family In-Circuit Debugger

Summary of Contents for S5U1C33001H1400

Page 1: ...MANUAL S5U1C33001H1400 S1C33 Family In Circuit Debugger ...

Page 2: ...out notice Seiko Epson does not assume any liability of any kind arising out of any inaccuracies contained in this material or due to its application or use in any product or circuit and further there is no representation that this material is applicable to products requiring high level reliability such as medical products Moreover no license to any intellectual property rights is granted by impli...

Page 3: ... supply 9 4 1 4 Regarding the monitor pins 10 4 2 Right side panel 12 4 2 1 DIP switch 12 4 2 2 RESET START switch 14 4 2 3 USB connector 14 4 3 Top panel 15 5 CONNECTION 18 5 1 Connecting the S5U1C33001H1400 and the host computer 18 5 1 1 Connecting the USB Cable 18 5 1 2 USB Driver Installation Procedure 18 5 2 Connecting the target system 20 5 3 Connector for flash programmer power supply 22 5 ...

Page 4: ...5 Trace function 33 10 1 6 Counts of the execution counter 33 10 1 7 Reserved areas in the internal peripheral circuits C33 STD Mini core 34 10 1 8 Operating clock of the S5U1C33001H C33 STD Mini core 34 10 1 9 Area 2 of S1C33xxx C33 STD Mini ADV core 34 10 1 10 Concurrent use of the S5U1C330M2S debug monitor 34 10 1 11 Reset sequence 35 10 1 12 Break functions when a reset request is accepted 35 ...

Page 5: ...he S1C33xxx chip and target connector 39 10 3 6 Reset request 39 10 3 7 Notes on target system power supply 39 10 3 8 Notes on S5U1C33001H power supply 40 10 3 9 Core Sync Simple Logic Analyzer Function 40 10 4 Implementation of the PC trace function 41 10 5 Implementation of the bus trace function 41 11 TROUBLESHOOTING 42 12 SPECIFICATIONS 43 ...

Page 6: ...r this mode cannot execute ICD dependent functions This mode performs debugging using the S5U1C33001H1400 ICD33V6 0 or ICD board The program is executed on the target board To debug these products use this debugger in ICD6 mode Target S1C33xxx Normal mode Debug mode Ordinary mode in which the target system executes a user program The mode changes to debug mode under the following conditions When t...

Page 7: ... section in the S5U1C33001C Manual C Compiler Package for S1C33 Family The figure below shows an external view of the S5U1C33001H Fig 1 S5U1C33001H1400 external view Note Do not open the case as it may cause a malfunction Precautions before using the S5U1C33001H1400 Please read the sections shown below before getting started with the S5U1C33001H1400 These sections especially 2 and 3 describe the a...

Page 8: ... Trace function Normal PC trace function normal bus trace function 1 Mclk after a go command or 1 Mclk before a break command can be traced Allows selection of logical or physical address for bus trace Area PC trace function area bus trace function Trace of area between trace trigger 1 and trace trigger 2 only 1 Mclk can be traced Allows selection of logical or physical address for bus trace Bus b...

Page 9: ... 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 The upper limit frequency may be lower than the specification value in certain cases depending on ambient noise temperature conditions product variations etc 2 The product package does not include a 30 pin cable connector Ple...

Page 10: ...e Available Mode supported by debugger ICD2 mode ICD3 mode ICD3 mode ICD6 mode Bus trace function Available Available 6 Bus break trigger trace function Available Available 6 TRC IN pin input signal trace function Available Available User logic signal trace function 4 Available Available Target reset signal output Available Available Target system I O interface voltage 3 3 V 3 3 V 3 3 V and 1 8 V ...

Page 11: ...am is being executed Core clock Core clock Core clock PC trace method Level 1 Level 1 Level 2 Switching the DCLK core clock ratio DCLK while the program is halted Address setup for the debug unit Area break function Bus break function Bus break trigger trace function TRC IN pin input signal trace function User logic signal trace function 7 Use of MMU in debug mode 7 Available only in S1C33 models ...

Page 12: ...em interface connectors 4 pin 1 8 Target system power supply connectors 4 pin 1 9 User registration card English Japanese 1 each 10 Warranty card English Japanese 1 each 11 Usage precautions English Japanese 1 each 12 Manual download guide English Japanese 1 each The items specified below are not included with the package These items must be prepared separately 13 S5U1C33001H1400 User Manual ICD33...

Page 13: ...3 COMPONENTS INCLUDED WITH PACKAGE 8 EPSON S1C33 Family In Circuit Debugger S5U1C33001H1400 Manual Rev 0 20 Fig 2 Package components ...

Page 14: ...y be used at any given time 4 1 3 4 pin connector for flash programmer power supply This connector is used to output a reset signal to the target system or to supply power note for flash programming When the interface for debug signals requires a voltage level for the target system this connector is used to input the operating voltage from the target system For information on the connector pin con...

Page 15: ...n executed TRC IN pin white This pin inputs an external trace signal The input signal can also be traced when the bus trace is performed TRG OUT pin light blue The TRG OUT pin outputs trace trigger signals indicating the start and end of the trace To perform an area trace with the S5U1C33001H set two trigger points the start address and end address of the trace area When the execution address of t...

Page 16: ...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 This pin outputs a high level when the trace memory becomes full ...

Page 17: ...P SW1 setting SW1 Setting OPEN C33 ON C17 Not supported Selecting ICD mode flash programmer mode SW2 SW3 Table 3 2 DIP SW2 and SW3 settings SW2 SW3 Setting OPEN OPEN ICD mode ON OPEN Flash programmer mode Erase Write OPEN ON Flash programmer mode Verify ON ON Flash mode Erase Write Verify ICD mode Mode for executing the debug command from the debugger in a PC see the relevant section Flash program...

Page 18: ...r invocation Selecting firmware update mode SW7 Table 3 5 DIP SW7 setting SW7 Setting OPEN Off default ON On Turning this DIP switch ON enables connections between the S5U1C33001H and debugger without a target system For a discussion of how to update the firmware refer to Firmware Update Selecting flash programming voltage output SW8 Table 3 6 DIP SW8 setting SW8 Setting OPEN Off ON On Note The S5...

Page 19: ...1H reaches the target board a reset signal is also output In flash programmer mode Pressing the RESET START switch invokes the selected flash operation function erase write verify If the LED indicates OK ERR the state immediately before the execution of the function will be restored Note After operating the DIP switches press the RESET START switch to apply the settings in ICD mode or flash progra...

Page 20: ...rget CPU selected by the DIP SW1 Green C33 Product incorporating S1C33xxx or S1C33 core Blue C17 Product incorporating S1C17xxx or S1C17 core not supported at this time LED2 ICD MODE This LED emits a constant red light if the target system is not connected and flashes red if a proper connection cannot be achieved with the target system The LED signals continuous blue if ICD mode is selected DIP SW...

Page 21: ...ing a user program Green Target S1C processor is in debug mode OFF Other LED4 TRC This LED will emit a constant light blue light when ICD mode is selected DIP SW2 and SW3 set to OPEN OFF Trace OFF Light blue Trace ON Yellow Trace ON memory full Note With firmware Ver 1 0 this LED will emit a constant light blue light even when the trace function is disabled This issue is scheduled to be corrected ...

Page 22: ... 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 Yellow Flash memory verify is selected Yellow flashing Flash memory is being verified Green Flash memory verify has been successfully completed OK Red Flash memory verify error ERR ...

Page 23: ... is located in the directory in which the S5U1C33001C S1C33 Family C Compiler Package is installed C EPSON gnu33 utility drv_usb Icd33v60 Fig 7 Connecting the USB cable 5 1 2 USB Driver Installation Procedure 1 When the USB cable is first connected to the host computer the hardware wizard will be displayed 2 Install the USB driver by following the directions displayed by the wizard Specify C EPSON...

Page 24: ...rcuit Debugger EPSON 19 S5U1C33001H1400 Manual Rev 0 20 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 25: ...fic model 1 The product package does not include a 30 pin cable or the corresponding connector Please contact us if you need this cable or the corresponding connector Fig 8 Connecting the target system Table 4 Pin assignment of target connectors 10 pin connector 4 pin connector No Pin name I O Pin function No Pin name I O Pin function 1 DCLK I Clock for debugging 1 DCLK I Clock for debugging 2 GND...

Page 26: ... must be mounted within 5 cm from the S1C33xxx If there is more distance between the connector and the S1C33xxx chip the S5U1C33001H may not work properly A 33 Ω resistor must be connected in series to the DSIO signal line between the connector and the S1C33xxx chip The resistor should be placed as close to the S1C33xxx as possible Be sure to use the supplied 10 pin or 4 pin or 30 pin cable for Co...

Page 27: ...ing voltage output 2 GND Power supply GND 3 TARGET RST OUT O Target system reset signal output 4 TARGET VCC IN I Target system voltage input Note the sequence of Pin Nos This sequence is reversed in the connector for connecting to target systems 5 3 1 Target system reset signal output TARGET RST OUT Pressing the RESET START switch outputs a reset signal from the TARGET RST OUT pin to the target sy...

Page 28: ...s 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 Note that setting the DIPS SW8 to ON results in a constant output of 7 V from the FLASH VCC OUT pin regardless of the operation of the RESET START switch Note Refer to the relevant technical manual to determine if the target S1C processor can use this output To prevent ove...

Page 29: ...et system is in indeterminate operation or in runaway status If the debugger gdb exe is terminated after the S5U1C33001H is turned off the debugger may not work properly with Cannot open ICD33 usb driver displayed on the screen when it is re invoked In this case turn on or reset the S5U1C33001H after terminating the debugger gdb exe once and then re invoke the debugger For details on how to invoke...

Page 30: ... communication with the S5U1C33001H If a boot program was not loaded into ROM the S1C33xxx chip cannot respond to the forced break since the S1C33xxx chip is in the runaway state so communication is impossible Load a boot program that operates correctly into boot ROM so that the target system will not be in the runaway state If the initial connection operation fails In this case add a reset switch...

Page 31: ...01H by a different procedure may not result in a successful connection When TARGET RST_OUT signal is not connected If the TARGET RST OUT signal is not connected to reset the target system follow the start up procedure described below 1 Press the S5U1C33001H RESET START switch LED1 Green ON In the case of C33 LED2 Red flashing LED3 OFF LED4 OFF 2 Press the target system RESET switch LED1 Green ON I...

Page 32: ... and the target S1C processor run the debugger gdb exe on the PC To connect to the S5U1C33001H and start debugging you must specify ICD mode using the target command gdb target icd6 usb For a discussion of the debug command and how to use the debugger refer to the S5U1C33001C Manual C Compiler Package for S1C33 Family Note Close the debugger before disconnecting the S5U1C33001H from the host compu...

Page 33: ... S3 file Use objcopy exe included in the C Compiler Package for S1C33 Family to perform this file conversion Example 1 Converting sample elf to Motorola S3 file objcopy O srec R gbss srec forceS3 sample elf sample sa 2 Fill the empty addresses in sample sa with 0xff and produce sample saf When the fill start address is 0x600000 and the target block size is 0x1000 moto2ff 0x600000 1000 sample sa 2 ...

Page 34: ...flash erase and write only verify only or erase write verify Table 6 DIP switch settings in flash programmer mode SW2 SW3 Setting OPEN OPEN ICD mode default ON OPEN Flash programmer mode Erase Write OPEN ON Flash programmer mode Verify ON ON Flash programmer mode Erase Write Verify 2 If the DIP switch settings were changed while power was being supplied via USB press the RESET START switch to set ...

Page 35: ...shing 5 After the flash operation is completed the following LED lights up to indicate successful completion of the operation or the generation of an error Operation completed successfully Erase completed Write completed Verify completed z ERASE Green z WRITE Green z VERIFY Green Error generated Erase error Write error Verify error z ERASE Red z WRITE Red z VERIFY Red 6 Disconnect the target syste...

Page 36: ...ches as shown below and press the RESET START switch SW2 OPEN SW3 OPEN SW7 ON 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 below after the debugger starts up gdb target icd6 usb gdb c33 firmupdate icd33dmt sa 5 The ukpdate operation has completed when LEDs ligh...

Page 37: ...et program be executed 10 1 3 Interrupts when the target program is executed in a single step If an interrupt request to the C33 core is generated by the target system during single step execution of the target program including functions and subroutines STEP the interrupt request is paused During single step execution of the target program not including functions and subroutines NEXT an interrupt...

Page 38: ...tch For enabling disabling the trace function using the DIP switch refer to Trace function setting in the DIP Switches section 3 There are certain functional limitations to the PC trace function that are due to the analysis procedure being implemented in software Refer to Implementation of the PC Trace Function section and the S5U1C33001C Manual C Compiler Package for S1C33 Family for more informa...

Page 39: ... execution of the target program is suspended 10 1 9 Area 2 of S1C33xxx C33 STD Mini ADV core Area 2 of the S1C33xxx 0x0060000 to 0x007FFFF is reserved as a dedicated area for the programs that operate the S5U1C33001H Therefore no device can be mapped to this area using a parameter file and data cannot be written to this area when the target program is suspended or being executed If the contents o...

Page 40: ...m is being executed the hardware PC break and data break functions are disabled until execution of the target program is suspended In the case of a hot reset request there is no such restriction 10 1 13 I O memory dump by the S5U1C33001H Note that some S1C33xxx peripheral circuits may change the control register status due to their specifications when the I O memory is read using the memory dump f...

Page 41: ... in the table below Use the hardware break function in such cases Table 8 Cache usage conditions to use software PC break Instruction cache Data cache 1 OFF OFF 2 ON ON 3 OFF ON write through mode only 10 1 16 Models with MMU embedded The debugging operations performed while program execution is suspended access physical addresses in the default setting Although there are some restrictions it can ...

Page 42: ... low registers 0xAAAAAAAA R0 through R15 general purpose registers 0xAAAAAAAA For C33 STD Mini and PE cores PC program counter 0x00C00000 Note SP stack pointer 0x0AAAAAA8 For C33 ADV core PC program counter 0x20000000 Note LCO loop count register 0x00000000 LSA loop start address register 0x00000000 LEA loop end address register 0x00000000 SOR shift out register 0x00000000 TTBR trap table base reg...

Page 43: ... system The signals connected to the S5U1C33001H are very high speed signals so the target connector must be mounted within 5 cm from the S1C33xxx If there is more distance between the connector and the S1C33xxx chip the S5U1C33001H may not work properly Furthermore be sure to use one of the supplied 10 pin and 4 pin cables or 30 pin cables for connecting the target system to the S5U1C33001H Using...

Page 44: ...d up through an about 100 kΩ internally when not debugging we recommend either removing the 33 Ω resistor to reduce noise and other problems or pulling this line up to the VDD level the core voltage Fig 11 Wiring between S1C33xxx and target connector 10 3 6 Reset request Do not reset the target system while the target program execution is suspended as the S5U1C33001H will be unable to operate norm...

Page 45: ...the board may be traced Before internal signals can be traced when using an FPGA for development they should be output from the unused pins A 30 pin cable 1 is used for tracing The signals to be traced must be output from DTD7 through DTD0 DTS4 through DTS0 or DBT of the provided 30 pin connector Use a connector conversion board such as the CK 4 manufactured by Sunhayato Corp to attach the 0 5 mm ...

Page 46: ...n For details on the PC trace function and operating procedures see the Debugger section in the S5U1C33001C Manual C Compiler Package for S1C33 Family 10 5 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 ...

Page 47: ...age will appear suddenly when the target program is executed using the debugger gdb exe in the host computer Break by external break Program received signal SIGINT Interrupt This problem can be generated when low noise enters the DSIO signal of the target system or the BRK IN pin changes to GND level 1 Is the target system connected with the provided cable Is the provided cable connected without u...

Page 48: ... interface cable 10 pin Length Approx 15 cm Flash programmer power supply cable 4 pin Length Approx 15 cm Table 11 Connectors recommended for target system Components Items Specifications Remarks Target system interface cable 4 pin Connectors 4 pin straight HKP04M5S manufactured by Honda Tsushin 4 pin low angle HKP04M5LS manufactured by Honda Tsushin Target system interface cable 10 pin Connectors...

Page 49: ...uth 12th Road Hi Tech Park Shenzhen 518057 CHINA Phone 86 755 2699 3828 FAX 86 755 2699 3838 EPSON HONG KONG LTD Unit 715 723 7 F Trade Square 681 Cheung Sha Wan Road Kowloon Hong Kong Phone 852 2585 4600 FAX 852 2827 4346 EPSON TAIWAN TECHNOLOGY TRADING LTD 14F No 7 Song Ren Road Taipei 110 TAIWAN Phone 886 2 8786 6688 FAX 886 2 8786 6660 EPSON SINGAPORE PTE LTD 1 HarbourFront Place 03 02 Harbour...

Page 50: ...MANUAL S5U1C33001H1400 Document code 411437800a First Issue May 2008 C Reviced December 2012 in JAPAN ...

Page 51: ...Mouser Electronics Authorized Distributor Click to View Pricing Inventory Delivery Lifecycle Information Epson S5U1C33001H1400 ...

Reviews: