S5U1C17001H for Firmware Update History Dec.20.2013 Copyright (C) SEIKO EPSON CORP. 2013 Contents ================ 1) Update history of the firmware S5U1C17001H 2) Difference with the manual 3) Revision history ================ 1) Update history of the firmware S5U1C17001H [The firmware version S5U1C17001H for S1C17] The differences between firmware versions of S5U1C17001H are as follows. ## Changes in V1.1 (V1.0 -> V1.1) * We modified the problem that may cause hang-up of the debugger when it writes data in the flash memory. We modified the problem that may cause hang-up of the debugger when it writes data in the flash memory using S5U1C17001H and the size of the section to be written was 1. * We modified the problem that doesn't allow us to perform only verifying in the flash writer mode. We modified the problem that generates an error (LED4: red) when we perform only veryfying (SW2:OPEN/SW3:ON) in the flash writer mode. * Speeding up of executing the Flash writer We changed the writing method in the flash writer mode and sped it up than ever. Note) FLS program for the conventional flash writer is not available (such as fwr17701.saf). Convert the normal FLS program (fls17701.elf) to the Motorola format before using it. * We added an initial connection waiting when we start a flash writer mode. We made a change so that the target connection status is indicated by LED when we start the flash writer. LED3(red) and LED4(green) light up like an ICD mode until connection with the target is established. * We changed reset operation in the flash writer mode. We changed the reset operation with the switch when the flash writer terminates from hardware reset to software reset taking continuous writing into consideration. Pressing the switch resets the hardware when the flash writer is running. * We changed the LED blinking interval during operation of the flash writer. We modified the LED blinking interval during operation of the flash writer so that it may not depend on the operating speed of CPU. * We modified the target reset problem at startup. We modified the failure problem of target reset executed to run S5U1C17001H if the operating speed of CPU is slow when you connect 4-pin extension connector of S5U1C17001H. ## Changes in V1.2 (V1.1 -> V1.2) * The operation of the Verify was sped up in the flash writer mode. * The BRK IN pin in S5U1C17001H was supported to control flash writer in flash writer mode. * GangWriter function was supported. USB firmware was modified for the support of LabVIEW. ## Changes in V1.3 (V1.2 -> V1.3) * The firmware boot-up sequence was changed. Target connection check was removed in boot-up sequence of ICD mode. The S5U1C17001H and the target can be connected regardless of the target state. ## Changes in V1.4 (V1.3 -> V1.4) * The TARGET RESET sequence was changed. Removed target mode check before reset target. The target can be resetted regardless of the target state. ## Changes in V1.5 (V1.4 -> V1.5) * Flash programmer mode supported to erase the protected internal FLASH. Reset signal is outputed from [target rst out] pin after flash erase. To erase and write new date to the protected internal FLASH, [target rst out] signal must be connected to reset signal of target. * The low signal of RESET was extended for absolute reset. ## Changes in V2.2 (V1.5 -> V2.2) * We resolved the problem to recognize S5U1C17001H normaly, when the PC connected to S5U1C17001H two or more. * We changed the way for operation to start up the ICD mode on S5U1C17001H to same with v1.1. (the 1.3's operation had been changed.) ## Changes in V2.9 (V2.2 -> V2.9) * The hardware version of S5U1C17001H changed from 1.1 into 2.0. * This firmware was corresponded to the hardware version 2.0 of S5U1C17001H. (This firmware is only for the hardware version 2.0 of S5U1C17001H. ) * It became possible to supply flash programming power 7.0V by turning on SW8 of S5U1C17001H. ## Changes in V2.10 (V2.9 -> V2.10) * This became possible to supply flash programming power 7.5V by turning on SW8 of S5U1C17001H. (This firmware is only for the hardware version 2.0 of S5U1C17001H. ) ## Changes in V3.0 (V2.10 -> V3.0) [Common] * This firmware changed so that there is not dependence the hardware version from 1.0 to 2.0 of S5U1C17001H. * This firmware was corresponded to S1C17 (the firmware version 3.0 of S5U1C17001H for S1C17) and S1C33 (the firmware version 1.4 of S5U1C17001H for S1C33). [The hardawre version from 1.0 to 1.1 of S5U1C17001H] * When SW8 of S5U1C17001H is turned on at ICD mode, it became possible to supply 7.0V. However, it is not possible to use to supply as flash programming power. [The hardawre version 2.0 of S5U1C17001H] * This firmware is possible to change and supply flash programming power when using with version 2.0 of S5U1C17001C (GNU17). ## Changes in V3.1 (V3.0 -> V3.1) Only S1C17 (the firmware version 3.1 of S5U1C17001H for S1C17) was corrected. So, only S1C17 was updated. * The setting option of communication packet size was added with the standalone flash writer. * The voltage for flash programming specification processing was added for the preprocessing in the flash memory erasure routine with the standalone flash writer. * The trouble of timeout option(-T) was corrected with the S5U1C17000Y2(GangWriter). ## Changes in V3.2 (V3.1 -> V3.2) * This firmware was corresponded to S1C17 (the firmware version 3.2 of S5U1C17001H for S1C17) and S1C33 (the firmware version 1.5 of S5U1C17001H for S1C33). * The write return option (-b) was added with the standalone flash writer. * The setting option of communication packet size (-s) was changed with the standalone flash writer. (Before)c17 fwlp fwrxxxxxx.saf 0xx 0xx "-s0128" (After) c17 fwlp fwrxxxxxx.saf 0xx 0xx "-s128" * This firmware was corresponded to 64-bit OS. But, Correspondence of S5U1C17001C (GNU17) is after the version 2.2. Please perform farmware update to this version using the Window OS 32bit version. * The firmware update method change. ## Changes in V3.3 (V3.2 -> V3.3) * S1C17 (the firmware version 3.3 of S5U1C17001H for S1C17) was corrected. * The unlocking of flash security was corresponded. * The program write-in fault of odd number size is corrected. * The setting option of communication packet size (-s) was changed with the standalone flash writer. This firmware has compatibility with V3.1. * The measure against a noise was corresponded. * It changes into the standalone flash writer corresponding to a flexible FLS program. 2) Difference with the manual [The hardawre version from 1.0 to 1.1 of S5U1C17001H] The difference between the description of S5U1C17001H User Manual (ICDmini version 1.0 and 1.1) and the operation of the firmware version 3.3 of S5U1C17001H for S1C17 or the firmware version 1.5 of S5U1C17001H for S1C33 is as follows. Basic operation when S1C33 select is the same when S1C17 was selected. Please refer to the following for the difference of the operation. ## 2 Components Included with Package When developing an S1C33 application (scheduled to be supported) | When developing an S1C33 application (support) ## 4.1.2 Flash Programming Power Supply Connector Target reset signal output (TARGET RST OUT) When SW8 is set to ON, the FLASH VCC OUT pin always outputs a 7V voltage regardless of whether the RESET/START switch is pressed or not. ## 4.2 Connecting to the Host Computre [Operation when S1C33 is selected] 1.USB driver installation procedure USB driver used is different according to CPU of selected S1C17 or S1C33. Please install USB driver according to the following procedures. 1) Use the attached USB cable to connect the S5U1C17001H to the host computer (Hereafter, PC). 2) When the S5U1C17001H is connected to the host computer for the first time when selected CPU is S1C33, the PC will request tha the USB driver be installed. 3) Install the USB driver by following the directions displaued by the wizard. The USB driver is located in the "C:\EPSON\GNU33\utility\drv_usb" directory created when the S5U1C33001C (C Compiler Package for S1C33 Family) was installed. 4) When the end message of the installation is displayed to the wizard, it is installation completion. ## 5.3 Starting Up the Debugger [Operation when S1C33 is selected] Start up the debugger (gdb.exe) on the PC after the connection between the S5U1C17001C and the target S1C33 has been established by the operations described above. When debugging using the debugger with the S5U1C17001H connected, the debugger must be set to ICD Mini mode by executing the target command. (gdb) target icd6 usb <- Command to set the debugger in ICD Mini mode For the debug commands and how to operate the debugger, refer to the "S5U1C33001C Manual (C Compiler Package for S1C33 Family)". ## 6.1 Preparation for Flash Programming [Operation when S1C33 is selected] 1) Start up the S5U1C17001H in ICD mode. (see section 5.2 of S5U1C17001H User Manual) 2) Start up the dubgger. (see section 5.3 of S5U1C17001H User Manual) 3) Load a Flash erase / program routine (FLS program) into the S5U1C17001H using the "fwlp" command. (gdb) c33 fwlp Filename EraseEntryAdder WriteEntryAdder [Comment] Filename: Name of data erase / write program file. EraseEntryAdder: Erase routine entry address. WriteEntryAdder: Write routine entry address. Comment: Comments to identify data / address information. (may be omitted) Example: Load the data erase / write program file "writer.sa". When the erase routine start address is 0x14c, and the write routine start address is 0x180. (gdb) c17 fwlp writer.sa 0x14c 0x180 4) Load the data for programming the target system's Flash memory into the S5U1C17001H using the "fwld" command. (gdb) c33 fwld Filename EraseStartBlock EraseEndBlock EraseParam [Comment] Filename: Name of data file. EraseStartBlock: Block at which to star erasing. EraseEndBlock: Block at which to complete erasing. EraseParam: Erase parameter. Comment: Comments to identify data / address information. (may be omitted) Example: Erase all sectors and load "sample.saf" to the Flash. When the Flash start address is 0x600000. (gdb) c33 fwld sample.saf 0 0 0x600000 5) Quit the debugger. For details of the debugger (gdb.exe) refer to the S5U1C33001C Manual (C Compiler Package for S1C33 Family). ## 7 Firmware Update [When you update the firmware from the firmware version 3.2 of S5U1C17001H for S1C17 and the firmware version 1.5 of S5U1C17001H for S1C33] 1) Connect the S5U1C17001H with the host computer using the USB cable. 2) Dipswitch of S5U1C17001H is set. SW7 is set to turning on. Dipswitch sets it according to S1C that does the firmware update date as follows. When select S1C17: SW1=OPEN When select S1C33: SW1=ON Please set dipswitch to OPEN excluding the above mentioned. 3) RESET/START switch is push. LED of S5U1C17001H lights as follows. LED1(Bule) or (Green) LED2(Bule) LED3(Red) or (light off) LED4(Green) 4) Start up the debugger (gdb.exe). Please refer to the S5U1C17001C Manual (C Compiler Package for S1C17 Family) or the S5U1C33001C Manual (C Compiler Package for S1C33 Family) for the method of start up the debugger (gdb.exe). 5) The debugger (gdb.exe) is connected with S5U1C17001H. The following commands are executed from console window according the debugger (gdb.exe) of S1C. When select S1C17: (gdb) target icd usb When select S1C33: (gdb) target icd6 usb After commands is input, the following are displayed. When select S1C17: (gdb) target icd usb C17 ICD17 debugging Connecting with tartget (ID_OK) ..... done ICD Initializing (ICD_INITALIZE) ... done Read ICD Version (ICD_VER_READ) ..... done ICDmini hardware version .......... 1.x ICDmini software version .......... 3.3 <- The version can be confirmed here. Debug base address (ID_DATA_READ) .. xxxx Boot address (ICD_DATA_READ) ........ xxxx When select S1C33: (gdb) target icd6 usb C33 ICD33 debugging Connecting with tartget ... done CPU type and debug unit address setting ... done Initializing ............... done CPU cold resetting ......... done Target connection test ..... omitted ICDmini hardware version ... 1.x ICDmini software version ... 1.5 <- The version can be confirmed here. CPU type and debug unit address setting ... done CPU cold resetting ......... done Boot address ............... xxxx 6) Please confirm a present firmware version. And, please input it continuing the following commands when it is necessary to update it. When select S1C17: (gdb) c17 firmupdate path\filename.saf When select S1C33: (gdb) c33 firmupdate path\filename.saf path: Passing of place where new firmware was put. filename.saf: File name of new firmware. When the following are displayed after the command is input, it is completion. When select S1C17: Erase flash data ...done Load flash data ....done ICD firmware update ...done Please quit gdb, and power off ICD when LED2/LED3/LED4 is green. (LED is green in the case of SVT17701). When select S1C33: Erase flash data ...done Load flash data ....done ICD firmware update ...done Please quit gdb, and power off ICD when OK LED is on. In this work, it is likely to become necessary for about 15 minutes. Please never do the following while updating the firmware. * S5U1C17001H is reset. * The power supply is turned off. There is a possibility that S5U1C17001H doesn't start when interrupting on the way. 7) Please push RESET/START swtich. It lights as follows when succeeding in the firmware update. LED1(Bule/Green:Core select) LED2(Green:Erase success) LED3(Green:Write and Verify success) LED4(Green:Firmware update completion processing success) It blinks as follows when failing in the firmware update. When the firmware version is the under than before firmware version. LED1(Bule/Green:Core select) LED2(Red) LED3(Red) LED4(light off) This error can be reset by repeating from step (1). When failing in Flash erase or write or verify. LED1(Bule/Green:Core select) LED2(Red:Erase failure ) LED3(Red:Write and Verify failure ) LED4(Red:Firmware update completion processing failure ) 8) Please return OPEN SW7, and push RESET/START switch again. The firmware reactivates. Before firmware reactivates when failing in firmware update. ## 8.4 Difference between S5U1C17001H and S5U1C33001H. There is the following differences with S5U1C33001H when S1C33 is selected and used in S5U1C17001H. * Trace function cannot be used. [The hardawre version 2.0 of S5U1C17001H] The manual was revised. 3) Revision history Feb.18.2010 - Newly made Apr.22.2011 - The firmware V3.1 of S5U1C17001H for S1C17 was updated. Nov.24.2011 - The firmware V3.2 of S5U1C17001H for S1C17 was updated. The firmware V1.5 of S5U1C17001H for S133 was updated. Dec.20.2013 - The firmware V3.3 of S5U1C17001H for S1C17 was updated.